ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1009
Committed: Sun Sep 13 15:02:30 2009 UTC (16 years, 10 months ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 471094 byte(s)
Log Message:
- add configure test for pcre lib and remove pcre sources from the tree

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 998 2009-08-23 12:43:17Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 fi
370 $as_echo "$as_me: error: $1" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528
529 # Check that we are running under the correct shell.
530 SHELL=${CONFIG_SHELL-/bin/sh}
531
532 case X$lt_ECHO in
533 X*--fallback-echo)
534 # Remove one level of quotation (which was required for Make).
535 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541 # Discard the --no-reexec flag, and continue.
542 shift
543 elif test "X$1" = X--fallback-echo; then
544 # Avoid inline document here, it may be left over
545 :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547 # Yippee, $ECHO works!
548 :
549 else
550 # Restart under the correct shell.
551 exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555 # used as fallback echo
556 shift
557 cat <<_LT_EOF
558 $*
559 _LT_EOF
560 exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568 if test "X${echo_test_string+set}" != Xset; then
569 # find a string as large as possible, as long as the shell can cope with it
570 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574 then
575 break
576 fi
577 done
578 fi
579
580 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582 test "X$echo_testing_string" = "X$echo_test_string"; then
583 :
584 else
585 # The Solaris, AIX, and Digital Unix default echo programs unquote
586 # backslashes. This makes it impossible to quote backslashes using
587 # echo "$something" | sed 's/\\/\\\\/g'
588 #
589 # So, first we look for a working echo in the user's PATH.
590
591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592 for dir in $PATH /usr/ucb; do
593 IFS="$lt_save_ifs"
594 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
598 ECHO="$dir/echo"
599 break
600 fi
601 done
602 IFS="$lt_save_ifs"
603
604 if test "X$ECHO" = Xecho; then
605 # We didn't find a better echo, so look for alternatives.
606 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # This shell has a builtin print -r that does the trick.
610 ECHO='print -r'
611 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612 test "X$CONFIG_SHELL" != X/bin/ksh; then
613 # If we have ksh, try running configure again with it.
614 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615 export ORIGINAL_CONFIG_SHELL
616 CONFIG_SHELL=/bin/ksh
617 export CONFIG_SHELL
618 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619 else
620 # Try using printf.
621 ECHO='printf %s\n'
622 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # Cool, printf works
626 :
627 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628 test "X$echo_testing_string" = 'X\t' &&
629 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 export CONFIG_SHELL
633 SHELL="$CONFIG_SHELL"
634 export SHELL
635 ECHO="$CONFIG_SHELL $0 --fallback-echo"
636 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 else
642 # maybe with a smaller string...
643 prev=:
644
645 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647 then
648 break
649 fi
650 prev="$cmd"
651 done
652
653 if test "$prev" != 'sed 50q "$0"'; then
654 echo_test_string=`eval $prev`
655 export echo_test_string
656 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 else
658 # Oops. We lost completely, so just stick with echo.
659 ECHO=echo
660 fi
661 fi
662 fi
663 fi
664 fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
673
674
675
676
677 lt_ltdl_dir='libltdl'
678
679 lt_dlopen_dir="$lt_ltdl_dir"
680
681 exec 7<&0 </dev/null 6>&1
682
683 # Name of the host.
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685 # so uname gets run too.
686 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688 #
689 # Initializations.
690 #
691 ac_default_prefix=/usr/local
692 ac_clean_files=
693 ac_config_libobj_dir=.
694 LIBOBJS=
695 cross_compiling=no
696 subdirs=
697 MFLAGS=
698 MAKEFLAGS=
699
700 # Identity of this package.
701 PACKAGE_NAME='ircd-hybrid'
702 PACKAGE_TARNAME='ircd-hybrid'
703 PACKAGE_VERSION='7.2.4'
704 PACKAGE_STRING='ircd-hybrid 7.2.4'
705 PACKAGE_BUGREPORT=''
706 PACKAGE_URL=''
707
708 ac_unique_file="src/ircd.c"
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 # include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 # include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 enable_option_checking=no
746 ac_func_list=
747 ac_header_list=
748 ac_subst_vars='ltdl_LTLIBOBJS
749 ltdl_LIBOBJS
750 am__EXEEXT_FALSE
751 am__EXEEXT_TRUE
752 LTLIBOBJS
753 LIBOBJS
754 LOCALSTATEDIR
755 DATADIR
756 LIBDIR
757 SYSCONFDIR
758 PREFIX
759 EFNET_FALSE
760 EFNET_TRUE
761 ENABLE_SSL_FALSE
762 ENABLE_SSL_TRUE
763 ENABLE_PCRE_FALSE
764 ENABLE_PCRE_TRUE
765 LTDLOPEN
766 LT_CONFIG_H
767 subdirs
768 CONVENIENCE_LTDL_FALSE
769 CONVENIENCE_LTDL_TRUE
770 INSTALL_LTDL_FALSE
771 INSTALL_LTDL_TRUE
772 ARGZ_H
773 sys_symbol_underscore
774 LIBADD_DL
775 LT_DLPREOPEN
776 LIBADD_DLD_LINK
777 LIBADD_SHL_LOAD
778 LIBADD_DLOPEN
779 LT_DLLOADERS
780 INCLTDL
781 LTDLINCL
782 LTDLDEPS
783 LIBLTDL
784 CPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 lt_ECHO
791 RANLIB
792 AR
793 OBJDUMP
794 LN_S
795 NM
796 ac_ct_DUMPBIN
797 DUMPBIN
798 LD
799 FGREP
800 EGREP
801 GREP
802 SED
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 LIBTOOL
812 LEXLIB
813 LEX_OUTPUT_ROOT
814 LEX
815 YFLAGS
816 YACC
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 AMDEPBACKSLASH
821 AMDEP_FALSE
822 AMDEP_TRUE
823 am__quote
824 am__include
825 DEPDIR
826 OBJEXT
827 EXEEXT
828 ac_ct_CC
829 CPPFLAGS
830 LDFLAGS
831 CFLAGS
832 CC
833 MAINT
834 MAINTAINER_MODE_FALSE
835 MAINTAINER_MODE_TRUE
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_maintainer_mode
901 enable_dependency_tracking
902 enable_static
903 enable_shared
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_included_ltdl
909 with_ltdl_include
910 with_ltdl_lib
911 enable_ltdl_install
912 with_zlib_path
913 enable_zlib
914 with_libpcre_path
915 enable_libpcre
916 enable_openssl
917 enable_assert
918 enable_small_net
919 enable_kqueue
920 enable_epoll
921 enable_devpoll
922 enable_rtsigio
923 enable_poll
924 enable_select
925 with_nicklen
926 with_topiclen
927 with_syslog_facility
928 enable_efnet
929 enable_halfops
930 enable_debugging
931 enable_warnings
932 enable_syslog
933 '
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 YACC
943 YFLAGS
944 CPP'
945 ac_subdirs_all='libltdl'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
1016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1041
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1074
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372 do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451 else
1452 ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-maintainer-mode enable make rules and dependencies not useful
1565 (and sometimes confusing) to the casual installer
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-static[=PKGS] build static libraries [default=no]
1569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --enable-ltdl-install install libltdl
1574 --disable-zlib Disable ziplinks support
1575 --disable-libpcre Disable PCRE support
1576 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1577 --disable-openssl Disable OpenSSL support.
1578 --enable-assert Enable assert() statements
1579 --enable-small-net Enable small network support.
1580 --enable-kqueue Force kqueue usage.
1581 --enable-epoll Force epoll usage.
1582 --enable-devpoll Force devpoll usage.
1583 --enable-rtsigio Force rtsigio usage.
1584 --enable-poll Force poll usage.
1585 --enable-select Force select usage.
1586 --enable-efnet For IRCDs running on EFnet.
1587 --enable-halfops Enable halfops support.
1588 --enable-debugging Enable debugging.
1589 --enable-warnings Enable compiler warnings.
1590 --enable-syslog="EVENTS"
1591 Enable syslog for events: users oper (space
1592 separated in quotes; default: disabled).
1593
1594 Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-included-ltdl use the GNU ltdl sources included here
1601 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1602 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1603 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1604 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1605 --with-nicklen=<value> Set nickname length (default 9).
1606 --with-topiclen=<value> Set topic length (default 160).
1607 --with-syslog-facility=LOG
1608 Define the syslog facility to use (default:
1609 LOG_LOCAL4)
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1620 the first program found out of: `bison -y', `byacc', `yacc'.
1621 YFLAGS The list of arguments that will be passed by default to $YACC.
1622 This script will default YFLAGS to the empty string to avoid a
1623 default value of `-d' given by some make applications.
1624 CPP C preprocessor
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to the package provider.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 ircd-hybrid configure 7.2.4
1693 generated by GNU Autoconf 2.64
1694
1695 Copyright (C) 2009 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699 exit
1700 fi
1701
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1705
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 return $ac_retval
1741
1742 } # ac_fn_c_try_compile
1743
1744 # ac_fn_c_try_link LINENO
1745 # -----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_link ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788 } # ac_fn_c_try_link
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_header_compile
1820
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1855
1856 } # ac_fn_c_try_cpp
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status
1893 fi
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1897
1898 } # ac_fn_c_try_run
1899
1900 # ac_fn_c_check_func LINENO FUNC VAR
1901 # ----------------------------------
1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903 ac_fn_c_check_func ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915 #define $2 innocuous_$2
1916
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922 #ifdef __STDC__
1923 # include <limits.h>
1924 #else
1925 # include <assert.h>
1926 #endif
1927
1928 #undef $2
1929
1930 /* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 char $2 ();
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined __stub_$2 || defined __stub___$2
1941 choke me
1942 #endif
1943
1944 int
1945 main ()
1946 {
1947 return $2 ();
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954 else
1955 eval "$3=no"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965 } # ac_fn_c_check_func
1966
1967 # ac_fn_c_check_decl LINENO SYMBOL VAR
1968 # ------------------------------------
1969 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1970 ac_fn_c_check_decl ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1974 $as_echo_n "checking whether $2 is declared... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 #ifndef $2
1985 (void) $2;
1986 #endif
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_decl
2005
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=no"
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 if (sizeof ($2))
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 if (sizeof (($2)))
2039 return 0;
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045
2046 else
2047 eval "$3=yes"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058 } # ac_fn_c_check_type
2059
2060 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2061 # ----------------------------------------------------
2062 # Tries to find if the field MEMBER exists in type AGGR, after including
2063 # INCLUDES, setting cache variable VAR accordingly.
2064 ac_fn_c_check_member ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2068 $as_echo_n "checking for $2.$3... " >&6; }
2069 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $5
2075 int
2076 main ()
2077 {
2078 static $2 ac_aggr;
2079 if (ac_aggr.$3)
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$4=yes"
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $5
2091 int
2092 main ()
2093 {
2094 static $2 ac_aggr;
2095 if (sizeof ac_aggr.$3)
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$4=yes"
2103 else
2104 eval "$4=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$4
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_member
2116
2117 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2118 # --------------------------------------------
2119 # Tries to find the compile-time value of EXPR in a program that includes
2120 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2121 # computed
2122 ac_fn_c_compute_int ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if test "$cross_compiling" = yes; then
2126 # Depending upon the size, compute the lo and hi bounds.
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) >= 0)];
2134 test_array [0] = 0
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_lo=0 ac_mid=0
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 test_array [0] = 0
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2158 else
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2161 ac_lo= ac_hi=
2162 break
2163 fi
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) < 0)];
2176 test_array [0] = 0
2177
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=-1 ac_mid=-1
2184 while :; do
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2192 test_array [0] = 0
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_lo=$ac_mid; break
2200 else
2201 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2202 if test $ac_mid -le $ac_hi; then
2203 ac_lo= ac_hi=
2204 break
2205 fi
2206 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 else
2211 ac_lo= ac_hi=
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 # Binary search between lo and hi bounds.
2217 while test "x$ac_lo" != "x$ac_hi"; do
2218 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 $4
2222 int
2223 main ()
2224 {
2225 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 test_array [0] = 0
2227
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=$ac_mid
2234 else
2235 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 case $ac_lo in #((
2240 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2241 '') ac_retval=1 ;;
2242 esac
2243 else
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $4
2247 static long int longval () { return $2; }
2248 static unsigned long int ulongval () { return $2; }
2249 #include <stdio.h>
2250 #include <stdlib.h>
2251 int
2252 main ()
2253 {
2254
2255 FILE *f = fopen ("conftest.val", "w");
2256 if (! f)
2257 return 1;
2258 if (($2) < 0)
2259 {
2260 long int i = longval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%ld", i);
2264 }
2265 else
2266 {
2267 unsigned long int i = ulongval ();
2268 if (i != ($2))
2269 return 1;
2270 fprintf (f, "%lu", i);
2271 }
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2275
2276 ;
2277 return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_run "$LINENO"; then :
2281 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2282 else
2283 ac_retval=1
2284 fi
2285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2286 conftest.$ac_objext conftest.beam conftest.$ac_ext
2287 rm -f conftest.val
2288
2289 fi
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 return $ac_retval
2292
2293 } # ac_fn_c_compute_int
2294
2295 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # -------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2299 # accordingly.
2300 ac_fn_c_check_header_mongrel ()
2301 {
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 $as_echo_n "(cached) " >&6
2308 fi
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 else
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $4
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2323 else
2324 ac_header_compiler=no
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2329
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_c_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2339 else
2340 ac_header_preproc=no
2341 fi
2342 rm -f conftest.err conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2345
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2348 yes:no: )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2353 ;;
2354 no:yes:* )
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365 ;;
2366 esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 eval "$3=\$ac_header_compiler"
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 fi
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_check_header_mongrel
2381 cat >config.log <<_ACEOF
2382 This file contains any messages produced by compilers while
2383 running configure, to aid debugging if configure makes a mistake.
2384
2385 It was created by ircd-hybrid $as_me 7.2.4, which was
2386 generated by GNU Autoconf 2.64. Invocation command line was
2387
2388 $ $0 $@
2389
2390 _ACEOF
2391 exec 5>>config.log
2392 {
2393 cat <<_ASUNAME
2394 ## --------- ##
2395 ## Platform. ##
2396 ## --------- ##
2397
2398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2403
2404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2405 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2406
2407 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2408 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2410 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2411 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2412 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2413 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2414
2415 _ASUNAME
2416
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 $as_echo "PATH: $as_dir"
2423 done
2424 IFS=$as_save_IFS
2425
2426 } >&5
2427
2428 cat >&5 <<_ACEOF
2429
2430
2431 ## ----------- ##
2432 ## Core tests. ##
2433 ## ----------- ##
2434
2435 _ACEOF
2436
2437
2438 # Keep a trace of the command line.
2439 # Strip out --no-create and --no-recursion so they do not pile up.
2440 # Strip out --silent because we don't want to record it for future runs.
2441 # Also quote any args containing shell meta-characters.
2442 # Make two passes to allow for proper duplicate-argument suppression.
2443 ac_configure_args=
2444 ac_configure_args0=
2445 ac_configure_args1=
2446 ac_must_keep_next=false
2447 for ac_pass in 1 2
2448 do
2449 for ac_arg
2450 do
2451 case $ac_arg in
2452 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2454 | -silent | --silent | --silen | --sile | --sil)
2455 continue ;;
2456 *\'*)
2457 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 esac
2459 case $ac_pass in
2460 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2461 2)
2462 as_fn_append ac_configure_args1 " '$ac_arg'"
2463 if test $ac_must_keep_next = true; then
2464 ac_must_keep_next=false # Got value, back to normal.
2465 else
2466 case $ac_arg in
2467 *=* | --config-cache | -C | -disable-* | --disable-* \
2468 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2469 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2470 | -with-* | --with-* | -without-* | --without-* | --x)
2471 case "$ac_configure_args0 " in
2472 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473 esac
2474 ;;
2475 -* ) ac_must_keep_next=true ;;
2476 esac
2477 fi
2478 as_fn_append ac_configure_args " '$ac_arg'"
2479 ;;
2480 esac
2481 done
2482 done
2483 { ac_configure_args0=; unset ac_configure_args0;}
2484 { ac_configure_args1=; unset ac_configure_args1;}
2485
2486 # When interrupted or exit'd, cleanup temporary files, and complete
2487 # config.log. We remove comments because anyway the quotes in there
2488 # would cause problems or look ugly.
2489 # WARNING: Use '\'' to represent an apostrophe within the trap.
2490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2491 trap 'exit_status=$?
2492 # Save into config.log some information that might help in debugging.
2493 {
2494 echo
2495
2496 cat <<\_ASBOX
2497 ## ---------------- ##
2498 ## Cache variables. ##
2499 ## ---------------- ##
2500 _ASBOX
2501 echo
2502 # The following way of writing the cache mishandles newlines in values,
2503 (
2504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2505 eval ac_val=\$$ac_var
2506 case $ac_val in #(
2507 *${as_nl}*)
2508 case $ac_var in #(
2509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2511 esac
2512 case $ac_var in #(
2513 _ | IFS | as_nl) ;; #(
2514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2515 *) { eval $ac_var=; unset $ac_var;} ;;
2516 esac ;;
2517 esac
2518 done
2519 (set) 2>&1 |
2520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2521 *${as_nl}ac_space=\ *)
2522 sed -n \
2523 "s/'\''/'\''\\\\'\'''\''/g;
2524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2525 ;; #(
2526 *)
2527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2528 ;;
2529 esac |
2530 sort
2531 )
2532 echo
2533
2534 cat <<\_ASBOX
2535 ## ----------------- ##
2536 ## Output variables. ##
2537 ## ----------------- ##
2538 _ASBOX
2539 echo
2540 for ac_var in $ac_subst_vars
2541 do
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2549
2550 if test -n "$ac_subst_files"; then
2551 cat <<\_ASBOX
2552 ## ------------------- ##
2553 ## File substitutions. ##
2554 ## ------------------- ##
2555 _ASBOX
2556 echo
2557 for ac_var in $ac_subst_files
2558 do
2559 eval ac_val=\$$ac_var
2560 case $ac_val in
2561 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2562 esac
2563 $as_echo "$ac_var='\''$ac_val'\''"
2564 done | sort
2565 echo
2566 fi
2567
2568 if test -s confdefs.h; then
2569 cat <<\_ASBOX
2570 ## ----------- ##
2571 ## confdefs.h. ##
2572 ## ----------- ##
2573 _ASBOX
2574 echo
2575 cat confdefs.h
2576 echo
2577 fi
2578 test "$ac_signal" != 0 &&
2579 $as_echo "$as_me: caught signal $ac_signal"
2580 $as_echo "$as_me: exit $exit_status"
2581 } >&5
2582 rm -f core *.core core.conftest.* &&
2583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584 exit $exit_status
2585 ' 0
2586 for ac_signal in 1 2 13 15; do
2587 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2588 done
2589 ac_signal=0
2590
2591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2592 rm -f -r conftest* confdefs.h
2593
2594 $as_echo "/* confdefs.h */" > confdefs.h
2595
2596 # Predefined preprocessor variables.
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_NAME "$PACKAGE_NAME"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_STRING "$PACKAGE_STRING"
2612 _ACEOF
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616 _ACEOF
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_URL "$PACKAGE_URL"
2620 _ACEOF
2621
2622
2623 # Let the site file select an alternate cache file if it wants to.
2624 # Prefer an explicitly selected file to automatically selected ones.
2625 ac_site_file1=NONE
2626 ac_site_file2=NONE
2627 if test -n "$CONFIG_SITE"; then
2628 ac_site_file1=$CONFIG_SITE
2629 elif test "x$prefix" != xNONE; then
2630 ac_site_file1=$prefix/share/config.site
2631 ac_site_file2=$prefix/etc/config.site
2632 else
2633 ac_site_file1=$ac_default_prefix/share/config.site
2634 ac_site_file2=$ac_default_prefix/etc/config.site
2635 fi
2636 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2637 do
2638 test "x$ac_site_file" = xNONE && continue
2639 if test -r "$ac_site_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2641 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2642 sed 's/^/| /' "$ac_site_file" >&5
2643 . "$ac_site_file"
2644 fi
2645 done
2646
2647 if test -r "$cache_file"; then
2648 # Some versions of bash will fail to source /dev/null (special
2649 # files actually), so we avoid doing that.
2650 if test -f "$cache_file"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2652 $as_echo "$as_me: loading cache $cache_file" >&6;}
2653 case $cache_file in
2654 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2655 *) . "./$cache_file";;
2656 esac
2657 fi
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2660 $as_echo "$as_me: creating cache $cache_file" >&6;}
2661 >$cache_file
2662 fi
2663
2664 as_fn_append ac_func_list " snprintf"
2665 as_fn_append ac_func_list " vsnprintf"
2666 as_fn_append ac_func_list " mmap"
2667 as_fn_append ac_func_list " strtok_r"
2668 as_fn_append ac_func_list " usleep"
2669 as_fn_append ac_func_list " strlcat"
2670 as_fn_append ac_func_list " strlcpy"
2671 as_fn_append ac_header_list " crypt.h"
2672 as_fn_append ac_header_list " inttypes.h"
2673 as_fn_append ac_header_list " stdint.h"
2674 as_fn_append ac_header_list " sys/resource.h"
2675 as_fn_append ac_header_list " sys/param.h"
2676 as_fn_append ac_header_list " errno.h"
2677 as_fn_append ac_header_list " sys/syslog.h"
2678 as_fn_append ac_header_list " stddef.h"
2679 as_fn_append ac_header_list " libgen.h"
2680 as_fn_append ac_header_list " types.h"
2681 as_fn_append ac_header_list " socket.h"
2682 as_fn_append ac_header_list " sys/wait.h"
2683 as_fn_append ac_header_list " wait.h"
2684 as_fn_append ac_header_list " link.h"
2685 # Check that the precious variables saved in the cache have kept the same
2686 # value.
2687 ac_cache_corrupted=false
2688 for ac_var in $ac_precious_vars; do
2689 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2690 eval ac_new_set=\$ac_env_${ac_var}_set
2691 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2692 eval ac_new_val=\$ac_env_${ac_var}_value
2693 case $ac_old_set,$ac_new_set in
2694 set,)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2696 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2697 ac_cache_corrupted=: ;;
2698 ,set)
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2701 ac_cache_corrupted=: ;;
2702 ,);;
2703 *)
2704 if test "x$ac_old_val" != "x$ac_new_val"; then
2705 # differences in whitespace do not lead to failure.
2706 ac_old_val_w=`echo x $ac_old_val`
2707 ac_new_val_w=`echo x $ac_new_val`
2708 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2710 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2711 ac_cache_corrupted=:
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2714 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2715 eval $ac_var=\$ac_old_val
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2718 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2720 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2721 fi;;
2722 esac
2723 # Pass precious variables to config.status.
2724 if test "$ac_new_set" = set; then
2725 case $ac_new_val in
2726 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2727 *) ac_arg=$ac_var=$ac_new_val ;;
2728 esac
2729 case " $ac_configure_args " in
2730 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2731 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2732 esac
2733 fi
2734 done
2735 if $ac_cache_corrupted; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2739 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2740 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2741 fi
2742 ## -------------------- ##
2743 ## Main body of script. ##
2744 ## -------------------- ##
2745
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752
2753 am__api_version='1.11'
2754
2755 ac_aux_dir=
2756 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2757 for ac_t in install-sh install.sh shtool; do
2758 if test -f "$ac_dir/$ac_t"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/$ac_t -c"
2761 break 2
2762 fi
2763 done
2764 done
2765 if test -z "$ac_aux_dir"; then
2766 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2767 fi
2768
2769 # These three variables are undocumented and unsupported,
2770 # and are intended to be withdrawn in a future Autoconf release.
2771 # They can cause serious problems if a builder's source tree is in a directory
2772 # whose full name contains unusual characters.
2773 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2774 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2775 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2776
2777
2778 # Find a good install program. We prefer a C program (faster),
2779 # so one script is as good as another. But avoid the broken or
2780 # incompatible versions:
2781 # SysV /etc/install, /usr/sbin/install
2782 # SunOS /usr/etc/install
2783 # IRIX /sbin/install
2784 # AIX /bin/install
2785 # AmigaOS /C/install, which installs bootblocks on floppy discs
2786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2789 # OS/2's system install, which has a completely different semantic
2790 # ./install, which can be erroneously created by make from ./install.sh.
2791 # Reject install programs that cannot install multiple files.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2794 if test -z "$INSTALL"; then
2795 if test "${ac_cv_path_install+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 # Account for people who put trailing slashes in PATH elements.
2804 case $as_dir/ in #((
2805 ./ | .// | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 /usr/ucb/* ) ;;
2809 *)
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2812 # by default.
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2819 :
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2823 :
2824 else
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2828 mkdir conftest.dir
2829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2833 then
2834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2835 break 3
2836 fi
2837 fi
2838 fi
2839 done
2840 done
2841 ;;
2842 esac
2843
2844 done
2845 IFS=$as_save_IFS
2846
2847 rm -rf conftest.one conftest.two conftest.dir
2848
2849 fi
2850 if test "${ac_cv_path_install+set}" = set; then
2851 INSTALL=$ac_cv_path_install
2852 else
2853 # As a last resort, use the slow shell script. Don't cache a
2854 # value for INSTALL within a source directory, because that will
2855 # break other packages using the cache if that directory is
2856 # removed, or if the value is a relative name.
2857 INSTALL=$ac_install_sh
2858 fi
2859 fi
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2861 $as_echo "$INSTALL" >&6; }
2862
2863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2864 # It thinks the first close brace ends the variable substitution.
2865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2866
2867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2868
2869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2872 $as_echo_n "checking whether build environment is sane... " >&6; }
2873 # Just in case
2874 sleep 1
2875 echo timestamp > conftest.file
2876 # Reject unsafe characters in $srcdir or the absolute working directory
2877 # name. Accept space and tab only in the latter.
2878 am_lf='
2879 '
2880 case `pwd` in
2881 *[\\\"\#\$\&\'\`$am_lf]*)
2882 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2883 esac
2884 case $srcdir in
2885 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2886 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2887 esac
2888
2889 # Do `set' in a subshell so we don't clobber the current shell's
2890 # arguments. Must try -L first in case configure is actually a
2891 # symlink; some systems play weird games with the mod time of symlinks
2892 # (eg FreeBSD returns the mod time of the symlink's containing
2893 # directory).
2894 if (
2895 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2896 if test "$*" = "X"; then
2897 # -L didn't work.
2898 set X `ls -t "$srcdir/configure" conftest.file`
2899 fi
2900 rm -f conftest.file
2901 if test "$*" != "X $srcdir/configure conftest.file" \
2902 && test "$*" != "X conftest.file $srcdir/configure"; then
2903
2904 # If neither matched, then we have a broken ls. This can happen
2905 # if, for instance, CONFIG_SHELL is bash and it inherits a
2906 # broken ls alias from the environment. This has actually
2907 # happened. Such a system could not be considered "sane".
2908 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2909 alias in your environment" "$LINENO" 5
2910 fi
2911
2912 test "$2" = conftest.file
2913 )
2914 then
2915 # Ok.
2916 :
2917 else
2918 as_fn_error "newly created file is older than distributed files!
2919 Check your system clock" "$LINENO" 5
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923 test "$program_prefix" != NONE &&
2924 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2925 # Use a double $ so make ignores it.
2926 test "$program_suffix" != NONE &&
2927 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2928 # Double any \ or $.
2929 # By default was `s,x,x', remove it if useless.
2930 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2931 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2932
2933 # expand $ac_aux_dir to an absolute path
2934 am_aux_dir=`cd $ac_aux_dir && pwd`
2935
2936 if test x"${MISSING+set}" != xset; then
2937 case $am_aux_dir in
2938 *\ * | *\ *)
2939 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2940 *)
2941 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2942 esac
2943 fi
2944 # Use eval to expand $SHELL
2945 if eval "$MISSING --run true"; then
2946 am_missing_run="$MISSING --run "
2947 else
2948 am_missing_run=
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2950 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2951 fi
2952
2953 if test x"${install_sh}" != xset; then
2954 case $am_aux_dir in
2955 *\ * | *\ *)
2956 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2957 *)
2958 install_sh="\${SHELL} $am_aux_dir/install-sh"
2959 esac
2960 fi
2961
2962 # Installed binaries are usually stripped using `strip' when the user
2963 # run `make install-strip'. However `strip' might not be the right
2964 # tool to use in cross-compilation environments, therefore Automake
2965 # will honor the `STRIP' environment variable to overrule this program.
2966 if test "$cross_compiling" != no; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}strip; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_STRIP+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$STRIP"; then
2976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 STRIP=$ac_cv_prog_STRIP
2996 if test -n "$STRIP"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2998 $as_echo "$STRIP" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$ac_cv_prog_STRIP"; then
3007 ac_ct_STRIP=$STRIP
3008 # Extract the first word of "strip", so it can be a program name with args.
3009 set dummy strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$ac_ct_STRIP"; then
3016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_STRIP="strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3036 if test -n "$ac_ct_STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3038 $as_echo "$ac_ct_STRIP" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044 if test "x$ac_ct_STRIP" = x; then
3045 STRIP=":"
3046 else
3047 case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053 STRIP=$ac_ct_STRIP
3054 fi
3055 else
3056 STRIP="$ac_cv_prog_STRIP"
3057 fi
3058
3059 fi
3060 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3063 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3064 if test -z "$MKDIR_P"; then
3065 if test "${ac_cv_path_mkdir+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_prog in mkdir gmkdir; do
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3076 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3077 'mkdir (GNU coreutils) '* | \
3078 'mkdir (coreutils) '* | \
3079 'mkdir (fileutils) '4.1*)
3080 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3081 break 3;;
3082 esac
3083 done
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089
3090 if test "${ac_cv_path_mkdir+set}" = set; then
3091 MKDIR_P="$ac_cv_path_mkdir -p"
3092 else
3093 # As a last resort, use the slow shell script. Don't cache a
3094 # value for MKDIR_P within a source directory, because that will
3095 # break other packages using the cache if that directory is
3096 # removed, or if the value is a relative name.
3097 test -d ./--version && rmdir ./--version
3098 MKDIR_P="$ac_install_sh -d"
3099 fi
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3102 $as_echo "$MKDIR_P" >&6; }
3103
3104 mkdir_p="$MKDIR_P"
3105 case $mkdir_p in
3106 [\\/$]* | ?:[\\/]*) ;;
3107 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3108 esac
3109
3110 for ac_prog in gawk mawk nawk awk
3111 do
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_AWK+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$AWK"; then
3120 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_AWK="$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 AWK=$ac_cv_prog_AWK
3140 if test -n "$AWK"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3142 $as_echo "$AWK" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 test -n "$AWK" && break
3150 done
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3154 set x ${MAKE-make}
3155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3156 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 cat >conftest.make <<\_ACEOF
3160 SHELL = /bin/sh
3161 all:
3162 @echo '@@@%%%=$(MAKE)=@@@%%%'
3163 _ACEOF
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3166 *@@@%%%=?*=@@@%%%*)
3167 eval ac_cv_prog_make_${ac_make}_set=yes;;
3168 *)
3169 eval ac_cv_prog_make_${ac_make}_set=no;;
3170 esac
3171 rm -f conftest.make
3172 fi
3173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176 SET_MAKE=
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 SET_MAKE="MAKE=${MAKE-make}"
3181 fi
3182
3183 rm -rf .tst 2>/dev/null
3184 mkdir .tst 2>/dev/null
3185 if test -d .tst; then
3186 am__leading_dot=.
3187 else
3188 am__leading_dot=_
3189 fi
3190 rmdir .tst 2>/dev/null
3191
3192 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3193 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3194 # is not polluted with repeated "-I."
3195 am__isrc=' -I$(srcdir)'
3196 # test to see if srcdir already configured
3197 if test -f $srcdir/config.status; then
3198 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3199 fi
3200 fi
3201
3202 # test whether we have cygpath
3203 if test -z "$CYGPATH_W"; then
3204 if (cygpath --version) >/dev/null 2>/dev/null; then
3205 CYGPATH_W='cygpath -w'
3206 else
3207 CYGPATH_W=echo
3208 fi
3209 fi
3210
3211
3212 # Define the identity of the package.
3213 PACKAGE='ircd-hybrid'
3214 VERSION='7.2.4'
3215
3216
3217 cat >>confdefs.h <<_ACEOF
3218 #define PACKAGE "$PACKAGE"
3219 _ACEOF
3220
3221
3222 cat >>confdefs.h <<_ACEOF
3223 #define VERSION "$VERSION"
3224 _ACEOF
3225
3226 # Some tools Automake needs.
3227
3228 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3229
3230
3231 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3232
3233
3234 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3235
3236
3237 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3238
3239
3240 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3241
3242 # We need awk for the "check" target. The system "awk" is bad on
3243 # some platforms.
3244 # Always define AMTAR for backward compatibility.
3245
3246 AMTAR=${AMTAR-"${am_missing_run}tar"}
3247
3248 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3249
3250
3251
3252
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258 if test "${enable_maintainer_mode+set}" = set; then :
3259 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3260 else
3261 USE_MAINTAINER_MODE=no
3262 fi
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3265 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3266 if test $USE_MAINTAINER_MODE = yes; then
3267 MAINTAINER_MODE_TRUE=
3268 MAINTAINER_MODE_FALSE='#'
3269 else
3270 MAINTAINER_MODE_TRUE='#'
3271 MAINTAINER_MODE_FALSE=
3272 fi
3273
3274 MAINT=$MAINTAINER_MODE_TRUE
3275
3276
3277 ac_config_headers="$ac_config_headers config.h"
3278
3279
3280
3281
3282 # Checks for programs.
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288 if test -n "$ac_tool_prefix"; then
3289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3290 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 CC=$ac_cv_prog_CC
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 fi
3324
3325
3326 fi
3327 if test -z "$ac_cv_prog_CC"; then
3328 ac_ct_CC=$CC
3329 # Extract the first word of "gcc", so it can be a program name with args.
3330 set dummy gcc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_ac_ct_CC="gcc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3375 fi
3376 else
3377 CC="$ac_cv_prog_CC"
3378 fi
3379
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}cc; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="${ac_tool_prefix}cc"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419 fi
3420 fi
3421 if test -z "$CC"; then
3422 # Extract the first word of "cc", so it can be a program name with args.
3423 set dummy cc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_CC+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 ac_prog_rejected=no
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3441 ac_prog_rejected=yes
3442 continue
3443 fi
3444 ac_cv_prog_CC="cc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 if test $ac_prog_rejected = yes; then
3453 # We found a bogon in the path, so make sure we never use it.
3454 set dummy $ac_cv_prog_CC
3455 shift
3456 if test $# != 0; then
3457 # We chose a different compiler from the bogus one.
3458 # However, it has the same basename, so the bogon will be chosen
3459 # first if we set CC to just the basename; use the full file name.
3460 shift
3461 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3462 fi
3463 fi
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475
3476 fi
3477 if test -z "$CC"; then
3478 if test -n "$ac_tool_prefix"; then
3479 for ac_prog in cl.exe
3480 do
3481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517
3518 test -n "$CC" && break
3519 done
3520 fi
3521 if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in cl.exe
3524 do
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3542 ac_cv_prog_ac_ct_CC="$ac_prog"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3553 if test -n "$ac_ct_CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3555 $as_echo "$ac_ct_CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 test -n "$ac_ct_CC" && break
3563 done
3564
3565 if test "x$ac_ct_CC" = x; then
3566 CC=""
3567 else
3568 case $cross_compiling:$ac_tool_warned in
3569 yes:)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3573 esac
3574 CC=$ac_ct_CC
3575 fi
3576 fi
3577
3578 fi
3579
3580
3581 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error "no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." "$LINENO" 5; }
3585
3586 # Provide some information about the compiler.
3587 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3588 set X $ac_compile
3589 ac_compiler=$2
3590 for ac_option in --version -v -V -qversion; do
3591 { { ac_try="$ac_compiler $ac_option >&5"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3599 ac_status=$?
3600 if test -s conftest.err; then
3601 sed '10a\
3602 ... rest of stderr output deleted ...
3603 10q' conftest.err >conftest.er1
3604 cat conftest.er1 >&5
3605 rm -f conftest.er1 conftest.err
3606 fi
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }
3609 done
3610
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files_save=$ac_clean_files
3625 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3626 # Try to create an executable without -o first, disregard a.out.
3627 # It will help us diagnose broken compilers, and finding out an intuition
3628 # of exeext.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3630 $as_echo_n "checking for C compiler default output file name... " >&6; }
3631 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3632
3633 # The possible output files:
3634 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3635
3636 ac_rmfiles=
3637 for ac_file in $ac_files
3638 do
3639 case $ac_file in
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3642 esac
3643 done
3644 rm -f $ac_rmfiles
3645
3646 if { { ac_try="$ac_link_default"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_link_default") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3659 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3660 # so that the user can short-circuit this test for compilers unknown to
3661 # Autoconf.
3662 for ac_file in $ac_files ''
3663 do
3664 test -f "$ac_file" || continue
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3667 ;;
3668 [ab].out )
3669 # We found the default executable, but exeext='' is most
3670 # certainly right.
3671 break;;
3672 *.* )
3673 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3674 then :; else
3675 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 fi
3677 # We set ac_cv_exeext here because the later test for it is not
3678 # safe: cross compilers may not add the suffix if given an `-o'
3679 # argument, so we may need to know it at that point already.
3680 # Even if this section looks crufty: it has the advantage of
3681 # actually working.
3682 break;;
3683 * )
3684 break;;
3685 esac
3686 done
3687 test "$ac_cv_exeext" = no && ac_cv_exeext=
3688
3689 else
3690 ac_file=''
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693 $as_echo "$ac_file" >&6; }
3694 if test -z "$ac_file"; then :
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 { as_fn_set_status 77
3701 as_fn_error "C compiler cannot create executables
3702 See \`config.log' for more details." "$LINENO" 5; }; }
3703 fi
3704 ac_exeext=$ac_cv_exeext
3705
3706 # Check that the compiler produces executables we can run. If not, either
3707 # the compiler is broken, or we cross compile.
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3709 $as_echo_n "checking whether the C compiler works... " >&6; }
3710 # If not cross compiling, check that we can run a simple program.
3711 if test "$cross_compiling" != yes; then
3712 if { ac_try='./$ac_file'
3713 { { case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_try") 2>&5
3720 ac_status=$?
3721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722 test $ac_status = 0; }; }; then
3723 cross_compiling=no
3724 else
3725 if test "$cross_compiling" = maybe; then
3726 cross_compiling=yes
3727 else
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error "cannot run C compiled programs.
3731 If you meant to cross compile, use \`--host'.
3732 See \`config.log' for more details." "$LINENO" 5; }
3733 fi
3734 fi
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3737 $as_echo "yes" >&6; }
3738
3739 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3740 ac_clean_files=$ac_clean_files_save
3741 # Check that the compiler produces executables we can run. If not, either
3742 # the compiler is broken, or we cross compile.
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3744 $as_echo_n "checking whether we are cross compiling... " >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3746 $as_echo "$cross_compiling" >&6; }
3747
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3749 $as_echo_n "checking for suffix of executables... " >&6; }
3750 if { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3762 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3763 # work properly (i.e., refer to `conftest.exe'), while it won't with
3764 # `rm'.
3765 for ac_file in conftest.exe conftest conftest.*; do
3766 test -f "$ac_file" || continue
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 break;;
3771 * ) break;;
3772 esac
3773 done
3774 else
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "cannot compute suffix of executables: cannot compile and link
3778 See \`config.log' for more details." "$LINENO" 5; }
3779 fi
3780 rm -f conftest$ac_cv_exeext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3782 $as_echo "$ac_cv_exeext" >&6; }
3783
3784 rm -f conftest.$ac_ext
3785 EXEEXT=$ac_cv_exeext
3786 ac_exeext=$EXEEXT
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3788 $as_echo_n "checking for suffix of object files... " >&6; }
3789 if test "${ac_cv_objext+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.o conftest.obj
3804 if { { ac_try="$ac_compile"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compile") 2>&5
3812 ac_status=$?
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }; then :
3815 for ac_file in conftest.o conftest.obj conftest.*; do
3816 test -f "$ac_file" || continue;
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 break;;
3821 esac
3822 done
3823 else
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "cannot compute suffix of object files: cannot compile
3830 See \`config.log' for more details." "$LINENO" 5; }
3831 fi
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835 $as_echo "$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3837 ac_objext=$OBJEXT
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3840 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845
3846 int
3847 main ()
3848 {
3849 #ifndef __GNUC__
3850 choke me
3851 #endif
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_compiler_gnu=yes
3859 else
3860 ac_compiler_gnu=no
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3864
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3868 if test $ac_compiler_gnu = yes; then
3869 GCC=yes
3870 else
3871 GCC=
3872 fi
3873 ac_test_CFLAGS=${CFLAGS+set}
3874 ac_save_CFLAGS=$CFLAGS
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3877 if test "${ac_cv_prog_cc_g+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 ac_save_c_werror_flag=$ac_c_werror_flag
3881 ac_c_werror_flag=yes
3882 ac_cv_prog_cc_g=no
3883 CFLAGS="-g"
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_prog_cc_g=yes
3897 else
3898 CFLAGS=""
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901
3902 int
3903 main ()
3904 {
3905
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911
3912 else
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3914 CFLAGS="-g"
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main ()
3920 {
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_g=yes
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939 CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941 if test "$GCC" = yes; then
3942 CFLAGS="-g -O2"
3943 else
3944 CFLAGS="-g"
3945 fi
3946 else
3947 if test "$GCC" = yes; then
3948 CFLAGS="-O2"
3949 else
3950 CFLAGS=
3951 fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <stdarg.h>
3963 #include <stdio.h>
3964 #include <sys/types.h>
3965 #include <sys/stat.h>
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3970 char **p;
3971 int i;
3972 {
3973 return p[i];
3974 }
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3976 {
3977 char *s;
3978 va_list v;
3979 va_start (v,p);
3980 s = g (p, va_arg (v,int));
3981 va_end (v);
3982 return s;
3983 }
3984
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3986 function prototypes and stuff, but not '\xHH' hex character constants.
3987 These don't provoke an error unfortunately, instead are silently treated
3988 as 'x'. The following induces an error, until -std is added to get
3989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3990 array size at least. It's necessary to write '\x00'==0 to get something
3991 that's true only with -std. */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995 inside strings and character constants. */
3996 #define FOO(x) 'x'
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 int argc;
4004 char **argv;
4005 int
4006 main ()
4007 {
4008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 do
4016 CC="$ac_save_CC $ac_arg"
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_prog_cc_c89=$ac_arg
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 done
4023 rm -f conftest.$ac_ext
4024 CC=$ac_save_CC
4025
4026 fi
4027 # AC_CACHE_VAL
4028 case "x$ac_cv_prog_cc_c89" in
4029 x)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4032 xno)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4035 *)
4036 CC="$CC $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 esac
4040 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041
4042 fi
4043
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 DEPDIR="${am__leading_dot}deps"
4050
4051 ac_config_commands="$ac_config_commands depfiles"
4052
4053
4054 am_make=${MAKE-make}
4055 cat > confinc << 'END'
4056 am__doit:
4057 @echo this is the am__doit target
4058 .PHONY: am__doit
4059 END
4060 # If we don't find an include directive, just comment out the code.
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4063 am__include="#"
4064 am__quote=
4065 _am_result=none
4066 # First try GNU make style include.
4067 echo "include confinc" > confmf
4068 # Ignore all kinds of additional output from `make'.
4069 case `$am_make -s -f confmf 2> /dev/null` in #(
4070 *the\ am__doit\ target*)
4071 am__include=include
4072 am__quote=
4073 _am_result=GNU
4074 ;;
4075 esac
4076 # Now try BSD make style include.
4077 if test "$am__include" = "#"; then
4078 echo '.include "confinc"' > confmf
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081 am__include=.include
4082 am__quote="\""
4083 _am_result=BSD
4084 ;;
4085 esac
4086 fi
4087
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4090 $as_echo "$_am_result" >&6; }
4091 rm -f confinc confmf
4092
4093 # Check whether --enable-dependency-tracking was given.
4094 if test "${enable_dependency_tracking+set}" = set; then :
4095 enableval=$enable_dependency_tracking;
4096 fi
4097
4098 if test "x$enable_dependency_tracking" != xno; then
4099 am_depcomp="$ac_aux_dir/depcomp"
4100 AMDEPBACKSLASH='\'
4101 fi
4102 if test "x$enable_dependency_tracking" != xno; then
4103 AMDEP_TRUE=
4104 AMDEP_FALSE='#'
4105 else
4106 AMDEP_TRUE='#'
4107 AMDEP_FALSE=
4108 fi
4109
4110
4111
4112 depcc="$CC" am_compiler_list=
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4115 $as_echo_n "checking dependency style of $depcc... " >&6; }
4116 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4120 # We make a subdir and do the tests there. Otherwise we can end up
4121 # making bogus files that we don't know about and never remove. For
4122 # instance it was reported that on HP-UX the gcc test will end up
4123 # making a dummy file named `D' -- because `-MD' means `put the output
4124 # in D'.
4125 mkdir conftest.dir
4126 # Copy depcomp to subdir because otherwise we won't find it if we're
4127 # using a relative directory.
4128 cp "$am_depcomp" conftest.dir
4129 cd conftest.dir
4130 # We will build objects and dependencies in a subdirectory because
4131 # it helps to detect inapplicable dependency modes. For instance
4132 # both Tru64's cc and ICC support -MD to output dependencies as a
4133 # side effect of compilation, but ICC will put the dependencies in
4134 # the current directory while Tru64 will put them in the object
4135 # directory.
4136 mkdir sub
4137
4138 am_cv_CC_dependencies_compiler_type=none
4139 if test "$am_compiler_list" = ""; then
4140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141 fi
4142 am__universal=false
4143 case " $depcc " in #(
4144 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4145 esac
4146
4147 for depmode in $am_compiler_list; do
4148 # Setup a source with many dependencies, because some compilers
4149 # like to wrap large dependency lists on column 80 (with \), and
4150 # we should not choose a depcomp mode which is confused by this.
4151 #
4152 # We need to recreate these files for each test, as the compiler may
4153 # overwrite some of them when testing with obscure command lines.
4154 # This happens at least with the AIX C compiler.
4155 : > sub/conftest.c
4156 for i in 1 2 3 4 5 6; do
4157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4159 # Solaris 8's {/usr,}/bin/sh.
4160 touch sub/conftst$i.h
4161 done
4162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4163
4164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4165 # mode. It turns out that the SunPro C++ compiler does not properly
4166 # handle `-M -o', and we need to detect this. Also, some Intel
4167 # versions had trouble with output in subdirs
4168 am__obj=sub/conftest.${OBJEXT-o}
4169 am__minus_obj="-o $am__obj"
4170 case $depmode in
4171 gcc)
4172 # This depmode causes a compiler race in universal mode.
4173 test "$am__universal" = false || continue
4174 ;;
4175 nosideeffect)
4176 # after this tag, mechanisms are not by side-effect, so they'll
4177 # only be used when explicitly requested
4178 if test "x$enable_dependency_tracking" = xyes; then
4179 continue
4180 else
4181 break
4182 fi
4183 ;;
4184 msvisualcpp | msvcmsys)
4185 # This compiler won't grok `-c -o', but also, the minuso test has
4186 # not run yet. These depmodes are late enough in the game, and
4187 # so weak that their functioning should not be impacted.
4188 am__obj=conftest.${OBJEXT-o}
4189 am__minus_obj=
4190 ;;
4191 none) break ;;
4192 esac
4193 if depmode=$depmode \
4194 source=sub/conftest.c object=$am__obj \
4195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4197 >/dev/null 2>conftest.err &&
4198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4202 # icc doesn't choke on unknown options, it will just issue warnings
4203 # or remarks (even with -Werror). So we grep stderr for any message
4204 # that says an option was ignored or not supported.
4205 # When given -MP, icc 7.0 and 7.1 complain thusly:
4206 # icc: Command line warning: ignoring option '-M'; no argument required
4207 # The diagnosis changed in icc 8.0:
4208 # icc: Command line remark: option '-MP' not supported
4209 if (grep 'ignoring option' conftest.err ||
4210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4211 am_cv_CC_dependencies_compiler_type=$depmode
4212 break
4213 fi
4214 fi
4215 done
4216
4217 cd ..
4218 rm -rf conftest.dir
4219 else
4220 am_cv_CC_dependencies_compiler_type=none
4221 fi
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4225 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4227
4228 if
4229 test "x$enable_dependency_tracking" != xno \
4230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4231 am__fastdepCC_TRUE=
4232 am__fastdepCC_FALSE='#'
4233 else
4234 am__fastdepCC_TRUE='#'
4235 am__fastdepCC_FALSE=
4236 fi
4237
4238
4239 for ac_prog in 'bison -y' byacc
4240 do
4241 # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_YACC+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test -n "$YACC"; then
4249 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_YACC="$ac_prog"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 YACC=$ac_cv_prog_YACC
4269 if test -n "$YACC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4271 $as_echo "$YACC" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 test -n "$YACC" && break
4279 done
4280 test -n "$YACC" || YACC="yacc"
4281
4282
4283 for ac_prog in flex lex
4284 do
4285 # Extract the first word of "$ac_prog", so it can be a program name with args.
4286 set dummy $ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_LEX+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$LEX"; then
4293 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_LEX="$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306 done
4307 done
4308 IFS=$as_save_IFS
4309
4310 fi
4311 fi
4312 LEX=$ac_cv_prog_LEX
4313 if test -n "$LEX"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4315 $as_echo "$LEX" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321
4322 test -n "$LEX" && break
4323 done
4324 test -n "$LEX" || LEX=":"
4325
4326 if test "x$LEX" != "x:"; then
4327 cat >conftest.l <<_ACEOF
4328 %%
4329 a { ECHO; }
4330 b { REJECT; }
4331 c { yymore (); }
4332 d { yyless (1); }
4333 e { yyless (input () != 0); }
4334 f { unput (yytext[0]); }
4335 . { BEGIN INITIAL; }
4336 %%
4337 #ifdef YYTEXT_POINTER
4338 extern char *yytext;
4339 #endif
4340 int
4341 main (void)
4342 {
4343 return ! yylex () + ! yywrap ();
4344 }
4345 _ACEOF
4346 { { ac_try="$LEX conftest.l"
4347 case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353 (eval "$LEX conftest.l") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4358 $as_echo_n "checking lex output file root... " >&6; }
4359 if test "${ac_cv_prog_lex_root+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362
4363 if test -f lex.yy.c; then
4364 ac_cv_prog_lex_root=lex.yy
4365 elif test -f lexyy.c; then
4366 ac_cv_prog_lex_root=lexyy
4367 else
4368 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4372 $as_echo "$ac_cv_prog_lex_root" >&6; }
4373 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4374
4375 if test -z "${LEXLIB+set}"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4377 $as_echo_n "checking lex library... " >&6; }
4378 if test "${ac_cv_lib_lex+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381
4382 ac_save_LIBS=$LIBS
4383 ac_cv_lib_lex='none needed'
4384 for ac_lib in '' -lfl -ll; do
4385 LIBS="$ac_lib $ac_save_LIBS"
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 `cat $LEX_OUTPUT_ROOT.c`
4389 _ACEOF
4390 if ac_fn_c_try_link "$LINENO"; then :
4391 ac_cv_lib_lex=$ac_lib
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395 test "$ac_cv_lib_lex" != 'none needed' && break
4396 done
4397 LIBS=$ac_save_LIBS
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4401 $as_echo "$ac_cv_lib_lex" >&6; }
4402 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4403 fi
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4407 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4408 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 # POSIX says lex can declare yytext either as a pointer or an array; the
4412 # default is implementation-dependent. Figure out which it is, since
4413 # not all implementations provide the %pointer and %array declarations.
4414 ac_cv_prog_lex_yytext_pointer=no
4415 ac_save_LIBS=$LIBS
4416 LIBS="$LEXLIB $ac_save_LIBS"
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #define YYTEXT_POINTER 1
4420 `cat $LEX_OUTPUT_ROOT.c`
4421 _ACEOF
4422 if ac_fn_c_try_link "$LINENO"; then :
4423 ac_cv_prog_lex_yytext_pointer=yes
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4427 LIBS=$ac_save_LIBS
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4431 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4432 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4433
4434 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4435
4436 fi
4437 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4438
4439 fi
4440 if test "$LEX" = :; then
4441 LEX=${am_missing_run}flex
4442 fi
4443
4444
4445
4446 #ltdl stuff
4447 case `pwd` in
4448 *\ * | *\ *)
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4451 esac
4452
4453
4454
4455 macro_version='2.2.6'
4456 macro_revision='1.3012'
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470 ltmain="$ac_aux_dir/ltmain.sh"
4471
4472 # Make sure we can run config.sub.
4473 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4474 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4477 $as_echo_n "checking build system type... " >&6; }
4478 if test "${ac_cv_build+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_build_alias=$build_alias
4482 test "x$ac_build_alias" = x &&
4483 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4484 test "x$ac_build_alias" = x &&
4485 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4486 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4487 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4488
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4491 $as_echo "$ac_cv_build" >&6; }
4492 case $ac_cv_build in
4493 *-*-*) ;;
4494 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4495 esac
4496 build=$ac_cv_build
4497 ac_save_IFS=$IFS; IFS='-'
4498 set x $ac_cv_build
4499 shift
4500 build_cpu=$1
4501 build_vendor=$2
4502 shift; shift
4503 # Remember, the first character of IFS is used to create $*,
4504 # except with old shells:
4505 build_os=$*
4506 IFS=$ac_save_IFS
4507 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4508
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4511 $as_echo_n "checking host system type... " >&6; }
4512 if test "${ac_cv_host+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test "x$host_alias" = x; then
4516 ac_cv_host=$ac_cv_build
4517 else
4518 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4519 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4524 $as_echo "$ac_cv_host" >&6; }
4525 case $ac_cv_host in
4526 *-*-*) ;;
4527 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4528 esac
4529 host=$ac_cv_host
4530 ac_save_IFS=$IFS; IFS='-'
4531 set x $ac_cv_host
4532 shift
4533 host_cpu=$1
4534 host_vendor=$2
4535 shift; shift
4536 # Remember, the first character of IFS is used to create $*,
4537 # except with old shells:
4538 host_os=$*
4539 IFS=$ac_save_IFS
4540 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4545 if test "${ac_cv_path_SED+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4549 for ac_i in 1 2 3 4 5 6 7; do
4550 ac_script="$ac_script$as_nl$ac_script"
4551 done
4552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4553 { ac_script=; unset ac_script;}
4554 if test -z "$SED"; then
4555 ac_path_SED_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in sed gsed; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4566 # Check for GNU ac_path_SED and select it if it is found.
4567 # Check for GNU $ac_path_SED
4568 case `"$ac_path_SED" --version 2>&1` in
4569 *GNU*)
4570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4571 *)
4572 ac_count=0
4573 $as_echo_n 0123456789 >"conftest.in"
4574 while :
4575 do
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo '' >> "conftest.nl"
4580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 as_fn_arith $ac_count + 1 && ac_count=$as_val
4583 if test $ac_count -gt ${ac_path_SED_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_SED="$ac_path_SED"
4586 ac_path_SED_max=$ac_count
4587 fi
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4593
4594 $ac_path_SED_found && break 3
4595 done
4596 done
4597 done
4598 IFS=$as_save_IFS
4599 if test -z "$ac_cv_path_SED"; then
4600 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4601 fi
4602 else
4603 ac_cv_path_SED=$SED
4604 fi
4605
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4608 $as_echo "$ac_cv_path_SED" >&6; }
4609 SED="$ac_cv_path_SED"
4610 rm -f conftest.sed
4611
4612 test -z "$SED" && SED=sed
4613 Xsed="$SED -e 1s/^X//"
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4627 if test "${ac_cv_path_GREP+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -z "$GREP"; then
4631 ac_path_GREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in grep ggrep; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4642 # Check for GNU ac_path_GREP and select it if it is found.
4643 # Check for GNU $ac_path_GREP
4644 case `"$ac_path_GREP" --version 2>&1` in
4645 *GNU*)
4646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4647 *)
4648 ac_count=0
4649 $as_echo_n 0123456789 >"conftest.in"
4650 while :
4651 do
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo 'GREP' >> "conftest.nl"
4656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_GREP="$ac_path_GREP"
4662 ac_path_GREP_max=$ac_count
4663 fi
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4666 done
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670 $ac_path_GREP_found && break 3
4671 done
4672 done
4673 done
4674 IFS=$as_save_IFS
4675 if test -z "$ac_cv_path_GREP"; then
4676 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677 fi
4678 else
4679 ac_cv_path_GREP=$GREP
4680 fi
4681
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4684 $as_echo "$ac_cv_path_GREP" >&6; }
4685 GREP="$ac_cv_path_GREP"
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4689 $as_echo_n "checking for egrep... " >&6; }
4690 if test "${ac_cv_path_EGREP+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4694 then ac_cv_path_EGREP="$GREP -E"
4695 else
4696 if test -z "$EGREP"; then
4697 ac_path_EGREP_found=false
4698 # Loop through the user's path and test for each of PROGNAME-LIST
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_prog in egrep; do
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4708 # Check for GNU ac_path_EGREP and select it if it is found.
4709 # Check for GNU $ac_path_EGREP
4710 case `"$ac_path_EGREP" --version 2>&1` in
4711 *GNU*)
4712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4713 *)
4714 ac_count=0
4715 $as_echo_n 0123456789 >"conftest.in"
4716 while :
4717 do
4718 cat "conftest.in" "conftest.in" >"conftest.tmp"
4719 mv "conftest.tmp" "conftest.in"
4720 cp "conftest.in" "conftest.nl"
4721 $as_echo 'EGREP' >> "conftest.nl"
4722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724 as_fn_arith $ac_count + 1 && ac_count=$as_val
4725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4726 # Best one so far, save it but keep looking for a better one
4727 ac_cv_path_EGREP="$ac_path_EGREP"
4728 ac_path_EGREP_max=$ac_count
4729 fi
4730 # 10*(2^10) chars as input seems more than enough
4731 test $ac_count -gt 10 && break
4732 done
4733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734 esac
4735
4736 $ac_path_EGREP_found && break 3
4737 done
4738 done
4739 done
4740 IFS=$as_save_IFS
4741 if test -z "$ac_cv_path_EGREP"; then
4742 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 fi
4744 else
4745 ac_cv_path_EGREP=$EGREP
4746 fi
4747
4748 fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4751 $as_echo "$ac_cv_path_EGREP" >&6; }
4752 EGREP="$ac_cv_path_EGREP"
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4756 $as_echo_n "checking for fgrep... " >&6; }
4757 if test "${ac_cv_path_FGREP+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4761 then ac_cv_path_FGREP="$GREP -F"
4762 else
4763 if test -z "$FGREP"; then
4764 ac_path_FGREP_found=false
4765 # Loop through the user's path and test for each of PROGNAME-LIST
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768 do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_prog in fgrep; do
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4774 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4775 # Check for GNU ac_path_FGREP and select it if it is found.
4776 # Check for GNU $ac_path_FGREP
4777 case `"$ac_path_FGREP" --version 2>&1` in
4778 *GNU*)
4779 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4780 *)
4781 ac_count=0
4782 $as_echo_n 0123456789 >"conftest.in"
4783 while :
4784 do
4785 cat "conftest.in" "conftest.in" >"conftest.tmp"
4786 mv "conftest.tmp" "conftest.in"
4787 cp "conftest.in" "conftest.nl"
4788 $as_echo 'FGREP' >> "conftest.nl"
4789 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4791 as_fn_arith $ac_count + 1 && ac_count=$as_val
4792 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4793 # Best one so far, save it but keep looking for a better one
4794 ac_cv_path_FGREP="$ac_path_FGREP"
4795 ac_path_FGREP_max=$ac_count
4796 fi
4797 # 10*(2^10) chars as input seems more than enough
4798 test $ac_count -gt 10 && break
4799 done
4800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801 esac
4802
4803 $ac_path_FGREP_found && break 3
4804 done
4805 done
4806 done
4807 IFS=$as_save_IFS
4808 if test -z "$ac_cv_path_FGREP"; then
4809 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810 fi
4811 else
4812 ac_cv_path_FGREP=$FGREP
4813 fi
4814
4815 fi
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4818 $as_echo "$ac_cv_path_FGREP" >&6; }
4819 FGREP="$ac_cv_path_FGREP"
4820
4821
4822 test -z "$GREP" && GREP=grep
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 # Check whether --with-gnu-ld was given.
4843 if test "${with_gnu_ld+set}" = set; then :
4844 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4845 else
4846 with_gnu_ld=no
4847 fi
4848
4849 ac_prog=ld
4850 if test "$GCC" = yes; then
4851 # Check if gcc -print-prog-name=ld gives a path.
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4853 $as_echo_n "checking for ld used by $CC... " >&6; }
4854 case $host in
4855 *-*-mingw*)
4856 # gcc leaves a trailing carriage return which upsets mingw
4857 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4858 *)
4859 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4860 esac
4861 case $ac_prog in
4862 # Accept absolute paths.
4863 [\\/]* | ?:[\\/]*)
4864 re_direlt='/[^/][^/]*/\.\./'
4865 # Canonicalize the pathname of ld
4866 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4867 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4868 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4869 done
4870 test -z "$LD" && LD="$ac_prog"
4871 ;;
4872 "")
4873 # If it fails, then pretend we aren't using GCC.
4874 ac_prog=ld
4875 ;;
4876 *)
4877 # If it is relative, then search for the first ld in PATH.
4878 with_gnu_ld=unknown
4879 ;;
4880 esac
4881 elif test "$with_gnu_ld" = yes; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4883 $as_echo_n "checking for GNU ld... " >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4886 $as_echo_n "checking for non-GNU ld... " >&6; }
4887 fi
4888 if test "${lt_cv_path_LD+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -z "$LD"; then
4892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4893 for ac_dir in $PATH; do
4894 IFS="$lt_save_ifs"
4895 test -z "$ac_dir" && ac_dir=.
4896 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4897 lt_cv_path_LD="$ac_dir/$ac_prog"
4898 # Check to see if the program is GNU ld. I'd rather use --version,
4899 # but apparently some variants of GNU ld only accept -v.
4900 # Break only if it was the GNU/non-GNU ld that we prefer.
4901 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4902 *GNU* | *'with BFD'*)
4903 test "$with_gnu_ld" != no && break
4904 ;;
4905 *)
4906 test "$with_gnu_ld" != yes && break
4907 ;;
4908 esac
4909 fi
4910 done
4911 IFS="$lt_save_ifs"
4912 else
4913 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4914 fi
4915 fi
4916
4917 LD="$lt_cv_path_LD"
4918 if test -n "$LD"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4920 $as_echo "$LD" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4928 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4932 case `$LD -v 2>&1 </dev/null` in
4933 *GNU* | *'with BFD'*)
4934 lt_cv_prog_gnu_ld=yes
4935 ;;
4936 *)
4937 lt_cv_prog_gnu_ld=no
4938 ;;
4939 esac
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4942 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4943 with_gnu_ld=$lt_cv_prog_gnu_ld
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4954 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4955 if test "${lt_cv_path_NM+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$NM"; then
4959 # Let the user override the test.
4960 lt_cv_path_NM="$NM"
4961 else
4962 lt_nm_to_check="${ac_tool_prefix}nm"
4963 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4964 lt_nm_to_check="$lt_nm_to_check nm"
4965 fi
4966 for lt_tmp_nm in $lt_nm_to_check; do
4967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4968 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4969 IFS="$lt_save_ifs"
4970 test -z "$ac_dir" && ac_dir=.
4971 tmp_nm="$ac_dir/$lt_tmp_nm"
4972 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4973 # Check to see if the nm accepts a BSD-compat flag.
4974 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4975 # nm: unknown option "B" ignored
4976 # Tru64's nm complains that /dev/null is an invalid object file
4977 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4978 */dev/null* | *'Invalid file or object type'*)
4979 lt_cv_path_NM="$tmp_nm -B"
4980 break
4981 ;;
4982 *)
4983 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4984 */dev/null*)
4985 lt_cv_path_NM="$tmp_nm -p"
4986 break
4987 ;;
4988 *)
4989 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4990 continue # so that we can try to find one that supports BSD flags
4991 ;;
4992 esac
4993 ;;
4994 esac
4995 fi
4996 done
4997 IFS="$lt_save_ifs"
4998 done
4999 : ${lt_cv_path_NM=no}
5000 fi
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5003 $as_echo "$lt_cv_path_NM" >&6; }
5004 if test "$lt_cv_path_NM" != "no"; then
5005 NM="$lt_cv_path_NM"
5006 else
5007 # Didn't find any BSD compatible name lister, look for dumpbin.
5008 if test -n "$ac_tool_prefix"; then
5009 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5010 do
5011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$DUMPBIN"; then
5019 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 fi
5037 fi
5038 DUMPBIN=$ac_cv_prog_DUMPBIN
5039 if test -n "$DUMPBIN"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5041 $as_echo "$DUMPBIN" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047
5048 test -n "$DUMPBIN" && break
5049 done
5050 fi
5051 if test -z "$DUMPBIN"; then
5052 ac_ct_DUMPBIN=$DUMPBIN
5053 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5054 do
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$ac_ct_DUMPBIN"; then
5063 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5083 if test -n "$ac_ct_DUMPBIN"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5085 $as_echo "$ac_ct_DUMPBIN" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091
5092 test -n "$ac_ct_DUMPBIN" && break
5093 done
5094
5095 if test "x$ac_ct_DUMPBIN" = x; then
5096 DUMPBIN=":"
5097 else
5098 case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104 DUMPBIN=$ac_ct_DUMPBIN
5105 fi
5106 fi
5107
5108
5109 if test "$DUMPBIN" != ":"; then
5110 NM="$DUMPBIN"
5111 fi
5112 fi
5113 test -z "$NM" && NM=nm
5114
5115
5116
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if test "${lt_cv_nm_interface+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 lt_cv_nm_interface="BSD nm"
5126 echo "int some_variable = 0;" > conftest.$ac_ext
5127 (eval echo "\"\$as_me:5127: $ac_compile\"" >&5)
5128 (eval "$ac_compile" 2>conftest.err)
5129 cat conftest.err >&5
5130 (eval echo "\"\$as_me:5130: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132 cat conftest.err >&5
5133 (eval echo "\"\$as_me:5133: output\"" >&5)
5134 cat conftest.out >&5
5135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136 lt_cv_nm_interface="MS dumpbin"
5137 fi
5138 rm -f conftest*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144 $as_echo_n "checking whether ln -s works... " >&6; }
5145 LN_S=$as_ln_s
5146 if test "$LN_S" = "ln -s"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151 $as_echo "no, using $LN_S" >&6; }
5152 fi
5153
5154 # find the maximum length of command line arguments
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 i=0
5161 teststring="ABCD"
5162
5163 case $build_os in
5164 msdosdjgpp*)
5165 # On DJGPP, this test can blow up pretty badly due to problems in libc
5166 # (any single argument exceeding 2000 bytes causes a buffer overrun
5167 # during glob expansion). Even if it were fixed, the result of this
5168 # check would be larger than it should be.
5169 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5170 ;;
5171
5172 gnu*)
5173 # Under GNU Hurd, this test is not required because there is
5174 # no limit to the length of command line arguments.
5175 # Libtool will interpret -1 as no limit whatsoever
5176 lt_cv_sys_max_cmd_len=-1;
5177 ;;
5178
5179 cygwin* | mingw* | cegcc*)
5180 # On Win9x/ME, this test blows up -- it succeeds, but takes
5181 # about 5 minutes as the teststring grows exponentially.
5182 # Worse, since 9x/ME are not pre-emptively multitasking,
5183 # you end up with a "frozen" computer, even though with patience
5184 # the test eventually succeeds (with a max line length of 256k).
5185 # Instead, let's just punt: use the minimum linelength reported by
5186 # all of the supported platforms: 8192 (on NT/2K/XP).
5187 lt_cv_sys_max_cmd_len=8192;
5188 ;;
5189
5190 amigaos*)
5191 # On AmigaOS with pdksh, this test takes hours, literally.
5192 # So we just punt and use a minimum line length of 8192.
5193 lt_cv_sys_max_cmd_len=8192;
5194 ;;
5195
5196 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5197 # This has been around since 386BSD, at least. Likely further.
5198 if test -x /sbin/sysctl; then
5199 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5200 elif test -x /usr/sbin/sysctl; then
5201 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5202 else
5203 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5204 fi
5205 # And add a safety zone
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5208 ;;
5209
5210 interix*)
5211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5212 lt_cv_sys_max_cmd_len=196608
5213 ;;
5214
5215 osf*)
5216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5218 # nice to cause kernel panics so lets avoid the loop below.
5219 # First set a reasonable default.
5220 lt_cv_sys_max_cmd_len=16384
5221 #
5222 if test -x /sbin/sysconfig; then
5223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5225 esac
5226 fi
5227 ;;
5228 sco3.2v5*)
5229 lt_cv_sys_max_cmd_len=102400
5230 ;;
5231 sysv5* | sco5v6* | sysv4.2uw2*)
5232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5233 if test -n "$kargmax"; then
5234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5235 else
5236 lt_cv_sys_max_cmd_len=32768
5237 fi
5238 ;;
5239 *)
5240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5241 if test -n "$lt_cv_sys_max_cmd_len"; then
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244 else
5245 # Make teststring a little bigger before we do anything with it.
5246 # a 1K string should be a reasonable start.
5247 for i in 1 2 3 4 5 6 7 8 ; do
5248 teststring=$teststring$teststring
5249 done
5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5251 # If test is not a shell built-in, we'll probably end up computing a
5252 # maximum length that is only half of the actual maximum length, but
5253 # we can't tell.
5254 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5255 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5256 test $i != 17 # 1/2 MB should be enough
5257 do
5258 i=`expr $i + 1`
5259 teststring=$teststring$teststring
5260 done
5261 # Only check the string length outside the loop.
5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5263 teststring=
5264 # Add a significant safety factor because C++ compilers can tack on
5265 # massive amounts of additional arguments before passing them to the
5266 # linker. It appears as though 1/2 is a usable value.
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5268 fi
5269 ;;
5270 esac
5271
5272 fi
5273
5274 if test -n $lt_cv_sys_max_cmd_len ; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5279 $as_echo "none" >&6; }
5280 fi
5281 max_cmd_len=$lt_cv_sys_max_cmd_len
5282
5283
5284
5285
5286
5287
5288 : ${CP="cp -f"}
5289 : ${MV="mv -f"}
5290 : ${RM="rm -f"}
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5294 # Try some XSI features
5295 xsi_shell=no
5296 ( _lt_dummy="a/b/c"
5297 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5298 = c,a/b,, \
5299 && eval 'test $(( 1 + 1 )) -eq 2 \
5300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5301 && xsi_shell=yes
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5303 $as_echo "$xsi_shell" >&6; }
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5308 lt_shell_append=no
5309 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5310 >/dev/null 2>&1 \
5311 && lt_shell_append=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5313 $as_echo "$lt_shell_append" >&6; }
5314
5315
5316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5317 lt_unset=unset
5318 else
5319 lt_unset=false
5320 fi
5321
5322
5323
5324
5325
5326 # test EBCDIC or ASCII
5327 case `echo X|tr X '\101'` in
5328 A) # ASCII based system
5329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5330 lt_SP2NL='tr \040 \012'
5331 lt_NL2SP='tr \015\012 \040\040'
5332 ;;
5333 *) # EBCDIC based system
5334 lt_SP2NL='tr \100 \n'
5335 lt_NL2SP='tr \r\n \100\100'
5336 ;;
5337 esac
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5348 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5349 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 lt_cv_ld_reload_flag='-r'
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5355 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5356 reload_flag=$lt_cv_ld_reload_flag
5357 case $reload_flag in
5358 "" | " "*) ;;
5359 *) reload_flag=" $reload_flag" ;;
5360 esac
5361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362 case $host_os in
5363 darwin*)
5364 if test "$GCC" = yes; then
5365 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5366 else
5367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5368 fi
5369 ;;
5370 esac
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 if test -n "$ac_tool_prefix"; then
5381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$OBJDUMP"; then
5389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 OBJDUMP=$ac_cv_prog_OBJDUMP
5409 if test -n "$OBJDUMP"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5411 $as_echo "$OBJDUMP" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 fi
5419 if test -z "$ac_cv_prog_OBJDUMP"; then
5420 ac_ct_OBJDUMP=$OBJDUMP
5421 # Extract the first word of "objdump", so it can be a program name with args.
5422 set dummy objdump; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$ac_ct_OBJDUMP"; then
5429 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5449 if test -n "$ac_ct_OBJDUMP"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5451 $as_echo "$ac_ct_OBJDUMP" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457 if test "x$ac_ct_OBJDUMP" = x; then
5458 OBJDUMP="false"
5459 else
5460 case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466 OBJDUMP=$ac_ct_OBJDUMP
5467 fi
5468 else
5469 OBJDUMP="$ac_cv_prog_OBJDUMP"
5470 fi
5471
5472 test -z "$OBJDUMP" && OBJDUMP=objdump
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5483 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5484 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 lt_cv_file_magic_cmd='$MAGIC_CMD'
5488 lt_cv_file_magic_test_file=
5489 lt_cv_deplibs_check_method='unknown'
5490 # Need to set the preceding variable on all platforms that support
5491 # interlibrary dependencies.
5492 # 'none' -- dependencies not supported.
5493 # `unknown' -- same as none, but documents that we really don't know.
5494 # 'pass_all' -- all dependencies passed with no checks.
5495 # 'test_compile' -- check by making test program.
5496 # 'file_magic [[regex]]' -- check by looking for files in library path
5497 # which responds to the $file_magic_cmd with a given extended regex.
5498 # If you have `file' or equivalent on your system and you're not sure
5499 # whether `pass_all' will *always* work, you probably want this one.
5500
5501 case $host_os in
5502 aix[4-9]*)
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506 beos*)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510 bsdi[45]*)
5511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5512 lt_cv_file_magic_cmd='/usr/bin/file -L'
5513 lt_cv_file_magic_test_file=/shlib/libc.so
5514 ;;
5515
5516 cygwin*)
5517 # func_win32_libid is a shell function defined in ltmain.sh
5518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519 lt_cv_file_magic_cmd='func_win32_libid'
5520 ;;
5521
5522 mingw* | pw32*)
5523 # Base MSYS/MinGW do not provide the 'file' command needed by
5524 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5525 # unless we find 'file', for example because we are cross-compiling.
5526 if ( file / ) >/dev/null 2>&1; then
5527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5528 lt_cv_file_magic_cmd='func_win32_libid'
5529 else
5530 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5531 lt_cv_file_magic_cmd='$OBJDUMP -f'
5532 fi
5533 ;;
5534
5535 cegcc)
5536 # use the weaker test based on 'objdump'. See mingw*.
5537 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5538 lt_cv_file_magic_cmd='$OBJDUMP -f'
5539 ;;
5540
5541 darwin* | rhapsody*)
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545 freebsd* | dragonfly*)
5546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5547 case $host_cpu in
5548 i*86 )
5549 # Not sure whether the presence of OpenBSD here was a mistake.
5550 # Let's accept both of them until this is cleared up.
5551 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5552 lt_cv_file_magic_cmd=/usr/bin/file
5553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5554 ;;
5555 esac
5556 else
5557 lt_cv_deplibs_check_method=pass_all
5558 fi
5559 ;;
5560
5561 gnu*)
5562 lt_cv_deplibs_check_method=pass_all
5563 ;;
5564
5565 hpux10.20* | hpux11*)
5566 lt_cv_file_magic_cmd=/usr/bin/file
5567 case $host_cpu in
5568 ia64*)
5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5571 ;;
5572 hppa*64*)
5573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5575 ;;
5576 *)
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5579 ;;
5580 esac
5581 ;;
5582
5583 interix[3-9]*)
5584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5586 ;;
5587
5588 irix5* | irix6* | nonstopux*)
5589 case $LD in
5590 *-32|*"-32 ") libmagic=32-bit;;
5591 *-n32|*"-n32 ") libmagic=N32;;
5592 *-64|*"-64 ") libmagic=64-bit;;
5593 *) libmagic=never-match;;
5594 esac
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598 # This must be Linux ELF.
5599 linux* | k*bsd*-gnu)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
5603 netbsd*)
5604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606 else
5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5608 fi
5609 ;;
5610
5611 newos6*)
5612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5613 lt_cv_file_magic_cmd=/usr/bin/file
5614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5615 ;;
5616
5617 *nto* | *qnx*)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620
5621 openbsd*)
5622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5624 else
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626 fi
5627 ;;
5628
5629 osf3* | osf4* | osf5*)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633 rdos*)
5634 lt_cv_deplibs_check_method=pass_all
5635 ;;
5636
5637 solaris*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645 sysv4 | sysv4.3*)
5646 case $host_vendor in
5647 motorola)
5648 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]'
5649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5650 ;;
5651 ncr)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654 sequent)
5655 lt_cv_file_magic_cmd='/bin/file'
5656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5657 ;;
5658 sni)
5659 lt_cv_file_magic_cmd='/bin/file'
5660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5661 lt_cv_file_magic_test_file=/lib/libc.so
5662 ;;
5663 siemens)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666 pc)
5667 lt_cv_deplibs_check_method=pass_all
5668 ;;
5669 esac
5670 ;;
5671
5672 tpf*)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675 esac
5676
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5679 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5680 file_magic_cmd=$lt_cv_file_magic_cmd
5681 deplibs_check_method=$lt_cv_deplibs_check_method
5682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}ar; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if test "${ac_cv_prog_AR+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$AR"; then
5704 ac_cv_prog_AR="$AR" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_AR="${ac_tool_prefix}ar"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 AR=$ac_cv_prog_AR
5724 if test -n "$AR"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5726 $as_echo "$AR" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 fi
5734 if test -z "$ac_cv_prog_AR"; then
5735 ac_ct_AR=$AR
5736 # Extract the first word of "ar", so it can be a program name with args.
5737 set dummy ar; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$ac_ct_AR"; then
5744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753 ac_cv_prog_ac_ct_AR="ar"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757 done
5758 done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5764 if test -n "$ac_ct_AR"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5766 $as_echo "$ac_ct_AR" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772 if test "x$ac_ct_AR" = x; then
5773 AR="false"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781 AR=$ac_ct_AR
5782 fi
5783 else
5784 AR="$ac_cv_prog_AR"
5785 fi
5786
5787 test -z "$AR" && AR=ar
5788 test -z "$AR_FLAGS" && AR_FLAGS=cru
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}strip; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_prog_STRIP+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$STRIP"; then
5809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 STRIP=$ac_cv_prog_STRIP
5829 if test -n "$STRIP"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5831 $as_echo "$STRIP" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_STRIP"; then
5840 ac_ct_STRIP=$STRIP
5841 # Extract the first word of "strip", so it can be a program name with args.
5842 set dummy strip; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$ac_ct_STRIP"; then
5849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_STRIP="strip"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5869 if test -n "$ac_ct_STRIP"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5871 $as_echo "$ac_ct_STRIP" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877 if test "x$ac_ct_STRIP" = x; then
5878 STRIP=":"
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886 STRIP=$ac_ct_STRIP
5887 fi
5888 else
5889 STRIP="$ac_cv_prog_STRIP"
5890 fi
5891
5892 test -z "$STRIP" && STRIP=:
5893
5894
5895
5896
5897
5898
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$RANLIB"; then
5908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 RANLIB=$ac_cv_prog_RANLIB
5928 if test -n "$RANLIB"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5930 $as_echo "$RANLIB" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937 fi
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939 ac_ct_RANLIB=$RANLIB
5940 # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -n "$ac_ct_RANLIB"; then
5948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_ac_ct_RANLIB="ranlib"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5970 $as_echo "$ac_ct_RANLIB" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976 if test "x$ac_ct_RANLIB" = x; then
5977 RANLIB=":"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 RANLIB=$ac_ct_RANLIB
5986 fi
5987 else
5988 RANLIB="$ac_cv_prog_RANLIB"
5989 fi
5990
5991 test -z "$RANLIB" && RANLIB=:
5992
5993
5994
5995
5996
5997
5998 # Determine commands to create old-style static archives.
5999 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6000 old_postinstall_cmds='chmod 644 $oldlib'
6001 old_postuninstall_cmds=
6002
6003 if test -n "$RANLIB"; then
6004 case $host_os in
6005 openbsd*)
6006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6007 ;;
6008 *)
6009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6010 ;;
6011 esac
6012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6013 fi
6014
6015
6016
6017
6018
6019
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 # If no C compiler was specified, use CC.
6049 LTCC=${LTCC-"$CC"}
6050
6051 # If no C compiler flags were specified, use CFLAGS.
6052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6053
6054 # Allow CC to be a program name with arguments.
6055 compiler=$CC
6056
6057
6058 # Check for command to grab the raw symbol name followed by C symbol from nm.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6060 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6061 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064
6065 # These are sane defaults that work on at least a few old systems.
6066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6067
6068 # Character class describing NM global symbol codes.
6069 symcode='[BCDEGRST]'
6070
6071 # Regexp to match symbols that can be accessed directly from C.
6072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6073
6074 # Define system-specific variables.
6075 case $host_os in
6076 aix*)
6077 symcode='[BCDT]'
6078 ;;
6079 cygwin* | mingw* | pw32* | cegcc*)
6080 symcode='[ABCDGISTW]'
6081 ;;
6082 hpux*)
6083 if test "$host_cpu" = ia64; then
6084 symcode='[ABCDEGRST]'
6085 fi
6086 ;;
6087 irix* | nonstopux*)
6088 symcode='[BCDEGRST]'
6089 ;;
6090 osf*)
6091 symcode='[BCDEGQRST]'
6092 ;;
6093 solaris*)
6094 symcode='[BDRT]'
6095 ;;
6096 sco3.2v5*)
6097 symcode='[DT]'
6098 ;;
6099 sysv4.2uw2*)
6100 symcode='[DT]'
6101 ;;
6102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6103 symcode='[ABDT]'
6104 ;;
6105 sysv4)
6106 symcode='[DFNSTU]'
6107 ;;
6108 esac
6109
6110 # If we're using GNU nm, then use its standard symbol codes.
6111 case `$NM -V 2>&1` in
6112 *GNU* | *'with BFD'*)
6113 symcode='[ABCDGIRSTW]' ;;
6114 esac
6115
6116 # Transform an extracted symbol line into a proper C declaration.
6117 # Some systems (esp. on ia64) link data and code symbols differently,
6118 # so use this general approach.
6119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6120
6121 # Transform an extracted symbol line into symbol name and symbol address
6122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6123 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'"
6124
6125 # Handle CRLF in mingw tool chain
6126 opt_cr=
6127 case $build_os in
6128 mingw*)
6129 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6130 ;;
6131 esac
6132
6133 # Try without a prefix underscore, then with it.
6134 for ac_symprfx in "" "_"; do
6135
6136 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6137 symxfrm="\\1 $ac_symprfx\\2 \\2"
6138
6139 # Write the raw and C identifiers.
6140 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6141 # Fake it for dumpbin and say T for any non-static function
6142 # and D for any global variable.
6143 # Also find C++ and __fastcall symbols from MSVC++,
6144 # which start with @ or ?.
6145 lt_cv_sys_global_symbol_pipe="$AWK '"\
6146 " {last_section=section; section=\$ 3};"\
6147 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6148 " \$ 0!~/External *\|/{next};"\
6149 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6150 " {if(hide[section]) next};"\
6151 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6152 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6153 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6154 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6155 " ' prfx=^$ac_symprfx"
6156 else
6157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6158 fi
6159
6160 # Check to see that the pipe works correctly.
6161 pipe_works=no
6162
6163 rm -f conftest*
6164 cat > conftest.$ac_ext <<_LT_EOF
6165 #ifdef __cplusplus
6166 extern "C" {
6167 #endif
6168 char nm_test_var;
6169 void nm_test_func(void);
6170 void nm_test_func(void){}
6171 #ifdef __cplusplus
6172 }
6173 #endif
6174 int main(){nm_test_var='a';nm_test_func();return(0);}
6175 _LT_EOF
6176
6177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6178 (eval $ac_compile) 2>&5
6179 ac_status=$?
6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; }; then
6182 # Now try to grab the symbols.
6183 nlist=conftest.nm
6184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6185 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6186 ac_status=$?
6187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; } && test -s "$nlist"; then
6189 # Try sorting and uniquifying the output.
6190 if sort "$nlist" | uniq > "$nlist"T; then
6191 mv -f "$nlist"T "$nlist"
6192 else
6193 rm -f "$nlist"T
6194 fi
6195
6196 # Make sure that we snagged all the symbols we need.
6197 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6198 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6199 cat <<_LT_EOF > conftest.$ac_ext
6200 #ifdef __cplusplus
6201 extern "C" {
6202 #endif
6203
6204 _LT_EOF
6205 # Now generate the symbol file.
6206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6207
6208 cat <<_LT_EOF >> conftest.$ac_ext
6209
6210 /* The mapping between symbol names and symbols. */
6211 const struct {
6212 const char *name;
6213 void *address;
6214 }
6215 lt__PROGRAM__LTX_preloaded_symbols[] =
6216 {
6217 { "@PROGRAM@", (void *) 0 },
6218 _LT_EOF
6219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6220 cat <<\_LT_EOF >> conftest.$ac_ext
6221 {0, (void *) 0}
6222 };
6223
6224 /* This works around a problem in FreeBSD linker */
6225 #ifdef FREEBSD_WORKAROUND
6226 static const void *lt_preloaded_setup() {
6227 return lt__PROGRAM__LTX_preloaded_symbols;
6228 }
6229 #endif
6230
6231 #ifdef __cplusplus
6232 }
6233 #endif
6234 _LT_EOF
6235 # Now try linking the two files.
6236 mv conftest.$ac_objext conftstm.$ac_objext
6237 lt_save_LIBS="$LIBS"
6238 lt_save_CFLAGS="$CFLAGS"
6239 LIBS="conftstm.$ac_objext"
6240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6242 (eval $ac_link) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6246 pipe_works=yes
6247 fi
6248 LIBS="$lt_save_LIBS"
6249 CFLAGS="$lt_save_CFLAGS"
6250 else
6251 echo "cannot find nm_test_func in $nlist" >&5
6252 fi
6253 else
6254 echo "cannot find nm_test_var in $nlist" >&5
6255 fi
6256 else
6257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6258 fi
6259 else
6260 echo "$progname: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6262 fi
6263 rm -rf conftest* conftst*
6264
6265 # Do not use the global_symbol_pipe unless it works.
6266 if test "$pipe_works" = yes; then
6267 break
6268 else
6269 lt_cv_sys_global_symbol_pipe=
6270 fi
6271 done
6272
6273 fi
6274
6275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6276 lt_cv_sys_global_symbol_to_cdecl=
6277 fi
6278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6280 $as_echo "failed" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6283 $as_echo "ok" >&6; }
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 # Check whether --enable-libtool-lock was given.
6308 if test "${enable_libtool_lock+set}" = set; then :
6309 enableval=$enable_libtool_lock;
6310 fi
6311
6312 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6313
6314 # Some flags need to be propagated to the compiler or linker for good
6315 # libtool support.
6316 case $host in
6317 ia64-*-hpux*)
6318 # Find out which ABI we are using.
6319 echo 'int i;' > conftest.$ac_ext
6320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321 (eval $ac_compile) 2>&5
6322 ac_status=$?
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }; then
6325 case `/usr/bin/file conftest.$ac_objext` in
6326 *ELF-32*)
6327 HPUX_IA64_MODE="32"
6328 ;;
6329 *ELF-64*)
6330 HPUX_IA64_MODE="64"
6331 ;;
6332 esac
6333 fi
6334 rm -rf conftest*
6335 ;;
6336 *-*-irix6*)
6337 # Find out which ABI we are using.
6338 echo '#line 6338 "configure"' > conftest.$ac_ext
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 if test "$lt_cv_prog_gnu_ld" = yes; then
6345 case `/usr/bin/file conftest.$ac_objext` in
6346 *32-bit*)
6347 LD="${LD-ld} -melf32bsmip"
6348 ;;
6349 *N32*)
6350 LD="${LD-ld} -melf32bmipn32"
6351 ;;
6352 *64-bit*)
6353 LD="${LD-ld} -melf64bmip"
6354 ;;
6355 esac
6356 else
6357 case `/usr/bin/file conftest.$ac_objext` in
6358 *32-bit*)
6359 LD="${LD-ld} -32"
6360 ;;
6361 *N32*)
6362 LD="${LD-ld} -n32"
6363 ;;
6364 *64-bit*)
6365 LD="${LD-ld} -64"
6366 ;;
6367 esac
6368 fi
6369 fi
6370 rm -rf conftest*
6371 ;;
6372
6373 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6374 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6375 # Find out which ABI we are using.
6376 echo 'int i;' > conftest.$ac_ext
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6378 (eval $ac_compile) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }; then
6382 case `/usr/bin/file conftest.o` in
6383 *32-bit*)
6384 case $host in
6385 x86_64-*kfreebsd*-gnu)
6386 LD="${LD-ld} -m elf_i386_fbsd"
6387 ;;
6388 x86_64-*linux*)
6389 LD="${LD-ld} -m elf_i386"
6390 ;;
6391 ppc64-*linux*|powerpc64-*linux*)
6392 LD="${LD-ld} -m elf32ppclinux"
6393 ;;
6394 s390x-*linux*)
6395 LD="${LD-ld} -m elf_s390"
6396 ;;
6397 sparc64-*linux*)
6398 LD="${LD-ld} -m elf32_sparc"
6399 ;;
6400 esac
6401 ;;
6402 *64-bit*)
6403 case $host in
6404 x86_64-*kfreebsd*-gnu)
6405 LD="${LD-ld} -m elf_x86_64_fbsd"
6406 ;;
6407 x86_64-*linux*)
6408 LD="${LD-ld} -m elf_x86_64"
6409 ;;
6410 ppc*-*linux*|powerpc*-*linux*)
6411 LD="${LD-ld} -m elf64ppc"
6412 ;;
6413 s390*-*linux*|s390*-*tpf*)
6414 LD="${LD-ld} -m elf64_s390"
6415 ;;
6416 sparc*-*linux*)
6417 LD="${LD-ld} -m elf64_sparc"
6418 ;;
6419 esac
6420 ;;
6421 esac
6422 fi
6423 rm -rf conftest*
6424 ;;
6425
6426 *-*-sco3.2v5*)
6427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6428 SAVE_CFLAGS="$CFLAGS"
6429 CFLAGS="$CFLAGS -belf"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6431 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6432 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 ac_ext=c
6436 ac_cpp='$CPP $CPPFLAGS'
6437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443
6444 int
6445 main ()
6446 {
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_link "$LINENO"; then :
6453 lt_cv_cc_needs_belf=yes
6454 else
6455 lt_cv_cc_needs_belf=no
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459 ac_ext=c
6460 ac_cpp='$CPP $CPPFLAGS'
6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6467 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6470 CFLAGS="$SAVE_CFLAGS"
6471 fi
6472 ;;
6473 sparc*-*solaris*)
6474 # Find out which ABI we are using.
6475 echo 'int i;' > conftest.$ac_ext
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
6481 case `/usr/bin/file conftest.o` in
6482 *64-bit*)
6483 case $lt_cv_prog_gnu_ld in
6484 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6485 *)
6486 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6487 LD="${LD-ld} -64"
6488 fi
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496 esac
6497
6498 need_locks="$enable_libtool_lock"
6499
6500
6501 case $host_os in
6502 rhapsody* | darwin*)
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$DSYMUTIL"; then
6512 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6532 if test -n "$DSYMUTIL"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6534 $as_echo "$DSYMUTIL" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540
6541 fi
6542 if test -z "$ac_cv_prog_DSYMUTIL"; then
6543 ac_ct_DSYMUTIL=$DSYMUTIL
6544 # Extract the first word of "dsymutil", so it can be a program name with args.
6545 set dummy dsymutil; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$ac_ct_DSYMUTIL"; then
6552 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6572 if test -n "$ac_ct_DSYMUTIL"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6574 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580 if test "x$ac_ct_DSYMUTIL" = x; then
6581 DSYMUTIL=":"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589 DSYMUTIL=$ac_ct_DSYMUTIL
6590 fi
6591 else
6592 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6593 fi
6594
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$NMEDIT"; then
6604 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 NMEDIT=$ac_cv_prog_NMEDIT
6624 if test -n "$NMEDIT"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6626 $as_echo "$NMEDIT" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6630 fi
6631
6632
6633 fi
6634 if test -z "$ac_cv_prog_NMEDIT"; then
6635 ac_ct_NMEDIT=$NMEDIT
6636 # Extract the first word of "nmedit", so it can be a program name with args.
6637 set dummy nmedit; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$ac_ct_NMEDIT"; then
6644 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6664 if test -n "$ac_ct_NMEDIT"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6666 $as_echo "$ac_ct_NMEDIT" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672 if test "x$ac_ct_NMEDIT" = x; then
6673 NMEDIT=":"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 NMEDIT=$ac_ct_NMEDIT
6682 fi
6683 else
6684 NMEDIT="$ac_cv_prog_NMEDIT"
6685 fi
6686
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_LIPO+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$LIPO"; then
6696 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 LIPO=$ac_cv_prog_LIPO
6716 if test -n "$LIPO"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6718 $as_echo "$LIPO" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6722 fi
6723
6724
6725 fi
6726 if test -z "$ac_cv_prog_LIPO"; then
6727 ac_ct_LIPO=$LIPO
6728 # Extract the first word of "lipo", so it can be a program name with args.
6729 set dummy lipo; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$ac_ct_LIPO"; then
6736 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_LIPO="lipo"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6756 if test -n "$ac_ct_LIPO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6758 $as_echo "$ac_ct_LIPO" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764 if test "x$ac_ct_LIPO" = x; then
6765 LIPO=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773 LIPO=$ac_ct_LIPO
6774 fi
6775 else
6776 LIPO="$ac_cv_prog_LIPO"
6777 fi
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}otool; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$OTOOL"; then
6788 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 OTOOL=$ac_cv_prog_OTOOL
6808 if test -n "$OTOOL"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6810 $as_echo "$OTOOL" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 fi
6818 if test -z "$ac_cv_prog_OTOOL"; then
6819 ac_ct_OTOOL=$OTOOL
6820 # Extract the first word of "otool", so it can be a program name with args.
6821 set dummy otool; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$ac_ct_OTOOL"; then
6828 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_OTOOL="otool"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6848 if test -n "$ac_ct_OTOOL"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6850 $as_echo "$ac_ct_OTOOL" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856 if test "x$ac_ct_OTOOL" = x; then
6857 OTOOL=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 OTOOL=$ac_ct_OTOOL
6866 fi
6867 else
6868 OTOOL="$ac_cv_prog_OTOOL"
6869 fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 if test -n "$OTOOL64"; then
6880 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6881 else
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi
6898 fi
6899 OTOOL64=$ac_cv_prog_OTOOL64
6900 if test -n "$OTOOL64"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6902 $as_echo "$OTOOL64" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907
6908
6909 fi
6910 if test -z "$ac_cv_prog_OTOOL64"; then
6911 ac_ct_OTOOL64=$OTOOL64
6912 # Extract the first word of "otool64", so it can be a program name with args.
6913 set dummy otool64; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$ac_ct_OTOOL64"; then
6920 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_ac_ct_OTOOL64="otool64"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6940 if test -n "$ac_ct_OTOOL64"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6942 $as_echo "$ac_ct_OTOOL64" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948 if test "x$ac_ct_OTOOL64" = x; then
6949 OTOOL64=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952 yes:)
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6956 esac
6957 OTOOL64=$ac_ct_OTOOL64
6958 fi
6959 else
6960 OTOOL64="$ac_cv_prog_OTOOL64"
6961 fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6990 $as_echo_n "checking for -single_module linker flag... " >&6; }
6991 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 lt_cv_apple_cc_single_mod=no
6995 if test -z "${LT_MULTI_MODULE}"; then
6996 # By default we will add the -single_module flag. You can override
6997 # by either setting the environment variable LT_MULTI_MODULE
6998 # non-empty at configure time, or by adding -multi_module to the
6999 # link flags.
7000 rm -rf libconftest.dylib*
7001 echo "int foo(void){return 1;}" > conftest.c
7002 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7003 -dynamiclib -Wl,-single_module conftest.c" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7005 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7006 _lt_result=$?
7007 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7008 lt_cv_apple_cc_single_mod=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -rf libconftest.dylib*
7013 rm -f conftest.*
7014 fi
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7017 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7019 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7020 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 lt_cv_ld_exported_symbols_list=no
7024 save_LDFLAGS=$LDFLAGS
7025 echo "_main" > conftest.sym
7026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029
7030 int
7031 main ()
7032 {
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 lt_cv_ld_exported_symbols_list=yes
7040 else
7041 lt_cv_ld_exported_symbols_list=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 LDFLAGS="$save_LDFLAGS"
7046
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7049 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7050 case $host_os in
7051 rhapsody* | darwin1.[012])
7052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7053 darwin1.*)
7054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7055 darwin*) # darwin 5.x on
7056 # if running on 10.5 or later, the deployment target defaults
7057 # to the OS version, if on x86, and 10.4, the deployment
7058 # target defaults to 10.4. Don't you love it?
7059 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7060 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7062 10.[012]*)
7063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7064 10.*)
7065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7066 esac
7067 ;;
7068 esac
7069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7070 _lt_dar_single_mod='$single_module'
7071 fi
7072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7074 else
7075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7076 fi
7077 if test "$DSYMUTIL" != ":"; then
7078 _lt_dsymutil='~$DSYMUTIL $lib || :'
7079 else
7080 _lt_dsymutil=
7081 fi
7082 ;;
7083 esac
7084
7085 ac_ext=c
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7091 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7092 # On Suns, sometimes $CPP names a directory.
7093 if test -n "$CPP" && test -d "$CPP"; then
7094 CPP=
7095 fi
7096 if test -z "$CPP"; then
7097 if test "${ac_cv_prog_CPP+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 # Double quotes because CPP needs to be expanded
7101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7102 do
7103 ac_preproc_ok=false
7104 for ac_c_preproc_warn_flag in '' yes
7105 do
7106 # Use a header file that comes with gcc, so configuring glibc
7107 # with a fresh cross-compiler works.
7108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 # <limits.h> exists even on freestanding compilers.
7110 # On the NeXT, cc -E runs the code through the compiler's parser,
7111 # not just through cpp. "Syntax error" is here to catch this case.
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 #ifdef __STDC__
7115 # include <limits.h>
7116 #else
7117 # include <assert.h>
7118 #endif
7119 Syntax error
7120 _ACEOF
7121 if ac_fn_c_try_cpp "$LINENO"; then :
7122
7123 else
7124 # Broken: fails on valid input.
7125 continue
7126 fi
7127 rm -f conftest.err conftest.$ac_ext
7128
7129 # OK, works on sane cases. Now check whether nonexistent headers
7130 # can be detected and how.
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #include <ac_nonexistent.h>
7134 _ACEOF
7135 if ac_fn_c_try_cpp "$LINENO"; then :
7136 # Broken: success on invalid input.
7137 continue
7138 else
7139 # Passes both tests.
7140 ac_preproc_ok=:
7141 break
7142 fi
7143 rm -f conftest.err conftest.$ac_ext
7144
7145 done
7146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7147 rm -f conftest.err conftest.$ac_ext
7148 if $ac_preproc_ok; then :
7149 break
7150 fi
7151
7152 done
7153 ac_cv_prog_CPP=$CPP
7154
7155 fi
7156 CPP=$ac_cv_prog_CPP
7157 else
7158 ac_cv_prog_CPP=$CPP
7159 fi
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7161 $as_echo "$CPP" >&6; }
7162 ac_preproc_ok=false
7163 for ac_c_preproc_warn_flag in '' yes
7164 do
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178 Syntax error
7179 _ACEOF
7180 if ac_fn_c_try_cpp "$LINENO"; then :
7181
7182 else
7183 # Broken: fails on valid input.
7184 continue
7185 fi
7186 rm -f conftest.err conftest.$ac_ext
7187
7188 # OK, works on sane cases. Now check whether nonexistent headers
7189 # can be detected and how.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <ac_nonexistent.h>
7193 _ACEOF
7194 if ac_fn_c_try_cpp "$LINENO"; then :
7195 # Broken: success on invalid input.
7196 continue
7197 else
7198 # Passes both tests.
7199 ac_preproc_ok=:
7200 break
7201 fi
7202 rm -f conftest.err conftest.$ac_ext
7203
7204 done
7205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206 rm -f conftest.err conftest.$ac_ext
7207 if $ac_preproc_ok; then :
7208
7209 else
7210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7212 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7213 See \`config.log' for more details." "$LINENO" 5; }
7214 fi
7215
7216 ac_ext=c
7217 ac_cpp='$CPP $CPPFLAGS'
7218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221
7222
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7224 $as_echo_n "checking for ANSI C header files... " >&6; }
7225 if test "${ac_cv_header_stdc+set}" = set; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <stdlib.h>
7231 #include <stdarg.h>
7232 #include <string.h>
7233 #include <float.h>
7234
7235 int
7236 main ()
7237 {
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 ac_cv_header_stdc=yes
7245 else
7246 ac_cv_header_stdc=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249
7250 if test $ac_cv_header_stdc = yes; then
7251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7254 #include <string.h>
7255
7256 _ACEOF
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "memchr" >/dev/null 2>&1; then :
7259
7260 else
7261 ac_cv_header_stdc=no
7262 fi
7263 rm -f conftest*
7264
7265 fi
7266
7267 if test $ac_cv_header_stdc = yes; then
7268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <stdlib.h>
7272
7273 _ACEOF
7274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275 $EGREP "free" >/dev/null 2>&1; then :
7276
7277 else
7278 ac_cv_header_stdc=no
7279 fi
7280 rm -f conftest*
7281
7282 fi
7283
7284 if test $ac_cv_header_stdc = yes; then
7285 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7286 if test "$cross_compiling" = yes; then :
7287 :
7288 else
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 #include <ctype.h>
7292 #include <stdlib.h>
7293 #if ((' ' & 0x0FF) == 0x020)
7294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7296 #else
7297 # define ISLOWER(c) \
7298 (('a' <= (c) && (c) <= 'i') \
7299 || ('j' <= (c) && (c) <= 'r') \
7300 || ('s' <= (c) && (c) <= 'z'))
7301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7302 #endif
7303
7304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7305 int
7306 main ()
7307 {
7308 int i;
7309 for (i = 0; i < 256; i++)
7310 if (XOR (islower (i), ISLOWER (i))
7311 || toupper (i) != TOUPPER (i))
7312 return 2;
7313 return 0;
7314 }
7315 _ACEOF
7316 if ac_fn_c_try_run "$LINENO"; then :
7317
7318 else
7319 ac_cv_header_stdc=no
7320 fi
7321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7322 conftest.$ac_objext conftest.beam conftest.$ac_ext
7323 fi
7324
7325 fi
7326 fi
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7328 $as_echo "$ac_cv_header_stdc" >&6; }
7329 if test $ac_cv_header_stdc = yes; then
7330
7331 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7332
7333 fi
7334
7335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7336 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7337 inttypes.h stdint.h unistd.h
7338 do :
7339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7341 "
7342 eval as_val=\$$as_ac_Header
7343 if test "x$as_val" = x""yes; then :
7344 cat >>confdefs.h <<_ACEOF
7345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346 _ACEOF
7347
7348 fi
7349
7350 done
7351
7352
7353 for ac_header in dlfcn.h
7354 do :
7355 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7356 "
7357 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7358 cat >>confdefs.h <<_ACEOF
7359 #define HAVE_DLFCN_H 1
7360 _ACEOF
7361
7362 fi
7363
7364 done
7365
7366
7367
7368 # Set options
7369 enable_dlopen=yes
7370 # Check whether --enable-static was given.
7371 if test "${enable_static+set}" = set; then :
7372 enableval=$enable_static; p=${PACKAGE-default}
7373 case $enableval in
7374 yes) enable_static=yes ;;
7375 no) enable_static=no ;;
7376 *)
7377 enable_static=no
7378 # Look at the argument we got. We use all the common list separators.
7379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7380 for pkg in $enableval; do
7381 IFS="$lt_save_ifs"
7382 if test "X$pkg" = "X$p"; then
7383 enable_static=yes
7384 fi
7385 done
7386 IFS="$lt_save_ifs"
7387 ;;
7388 esac
7389 else
7390 enable_static=no
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 enable_win32_dll=no
7404
7405
7406 # Check whether --enable-shared was given.
7407 if test "${enable_shared+set}" = set; then :
7408 enableval=$enable_shared; p=${PACKAGE-default}
7409 case $enableval in
7410 yes) enable_shared=yes ;;
7411 no) enable_shared=no ;;
7412 *)
7413 enable_shared=no
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for pkg in $enableval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$pkg" = "X$p"; then
7419 enable_shared=yes
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
7423 ;;
7424 esac
7425 else
7426 enable_shared=yes
7427 fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439 # Check whether --with-pic was given.
7440 if test "${with_pic+set}" = set; then :
7441 withval=$with_pic; pic_mode="$withval"
7442 else
7443 pic_mode=default
7444 fi
7445
7446
7447 test -z "$pic_mode" && pic_mode=default
7448
7449
7450
7451
7452
7453
7454
7455 # Check whether --enable-fast-install was given.
7456 if test "${enable_fast_install+set}" = set; then :
7457 enableval=$enable_fast_install; p=${PACKAGE-default}
7458 case $enableval in
7459 yes) enable_fast_install=yes ;;
7460 no) enable_fast_install=no ;;
7461 *)
7462 enable_fast_install=no
7463 # Look at the argument we got. We use all the common list separators.
7464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7465 for pkg in $enableval; do
7466 IFS="$lt_save_ifs"
7467 if test "X$pkg" = "X$p"; then
7468 enable_fast_install=yes
7469 fi
7470 done
7471 IFS="$lt_save_ifs"
7472 ;;
7473 esac
7474 else
7475 enable_fast_install=yes
7476 fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # This can be used to rebuild libtool when needed
7489 LIBTOOL_DEPS="$ltmain"
7490
7491 # Always use our own libtool.
7492 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 test -z "$LN_S" && LN_S="ln -s"
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533 if test -n "${ZSH_VERSION+set}" ; then
7534 setopt NO_GLOB_SUBST
7535 fi
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7538 $as_echo_n "checking for objdir... " >&6; }
7539 if test "${lt_cv_objdir+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 rm -f .libs 2>/dev/null
7543 mkdir .libs 2>/dev/null
7544 if test -d .libs; then
7545 lt_cv_objdir=.libs
7546 else
7547 # MS-DOS does not allow filenames that begin with a dot.
7548 lt_cv_objdir=_libs
7549 fi
7550 rmdir .libs 2>/dev/null
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7553 $as_echo "$lt_cv_objdir" >&6; }
7554 objdir=$lt_cv_objdir
7555
7556
7557
7558
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define LT_OBJDIR "$lt_cv_objdir/"
7562 _ACEOF
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 case $host_os in
7581 aix3*)
7582 # AIX sometimes has problems with the GCC collect2 program. For some
7583 # reason, if we set the COLLECT_NAMES environment variable, the problems
7584 # vanish in a puff of smoke.
7585 if test "X${COLLECT_NAMES+set}" != Xset; then
7586 COLLECT_NAMES=
7587 export COLLECT_NAMES
7588 fi
7589 ;;
7590 esac
7591
7592 # Sed substitution that helps us do robust quoting. It backslashifies
7593 # metacharacters that are still active within double-quoted strings.
7594 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7595
7596 # Same as above, but do not quote variable references.
7597 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7598
7599 # Sed substitution to delay expansion of an escaped shell variable in a
7600 # double_quote_subst'ed string.
7601 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7602
7603 # Sed substitution to delay expansion of an escaped single quote.
7604 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7605
7606 # Sed substitution to avoid accidental globbing in evaled expressions
7607 no_glob_subst='s/\*/\\\*/g'
7608
7609 # Global variables:
7610 ofile=libtool
7611 can_build_shared=yes
7612
7613 # All known linkers require a `.a' archive for static linking (except MSVC,
7614 # which needs '.lib').
7615 libext=a
7616
7617 with_gnu_ld="$lt_cv_prog_gnu_ld"
7618
7619 old_CC="$CC"
7620 old_CFLAGS="$CFLAGS"
7621
7622 # Set sane defaults for various variables
7623 test -z "$CC" && CC=cc
7624 test -z "$LTCC" && LTCC=$CC
7625 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7626 test -z "$LD" && LD=ld
7627 test -z "$ac_objext" && ac_objext=o
7628
7629 for cc_temp in $compiler""; do
7630 case $cc_temp in
7631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7633 \-*) ;;
7634 *) break;;
7635 esac
7636 done
7637 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7638
7639
7640 # Only perform the check for file, if the check method requires it
7641 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7642 case $deplibs_check_method in
7643 file_magic*)
7644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7646 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 case $MAGIC_CMD in
7651 [\\/*] | ?:[\\/]*)
7652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 lt_save_MAGIC_CMD="$MAGIC_CMD"
7656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7658 for ac_dir in $ac_dummy; do
7659 IFS="$lt_save_ifs"
7660 test -z "$ac_dir" && ac_dir=.
7661 if test -f $ac_dir/${ac_tool_prefix}file; then
7662 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7663 if test -n "$file_magic_test_file"; then
7664 case $deplibs_check_method in
7665 "file_magic "*)
7666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7669 $EGREP "$file_magic_regex" > /dev/null; then
7670 :
7671 else
7672 cat <<_LT_EOF 1>&2
7673
7674 *** Warning: the command libtool uses to detect shared libraries,
7675 *** $file_magic_cmd, produces output that libtool cannot recognize.
7676 *** The result is that libtool may fail to recognize shared libraries
7677 *** as such. This will affect the creation of libtool libraries that
7678 *** depend on shared libraries, but programs linked with such libtool
7679 *** libraries will work regardless of this problem. Nevertheless, you
7680 *** may want to report the problem to your system manager and/or to
7681 *** bug-libtool@gnu.org
7682
7683 _LT_EOF
7684 fi ;;
7685 esac
7686 fi
7687 break
7688 fi
7689 done
7690 IFS="$lt_save_ifs"
7691 MAGIC_CMD="$lt_save_MAGIC_CMD"
7692 ;;
7693 esac
7694 fi
7695
7696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7697 if test -n "$MAGIC_CMD"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7699 $as_echo "$MAGIC_CMD" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706
7707
7708
7709 if test -z "$lt_cv_path_MAGIC_CMD"; then
7710 if test -n "$ac_tool_prefix"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7712 $as_echo_n "checking for file... " >&6; }
7713 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 case $MAGIC_CMD in
7717 [\\/*] | ?:[\\/]*)
7718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 lt_save_MAGIC_CMD="$MAGIC_CMD"
7722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7724 for ac_dir in $ac_dummy; do
7725 IFS="$lt_save_ifs"
7726 test -z "$ac_dir" && ac_dir=.
7727 if test -f $ac_dir/file; then
7728 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7729 if test -n "$file_magic_test_file"; then
7730 case $deplibs_check_method in
7731 "file_magic "*)
7732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7735 $EGREP "$file_magic_regex" > /dev/null; then
7736 :
7737 else
7738 cat <<_LT_EOF 1>&2
7739
7740 *** Warning: the command libtool uses to detect shared libraries,
7741 *** $file_magic_cmd, produces output that libtool cannot recognize.
7742 *** The result is that libtool may fail to recognize shared libraries
7743 *** as such. This will affect the creation of libtool libraries that
7744 *** depend on shared libraries, but programs linked with such libtool
7745 *** libraries will work regardless of this problem. Nevertheless, you
7746 *** may want to report the problem to your system manager and/or to
7747 *** bug-libtool@gnu.org
7748
7749 _LT_EOF
7750 fi ;;
7751 esac
7752 fi
7753 break
7754 fi
7755 done
7756 IFS="$lt_save_ifs"
7757 MAGIC_CMD="$lt_save_MAGIC_CMD"
7758 ;;
7759 esac
7760 fi
7761
7762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7763 if test -n "$MAGIC_CMD"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7765 $as_echo "$MAGIC_CMD" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771
7772 else
7773 MAGIC_CMD=:
7774 fi
7775 fi
7776
7777 fi
7778 ;;
7779 esac
7780
7781 # Use C for the default configuration in the libtool script
7782
7783 lt_save_CC="$CC"
7784 ac_ext=c
7785 ac_cpp='$CPP $CPPFLAGS'
7786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789
7790
7791 # Source file extension for C test sources.
7792 ac_ext=c
7793
7794 # Object file extension for compiled C test sources.
7795 objext=o
7796 objext=$objext
7797
7798 # Code to be used in simple compile tests
7799 lt_simple_compile_test_code="int some_variable = 0;"
7800
7801 # Code to be used in simple link tests
7802 lt_simple_link_test_code='int main(){return(0);}'
7803
7804
7805
7806
7807
7808
7809
7810 # If no C compiler was specified, use CC.
7811 LTCC=${LTCC-"$CC"}
7812
7813 # If no C compiler flags were specified, use CFLAGS.
7814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7815
7816 # Allow CC to be a program name with arguments.
7817 compiler=$CC
7818
7819 # Save the default compiler, since it gets overwritten when the other
7820 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7821 compiler_DEFAULT=$CC
7822
7823 # save warnings/boilerplate of simple test code
7824 ac_outfile=conftest.$ac_objext
7825 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7826 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7827 _lt_compiler_boilerplate=`cat conftest.err`
7828 $RM conftest*
7829
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7832 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7833 _lt_linker_boilerplate=`cat conftest.err`
7834 $RM -r conftest*
7835
7836
7837 if test -n "$compiler"; then
7838
7839 lt_prog_compiler_no_builtin_flag=
7840
7841 if test "$GCC" = yes; then
7842 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7845 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7846 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 lt_cv_prog_compiler_rtti_exceptions=no
7850 ac_outfile=conftest.$ac_objext
7851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7852 lt_compiler_flag="-fno-rtti -fno-exceptions"
7853 # Insert the option either (1) after the last *FLAGS variable, or
7854 # (2) before a word containing "conftest.", or (3) at the end.
7855 # Note that $ac_compile itself does not contain backslashes and begins
7856 # with a dollar sign (not a hyphen), so the echo should work correctly.
7857 # The option is referenced via a variable to avoid confusing sed.
7858 lt_compile=`echo "$ac_compile" | $SED \
7859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7861 -e 's:$: $lt_compiler_flag:'`
7862 (eval echo "\"\$as_me:7862: $lt_compile\"" >&5)
7863 (eval "$lt_compile" 2>conftest.err)
7864 ac_status=$?
7865 cat conftest.err >&5
7866 echo "$as_me:7866: \$? = $ac_status" >&5
7867 if (exit $ac_status) && test -s "$ac_outfile"; then
7868 # The compiler can only warn and ignore the option if not recognized
7869 # So say no if there are warnings other than the usual output.
7870 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7873 lt_cv_prog_compiler_rtti_exceptions=yes
7874 fi
7875 fi
7876 $RM conftest*
7877
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7880 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7881
7882 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7883 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7884 else
7885 :
7886 fi
7887
7888 fi
7889
7890
7891
7892
7893
7894
7895 lt_prog_compiler_wl=
7896 lt_prog_compiler_pic=
7897 lt_prog_compiler_static=
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7900 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7901
7902 if test "$GCC" = yes; then
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_static='-static'
7905
7906 case $host_os in
7907 aix*)
7908 # All AIX code is PIC.
7909 if test "$host_cpu" = ia64; then
7910 # AIX 5 now supports IA64 processor
7911 lt_prog_compiler_static='-Bstatic'
7912 fi
7913 ;;
7914
7915 amigaos*)
7916 case $host_cpu in
7917 powerpc)
7918 # see comment about AmigaOS4 .so support
7919 lt_prog_compiler_pic='-fPIC'
7920 ;;
7921 m68k)
7922 # FIXME: we need at least 68020 code to build shared libraries, but
7923 # adding the `-m68020' flag to GCC prevents building anything better,
7924 # like `-m68040'.
7925 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7926 ;;
7927 esac
7928 ;;
7929
7930 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7931 # PIC is the default for these OSes.
7932 ;;
7933
7934 mingw* | cygwin* | pw32* | os2* | cegcc*)
7935 # This hack is so that the source file can tell whether it is being
7936 # built for inclusion in a dll (and should export symbols for example).
7937 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7938 # (--disable-auto-import) libraries
7939 lt_prog_compiler_pic='-DDLL_EXPORT'
7940 ;;
7941
7942 darwin* | rhapsody*)
7943 # PIC is the default on this platform
7944 # Common symbols not allowed in MH_DYLIB files
7945 lt_prog_compiler_pic='-fno-common'
7946 ;;
7947
7948 hpux*)
7949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7951 # sets the default TLS model and affects inlining.
7952 case $host_cpu in
7953 hppa*64*)
7954 # +Z the default
7955 ;;
7956 *)
7957 lt_prog_compiler_pic='-fPIC'
7958 ;;
7959 esac
7960 ;;
7961
7962 interix[3-9]*)
7963 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7964 # Instead, we relocate shared libraries at runtime.
7965 ;;
7966
7967 msdosdjgpp*)
7968 # Just because we use GCC doesn't mean we suddenly get shared libraries
7969 # on systems that don't support them.
7970 lt_prog_compiler_can_build_shared=no
7971 enable_shared=no
7972 ;;
7973
7974 *nto* | *qnx*)
7975 # QNX uses GNU C++, but need to define -shared option too, otherwise
7976 # it will coredump.
7977 lt_prog_compiler_pic='-fPIC -shared'
7978 ;;
7979
7980 sysv4*MP*)
7981 if test -d /usr/nec; then
7982 lt_prog_compiler_pic=-Kconform_pic
7983 fi
7984 ;;
7985
7986 *)
7987 lt_prog_compiler_pic='-fPIC'
7988 ;;
7989 esac
7990 else
7991 # PORTME Check for flag to pass linker flags through the system compiler.
7992 case $host_os in
7993 aix*)
7994 lt_prog_compiler_wl='-Wl,'
7995 if test "$host_cpu" = ia64; then
7996 # AIX 5 now supports IA64 processor
7997 lt_prog_compiler_static='-Bstatic'
7998 else
7999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8000 fi
8001 ;;
8002
8003 mingw* | cygwin* | pw32* | os2* | cegcc*)
8004 # This hack is so that the source file can tell whether it is being
8005 # built for inclusion in a dll (and should export symbols for example).
8006 lt_prog_compiler_pic='-DDLL_EXPORT'
8007 ;;
8008
8009 hpux9* | hpux10* | hpux11*)
8010 lt_prog_compiler_wl='-Wl,'
8011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8012 # not for PA HP-UX.
8013 case $host_cpu in
8014 hppa*64*|ia64*)
8015 # +Z the default
8016 ;;
8017 *)
8018 lt_prog_compiler_pic='+Z'
8019 ;;
8020 esac
8021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8022 lt_prog_compiler_static='${wl}-a ${wl}archive'
8023 ;;
8024
8025 irix5* | irix6* | nonstopux*)
8026 lt_prog_compiler_wl='-Wl,'
8027 # PIC (with -KPIC) is the default.
8028 lt_prog_compiler_static='-non_shared'
8029 ;;
8030
8031 linux* | k*bsd*-gnu)
8032 case $cc_basename in
8033 # old Intel for x86_64 which still supported -KPIC.
8034 ecc*)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-static'
8038 ;;
8039 # icc used to be incompatible with GCC.
8040 # ICC 10 doesn't accept -KPIC any more.
8041 icc* | ifort*)
8042 lt_prog_compiler_wl='-Wl,'
8043 lt_prog_compiler_pic='-fPIC'
8044 lt_prog_compiler_static='-static'
8045 ;;
8046 # Lahey Fortran 8.1.
8047 lf95*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='--shared'
8050 lt_prog_compiler_static='--static'
8051 ;;
8052 pgcc* | pgf77* | pgf90* | pgf95*)
8053 # Portland Group compilers (*not* the Pentium gcc compiler,
8054 # which looks to be a dead project)
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-fpic'
8057 lt_prog_compiler_static='-Bstatic'
8058 ;;
8059 ccc*)
8060 lt_prog_compiler_wl='-Wl,'
8061 # All Alpha code is PIC.
8062 lt_prog_compiler_static='-non_shared'
8063 ;;
8064 xl*)
8065 # IBM XL C 8.0/Fortran 10.1 on PPC
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_pic='-qpic'
8068 lt_prog_compiler_static='-qstaticlink'
8069 ;;
8070 *)
8071 case `$CC -V 2>&1 | sed 5q` in
8072 *Sun\ C*)
8073 # Sun C 5.9
8074 lt_prog_compiler_pic='-KPIC'
8075 lt_prog_compiler_static='-Bstatic'
8076 lt_prog_compiler_wl='-Wl,'
8077 ;;
8078 *Sun\ F*)
8079 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 lt_prog_compiler_wl=''
8083 ;;
8084 esac
8085 ;;
8086 esac
8087 ;;
8088
8089 newsos6)
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
8093
8094 *nto* | *qnx*)
8095 # QNX uses GNU C++, but need to define -shared option too, otherwise
8096 # it will coredump.
8097 lt_prog_compiler_pic='-fPIC -shared'
8098 ;;
8099
8100 osf3* | osf4* | osf5*)
8101 lt_prog_compiler_wl='-Wl,'
8102 # All OSF/1 code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105
8106 rdos*)
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
8109
8110 solaris*)
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 case $cc_basename in
8114 f77* | f90* | f95*)
8115 lt_prog_compiler_wl='-Qoption ld ';;
8116 *)
8117 lt_prog_compiler_wl='-Wl,';;
8118 esac
8119 ;;
8120
8121 sunos4*)
8122 lt_prog_compiler_wl='-Qoption ld '
8123 lt_prog_compiler_pic='-PIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 ;;
8126
8127 sysv4 | sysv4.2uw2* | sysv4.3*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 ;;
8132
8133 sysv4*MP*)
8134 if test -d /usr/nec ;then
8135 lt_prog_compiler_pic='-Kconform_pic'
8136 lt_prog_compiler_static='-Bstatic'
8137 fi
8138 ;;
8139
8140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145
8146 unicos*)
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_can_build_shared=no
8149 ;;
8150
8151 uts4*)
8152 lt_prog_compiler_pic='-pic'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155
8156 *)
8157 lt_prog_compiler_can_build_shared=no
8158 ;;
8159 esac
8160 fi
8161
8162 case $host_os in
8163 # For platforms which do not support PIC, -DPIC is meaningless:
8164 *djgpp*)
8165 lt_prog_compiler_pic=
8166 ;;
8167 *)
8168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8169 ;;
8170 esac
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8172 $as_echo "$lt_prog_compiler_pic" >&6; }
8173
8174
8175
8176
8177
8178
8179 #
8180 # Check to make sure the PIC flag actually works.
8181 #
8182 if test -n "$lt_prog_compiler_pic"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8185 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 lt_cv_prog_compiler_pic_works=no
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8191 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 # The option is referenced via a variable to avoid confusing sed.
8197 lt_compile=`echo "$ac_compile" | $SED \
8198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8200 -e 's:$: $lt_compiler_flag:'`
8201 (eval echo "\"\$as_me:8201: $lt_compile\"" >&5)
8202 (eval "$lt_compile" 2>conftest.err)
8203 ac_status=$?
8204 cat conftest.err >&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 if (exit $ac_status) && test -s "$ac_outfile"; then
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings other than the usual output.
8209 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_pic_works=yes
8213 fi
8214 fi
8215 $RM conftest*
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8219 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8220
8221 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8222 case $lt_prog_compiler_pic in
8223 "" | " "*) ;;
8224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8225 esac
8226 else
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_can_build_shared=no
8229 fi
8230
8231 fi
8232
8233
8234
8235
8236
8237
8238 #
8239 # Check to make sure the static flag actually works.
8240 #
8241 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8243 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8244 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 lt_cv_prog_compiler_static_works=no
8248 save_LDFLAGS="$LDFLAGS"
8249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8250 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8252 # The linker can only warn and ignore the option if not recognized
8253 # So say no if there are warnings
8254 if test -s conftest.err; then
8255 # Append any errors to the config.log.
8256 cat conftest.err 1>&5
8257 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8259 if diff conftest.exp conftest.er2 >/dev/null; then
8260 lt_cv_prog_compiler_static_works=yes
8261 fi
8262 else
8263 lt_cv_prog_compiler_static_works=yes
8264 fi
8265 fi
8266 $RM -r conftest*
8267 LDFLAGS="$save_LDFLAGS"
8268
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8271 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8272
8273 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8274 :
8275 else
8276 lt_prog_compiler_static=
8277 fi
8278
8279
8280
8281
8282
8283
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8287 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 lt_cv_prog_compiler_c_o=no
8291 $RM -r conftest 2>/dev/null
8292 mkdir conftest
8293 cd conftest
8294 mkdir out
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296
8297 lt_compiler_flag="-o out/conftest2.$ac_objext"
8298 # Insert the option either (1) after the last *FLAGS variable, or
8299 # (2) before a word containing "conftest.", or (3) at the end.
8300 # Note that $ac_compile itself does not contain backslashes and begins
8301 # with a dollar sign (not a hyphen), so the echo should work correctly.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:8306: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>out/conftest.err)
8308 ac_status=$?
8309 cat out/conftest.err >&5
8310 echo "$as_me:8310: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 then
8313 # The compiler can only warn and ignore the option if not recognized
8314 # So say no if there are warnings
8315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8318 lt_cv_prog_compiler_c_o=yes
8319 fi
8320 fi
8321 chmod u+w . 2>&5
8322 $RM conftest*
8323 # SGI C++ compiler will create directory out/ii_files/ for
8324 # template instantiation
8325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8326 $RM out/* && rmdir out
8327 cd ..
8328 $RM -r conftest
8329 $RM conftest*
8330
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8374 fi
8375 fi
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393 hard_links="nottested"
8394 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8395 # do not overwrite the value of need_locks provided by the user
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8397 $as_echo_n "checking if we can lock with hard links... " >&6; }
8398 hard_links=yes
8399 $RM conftest*
8400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8401 touch conftest.a
8402 ln conftest.a conftest.b 2>&5 || hard_links=no
8403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8405 $as_echo "$hard_links" >&6; }
8406 if test "$hard_links" = no; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8408 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8409 need_locks=warn
8410 fi
8411 else
8412 need_locks=no
8413 fi
8414
8415
8416
8417
8418
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8421 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8422
8423 runpath_var=
8424 allow_undefined_flag=
8425 always_export_symbols=no
8426 archive_cmds=
8427 archive_expsym_cmds=
8428 compiler_needs_object=no
8429 enable_shared_with_static_runtimes=no
8430 export_dynamic_flag_spec=
8431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8432 hardcode_automatic=no
8433 hardcode_direct=no
8434 hardcode_direct_absolute=no
8435 hardcode_libdir_flag_spec=
8436 hardcode_libdir_flag_spec_ld=
8437 hardcode_libdir_separator=
8438 hardcode_minus_L=no
8439 hardcode_shlibpath_var=unsupported
8440 inherit_rpath=no
8441 link_all_deplibs=unknown
8442 module_cmds=
8443 module_expsym_cmds=
8444 old_archive_from_new_cmds=
8445 old_archive_from_expsyms_cmds=
8446 thread_safe_flag_spec=
8447 whole_archive_flag_spec=
8448 # include_expsyms should be a list of space-separated symbols to be *always*
8449 # included in the symbol list
8450 include_expsyms=
8451 # exclude_expsyms can be an extended regexp of symbols to exclude
8452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8454 # as well as any symbol that contains `d'.
8455 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8457 # platforms (ab)use it in PIC code, but their linkers get confused if
8458 # the symbol is explicitly referenced. Since portable code cannot
8459 # rely on this symbol name, it's probably fine to never include it in
8460 # preloaded symbol tables.
8461 # Exclude shared library initialization/finalization symbols.
8462 extract_expsyms_cmds=
8463
8464 case $host_os in
8465 cygwin* | mingw* | pw32* | cegcc*)
8466 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8467 # When not using gcc, we currently assume that we are using
8468 # Microsoft Visual C++.
8469 if test "$GCC" != yes; then
8470 with_gnu_ld=no
8471 fi
8472 ;;
8473 interix*)
8474 # we just hope/assume this is gcc and not c89 (= MSVC++)
8475 with_gnu_ld=yes
8476 ;;
8477 openbsd*)
8478 with_gnu_ld=no
8479 ;;
8480 esac
8481
8482 ld_shlibs=yes
8483 if test "$with_gnu_ld" = yes; then
8484 # If archive_cmds runs LD, not CC, wlarc should be empty
8485 wlarc='${wl}'
8486
8487 # Set some defaults for GNU ld with shared library support. These
8488 # are reset later if shared libraries are not supported. Putting them
8489 # here allows them to be overridden if necessary.
8490 runpath_var=LD_RUN_PATH
8491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8492 export_dynamic_flag_spec='${wl}--export-dynamic'
8493 # ancient GNU ld didn't support --whole-archive et. al.
8494 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8495 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8496 else
8497 whole_archive_flag_spec=
8498 fi
8499 supports_anon_versioning=no
8500 case `$LD -v 2>&1` in
8501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8504 *\ 2.11.*) ;; # other 2.11 versions
8505 *) supports_anon_versioning=yes ;;
8506 esac
8507
8508 # See if GNU ld supports shared libraries.
8509 case $host_os in
8510 aix[3-9]*)
8511 # On AIX/PPC, the GNU linker is very broken
8512 if test "$host_cpu" != ia64; then
8513 ld_shlibs=no
8514 cat <<_LT_EOF 1>&2
8515
8516 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8517 *** to be unable to reliably create shared libraries on AIX.
8518 *** Therefore, libtool is disabling shared libraries support. If you
8519 *** really care for shared libraries, you may want to modify your PATH
8520 *** so that a non-GNU linker is found, and then restart.
8521
8522 _LT_EOF
8523 fi
8524 ;;
8525
8526 amigaos*)
8527 case $host_cpu in
8528 powerpc)
8529 # see comment about AmigaOS4 .so support
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531 archive_expsym_cmds=''
8532 ;;
8533 m68k)
8534 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)'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_minus_L=yes
8537 ;;
8538 esac
8539 ;;
8540
8541 beos*)
8542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8543 allow_undefined_flag=unsupported
8544 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8545 # support --undefined. This deserves some investigation. FIXME
8546 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547 else
8548 ld_shlibs=no
8549 fi
8550 ;;
8551
8552 cygwin* | mingw* | pw32* | cegcc*)
8553 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8554 # as there is no search path for DLLs.
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 allow_undefined_flag=unsupported
8557 always_export_symbols=no
8558 enable_shared_with_static_runtimes=yes
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8560
8561 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8563 # If the export-symbols file already is a .def file (1st line
8564 # is EXPORTS), use it as is; otherwise, prepend...
8565 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8566 cp $export_symbols $output_objdir/$soname.def;
8567 else
8568 echo EXPORTS > $output_objdir/$soname.def;
8569 cat $export_symbols >> $output_objdir/$soname.def;
8570 fi~
8571 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8572 else
8573 ld_shlibs=no
8574 fi
8575 ;;
8576
8577 interix[3-9]*)
8578 hardcode_direct=no
8579 hardcode_shlibpath_var=no
8580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581 export_dynamic_flag_spec='${wl}-E'
8582 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8583 # Instead, shared libraries are loaded at an image base (0x10000000 by
8584 # default) and relocated if they conflict, which is a slow very memory
8585 # consuming and fragmenting process. To avoid this, we pick a random,
8586 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8587 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8589 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'
8590 ;;
8591
8592 gnu* | linux* | tpf* | k*bsd*-gnu)
8593 tmp_diet=no
8594 if test "$host_os" = linux-dietlibc; then
8595 case $cc_basename in
8596 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8597 esac
8598 fi
8599 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8600 && test "$tmp_diet" = no
8601 then
8602 tmp_addflag=
8603 tmp_sharedflag='-shared'
8604 case $cc_basename,$host_cpu in
8605 pgcc*) # Portland Group C compiler
8606 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8607 tmp_addflag=' $pic_flag'
8608 ;;
8609 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8610 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8611 tmp_addflag=' $pic_flag -Mnomain' ;;
8612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8613 tmp_addflag=' -i_dynamic' ;;
8614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8615 tmp_addflag=' -i_dynamic -nofor_main' ;;
8616 ifc* | ifort*) # Intel Fortran compiler
8617 tmp_addflag=' -nofor_main' ;;
8618 lf95*) # Lahey Fortran 8.1
8619 whole_archive_flag_spec=
8620 tmp_sharedflag='--shared' ;;
8621 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8622 tmp_sharedflag='-qmkshrobj'
8623 tmp_addflag= ;;
8624 esac
8625 case `$CC -V 2>&1 | sed 5q` in
8626 *Sun\ C*) # Sun C 5.9
8627 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8628 compiler_needs_object=yes
8629 tmp_sharedflag='-G' ;;
8630 *Sun\ F*) # Sun Fortran 8.3
8631 tmp_sharedflag='-G' ;;
8632 esac
8633 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634
8635 if test "x$supports_anon_versioning" = xyes; then
8636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8638 echo "local: *; };" >> $output_objdir/$libname.ver~
8639 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8640 fi
8641
8642 case $cc_basename in
8643 xlf*)
8644 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8645 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8646 hardcode_libdir_flag_spec=
8647 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8648 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8649 if test "x$supports_anon_versioning" = xyes; then
8650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8652 echo "local: *; };" >> $output_objdir/$libname.ver~
8653 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8654 fi
8655 ;;
8656 esac
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
8662 netbsd*)
8663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8664 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8665 wlarc=
8666 else
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 fi
8670 ;;
8671
8672 solaris*)
8673 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8674 ld_shlibs=no
8675 cat <<_LT_EOF 1>&2
8676
8677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8678 *** create shared libraries on Solaris systems. Therefore, libtool
8679 *** is disabling shared libraries support. We urge you to upgrade GNU
8680 *** binutils to release 2.9.1 or newer. Another option is to modify
8681 *** your PATH or compiler configuration so that the native linker is
8682 *** used, and then restart.
8683
8684 _LT_EOF
8685 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8688 else
8689 ld_shlibs=no
8690 fi
8691 ;;
8692
8693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8694 case `$LD -v 2>&1` in
8695 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8696 ld_shlibs=no
8697 cat <<_LT_EOF 1>&2
8698
8699 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8700 *** reliably create shared libraries on SCO systems. Therefore, libtool
8701 *** is disabling shared libraries support. We urge you to upgrade GNU
8702 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8703 *** your PATH or compiler configuration so that the native linker is
8704 *** used, and then restart.
8705
8706 _LT_EOF
8707 ;;
8708 *)
8709 # For security reasons, it is highly recommended that you always
8710 # use absolute paths for naming shared libraries, and exclude the
8711 # DT_RUNPATH tag from executables and libraries. But doing so
8712 # requires that you compile everything twice, which is a pain.
8713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721 esac
8722 ;;
8723
8724 sunos4*)
8725 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 wlarc=
8727 hardcode_direct=yes
8728 hardcode_shlibpath_var=no
8729 ;;
8730
8731 *)
8732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
8739 esac
8740
8741 if test "$ld_shlibs" = no; then
8742 runpath_var=
8743 hardcode_libdir_flag_spec=
8744 export_dynamic_flag_spec=
8745 whole_archive_flag_spec=
8746 fi
8747 else
8748 # PORTME fill in a description of your system's linker (not GNU ld)
8749 case $host_os in
8750 aix3*)
8751 allow_undefined_flag=unsupported
8752 always_export_symbols=yes
8753 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'
8754 # Note: this linker hardcodes the directories in LIBPATH if there
8755 # are no directories specified by -L.
8756 hardcode_minus_L=yes
8757 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8758 # Neither direct hardcoding nor static linking is supported with a
8759 # broken collect2.
8760 hardcode_direct=unsupported
8761 fi
8762 ;;
8763
8764 aix[4-9]*)
8765 if test "$host_cpu" = ia64; then
8766 # On IA64, the linker does run time linking by default, so we don't
8767 # have to do anything special.
8768 aix_use_runtimelinking=no
8769 exp_sym_flag='-Bexport'
8770 no_entry_flag=""
8771 else
8772 # If we're using GNU nm, then we don't want the "-C" option.
8773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8774 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8775 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8776 else
8777 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'
8778 fi
8779 aix_use_runtimelinking=no
8780
8781 # Test if we are trying to use run time linking or normal
8782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8783 # need to do runtime linking.
8784 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8785 for ld_flag in $LDFLAGS; do
8786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8787 aix_use_runtimelinking=yes
8788 break
8789 fi
8790 done
8791 ;;
8792 esac
8793
8794 exp_sym_flag='-bexport'
8795 no_entry_flag='-bnoentry'
8796 fi
8797
8798 # When large executables or shared objects are built, AIX ld can
8799 # have problems creating the table of contents. If linking a library
8800 # or program results in "error TOC overflow" add -mminimal-toc to
8801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8803
8804 archive_cmds=''
8805 hardcode_direct=yes
8806 hardcode_direct_absolute=yes
8807 hardcode_libdir_separator=':'
8808 link_all_deplibs=yes
8809 file_list_spec='${wl}-f,'
8810
8811 if test "$GCC" = yes; then
8812 case $host_os in aix4.[012]|aix4.[012].*)
8813 # We only want to do this on AIX 4.2 and lower, the check
8814 # below for broken collect2 doesn't work under 4.3+
8815 collect2name=`${CC} -print-prog-name=collect2`
8816 if test -f "$collect2name" &&
8817 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8818 then
8819 # We have reworked collect2
8820 :
8821 else
8822 # We have old collect2
8823 hardcode_direct=unsupported
8824 # It fails to find uninstalled libraries when the uninstalled
8825 # path is not listed in the libpath. Setting hardcode_minus_L
8826 # to unsupported forces relinking
8827 hardcode_minus_L=yes
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_libdir_separator=
8830 fi
8831 ;;
8832 esac
8833 shared_flag='-shared'
8834 if test "$aix_use_runtimelinking" = yes; then
8835 shared_flag="$shared_flag "'${wl}-G'
8836 fi
8837 link_all_deplibs=no
8838 else
8839 # not using gcc
8840 if test "$host_cpu" = ia64; then
8841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8842 # chokes on -Wl,-G. The following line is correct:
8843 shared_flag='-G'
8844 else
8845 if test "$aix_use_runtimelinking" = yes; then
8846 shared_flag='${wl}-G'
8847 else
8848 shared_flag='${wl}-bM:SRE'
8849 fi
8850 fi
8851 fi
8852
8853 export_dynamic_flag_spec='${wl}-bexpall'
8854 # It seems that -bexpall does not export symbols beginning with
8855 # underscore (_), so it is better to generate a list of symbols to export.
8856 always_export_symbols=yes
8857 if test "$aix_use_runtimelinking" = yes; then
8858 # Warning - without using the other runtime loading flags (-brtl),
8859 # -berok will link without error, but may produce a broken library.
8860 allow_undefined_flag='-berok'
8861 # Determine the default libpath from the value encoded in an
8862 # empty executable.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865
8866 int
8867 main ()
8868 {
8869
8870 ;
8871 return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875
8876 lt_aix_libpath_sed='
8877 /Import File Strings/,/^$/ {
8878 /^0/ {
8879 s/^0 *\(.*\)$/\1/
8880 p
8881 }
8882 }'
8883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 # Check for a 64-bit object if we didn't find anything.
8885 if test -z "$aix_libpath"; then
8886 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 fi
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8892
8893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8894 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8895 else
8896 if test "$host_cpu" = ia64; then
8897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8898 allow_undefined_flag="-z nodefs"
8899 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"
8900 else
8901 # Determine the default libpath from the value encoded in an
8902 # empty executable.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905
8906 int
8907 main ()
8908 {
8909
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915
8916 lt_aix_libpath_sed='
8917 /Import File Strings/,/^$/ {
8918 /^0/ {
8919 s/^0 *\(.*\)$/\1/
8920 p
8921 }
8922 }'
8923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8924 # Check for a 64-bit object if we didn't find anything.
8925 if test -z "$aix_libpath"; then
8926 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8927 fi
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8932
8933 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8934 # Warning - without using the other run time loading flags,
8935 # -berok will link without error, but may produce a broken library.
8936 no_undefined_flag=' ${wl}-bernotok'
8937 allow_undefined_flag=' ${wl}-berok'
8938 # Exported symbols can be pulled into shared objects from archives
8939 whole_archive_flag_spec='$convenience'
8940 archive_cmds_need_lc=yes
8941 # This is similar to how AIX traditionally builds its shared libraries.
8942 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'
8943 fi
8944 fi
8945 ;;
8946
8947 amigaos*)
8948 case $host_cpu in
8949 powerpc)
8950 # see comment about AmigaOS4 .so support
8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8952 archive_expsym_cmds=''
8953 ;;
8954 m68k)
8955 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)'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_minus_L=yes
8958 ;;
8959 esac
8960 ;;
8961
8962 bsdi[45]*)
8963 export_dynamic_flag_spec=-rdynamic
8964 ;;
8965
8966 cygwin* | mingw* | pw32* | cegcc*)
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 # hardcode_libdir_flag_spec is actually meaningless, as there is
8970 # no search path for DLLs.
8971 hardcode_libdir_flag_spec=' '
8972 allow_undefined_flag=unsupported
8973 # Tell ltmain to make .lib files, not .a files.
8974 libext=lib
8975 # Tell ltmain to make .dll files, not .so files.
8976 shrext_cmds=".dll"
8977 # FIXME: Setting linknames here is a bad hack.
8978 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8979 # The linker will automatically build a .lib file if we build a DLL.
8980 old_archive_from_new_cmds='true'
8981 # FIXME: Should let the user specify the lib program.
8982 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8983 fix_srcfile_path='`cygpath -w "$srcfile"`'
8984 enable_shared_with_static_runtimes=yes
8985 ;;
8986
8987 darwin* | rhapsody*)
8988
8989
8990 archive_cmds_need_lc=no
8991 hardcode_direct=no
8992 hardcode_automatic=yes
8993 hardcode_shlibpath_var=unsupported
8994 whole_archive_flag_spec=''
8995 link_all_deplibs=yes
8996 allow_undefined_flag="$_lt_dar_allow_undefined"
8997 case $cc_basename in
8998 ifort*) _lt_dar_can_shared=yes ;;
8999 *) _lt_dar_can_shared=$GCC ;;
9000 esac
9001 if test "$_lt_dar_can_shared" = "yes"; then
9002 output_verbose_link_cmd=echo
9003 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9004 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9005 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}"
9006 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}"
9007
9008 else
9009 ld_shlibs=no
9010 fi
9011
9012 ;;
9013
9014 dgux*)
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_shlibpath_var=no
9018 ;;
9019
9020 freebsd1*)
9021 ld_shlibs=no
9022 ;;
9023
9024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9025 # support. Future versions do this automatically, but an explicit c++rt0.o
9026 # does not break anything, and helps significantly (at the cost of a little
9027 # extra space).
9028 freebsd2.2*)
9029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9030 hardcode_libdir_flag_spec='-R$libdir'
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9036 freebsd2*)
9037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_direct=yes
9039 hardcode_minus_L=yes
9040 hardcode_shlibpath_var=no
9041 ;;
9042
9043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9044 freebsd* | dragonfly*)
9045 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9046 hardcode_libdir_flag_spec='-R$libdir'
9047 hardcode_direct=yes
9048 hardcode_shlibpath_var=no
9049 ;;
9050
9051 hpux9*)
9052 if test "$GCC" = yes; then
9053 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'
9054 else
9055 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'
9056 fi
9057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9058 hardcode_libdir_separator=:
9059 hardcode_direct=yes
9060
9061 # hardcode_minus_L: Not really in the search PATH,
9062 # but as the default location of the library.
9063 hardcode_minus_L=yes
9064 export_dynamic_flag_spec='${wl}-E'
9065 ;;
9066
9067 hpux10*)
9068 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070 else
9071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9072 fi
9073 if test "$with_gnu_ld" = no; then
9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075 hardcode_libdir_flag_spec_ld='+b $libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
9078 hardcode_direct_absolute=yes
9079 export_dynamic_flag_spec='${wl}-E'
9080 # hardcode_minus_L: Not really in the search PATH,
9081 # but as the default location of the library.
9082 hardcode_minus_L=yes
9083 fi
9084 ;;
9085
9086 hpux11*)
9087 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9088 case $host_cpu in
9089 hppa*64*)
9090 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 ;;
9092 ia64*)
9093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9094 ;;
9095 *)
9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097 ;;
9098 esac
9099 else
9100 case $host_cpu in
9101 hppa*64*)
9102 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 ;;
9104 ia64*)
9105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 *)
9108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 esac
9111 fi
9112 if test "$with_gnu_ld" = no; then
9113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9114 hardcode_libdir_separator=:
9115
9116 case $host_cpu in
9117 hppa*64*|ia64*)
9118 hardcode_direct=no
9119 hardcode_shlibpath_var=no
9120 ;;
9121 *)
9122 hardcode_direct=yes
9123 hardcode_direct_absolute=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125
9126 # hardcode_minus_L: Not really in the search PATH,
9127 # but as the default location of the library.
9128 hardcode_minus_L=yes
9129 ;;
9130 esac
9131 fi
9132 ;;
9133
9134 irix5* | irix6* | nonstopux*)
9135 if test "$GCC" = yes; then
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9137 # Try to use the -exported_symbol ld option, if it does not
9138 # work, assume that -exports_file does not work either and
9139 # implicitly export all symbols.
9140 save_LDFLAGS="$LDFLAGS"
9141 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int foo(void) {}
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9148
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9152 LDFLAGS="$save_LDFLAGS"
9153 else
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9156 fi
9157 archive_cmds_need_lc='no'
9158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9159 hardcode_libdir_separator=:
9160 inherit_rpath=yes
9161 link_all_deplibs=yes
9162 ;;
9163
9164 netbsd*)
9165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9167 else
9168 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9169 fi
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 newsos6)
9176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177 hardcode_direct=yes
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 hardcode_libdir_separator=:
9180 hardcode_shlibpath_var=no
9181 ;;
9182
9183 *nto* | *qnx*)
9184 ;;
9185
9186 openbsd*)
9187 if test -f /usr/libexec/ld.so; then
9188 hardcode_direct=yes
9189 hardcode_shlibpath_var=no
9190 hardcode_direct_absolute=yes
9191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9193 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9195 export_dynamic_flag_spec='${wl}-E'
9196 else
9197 case $host_os in
9198 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec='-R$libdir'
9201 ;;
9202 *)
9203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 ;;
9206 esac
9207 fi
9208 else
9209 ld_shlibs=no
9210 fi
9211 ;;
9212
9213 os2*)
9214 hardcode_libdir_flag_spec='-L$libdir'
9215 hardcode_minus_L=yes
9216 allow_undefined_flag=unsupported
9217 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'
9218 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9219 ;;
9220
9221 osf3*)
9222 if test "$GCC" = yes; then
9223 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9224 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9225 else
9226 allow_undefined_flag=' -expect_unresolved \*'
9227 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9228 fi
9229 archive_cmds_need_lc='no'
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 ;;
9233
9234 osf4* | osf5*) # as osf3* with the addition of -msym flag
9235 if test "$GCC" = yes; then
9236 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9237 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239 else
9240 allow_undefined_flag=' -expect_unresolved \*'
9241 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9242 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~
9243 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9244
9245 # Both c and cxx compiler support -rpath directly
9246 hardcode_libdir_flag_spec='-rpath $libdir'
9247 fi
9248 archive_cmds_need_lc='no'
9249 hardcode_libdir_separator=:
9250 ;;
9251
9252 solaris*)
9253 no_undefined_flag=' -z defs'
9254 if test "$GCC" = yes; then
9255 wlarc='${wl}'
9256 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9257 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9258 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9259 else
9260 case `$CC -V 2>&1` in
9261 *"Compilers 5.0"*)
9262 wlarc=''
9263 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9266 ;;
9267 *)
9268 wlarc='${wl}'
9269 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9271 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9272 ;;
9273 esac
9274 fi
9275 hardcode_libdir_flag_spec='-R$libdir'
9276 hardcode_shlibpath_var=no
9277 case $host_os in
9278 solaris2.[0-5] | solaris2.[0-5].*) ;;
9279 *)
9280 # The compiler driver will combine and reorder linker options,
9281 # but understands `-z linker_flag'. GCC discards it without `$wl',
9282 # but is careful enough not to reorder.
9283 # Supported since Solaris 2.6 (maybe 2.5.1?)
9284 if test "$GCC" = yes; then
9285 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9286 else
9287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9288 fi
9289 ;;
9290 esac
9291 link_all_deplibs=yes
9292 ;;
9293
9294 sunos4*)
9295 if test "x$host_vendor" = xsequent; then
9296 # Use $CC to link under sequent, because it throws in some extra .o
9297 # files that make .init and .fini sections work.
9298 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9299 else
9300 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9301 fi
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_direct=yes
9304 hardcode_minus_L=yes
9305 hardcode_shlibpath_var=no
9306 ;;
9307
9308 sysv4)
9309 case $host_vendor in
9310 sni)
9311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_direct=yes # is this really true???
9313 ;;
9314 siemens)
9315 ## LD is ld it makes a PLAMLIB
9316 ## CC just makes a GrossModule.
9317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9318 reload_cmds='$CC -r -o $output$reload_objs'
9319 hardcode_direct=no
9320 ;;
9321 motorola)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9324 ;;
9325 esac
9326 runpath_var='LD_RUN_PATH'
9327 hardcode_shlibpath_var=no
9328 ;;
9329
9330 sysv4.3*)
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_shlibpath_var=no
9333 export_dynamic_flag_spec='-Bexport'
9334 ;;
9335
9336 sysv4*MP*)
9337 if test -d /usr/nec; then
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_shlibpath_var=no
9340 runpath_var=LD_RUN_PATH
9341 hardcode_runpath_var=yes
9342 ld_shlibs=yes
9343 fi
9344 ;;
9345
9346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9347 no_undefined_flag='${wl}-z,text'
9348 archive_cmds_need_lc=no
9349 hardcode_shlibpath_var=no
9350 runpath_var='LD_RUN_PATH'
9351
9352 if test "$GCC" = yes; then
9353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 else
9356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358 fi
9359 ;;
9360
9361 sysv5* | sco3.2v5* | sco5v6*)
9362 # Note: We can NOT use -z defs as we might desire, because we do not
9363 # link with -lc, and that would cause any symbols used from libc to
9364 # always be unresolved, which means just about no library would
9365 # ever link correctly. If we're not using GNU ld we use -z text
9366 # though, which does catch some bad symbols but isn't as heavy-handed
9367 # as -z defs.
9368 no_undefined_flag='${wl}-z,text'
9369 allow_undefined_flag='${wl}-z,nodefs'
9370 archive_cmds_need_lc=no
9371 hardcode_shlibpath_var=no
9372 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9373 hardcode_libdir_separator=':'
9374 link_all_deplibs=yes
9375 export_dynamic_flag_spec='${wl}-Bexport'
9376 runpath_var='LD_RUN_PATH'
9377
9378 if test "$GCC" = yes; then
9379 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 else
9382 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 fi
9385 ;;
9386
9387 uts4*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 *)
9394 ld_shlibs=no
9395 ;;
9396 esac
9397
9398 if test x$host_vendor = xsni; then
9399 case $host in
9400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9401 export_dynamic_flag_spec='${wl}-Blargedynsym'
9402 ;;
9403 esac
9404 fi
9405 fi
9406
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9408 $as_echo "$ld_shlibs" >&6; }
9409 test "$ld_shlibs" = no && can_build_shared=no
9410
9411 with_gnu_ld=$with_gnu_ld
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 #
9428 # Do we need to explicitly link libc?
9429 #
9430 case "x$archive_cmds_need_lc" in
9431 x|xyes)
9432 # Assume -lc should be added
9433 archive_cmds_need_lc=yes
9434
9435 if test "$enable_shared" = yes && test "$GCC" = yes; then
9436 case $archive_cmds in
9437 *'~'*)
9438 # FIXME: we may have to deal with multi-command sequences.
9439 ;;
9440 '$CC '*)
9441 # Test whether the compiler implicitly links with -lc since on some
9442 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9443 # to ld, don't add -lc before -lgcc.
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9445 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9446 $RM conftest*
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448
9449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9450 (eval $ac_compile) 2>&5
9451 ac_status=$?
9452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9453 test $ac_status = 0; } 2>conftest.err; then
9454 soname=conftest
9455 lib=conftest
9456 libobjs=conftest.$ac_objext
9457 deplibs=
9458 wl=$lt_prog_compiler_wl
9459 pic_flag=$lt_prog_compiler_pic
9460 compiler_flags=-v
9461 linker_flags=-v
9462 verstring=
9463 output_objdir=.
9464 libname=conftest
9465 lt_save_allow_undefined_flag=$allow_undefined_flag
9466 allow_undefined_flag=
9467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9469 ac_status=$?
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; }
9472 then
9473 archive_cmds_need_lc=no
9474 else
9475 archive_cmds_need_lc=yes
9476 fi
9477 allow_undefined_flag=$lt_save_allow_undefined_flag
9478 else
9479 cat conftest.err 1>&5
9480 fi
9481 $RM conftest*
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9483 $as_echo "$archive_cmds_need_lc" >&6; }
9484 ;;
9485 esac
9486 fi
9487 ;;
9488 esac
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9648
9649 if test "$GCC" = yes; then
9650 case $host_os in
9651 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9652 *) lt_awk_arg="/^libraries:/" ;;
9653 esac
9654 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9655 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9656 # if the path contains ";" then we assume it to be the separator
9657 # otherwise default to the standard path separator (i.e. ":") - it is
9658 # assumed that no part of a normal pathname contains ";" but that should
9659 # okay in the real world where ";" in dirpaths is itself problematic.
9660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9661 else
9662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9663 fi
9664 # Ok, now we have the path, separated by spaces, we can step through it
9665 # and add multilib dir if necessary.
9666 lt_tmp_lt_search_path_spec=
9667 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9668 for lt_sys_path in $lt_search_path_spec; do
9669 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9670 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9671 else
9672 test -d "$lt_sys_path" && \
9673 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9674 fi
9675 done
9676 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9677 BEGIN {RS=" "; FS="/|\n";} {
9678 lt_foo="";
9679 lt_count=0;
9680 for (lt_i = NF; lt_i > 0; lt_i--) {
9681 if ($lt_i != "" && $lt_i != ".") {
9682 if ($lt_i == "..") {
9683 lt_count++;
9684 } else {
9685 if (lt_count == 0) {
9686 lt_foo="/" $lt_i lt_foo;
9687 } else {
9688 lt_count--;
9689 }
9690 }
9691 }
9692 }
9693 if (lt_foo != "") { lt_freq[lt_foo]++; }
9694 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9695 }'`
9696 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9697 else
9698 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9699 fi
9700 library_names_spec=
9701 libname_spec='lib$name'
9702 soname_spec=
9703 shrext_cmds=".so"
9704 postinstall_cmds=
9705 postuninstall_cmds=
9706 finish_cmds=
9707 finish_eval=
9708 shlibpath_var=
9709 shlibpath_overrides_runpath=unknown
9710 version_type=none
9711 dynamic_linker="$host_os ld.so"
9712 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9713 need_lib_prefix=unknown
9714 hardcode_into_libs=no
9715
9716 # when you set need_version to no, make sure it does not cause -set_version
9717 # flags to be left without arguments
9718 need_version=unknown
9719
9720 case $host_os in
9721 aix3*)
9722 version_type=linux
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9724 shlibpath_var=LIBPATH
9725
9726 # AIX 3 has no versioning support, so we append a major version to the name.
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 ;;
9729
9730 aix[4-9]*)
9731 version_type=linux
9732 need_lib_prefix=no
9733 need_version=no
9734 hardcode_into_libs=yes
9735 if test "$host_cpu" = ia64; then
9736 # AIX 5 supports IA64
9737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 else
9740 # With GCC up to 2.95.x, collect2 would create an import file
9741 # for dependence libraries. The import file would start with
9742 # the line `#! .'. This would cause the generated library to
9743 # depend on `.', always an invalid library. This was fixed in
9744 # development snapshots of GCC prior to 3.0.
9745 case $host_os in
9746 aix4 | aix4.[01] | aix4.[01].*)
9747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9748 echo ' yes '
9749 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9750 :
9751 else
9752 can_build_shared=no
9753 fi
9754 ;;
9755 esac
9756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9757 # soname into executable. Probably we can add versioning support to
9758 # collect2, so additional links can be useful in future.
9759 if test "$aix_use_runtimelinking" = yes; then
9760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9761 # instead of lib<name>.a to let people know that these are not
9762 # typical AIX shared libraries.
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 else
9765 # We preserve .a as extension for shared libraries through AIX4.2
9766 # and later when we are not doing run time linking.
9767 library_names_spec='${libname}${release}.a $libname.a'
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 fi
9770 shlibpath_var=LIBPATH
9771 fi
9772 ;;
9773
9774 amigaos*)
9775 case $host_cpu in
9776 powerpc)
9777 # Since July 2007 AmigaOS4 officially supports .so libraries.
9778 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 ;;
9781 m68k)
9782 library_names_spec='$libname.ixlibrary $libname.a'
9783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9784 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9785 ;;
9786 esac
9787 ;;
9788
9789 beos*)
9790 library_names_spec='${libname}${shared_ext}'
9791 dynamic_linker="$host_os ld.so"
9792 shlibpath_var=LIBRARY_PATH
9793 ;;
9794
9795 bsdi[45]*)
9796 version_type=linux
9797 need_version=no
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9804 # the default ld.so.conf also contains /usr/contrib/lib and
9805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9806 # libtool to hard-code these into programs
9807 ;;
9808
9809 cygwin* | mingw* | pw32* | cegcc*)
9810 version_type=windows
9811 shrext_cmds=".dll"
9812 need_version=no
9813 need_lib_prefix=no
9814
9815 case $GCC,$host_os in
9816 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9817 library_names_spec='$libname.dll.a'
9818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9819 postinstall_cmds='base_file=`basename \${file}`~
9820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9821 dldir=$destdir/`dirname \$dlpath`~
9822 test -d \$dldir || mkdir -p \$dldir~
9823 $install_prog $dir/$dlname \$dldir/$dlname~
9824 chmod a+x \$dldir/$dlname~
9825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9827 fi'
9828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829 dlpath=$dir/\$dldll~
9830 $RM \$dlpath'
9831 shlibpath_overrides_runpath=yes
9832
9833 case $host_os in
9834 cygwin*)
9835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9838 ;;
9839 mingw* | cegcc*)
9840 # MinGW DLLs use traditional 'lib' prefix
9841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9844 # It is most probably a Windows format PATH printed by
9845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846 # path with ; separators, and with drive letters. We can handle the
9847 # drive letters (cygwin fileutils understands them), so leave them,
9848 # especially as we might pass files found there to a mingw objdump,
9849 # which wouldn't understand a cygwinified path. Ahh.
9850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851 else
9852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9853 fi
9854 ;;
9855 pw32*)
9856 # pw32 DLLs use 'pw' prefix rather than 'lib'
9857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858 ;;
9859 esac
9860 ;;
9861
9862 *)
9863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9864 ;;
9865 esac
9866 dynamic_linker='Win32 ld.exe'
9867 # FIXME: first we should search . and the directory the executable is in
9868 shlibpath_var=PATH
9869 ;;
9870
9871 darwin* | rhapsody*)
9872 dynamic_linker="$host_os dyld"
9873 version_type=darwin
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877 soname_spec='${libname}${release}${major}$shared_ext'
9878 shlibpath_overrides_runpath=yes
9879 shlibpath_var=DYLD_LIBRARY_PATH
9880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9881
9882 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9884 ;;
9885
9886 dgux*)
9887 version_type=linux
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 ;;
9894
9895 freebsd1*)
9896 dynamic_linker=no
9897 ;;
9898
9899 freebsd* | dragonfly*)
9900 # DragonFly does not have aout. When/if they implement a new
9901 # versioning mechanism, adjust this.
9902 if test -x /usr/bin/objformat; then
9903 objformat=`/usr/bin/objformat`
9904 else
9905 case $host_os in
9906 freebsd[123]*) objformat=aout ;;
9907 *) objformat=elf ;;
9908 esac
9909 fi
9910 version_type=freebsd-$objformat
9911 case $version_type in
9912 freebsd-elf*)
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 need_version=no
9915 need_lib_prefix=no
9916 ;;
9917 freebsd-*)
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9919 need_version=yes
9920 ;;
9921 esac
9922 shlibpath_var=LD_LIBRARY_PATH
9923 case $host_os in
9924 freebsd2*)
9925 shlibpath_overrides_runpath=yes
9926 ;;
9927 freebsd3.[01]* | freebsdelf3.[01]*)
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 ;;
9931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9933 shlibpath_overrides_runpath=no
9934 hardcode_into_libs=yes
9935 ;;
9936 *) # from 4.6 on, and DragonFly
9937 shlibpath_overrides_runpath=yes
9938 hardcode_into_libs=yes
9939 ;;
9940 esac
9941 ;;
9942
9943 gnu*)
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 hardcode_into_libs=yes
9951 ;;
9952
9953 hpux9* | hpux10* | hpux11*)
9954 # Give a soname corresponding to the major version so that dld.sl refuses to
9955 # link against other versions.
9956 version_type=sunos
9957 need_lib_prefix=no
9958 need_version=no
9959 case $host_cpu in
9960 ia64*)
9961 shrext_cmds='.so'
9962 hardcode_into_libs=yes
9963 dynamic_linker="$host_os dld.so"
9964 shlibpath_var=LD_LIBRARY_PATH
9965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 if test "X$HPUX_IA64_MODE" = X32; then
9969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9970 else
9971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9972 fi
9973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9974 ;;
9975 hppa*64*)
9976 shrext_cmds='.sl'
9977 hardcode_into_libs=yes
9978 dynamic_linker="$host_os dld.sl"
9979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9985 ;;
9986 *)
9987 shrext_cmds='.sl'
9988 dynamic_linker="$host_os dld.sl"
9989 shlibpath_var=SHLIB_PATH
9990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 ;;
9994 esac
9995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9996 postinstall_cmds='chmod 555 $lib'
9997 ;;
9998
9999 interix[3-9]*)
10000 version_type=linux
10001 need_lib_prefix=no
10002 need_version=no
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 shlibpath_overrides_runpath=no
10008 hardcode_into_libs=yes
10009 ;;
10010
10011 irix5* | irix6* | nonstopux*)
10012 case $host_os in
10013 nonstopux*) version_type=nonstopux ;;
10014 *)
10015 if test "$lt_cv_prog_gnu_ld" = yes; then
10016 version_type=linux
10017 else
10018 version_type=irix
10019 fi ;;
10020 esac
10021 need_lib_prefix=no
10022 need_version=no
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10025 case $host_os in
10026 irix5* | nonstopux*)
10027 libsuff= shlibsuff=
10028 ;;
10029 *)
10030 case $LD in # libtool.m4 will add one of these switches to LD
10031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10032 libsuff= shlibsuff= libmagic=32-bit;;
10033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10034 libsuff=32 shlibsuff=N32 libmagic=N32;;
10035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10037 *) libsuff= shlibsuff= libmagic=never-match;;
10038 esac
10039 ;;
10040 esac
10041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10042 shlibpath_overrides_runpath=no
10043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10045 hardcode_into_libs=yes
10046 ;;
10047
10048 # No shared lib support for Linux oldld, aout, or coff.
10049 linux*oldld* | linux*aout* | linux*coff*)
10050 dynamic_linker=no
10051 ;;
10052
10053 # This must be Linux ELF.
10054 linux* | k*bsd*-gnu)
10055 version_type=linux
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10061 shlibpath_var=LD_LIBRARY_PATH
10062 shlibpath_overrides_runpath=no
10063 # Some binutils ld are patched to set DT_RUNPATH
10064 save_LDFLAGS=$LDFLAGS
10065 save_libdir=$libdir
10066 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10067 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070
10071 int
10072 main ()
10073 {
10074
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10081 shlibpath_overrides_runpath=yes
10082 fi
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LDFLAGS=$save_LDFLAGS
10087 libdir=$save_libdir
10088
10089 # This implies no fast_install, which is unacceptable.
10090 # Some rework will be needed to allow for fast_install
10091 # before this can be enabled.
10092 hardcode_into_libs=yes
10093
10094 # find out which ABI we are using
10095 libsuff=
10096 case "$host_cpu" in
10097 x86_64*|s390x*|powerpc64*)
10098 echo '#line 10098 "configure"' > conftest.$ac_ext
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10100 (eval $ac_compile) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }; then
10104 case `/usr/bin/file conftest.$ac_objext` in
10105 *64-bit*)
10106 libsuff=64
10107 ;;
10108 esac
10109 fi
10110 rm -rf conftest*
10111 ;;
10112 esac
10113
10114 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10115
10116 # Append ld.so.conf contents to the search path
10117 if test -f /etc/ld.so.conf; then
10118 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10119 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10120 fi
10121
10122 # We used to test for /lib/ld.so.1 and disable shared libraries on
10123 # powerpc, because MkLinux only supported shared libraries with the
10124 # GNU dynamic linker. Since this was broken with cross compilers,
10125 # most powerpc-linux boxes support dynamic linking these days and
10126 # people can always --disable-shared, the test was removed, and we
10127 # assume the GNU/Linux dynamic linker is in use.
10128 dynamic_linker='GNU/Linux ld.so'
10129 ;;
10130
10131 netbsd*)
10132 version_type=sunos
10133 need_lib_prefix=no
10134 need_version=no
10135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10138 dynamic_linker='NetBSD (a.out) ld.so'
10139 else
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 dynamic_linker='NetBSD ld.elf_so'
10143 fi
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes
10146 hardcode_into_libs=yes
10147 ;;
10148
10149 newsos6)
10150 version_type=linux
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 ;;
10155
10156 *nto* | *qnx*)
10157 version_type=qnx
10158 need_lib_prefix=no
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath=no
10164 hardcode_into_libs=yes
10165 dynamic_linker='ldqnx.so'
10166 ;;
10167
10168 openbsd*)
10169 version_type=sunos
10170 sys_lib_dlsearch_path_spec="/usr/lib"
10171 need_lib_prefix=no
10172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10173 case $host_os in
10174 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10175 *) need_version=no ;;
10176 esac
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181 case $host_os in
10182 openbsd2.[89] | openbsd2.[89].*)
10183 shlibpath_overrides_runpath=no
10184 ;;
10185 *)
10186 shlibpath_overrides_runpath=yes
10187 ;;
10188 esac
10189 else
10190 shlibpath_overrides_runpath=yes
10191 fi
10192 ;;
10193
10194 os2*)
10195 libname_spec='$name'
10196 shrext_cmds=".dll"
10197 need_lib_prefix=no
10198 library_names_spec='$libname${shared_ext} $libname.a'
10199 dynamic_linker='OS/2 ld.exe'
10200 shlibpath_var=LIBPATH
10201 ;;
10202
10203 osf3* | osf4* | osf5*)
10204 version_type=osf
10205 need_lib_prefix=no
10206 need_version=no
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10212 ;;
10213
10214 rdos*)
10215 dynamic_linker=no
10216 ;;
10217
10218 solaris*)
10219 version_type=linux
10220 need_lib_prefix=no
10221 need_version=no
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes
10226 hardcode_into_libs=yes
10227 # ldd complains unless libraries are executable
10228 postinstall_cmds='chmod +x $lib'
10229 ;;
10230
10231 sunos4*)
10232 version_type=sunos
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 if test "$with_gnu_ld" = yes; then
10238 need_lib_prefix=no
10239 fi
10240 need_version=yes
10241 ;;
10242
10243 sysv4 | sysv4.3*)
10244 version_type=linux
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 case $host_vendor in
10249 sni)
10250 shlibpath_overrides_runpath=no
10251 need_lib_prefix=no
10252 runpath_var=LD_RUN_PATH
10253 ;;
10254 siemens)
10255 need_lib_prefix=no
10256 ;;
10257 motorola)
10258 need_lib_prefix=no
10259 need_version=no
10260 shlibpath_overrides_runpath=no
10261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10262 ;;
10263 esac
10264 ;;
10265
10266 sysv4*MP*)
10267 if test -d /usr/nec ;then
10268 version_type=linux
10269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10270 soname_spec='$libname${shared_ext}.$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 fi
10273 ;;
10274
10275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10276 version_type=freebsd-elf
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10284 if test "$with_gnu_ld" = yes; then
10285 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10286 else
10287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10288 case $host_os in
10289 sco3.2v5*)
10290 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10291 ;;
10292 esac
10293 fi
10294 sys_lib_dlsearch_path_spec='/usr/lib'
10295 ;;
10296
10297 tpf*)
10298 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10299 version_type=linux
10300 need_lib_prefix=no
10301 need_version=no
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=no
10305 hardcode_into_libs=yes
10306 ;;
10307
10308 uts4*)
10309 version_type=linux
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 ;;
10314
10315 *)
10316 dynamic_linker=no
10317 ;;
10318 esac
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10320 $as_echo "$dynamic_linker" >&6; }
10321 test "$dynamic_linker" = no && can_build_shared=no
10322
10323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10324 if test "$GCC" = yes; then
10325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10326 fi
10327
10328 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10329 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10330 fi
10331 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10332 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10333 fi
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10423 hardcode_action=
10424 if test -n "$hardcode_libdir_flag_spec" ||
10425 test -n "$runpath_var" ||
10426 test "X$hardcode_automatic" = "Xyes" ; then
10427
10428 # We can hardcode non-existent directories.
10429 if test "$hardcode_direct" != no &&
10430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10431 # have to relink, otherwise we might link with an installed library
10432 # when we should be linking with a yet-to-be-installed one
10433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10434 test "$hardcode_minus_L" != no; then
10435 # Linking always hardcodes the temporary library directory.
10436 hardcode_action=relink
10437 else
10438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10439 hardcode_action=immediate
10440 fi
10441 else
10442 # We cannot hardcode anything, or else we can only hardcode existing
10443 # directories.
10444 hardcode_action=unsupported
10445 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10447 $as_echo "$hardcode_action" >&6; }
10448
10449 if test "$hardcode_action" = relink ||
10450 test "$inherit_rpath" = yes; then
10451 # Fast installation is not supported
10452 enable_fast_install=no
10453 elif test "$shlibpath_overrides_runpath" = yes ||
10454 test "$enable_shared" = no; then
10455 # Fast installation is not necessary
10456 enable_fast_install=needless
10457 fi
10458
10459
10460
10461
10462
10463
10464 if test "x$enable_dlopen" != xyes; then
10465 enable_dlopen=unknown
10466 enable_dlopen_self=unknown
10467 enable_dlopen_self_static=unknown
10468 else
10469 lt_cv_dlopen=no
10470 lt_cv_dlopen_libs=
10471
10472 case $host_os in
10473 beos*)
10474 lt_cv_dlopen="load_add_on"
10475 lt_cv_dlopen_libs=
10476 lt_cv_dlopen_self=yes
10477 ;;
10478
10479 mingw* | pw32* | cegcc*)
10480 lt_cv_dlopen="LoadLibrary"
10481 lt_cv_dlopen_libs=
10482 ;;
10483
10484 cygwin*)
10485 lt_cv_dlopen="dlopen"
10486 lt_cv_dlopen_libs=
10487 ;;
10488
10489 darwin*)
10490 # if libdl is installed we need to link against it
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10493 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 ac_check_lib_save_LIBS=$LIBS
10497 LIBS="-ldl $LIBS"
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10504 #ifdef __cplusplus
10505 extern "C"
10506 #endif
10507 char dlopen ();
10508 int
10509 main ()
10510 {
10511 return dlopen ();
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_link "$LINENO"; then :
10517 ac_cv_lib_dl_dlopen=yes
10518 else
10519 ac_cv_lib_dl_dlopen=no
10520 fi
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10527 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10529 else
10530
10531 lt_cv_dlopen="dyld"
10532 lt_cv_dlopen_libs=
10533 lt_cv_dlopen_self=yes
10534
10535 fi
10536
10537 ;;
10538
10539 *)
10540 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10541 if test "x$ac_cv_func_shl_load" = x""yes; then :
10542 lt_cv_dlopen="shl_load"
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10546 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-ldld $LIBS"
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char shl_load ();
10561 int
10562 main ()
10563 {
10564 return shl_load ();
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 ac_cv_lib_dld_shl_load=yes
10571 else
10572 ac_cv_lib_dld_shl_load=no
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10580 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10582 else
10583 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10584 if test "x$ac_cv_func_dlopen" = x""yes; then :
10585 lt_cv_dlopen="dlopen"
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-ldl $LIBS"
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char dlopen ();
10604 int
10605 main ()
10606 {
10607 return dlopen ();
10608 ;
10609 return 0;
10610 }
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"; then :
10613 ac_cv_lib_dl_dlopen=yes
10614 else
10615 ac_cv_lib_dl_dlopen=no
10616 fi
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10627 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10628 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-lsvld $LIBS"
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 char dlopen ();
10643 int
10644 main ()
10645 {
10646 return dlopen ();
10647 ;
10648 return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_svld_dlopen=yes
10653 else
10654 ac_cv_lib_svld_dlopen=no
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10661 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10662 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10666 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char dld_link ();
10682 int
10683 main ()
10684 {
10685 return dld_link ();
10686 ;
10687 return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dld_dld_link=yes
10692 else
10693 ac_cv_lib_dld_dld_link=no
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10700 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10701 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10702 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10703 fi
10704
10705
10706 fi
10707
10708
10709 fi
10710
10711
10712 fi
10713
10714
10715 fi
10716
10717
10718 fi
10719
10720 ;;
10721 esac
10722
10723 if test "x$lt_cv_dlopen" != xno; then
10724 enable_dlopen=yes
10725 else
10726 enable_dlopen=no
10727 fi
10728
10729 case $lt_cv_dlopen in
10730 dlopen)
10731 save_CPPFLAGS="$CPPFLAGS"
10732 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10733
10734 save_LDFLAGS="$LDFLAGS"
10735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10736
10737 save_LIBS="$LIBS"
10738 LIBS="$lt_cv_dlopen_libs $LIBS"
10739
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10741 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10742 if test "${lt_cv_dlopen_self+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 if test "$cross_compiling" = yes; then :
10746 lt_cv_dlopen_self=cross
10747 else
10748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10749 lt_status=$lt_dlunknown
10750 cat > conftest.$ac_ext <<_LT_EOF
10751 #line 10751 "configure"
10752 #include "confdefs.h"
10753
10754 #if HAVE_DLFCN_H
10755 #include <dlfcn.h>
10756 #endif
10757
10758 #include <stdio.h>
10759
10760 #ifdef RTLD_GLOBAL
10761 # define LT_DLGLOBAL RTLD_GLOBAL
10762 #else
10763 # ifdef DL_GLOBAL
10764 # define LT_DLGLOBAL DL_GLOBAL
10765 # else
10766 # define LT_DLGLOBAL 0
10767 # endif
10768 #endif
10769
10770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10771 find out it does not work in some platform. */
10772 #ifndef LT_DLLAZY_OR_NOW
10773 # ifdef RTLD_LAZY
10774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10775 # else
10776 # ifdef DL_LAZY
10777 # define LT_DLLAZY_OR_NOW DL_LAZY
10778 # else
10779 # ifdef RTLD_NOW
10780 # define LT_DLLAZY_OR_NOW RTLD_NOW
10781 # else
10782 # ifdef DL_NOW
10783 # define LT_DLLAZY_OR_NOW DL_NOW
10784 # else
10785 # define LT_DLLAZY_OR_NOW 0
10786 # endif
10787 # endif
10788 # endif
10789 # endif
10790 #endif
10791
10792 void fnord() { int i=42;}
10793 int main ()
10794 {
10795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10796 int status = $lt_dlunknown;
10797
10798 if (self)
10799 {
10800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10801 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10802 /* dlclose (self); */
10803 }
10804 else
10805 puts (dlerror ());
10806
10807 return status;
10808 }
10809 _LT_EOF
10810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10811 (eval $ac_link) 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10815 (./conftest; exit; ) >&5 2>/dev/null
10816 lt_status=$?
10817 case x$lt_status in
10818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10821 esac
10822 else :
10823 # compilation failed
10824 lt_cv_dlopen_self=no
10825 fi
10826 fi
10827 rm -fr conftest*
10828
10829
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10832 $as_echo "$lt_cv_dlopen_self" >&6; }
10833
10834 if test "x$lt_cv_dlopen_self" = xyes; then
10835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10838 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if test "$cross_compiling" = yes; then :
10842 lt_cv_dlopen_self_static=cross
10843 else
10844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10845 lt_status=$lt_dlunknown
10846 cat > conftest.$ac_ext <<_LT_EOF
10847 #line 10847 "configure"
10848 #include "confdefs.h"
10849
10850 #if HAVE_DLFCN_H
10851 #include <dlfcn.h>
10852 #endif
10853
10854 #include <stdio.h>
10855
10856 #ifdef RTLD_GLOBAL
10857 # define LT_DLGLOBAL RTLD_GLOBAL
10858 #else
10859 # ifdef DL_GLOBAL
10860 # define LT_DLGLOBAL DL_GLOBAL
10861 # else
10862 # define LT_DLGLOBAL 0
10863 # endif
10864 #endif
10865
10866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10867 find out it does not work in some platform. */
10868 #ifndef LT_DLLAZY_OR_NOW
10869 # ifdef RTLD_LAZY
10870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10871 # else
10872 # ifdef DL_LAZY
10873 # define LT_DLLAZY_OR_NOW DL_LAZY
10874 # else
10875 # ifdef RTLD_NOW
10876 # define LT_DLLAZY_OR_NOW RTLD_NOW
10877 # else
10878 # ifdef DL_NOW
10879 # define LT_DLLAZY_OR_NOW DL_NOW
10880 # else
10881 # define LT_DLLAZY_OR_NOW 0
10882 # endif
10883 # endif
10884 # endif
10885 # endif
10886 #endif
10887
10888 void fnord() { int i=42;}
10889 int main ()
10890 {
10891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10892 int status = $lt_dlunknown;
10893
10894 if (self)
10895 {
10896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10898 /* dlclose (self); */
10899 }
10900 else
10901 puts (dlerror ());
10902
10903 return status;
10904 }
10905 _LT_EOF
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10907 (eval $ac_link) 2>&5
10908 ac_status=$?
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10911 (./conftest; exit; ) >&5 2>/dev/null
10912 lt_status=$?
10913 case x$lt_status in
10914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10916 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10917 esac
10918 else :
10919 # compilation failed
10920 lt_cv_dlopen_self_static=no
10921 fi
10922 fi
10923 rm -fr conftest*
10924
10925
10926 fi
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10928 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10929 fi
10930
10931 CPPFLAGS="$save_CPPFLAGS"
10932 LDFLAGS="$save_LDFLAGS"
10933 LIBS="$save_LIBS"
10934 ;;
10935 esac
10936
10937 case $lt_cv_dlopen_self in
10938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10939 *) enable_dlopen_self=unknown ;;
10940 esac
10941
10942 case $lt_cv_dlopen_self_static in
10943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10944 *) enable_dlopen_self_static=unknown ;;
10945 esac
10946 fi
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964 striplib=
10965 old_striplib=
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10967 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10968 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972 $as_echo "yes" >&6; }
10973 else
10974 # FIXME - insert some real tests, host_os isn't really good enough
10975 case $host_os in
10976 darwin*)
10977 if test -n "$STRIP" ; then
10978 striplib="$STRIP -x"
10979 old_striplib="$STRIP -S"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 $as_echo "yes" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10985 fi
10986 ;;
10987 *)
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 ;;
10991 esac
10992 fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005 # Report which library types will actually be built
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11007 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11009 $as_echo "$can_build_shared" >&6; }
11010
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11012 $as_echo_n "checking whether to build shared libraries... " >&6; }
11013 test "$can_build_shared" = "no" && enable_shared=no
11014
11015 # On AIX, shared libraries and static libraries use the same namespace, and
11016 # are all built from PIC.
11017 case $host_os in
11018 aix3*)
11019 test "$enable_shared" = yes && enable_static=no
11020 if test -n "$RANLIB"; then
11021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11022 postinstall_cmds='$RANLIB $lib'
11023 fi
11024 ;;
11025
11026 aix[4-9]*)
11027 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11028 test "$enable_shared" = yes && enable_static=no
11029 fi
11030 ;;
11031 esac
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11033 $as_echo "$enable_shared" >&6; }
11034
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11036 $as_echo_n "checking whether to build static libraries... " >&6; }
11037 # Make sure either enable_shared or enable_static is yes.
11038 test "$enable_shared" = yes || enable_static=yes
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11040 $as_echo "$enable_static" >&6; }
11041
11042
11043
11044
11045 fi
11046 ac_ext=c
11047 ac_cpp='$CPP $CPPFLAGS'
11048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11051
11052 CC="$lt_save_CC"
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066 ac_config_commands="$ac_config_commands libtool"
11067
11068
11069
11070
11071 # Only expand once:
11072
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11075 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11076 if test "${libltdl_cv_shlibext+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079
11080 module=yes
11081 eval libltdl_cv_shlibext=$shrext_cmds
11082
11083 fi
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11085 $as_echo "$libltdl_cv_shlibext" >&6; }
11086 if test -n "$libltdl_cv_shlibext"; then
11087
11088 cat >>confdefs.h <<_ACEOF
11089 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11090 _ACEOF
11091
11092 fi
11093
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11095 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11096 if test "${lt_cv_module_path_var+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 lt_cv_module_path_var="$shlibpath_var"
11100 fi
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11102 $as_echo "$lt_cv_module_path_var" >&6; }
11103 if test -n "$lt_cv_module_path_var"; then
11104
11105 cat >>confdefs.h <<_ACEOF
11106 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11107 _ACEOF
11108
11109 fi
11110
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11112 $as_echo_n "checking for the default library search path... " >&6; }
11113 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11119 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11120 if test -n "$lt_cv_sys_dlsearch_path"; then
11121 sys_dlsearch_path=
11122 for dir in $lt_cv_sys_dlsearch_path; do
11123 if test -z "$sys_dlsearch_path"; then
11124 sys_dlsearch_path="$dir"
11125 else
11126 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11127 fi
11128 done
11129
11130 cat >>confdefs.h <<_ACEOF
11131 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11132 _ACEOF
11133
11134 fi
11135
11136
11137 LT_DLLOADERS=
11138
11139
11140 ac_ext=c
11141 ac_cpp='$CPP $CPPFLAGS'
11142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145
11146
11147 LIBADD_DLOPEN=
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11149 $as_echo_n "checking for library containing dlopen... " >&6; }
11150 if test "${ac_cv_search_dlopen+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 ac_func_search_save_LIBS=$LIBS
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char dlopen ();
11164 int
11165 main ()
11166 {
11167 return dlopen ();
11168 ;
11169 return 0;
11170 }
11171 _ACEOF
11172 for ac_lib in '' dl; do
11173 if test -z "$ac_lib"; then
11174 ac_res="none required"
11175 else
11176 ac_res=-l$ac_lib
11177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11178 fi
11179 if ac_fn_c_try_link "$LINENO"; then :
11180 ac_cv_search_dlopen=$ac_res
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext
11184 if test "${ac_cv_search_dlopen+set}" = set; then :
11185 break
11186 fi
11187 done
11188 if test "${ac_cv_search_dlopen+set}" = set; then :
11189
11190 else
11191 ac_cv_search_dlopen=no
11192 fi
11193 rm conftest.$ac_ext
11194 LIBS=$ac_func_search_save_LIBS
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11197 $as_echo "$ac_cv_search_dlopen" >&6; }
11198 ac_res=$ac_cv_search_dlopen
11199 if test "$ac_res" != no; then :
11200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11201
11202 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11203
11204 if test "$ac_cv_search_dlopen" != "none required" ; then
11205 LIBADD_DLOPEN="-ldl"
11206 fi
11207 libltdl_cv_lib_dl_dlopen="yes"
11208 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11209 else
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11212 #if HAVE_DLFCN_H
11213 # include <dlfcn.h>
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219 dlopen(0, 0);
11220 ;
11221 return 0;
11222 }
11223 _ACEOF
11224 if ac_fn_c_try_link "$LINENO"; then :
11225
11226 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11227
11228 libltdl_cv_func_dlopen="yes"
11229 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11232 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11233 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-lsvld $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char dlopen ();
11248 int
11249 main ()
11250 {
11251 return dlopen ();
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_lib_svld_dlopen=yes
11258 else
11259 ac_cv_lib_svld_dlopen=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11266 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11267 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11268
11269 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11270
11271 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11272 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11273 fi
11274
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 fi
11279
11280 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11281 then
11282 lt_save_LIBS="$LIBS"
11283 LIBS="$LIBS $LIBADD_DLOPEN"
11284 for ac_func in dlerror
11285 do :
11286 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11287 if test "x$ac_cv_func_dlerror" = x""yes; then :
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE_DLERROR 1
11290 _ACEOF
11291
11292 fi
11293 done
11294
11295 LIBS="$lt_save_LIBS"
11296 fi
11297
11298
11299 LIBADD_SHL_LOAD=
11300 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11301 if test "x$ac_cv_func_shl_load" = x""yes; then :
11302
11303 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11304
11305 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11308 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-ldld $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char shl_load ();
11324 int
11325 main ()
11326 {
11327 return shl_load ();
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_dld_shl_load=yes
11334 else
11335 ac_cv_lib_dld_shl_load=no
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11342 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11343 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11344
11345 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11346
11347 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11348 LIBADD_SHL_LOAD="-ldld"
11349 fi
11350
11351 fi
11352
11353
11354
11355 case $host_os in
11356 darwin[1567].*)
11357 # We only want this for pre-Mac OS X 10.4.
11358 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11359 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11360
11361 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11362
11363 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11364 fi
11365
11366 ;;
11367 beos*)
11368 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11369 ;;
11370 cygwin* | mingw* | os2* | pw32*)
11371 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11372 "
11373 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11374 ac_have_decl=1
11375 else
11376 ac_have_decl=0
11377 fi
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11381 _ACEOF
11382
11383 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11384 ;;
11385 esac
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11388 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_check_lib_save_LIBS=$LIBS
11393 LIBS="-ldld $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 dld_link ();
11404 int
11405 main ()
11406 {
11407 return dld_link ();
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_lib_dld_dld_link=yes
11414 else
11415 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
11422 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11423 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11424
11425 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11426
11427 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11428 fi
11429
11430
11431
11432
11433 LT_DLPREOPEN=
11434 if test -n "$LT_DLLOADERS"
11435 then
11436 for lt_loader in $LT_DLLOADERS; do
11437 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11438 done
11439
11440 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11441
11442 fi
11443
11444
11445 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11446
11447
11448 ac_ext=c
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11456 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11457 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 lt_cv_sys_symbol_underscore=no
11461 cat > conftest.$ac_ext <<_LT_EOF
11462 void nm_test_func(){}
11463 int main(){nm_test_func;return 0;}
11464 _LT_EOF
11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11466 (eval $ac_compile) 2>&5
11467 ac_status=$?
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; }; then
11470 # Now try to grab the symbols.
11471 ac_nlist=conftest.nm
11472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11473 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11474 ac_status=$?
11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476 test $ac_status = 0; } && test -s "$ac_nlist"; then
11477 # See whether the symbols have a leading underscore.
11478 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11479 lt_cv_sys_symbol_underscore=yes
11480 else
11481 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11482 :
11483 else
11484 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11485 fi
11486 fi
11487 else
11488 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11489 fi
11490 else
11491 echo "configure: failed program was:" >&5
11492 cat conftest.c >&5
11493 fi
11494 rm -rf conftest*
11495
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11498 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11499 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11500
11501
11502 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11503 if test x"$libltdl_cv_func_dlopen" = xyes ||
11504 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11506 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11507 if test "${libltdl_cv_need_uscore+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 libltdl_cv_need_uscore=unknown
11511 save_LIBS="$LIBS"
11512 LIBS="$LIBS $LIBADD_DLOPEN"
11513 if test "$cross_compiling" = yes; then :
11514 libltdl_cv_need_uscore=cross
11515 else
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 lt_status=$lt_dlunknown
11518 cat > conftest.$ac_ext <<_LT_EOF
11519 #line 11519 "configure"
11520 #include "confdefs.h"
11521
11522 #if HAVE_DLFCN_H
11523 #include <dlfcn.h>
11524 #endif
11525
11526 #include <stdio.h>
11527
11528 #ifdef RTLD_GLOBAL
11529 # define LT_DLGLOBAL RTLD_GLOBAL
11530 #else
11531 # ifdef DL_GLOBAL
11532 # define LT_DLGLOBAL DL_GLOBAL
11533 # else
11534 # define LT_DLGLOBAL 0
11535 # endif
11536 #endif
11537
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540 #ifndef LT_DLLAZY_OR_NOW
11541 # ifdef RTLD_LAZY
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11543 # else
11544 # ifdef DL_LAZY
11545 # define LT_DLLAZY_OR_NOW DL_LAZY
11546 # else
11547 # ifdef RTLD_NOW
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
11549 # else
11550 # ifdef DL_NOW
11551 # define LT_DLLAZY_OR_NOW DL_NOW
11552 # else
11553 # define LT_DLLAZY_OR_NOW 0
11554 # endif
11555 # endif
11556 # endif
11557 # endif
11558 #endif
11559
11560 void fnord() { int i=42;}
11561 int main ()
11562 {
11563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11564 int status = $lt_dlunknown;
11565
11566 if (self)
11567 {
11568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 /* dlclose (self); */
11571 }
11572 else
11573 puts (dlerror ());
11574
11575 return status;
11576 }
11577 _LT_EOF
11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11579 (eval $ac_link) 2>&5
11580 ac_status=$?
11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11583 (./conftest; exit; ) >&5 2>/dev/null
11584 lt_status=$?
11585 case x$lt_status in
11586 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11587 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11588 x$lt_dlunknown|x*) ;;
11589 esac
11590 else :
11591 # compilation failed
11592
11593 fi
11594 fi
11595 rm -fr conftest*
11596
11597 LIBS="$save_LIBS"
11598
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11601 $as_echo "$libltdl_cv_need_uscore" >&6; }
11602 fi
11603 fi
11604
11605 if test x"$libltdl_cv_need_uscore" = xyes; then
11606
11607 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11608
11609 fi
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11612 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11613 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 # PORTME does your system automatically load deplibs for dlopen?
11617 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11618 # For now, we just catch OSes we know something about -- in the
11619 # future, we'll try test this programmatically.
11620 lt_cv_sys_dlopen_deplibs=unknown
11621 case $host_os in
11622 aix3*|aix4.1.*|aix4.2.*)
11623 # Unknown whether this is true for these versions of AIX, but
11624 # we want this `case' here to explicitly catch those versions.
11625 lt_cv_sys_dlopen_deplibs=unknown
11626 ;;
11627 aix[4-9]*)
11628 lt_cv_sys_dlopen_deplibs=yes
11629 ;;
11630 amigaos*)
11631 case $host_cpu in
11632 powerpc)
11633 lt_cv_sys_dlopen_deplibs=no
11634 ;;
11635 esac
11636 ;;
11637 darwin*)
11638 # Assuming the user has installed a libdl from somewhere, this is true
11639 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11640 lt_cv_sys_dlopen_deplibs=yes
11641 ;;
11642 freebsd* | dragonfly*)
11643 lt_cv_sys_dlopen_deplibs=yes
11644 ;;
11645 gnu* | linux* | k*bsd*-gnu)
11646 # GNU and its variants, using gnu ld.so (Glibc)
11647 lt_cv_sys_dlopen_deplibs=yes
11648 ;;
11649 hpux10*|hpux11*)
11650 lt_cv_sys_dlopen_deplibs=yes
11651 ;;
11652 interix*)
11653 lt_cv_sys_dlopen_deplibs=yes
11654 ;;
11655 irix[12345]*|irix6.[01]*)
11656 # Catch all versions of IRIX before 6.2, and indicate that we don't
11657 # know how it worked for any of those versions.
11658 lt_cv_sys_dlopen_deplibs=unknown
11659 ;;
11660 irix*)
11661 # The case above catches anything before 6.2, and it's known that
11662 # at 6.2 and later dlopen does load deplibs.
11663 lt_cv_sys_dlopen_deplibs=yes
11664 ;;
11665 netbsd*)
11666 lt_cv_sys_dlopen_deplibs=yes
11667 ;;
11668 openbsd*)
11669 lt_cv_sys_dlopen_deplibs=yes
11670 ;;
11671 osf[1234]*)
11672 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11673 # it did *not* use an RPATH in a shared library to find objects the
11674 # library depends on, so we explicitly say `no'.
11675 lt_cv_sys_dlopen_deplibs=no
11676 ;;
11677 osf5.0|osf5.0a|osf5.1)
11678 # dlopen *does* load deplibs and with the right loader patch applied
11679 # it even uses RPATH in a shared library to search for shared objects
11680 # that the library depends on, but there's no easy way to know if that
11681 # patch is installed. Since this is the case, all we can really
11682 # say is unknown -- it depends on the patch being installed. If
11683 # it is, this changes to `yes'. Without it, it would be `no'.
11684 lt_cv_sys_dlopen_deplibs=unknown
11685 ;;
11686 osf*)
11687 # the two cases above should catch all versions of osf <= 5.1. Read
11688 # the comments above for what we know about them.
11689 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11690 # is used to find them so we can finally say `yes'.
11691 lt_cv_sys_dlopen_deplibs=yes
11692 ;;
11693 qnx*)
11694 lt_cv_sys_dlopen_deplibs=yes
11695 ;;
11696 solaris*)
11697 lt_cv_sys_dlopen_deplibs=yes
11698 ;;
11699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11700 libltdl_cv_sys_dlopen_deplibs=yes
11701 ;;
11702 esac
11703
11704 fi
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11706 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11707 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11708
11709 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11710
11711 fi
11712
11713 :
11714
11715 for ac_header in argz.h
11716 do :
11717 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11718 "
11719 if test "x$ac_cv_header_argz_h" = x""yes; then :
11720 cat >>confdefs.h <<_ACEOF
11721 #define HAVE_ARGZ_H 1
11722 _ACEOF
11723
11724 fi
11725
11726 done
11727
11728
11729 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11730 # include <argz.h>
11731 #endif
11732 "
11733 if test "x$ac_cv_type_error_t" = x""yes; then :
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_ERROR_T 1
11737 _ACEOF
11738
11739
11740 else
11741
11742 $as_echo "#define error_t int" >>confdefs.h
11743
11744
11745 $as_echo "#define __error_t_defined 1" >>confdefs.h
11746
11747 fi
11748
11749
11750 ARGZ_H=
11751 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11752 argz_next argz_stringify
11753 do :
11754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11756 eval as_val=\$$as_ac_var
11757 if test "x$as_val" = x""yes; then :
11758 cat >>confdefs.h <<_ACEOF
11759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11760 _ACEOF
11761
11762 else
11763 ARGZ_H=argz.h;
11764
11765 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11766
11767 fi
11768 done
11769
11770
11771 if test -z "$ARGZ_H"; then :
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11773 $as_echo_n "checking if argz actually works... " >&6; }
11774 if test "${lt_cv_sys_argz_works+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $host_os in #(
11778 *cygwin*)
11779 lt_cv_sys_argz_works=no
11780 if test "$cross_compiling" != no; then
11781 lt_cv_sys_argz_works="guessing no"
11782 else
11783 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11784 save_IFS=$IFS
11785 IFS=-.
11786 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11787 IFS=$save_IFS
11788 lt_os_major=${2-0}
11789 lt_os_minor=${3-0}
11790 lt_os_micro=${4-0}
11791 if test "$lt_os_major" -gt 1 \
11792 || { test "$lt_os_major" -eq 1 \
11793 && { test "$lt_os_minor" -gt 5 \
11794 || { test "$lt_os_minor" -eq 5 \
11795 && test "$lt_os_micro" -gt 24; }; }; }; then
11796 lt_cv_sys_argz_works=yes
11797 fi
11798 fi
11799 ;; #(
11800 *) lt_cv_sys_argz_works=yes ;;
11801 esac
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11804 $as_echo "$lt_cv_sys_argz_works" >&6; }
11805 if test $lt_cv_sys_argz_works = yes; then :
11806
11807 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11808
11809 else
11810 ARGZ_H=argz.h
11811
11812
11813 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11814
11815 fi
11816 fi
11817
11818
11819
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11821 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11822 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11826 libltdl_cv_preloaded_symbols=yes
11827 else
11828 libltdl_cv_preloaded_symbols=no
11829 fi
11830
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11833 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11834 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11835
11836 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11837
11838 fi
11839
11840
11841
11842 # Set options
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855 # Check whether --with-included_ltdl was given.
11856 if test "${with_included_ltdl+set}" = set; then :
11857 withval=$with_included_ltdl;
11858 fi
11859
11860
11861 if test "x$with_included_ltdl" != xyes; then
11862 # We are not being forced to use the included libltdl sources, so
11863 # decide whether there is a useful installed version we can use.
11864 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11865
11866 "
11867 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11868 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11869 #include <ltdl.h>
11870 "
11871 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11873 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11874 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 ac_check_lib_save_LIBS=$LIBS
11878 LIBS="-lltdl $LIBS"
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char lt_dladvise_preload ();
11889 int
11890 main ()
11891 {
11892 return lt_dladvise_preload ();
11893 ;
11894 return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_link "$LINENO"; then :
11898 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11899 else
11900 ac_cv_lib_ltdl_lt_dladvise_preload=no
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11907 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11908 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11909 with_included_ltdl=no
11910 else
11911 with_included_ltdl=yes
11912 fi
11913
11914 else
11915 with_included_ltdl=yes
11916 fi
11917
11918 else
11919 with_included_ltdl=yes
11920 fi
11921
11922
11923 fi
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 # Check whether --with-ltdl_include was given.
11934 if test "${with_ltdl_include+set}" = set; then :
11935 withval=$with_ltdl_include;
11936 fi
11937
11938
11939 if test -n "$with_ltdl_include"; then
11940 if test -f "$with_ltdl_include/ltdl.h"; then :
11941 else
11942 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11943 fi
11944 else
11945 with_ltdl_include=no
11946 fi
11947
11948
11949 # Check whether --with-ltdl_lib was given.
11950 if test "${with_ltdl_lib+set}" = set; then :
11951 withval=$with_ltdl_lib;
11952 fi
11953
11954
11955 if test -n "$with_ltdl_lib"; then
11956 if test -f "$with_ltdl_lib/libltdl.la"; then :
11957 else
11958 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11959 fi
11960 else
11961 with_ltdl_lib=no
11962 fi
11963
11964 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11965 ,yes,no,no,)
11966 case $enable_ltdl_convenience in
11967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11968 "") enable_ltdl_convenience=yes
11969 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11970 esac
11971 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11972 LTDLDEPS=$LIBLTDL
11973 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11974
11975
11976
11977
11978
11979 # For backwards non-gettext consistent compatibility...
11980 INCLTDL="$LTDLINCL"
11981
11982
11983 ;;
11984 ,no,no,no,)
11985 # If the included ltdl is not to be used, then use the
11986 # preinstalled libltdl we found.
11987
11988 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11989
11990 LIBLTDL=-lltdl
11991 LTDLDEPS=
11992 LTDLINCL=
11993 ;;
11994 ,no*,no,*)
11995 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11996 ;;
11997 *) with_included_ltdl=no
11998 LIBLTDL="-L$with_ltdl_lib -lltdl"
11999 LTDLDEPS=
12000 LTDLINCL="-I$with_ltdl_include"
12001 ;;
12002 esac
12003 INCLTDL="$LTDLINCL"
12004
12005 # Report our decision...
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12007 $as_echo_n "checking where to find libltdl headers... " >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12009 $as_echo "$LTDLINCL" >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12011 $as_echo_n "checking where to find libltdl library... " >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12013 $as_echo "$LIBLTDL" >&6; }
12014
12015
12016
12017 # Check whether --enable-ltdl-install was given.
12018 if test "${enable_ltdl_install+set}" = set; then :
12019 enableval=$enable_ltdl_install;
12020 fi
12021
12022
12023 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12024 *yes*) ;;
12025 *) enable_ltdl_convenience=yes ;;
12026 esac
12027
12028 if test x"${enable_ltdl_install-no}" != xno; then
12029 INSTALL_LTDL_TRUE=
12030 INSTALL_LTDL_FALSE='#'
12031 else
12032 INSTALL_LTDL_TRUE='#'
12033 INSTALL_LTDL_FALSE=
12034 fi
12035
12036 if test x"${enable_ltdl_convenience-no}" != xno; then
12037 CONVENIENCE_LTDL_TRUE=
12038 CONVENIENCE_LTDL_FALSE='#'
12039 else
12040 CONVENIENCE_LTDL_TRUE='#'
12041 CONVENIENCE_LTDL_FALSE=
12042 fi
12043
12044
12045
12046 subdirs="$subdirs libltdl"
12047
12048
12049
12050
12051
12052 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12053 # the user used. This is so that ltdl.h can pick up the parent projects
12054 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12055 # definitions required by ltdl.c.
12056 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12057
12058
12059
12060 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12061 do :
12062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12064 "
12065 eval as_val=\$$as_ac_Header
12066 if test "x$as_val" = x""yes; then :
12067 cat >>confdefs.h <<_ACEOF
12068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069 _ACEOF
12070
12071 fi
12072
12073 done
12074
12075
12076 for ac_func in closedir opendir readdir
12077 do :
12078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12080 eval as_val=\$$as_ac_var
12081 if test "x$as_val" = x""yes; then :
12082 cat >>confdefs.h <<_ACEOF
12083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12084 _ACEOF
12085
12086 else
12087
12088
12089 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12090
12091 fi
12092 done
12093
12094 for ac_func in strlcat strlcpy
12095 do :
12096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12098 eval as_val=\$$as_ac_var
12099 if test "x$as_val" = x""yes; then :
12100 cat >>confdefs.h <<_ACEOF
12101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12102 _ACEOF
12103
12104 else
12105
12106
12107 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12108
12109 fi
12110 done
12111
12112
12113
12114 cat >>confdefs.h <<_ACEOF
12115 #define LT_LIBEXT "$libext"
12116 _ACEOF
12117
12118
12119 name=ltdl
12120 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12121
12122
12123
12124
12125
12126
12127
12128
12129 # Only expand once:
12130
12131
12132 LIBTOOL="$LIBTOOL --silent"
12133
12134
12135 # Checks for libraries.
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12138 $as_echo_n "checking for library containing socket... " >&6; }
12139 if test "${ac_cv_search_socket+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 ac_func_search_save_LIBS=$LIBS
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char socket ();
12153 int
12154 main ()
12155 {
12156 return socket ();
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 for ac_lib in '' socket; do
12162 if test -z "$ac_lib"; then
12163 ac_res="none required"
12164 else
12165 ac_res=-l$ac_lib
12166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12167 fi
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_search_socket=$ac_res
12170 fi
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext
12173 if test "${ac_cv_search_socket+set}" = set; then :
12174 break
12175 fi
12176 done
12177 if test "${ac_cv_search_socket+set}" = set; then :
12178
12179 else
12180 ac_cv_search_socket=no
12181 fi
12182 rm conftest.$ac_ext
12183 LIBS=$ac_func_search_save_LIBS
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12186 $as_echo "$ac_cv_search_socket" >&6; }
12187 ac_res=$ac_cv_search_socket
12188 if test "$ac_res" != no; then :
12189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12190
12191 else
12192 as_fn_error "socket library not found" "$LINENO" 5
12193 fi
12194
12195 for ac_func in inet_aton inet_ntop inet_pton
12196 do :
12197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12199 eval as_val=\$$as_ac_var
12200 if test "x$as_val" = x""yes; then :
12201 cat >>confdefs.h <<_ACEOF
12202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203 _ACEOF
12204
12205 fi
12206 done
12207
12208 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12209 #include <sys/socket.h>
12210 #include <netdb.h>
12211
12212 "
12213 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12214
12215 cat >>confdefs.h <<_ACEOF
12216 #define HAVE_STRUCT_SOCKADDR_IN 1
12217 _ACEOF
12218
12219
12220 fi
12221 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12222 #include <sys/socket.h>
12223 #include <netdb.h>
12224
12225 "
12226 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12227
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12230 _ACEOF
12231
12232
12233 fi
12234 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12235 #include <sys/socket.h>
12236 #include <netdb.h>
12237
12238 "
12239 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_STRUCT_ADDRINFO 1
12243 _ACEOF
12244
12245
12246 fi
12247
12248 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12249 <sys/socket.h>
12250 "
12251 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12252
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12255 _ACEOF
12256
12257
12258 fi
12259
12260
12261
12262 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12263 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12264
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_STRUCT_SOCKADDR_IN6 1
12267 _ACEOF
12268
12269
12270 else
12271
12272 $as_echo "#define IPV6 1" >>confdefs.h
12273
12274 fi
12275
12276
12277
12278
12279 # Checks for typedefs, structures, and compiler characteristics.
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12281 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12282 if test "${ac_cv_c_const+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287
12288 int
12289 main ()
12290 {
12291 /* FIXME: Include the comments suggested by Paul. */
12292 #ifndef __cplusplus
12293 /* Ultrix mips cc rejects this. */
12294 typedef int charset[2];
12295 const charset cs;
12296 /* SunOS 4.1.1 cc rejects this. */
12297 char const *const *pcpcc;
12298 char **ppc;
12299 /* NEC SVR4.0.2 mips cc rejects this. */
12300 struct point {int x, y;};
12301 static struct point const zero = {0,0};
12302 /* AIX XL C 1.02.0.0 rejects this.
12303 It does not let you subtract one const X* pointer from another in
12304 an arm of an if-expression whose if-part is not a constant
12305 expression */
12306 const char *g = "string";
12307 pcpcc = &g + (g ? g-g : 0);
12308 /* HPUX 7.0 cc rejects these. */
12309 ++pcpcc;
12310 ppc = (char**) pcpcc;
12311 pcpcc = (char const *const *) ppc;
12312 { /* SCO 3.2v4 cc rejects this. */
12313 char *t;
12314 char const *s = 0 ? (char *) 0 : (char const *) 0;
12315
12316 *t++ = 0;
12317 if (s) return 0;
12318 }
12319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12320 int x[] = {25, 17};
12321 const int *foo = &x[0];
12322 ++foo;
12323 }
12324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12325 typedef const int *iptr;
12326 iptr p = 0;
12327 ++p;
12328 }
12329 { /* AIX XL C 1.02.0.0 rejects this saying
12330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12331 struct s { int j; const int *ap[3]; };
12332 struct s *b; b->j = 5;
12333 }
12334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12335 const int foo = 10;
12336 if (!foo) return 0;
12337 }
12338 return !cs[0] && !zero.x;
12339 #endif
12340
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_compile "$LINENO"; then :
12346 ac_cv_c_const=yes
12347 else
12348 ac_cv_c_const=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12353 $as_echo "$ac_cv_c_const" >&6; }
12354 if test $ac_cv_c_const = no; then
12355
12356 $as_echo "#define const /**/" >>confdefs.h
12357
12358 fi
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12361 $as_echo_n "checking for inline... " >&6; }
12362 if test "${ac_cv_c_inline+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ac_cv_c_inline=no
12366 for ac_kw in inline __inline__ __inline; do
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369 #ifndef __cplusplus
12370 typedef int foo_t;
12371 static $ac_kw foo_t static_foo () {return 0; }
12372 $ac_kw foo_t foo () {return 0; }
12373 #endif
12374
12375 _ACEOF
12376 if ac_fn_c_try_compile "$LINENO"; then :
12377 ac_cv_c_inline=$ac_kw
12378 fi
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 test "$ac_cv_c_inline" != no && break
12381 done
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12385 $as_echo "$ac_cv_c_inline" >&6; }
12386
12387 case $ac_cv_c_inline in
12388 inline | yes) ;;
12389 *)
12390 case $ac_cv_c_inline in
12391 no) ac_val=;;
12392 *) ac_val=$ac_cv_c_inline;;
12393 esac
12394 cat >>confdefs.h <<_ACEOF
12395 #ifndef __cplusplus
12396 #define inline $ac_val
12397 #endif
12398 _ACEOF
12399 ;;
12400 esac
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12404 if test "${ac_cv_c_bigendian+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_cv_c_bigendian=unknown
12408 # See if we're dealing with a universal compiler.
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12411 #ifndef __APPLE_CC__
12412 not a universal capable compiler
12413 #endif
12414 typedef int dummy;
12415
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418
12419 # Check for potential -arch flags. It is not universal unless
12420 # there are at least two -arch flags with different values.
12421 ac_arch=
12422 ac_prev=
12423 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12424 if test -n "$ac_prev"; then
12425 case $ac_word in
12426 i?86 | x86_64 | ppc | ppc64)
12427 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12428 ac_arch=$ac_word
12429 else
12430 ac_cv_c_bigendian=universal
12431 break
12432 fi
12433 ;;
12434 esac
12435 ac_prev=
12436 elif test "x$ac_word" = "x-arch"; then
12437 ac_prev=arch
12438 fi
12439 done
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 if test $ac_cv_c_bigendian = unknown; then
12443 # See if sys/param.h defines the BYTE_ORDER macro.
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 #include <sys/types.h>
12447 #include <sys/param.h>
12448
12449 int
12450 main ()
12451 {
12452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12454 && LITTLE_ENDIAN)
12455 bogus endian macros
12456 #endif
12457
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_compile "$LINENO"; then :
12463 # It does; now see whether it defined to BIG_ENDIAN or not.
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #include <sys/types.h>
12467 #include <sys/param.h>
12468
12469 int
12470 main ()
12471 {
12472 #if BYTE_ORDER != BIG_ENDIAN
12473 not big endian
12474 #endif
12475
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_compile "$LINENO"; then :
12481 ac_cv_c_bigendian=yes
12482 else
12483 ac_cv_c_bigendian=no
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 fi
12489 if test $ac_cv_c_bigendian = unknown; then
12490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493 #include <limits.h>
12494
12495 int
12496 main ()
12497 {
12498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12499 bogus endian macros
12500 #endif
12501
12502 ;
12503 return 0;
12504 }
12505 _ACEOF
12506 if ac_fn_c_try_compile "$LINENO"; then :
12507 # It does; now see whether it defined to _BIG_ENDIAN or not.
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <limits.h>
12511
12512 int
12513 main ()
12514 {
12515 #ifndef _BIG_ENDIAN
12516 not big endian
12517 #endif
12518
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_compile "$LINENO"; then :
12524 ac_cv_c_bigendian=yes
12525 else
12526 ac_cv_c_bigendian=no
12527 fi
12528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531 fi
12532 if test $ac_cv_c_bigendian = unknown; then
12533 # Compile a test program.
12534 if test "$cross_compiling" = yes; then :
12535 # Try to guess by grepping values from an object file.
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 short int ascii_mm[] =
12539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12540 short int ascii_ii[] =
12541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12542 int use_ascii (int i) {
12543 return ascii_mm[i] + ascii_ii[i];
12544 }
12545 short int ebcdic_ii[] =
12546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12547 short int ebcdic_mm[] =
12548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12549 int use_ebcdic (int i) {
12550 return ebcdic_mm[i] + ebcdic_ii[i];
12551 }
12552 extern int foo;
12553
12554 int
12555 main ()
12556 {
12557 return use_ascii (foo) == use_ebcdic (foo);
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12564 ac_cv_c_bigendian=yes
12565 fi
12566 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12567 if test "$ac_cv_c_bigendian" = unknown; then
12568 ac_cv_c_bigendian=no
12569 else
12570 # finding both strings is unlikely to happen, but who knows?
12571 ac_cv_c_bigendian=unknown
12572 fi
12573 fi
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 $ac_includes_default
12580 int
12581 main ()
12582 {
12583
12584 /* Are we little or big endian? From Harbison&Steele. */
12585 union
12586 {
12587 long int l;
12588 char c[sizeof (long int)];
12589 } u;
12590 u.l = 1;
12591 return u.c[sizeof (long int) - 1] == 1;
12592
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_run "$LINENO"; then :
12598 ac_cv_c_bigendian=no
12599 else
12600 ac_cv_c_bigendian=yes
12601 fi
12602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12603 conftest.$ac_objext conftest.beam conftest.$ac_ext
12604 fi
12605
12606 fi
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12609 $as_echo "$ac_cv_c_bigendian" >&6; }
12610 case $ac_cv_c_bigendian in #(
12611 yes)
12612 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12613 ;; #(
12614 no)
12615 ;; #(
12616 universal)
12617
12618 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12619
12620 ;; #(
12621 *)
12622 as_fn_error "unknown endianness
12623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12624 esac
12625
12626
12627 # The cast to long int works around a bug in the HP C Compiler
12628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630 # This bug is HP SR number 8606223364.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12632 $as_echo_n "checking size of int64_t... " >&6; }
12633 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
12637
12638 else
12639 if test "$ac_cv_type_int64_t" = yes; then
12640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12642 { as_fn_set_status 77
12643 as_fn_error "cannot compute sizeof (int64_t)
12644 See \`config.log' for more details." "$LINENO" 5; }; }
12645 else
12646 ac_cv_sizeof_int64_t=0
12647 fi
12648 fi
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12652 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12653
12654
12655
12656 cat >>confdefs.h <<_ACEOF
12657 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12658 _ACEOF
12659
12660
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12666 $as_echo_n "checking size of long long... " >&6; }
12667 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12671
12672 else
12673 if test "$ac_cv_type_long_long" = yes; then
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676 { as_fn_set_status 77
12677 as_fn_error "cannot compute sizeof (long long)
12678 See \`config.log' for more details." "$LINENO" 5; }; }
12679 else
12680 ac_cv_sizeof_long_long=0
12681 fi
12682 fi
12683
12684 fi
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12686 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12687
12688
12689
12690 cat >>confdefs.h <<_ACEOF
12691 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12692 _ACEOF
12693
12694
12695
12696 if test "$ac_cv_sizeof_int64_t" = 8; then
12697 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12698 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12699
12700 fi
12701
12702 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12703 if test "x$ac_cv_type_int64_t" = x""yes; then :
12704
12705 fi
12706
12707 elif test "$ac_cv_sizeof_long_long" = 8; then
12708 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12709 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12710
12711 else
12712
12713 cat >>confdefs.h <<_ACEOF
12714 #define uint64_t unsigned long long
12715 _ACEOF
12716
12717 fi
12718
12719 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12720 if test "x$ac_cv_type_int64_t" = x""yes; then :
12721
12722 else
12723
12724 cat >>confdefs.h <<_ACEOF
12725 #define int64_t long long
12726 _ACEOF
12727
12728 fi
12729
12730 else
12731 as_fn_error "Your system doesn't appear to have 64 bit integers. Aborting." "$LINENO" 5
12732 fi
12733
12734
12735 # Checks for library functions.
12736
12737
12738
12739 for ac_func in $ac_func_list
12740 do :
12741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12743 eval as_val=\$$as_ac_var
12744 if test "x$as_val" = x""yes; then :
12745 cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12747 _ACEOF
12748
12749 fi
12750 done
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768 # Checks for header files.
12769
12770
12771
12772 for ac_header in $ac_header_list
12773 do :
12774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12776 "
12777 eval as_val=\$$as_ac_Header
12778 if test "x$as_val" = x""yes; then :
12779 cat >>confdefs.h <<_ACEOF
12780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781 _ACEOF
12782
12783 fi
12784
12785 done
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12818 $as_echo_n "checking for /dev/null... " >&6; }
12819 if test -c /dev/null ; then
12820
12821 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12825 else
12826
12827 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12830 $as_echo "no - using devnull.log" >&6; }
12831 fi
12832
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12835 $as_echo_n "checking for library containing crypt... " >&6; }
12836 if test "${ac_cv_search_crypt+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 ac_func_search_save_LIBS=$LIBS
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12846 #ifdef __cplusplus
12847 extern "C"
12848 #endif
12849 char crypt ();
12850 int
12851 main ()
12852 {
12853 return crypt ();
12854 ;
12855 return 0;
12856 }
12857 _ACEOF
12858 for ac_lib in '' crypt; do
12859 if test -z "$ac_lib"; then
12860 ac_res="none required"
12861 else
12862 ac_res=-l$ac_lib
12863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12864 fi
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_search_crypt=$ac_res
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext
12870 if test "${ac_cv_search_crypt+set}" = set; then :
12871 break
12872 fi
12873 done
12874 if test "${ac_cv_search_crypt+set}" = set; then :
12875
12876 else
12877 ac_cv_search_crypt=no
12878 fi
12879 rm conftest.$ac_ext
12880 LIBS=$ac_func_search_save_LIBS
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12883 $as_echo "$ac_cv_search_crypt" >&6; }
12884 ac_res=$ac_cv_search_crypt
12885 if test "$ac_res" != no; then :
12886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887
12888 fi
12889
12890
12891
12892
12893 # Check whether --with-zlib-path was given.
12894 if test "${with_zlib_path+set}" = set; then :
12895 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12896 fi
12897
12898
12899 # Check whether --enable-zlib was given.
12900 if test "${enable_zlib+set}" = set; then :
12901 enableval=$enable_zlib; zlib=$enableval
12902 else
12903 zlib=yes
12904 fi
12905
12906
12907 if test "$zlib" = yes; then
12908 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12909 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12911 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12912 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-lz $LIBS"
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char zlibVersion ();
12927 int
12928 main ()
12929 {
12930 return zlibVersion ();
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 ac_cv_lib_z_zlibVersion=yes
12937 else
12938 ac_cv_lib_z_zlibVersion=no
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 LIBS=$ac_check_lib_save_LIBS
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12945 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12946 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12947
12948 LIBS="-lz $LIBS"
12949
12950 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12951
12952
12953 else
12954 zlib=no
12955 fi
12956
12957
12958 else
12959 zlib=no
12960 fi
12961
12962
12963 fi
12964
12965
12966 # Check whether --with-libpcre-path was given.
12967 if test "${with_libpcre_path+set}" = set; then :
12968 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12969 fi
12970
12971
12972 # Check whether --enable-libpcre was given.
12973 if test "${enable_libpcre+set}" = set; then :
12974 enableval=$enable_libpcre; libpcre=$enableval
12975 else
12976 libpcre=yes
12977 fi
12978
12979
12980 if test "$libpcre" = yes; then
12981 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12982 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12984 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12985 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 ac_check_lib_save_LIBS=$LIBS
12989 LIBS="-lpcre $LIBS"
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char pcre_study ();
13000 int
13001 main ()
13002 {
13003 return pcre_study ();
13004 ;
13005 return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_link "$LINENO"; then :
13009 ac_cv_lib_pcre_pcre_study=yes
13010 else
13011 ac_cv_lib_pcre_pcre_study=no
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13016 fi
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13018 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13019 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
13020
13021 LIBS="-lpcre $LIBS"
13022
13023 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13024
13025
13026 else
13027 libpcre=no
13028 fi
13029
13030
13031 else
13032 libpcre=no
13033 fi
13034
13035
13036 fi
13037 if test "$libpcre" = yes; then
13038 ENABLE_PCRE_TRUE=
13039 ENABLE_PCRE_FALSE='#'
13040 else
13041 ENABLE_PCRE_TRUE='#'
13042 ENABLE_PCRE_FALSE=
13043 fi
13044
13045
13046
13047 # Check whether --enable-openssl was given.
13048 if test "${enable_openssl+set}" = set; then :
13049 enableval=$enable_openssl; cf_enable_openssl=$enableval
13050 else
13051 cf_enable_openssl="auto"
13052 fi
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13055 $as_echo_n "checking for OpenSSL... " >&6; }
13056 if test "$cf_enable_openssl" != "no"; then
13057 cf_openssl_basedir=""
13058 if test "$cf_enable_openssl" != "auto" &&
13059 test "$cf_enable_openssl" != "yes"; then
13060 cf_openssl_basedir="${cf_enable_openssl}"
13061 else
13062 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13063 /opt /opt/openssl /usr/local/openssl; do
13064 if test -f "${dirs}/include/openssl/opensslv.h"; then
13065 cf_openssl_basedir="${dirs}"
13066 break
13067 fi
13068 done
13069 unset dirs
13070 fi
13071
13072 if test ! -z "$cf_openssl_basedir"; then
13073 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13074 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13075 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13076 else
13077 cf_openssl_basedir=""
13078 fi
13079 else
13080 if test -f "/usr/include/openssl/opensslv.h"; then
13081 cf_openssl_basedir="/usr"
13082 fi
13083 fi
13084
13085 if test ! -z "$cf_openssl_basedir"; then
13086 LIBS="-lcrypto -lssl $LIBS"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13088 $as_echo "$cf_openssl_basedir" >&6; }
13089 cf_enable_openssl="yes"
13090
13091 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13092
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13095 $as_echo "not found. Please check your path." >&6; }
13096 cf_enable_openssl="no"
13097 fi
13098 unset cf_openssl_basedir
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13101 $as_echo "disabled" >&6; }
13102 fi
13103 if test "$cf_enable_openssl" = yes; then
13104 ENABLE_SSL_TRUE=
13105 ENABLE_SSL_FALSE='#'
13106 else
13107 ENABLE_SSL_TRUE='#'
13108 ENABLE_SSL_FALSE=
13109 fi
13110
13111
13112
13113 # Check whether --enable-assert was given.
13114 if test "${enable_assert+set}" = set; then :
13115 enableval=$enable_assert; assert=$enableval
13116 else
13117 assert=no
13118 fi
13119
13120 if test "$assert" = no; then
13121
13122 $as_echo "#define NDEBUG 1" >>confdefs.h
13123
13124 fi
13125
13126
13127 # Check whether --enable-small-net was given.
13128 if test "${enable_small_net+set}" = set; then :
13129 enableval=$enable_small_net; small_net=$enableval
13130 else
13131 small_net=no
13132 fi
13133
13134
13135 if test "$small_net" = yes; then
13136
13137 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13138
13139
13140 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13141
13142
13143 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13144
13145
13146 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13147
13148
13149 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13150
13151
13152 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13153
13154
13155 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13156
13157
13158 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13159
13160
13161 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13162
13163
13164 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13165
13166 else
13167
13168 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13169
13170
13171 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13172
13173
13174 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13175
13176
13177 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13178
13179
13180 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13181
13182
13183 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13184
13185
13186 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13187
13188
13189 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13190
13191
13192 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13193
13194
13195 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13196
13197 fi
13198
13199
13200 # Argument processing.
13201
13202 desired_iopoll_mechanism="none"
13203 # Check whether --enable-kqueue was given.
13204 if test "${enable_kqueue+set}" = set; then :
13205 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13206 fi
13207
13208 # Check whether --enable-epoll was given.
13209 if test "${enable_epoll+set}" = set; then :
13210 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13211 fi
13212
13213 # Check whether --enable-devpoll was given.
13214 if test "${enable_devpoll+set}" = set; then :
13215 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13216 fi
13217
13218 # Check whether --enable-rtsigio was given.
13219 if test "${enable_rtsigio+set}" = set; then :
13220 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13221 fi
13222
13223 # Check whether --enable-poll was given.
13224 if test "${enable_poll+set}" = set; then :
13225 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13226 fi
13227
13228 # Check whether --enable-select was given.
13229 if test "${enable_select+set}" = set; then :
13230 enableval=$enable_select; desired_iopoll_mechanism="select"
13231 fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13234 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13235 iopoll_mechanism_none=0
13236
13237 cat >>confdefs.h <<_ACEOF
13238 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13239 _ACEOF
13240
13241 iopoll_mechanism_kqueue=1
13242
13243 cat >>confdefs.h <<_ACEOF
13244 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13245 _ACEOF
13246
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13251 #define kevent innocuous_kevent
13252
13253 /* System header to define __stub macros and hopefully few prototypes,
13254 which can conflict with char kevent (); below.
13255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13256 <limits.h> exists even on freestanding compilers. */
13257
13258 #ifdef __STDC__
13259 # include <limits.h>
13260 #else
13261 # include <assert.h>
13262 #endif
13263
13264 #undef kevent
13265
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 char kevent ();
13273 /* The GNU C library defines this for functions which it implements
13274 to always fail with ENOSYS. Some functions are actually named
13275 something starting with __ and the normal name is an alias. */
13276 #if defined __stub_kevent || defined __stub___kevent
13277 choke me
13278 #endif
13279
13280 int
13281 main ()
13282 {
13283 return kevent ();
13284 ;
13285 return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 is_kqueue_mechanism_available="yes"
13290 else
13291 is_kqueue_mechanism_available="no"
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13295 iopoll_mechanism_epoll=2
13296
13297 cat >>confdefs.h <<_ACEOF
13298 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13299 _ACEOF
13300
13301 if test "$cross_compiling" = yes; then :
13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304 as_fn_error "cannot run test program while cross compiling
13305 See \`config.log' for more details." "$LINENO" 5; }
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 #include <sys/epoll.h>
13311 #include <sys/syscall.h>
13312 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13313 #if !defined(__NR_epoll_create)
13314 #if defined(__ia64__)
13315 #define __NR_epoll_create 1243
13316 #elif defined(__x86_64__)
13317 #define __NR_epoll_create 214
13318 #elif defined(__sparc64__) || defined(__sparc__)
13319 #define __NR_epoll_create 193
13320 #elif defined(__s390__) || defined(__m68k__)
13321 #define __NR_epoll_create 249
13322 #elif defined(__ppc64__) || defined(__ppc__)
13323 #define __NR_epoll_create 236
13324 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13325 #define __NR_epoll_create 224
13326 #elif defined(__alpha__)
13327 #define __NR_epoll_create 407
13328 #elif defined(__sh64__)
13329 #define __NR_epoll_create 282
13330 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13331 #define __NR_epoll_create 254
13332 #else
13333 #error No system call numbers defined for epoll family.
13334 #endif
13335 #endif
13336 _syscall1(int, epoll_create, int, size)
13337 #endif
13338 main() { return epoll_create(256) == -1 ? 1 : 0; }
13339
13340 _ACEOF
13341 if ac_fn_c_try_run "$LINENO"; then :
13342 is_epoll_mechanism_available="yes"
13343 else
13344 is_epoll_mechanism_available="no"
13345 fi
13346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13347 conftest.$ac_objext conftest.beam conftest.$ac_ext
13348 fi
13349
13350 iopoll_mechanism_devpoll=3
13351
13352 cat >>confdefs.h <<_ACEOF
13353 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13354 _ACEOF
13355
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 #include <devpoll.h>
13359 int
13360 main ()
13361 {
13362
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368 is_devpoll_mechanism_available="yes"
13369 else
13370 is_devpoll_mechanism_available="no"
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 if test "$is_devpoll_mechanism_available" = "yes" ; then
13374
13375 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13376
13377 fi
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <sys/devpoll.h>
13381 int
13382 main ()
13383 {
13384
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 is_devpoll_mechanism_available="yes"
13391 else
13392 is_devpoll_mechanism_available="no"
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 if test "$is_devpoll_mechanism_available" = "yes" ; then
13396
13397 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13398
13399 fi
13400 iopoll_mechanism_rtsigio=4
13401
13402 cat >>confdefs.h <<_ACEOF
13403 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13404 _ACEOF
13405
13406 if test "$cross_compiling" = yes; then :
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13409 as_fn_error "cannot run test program while cross compiling
13410 See \`config.log' for more details." "$LINENO" 5; }
13411 else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414
13415 #include <fcntl.h>
13416 #ifdef F_SETSIG
13417 main () { return 0; } /* F_SETSIG defined */
13418 #else
13419 main () { return 1; } /* F_SETSIG not defined */
13420 #endif
13421
13422 int
13423 main ()
13424 {
13425
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_run "$LINENO"; then :
13431 is_rtsigio_mechanism_available="yes"
13432 else
13433 is_rtsigio_mechanism_available="no"
13434 fi
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13436 conftest.$ac_objext conftest.beam conftest.$ac_ext
13437 fi
13438
13439 iopoll_mechanism_poll=5
13440
13441 cat >>confdefs.h <<_ACEOF
13442 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13443 _ACEOF
13444
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13449 #define poll innocuous_poll
13450
13451 /* System header to define __stub macros and hopefully few prototypes,
13452 which can conflict with char poll (); below.
13453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13454 <limits.h> exists even on freestanding compilers. */
13455
13456 #ifdef __STDC__
13457 # include <limits.h>
13458 #else
13459 # include <assert.h>
13460 #endif
13461
13462 #undef poll
13463
13464 /* Override any GCC internal prototype to avoid an error.
13465 Use char because int might match the return type of a GCC
13466 builtin and then its argument prototype would still apply. */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 char poll ();
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined __stub_poll || defined __stub___poll
13475 choke me
13476 #endif
13477
13478 int
13479 main ()
13480 {
13481 return poll ();
13482 ;
13483 return 0;
13484 }
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 is_poll_mechanism_available="yes"
13488 else
13489 is_poll_mechanism_available="no"
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 iopoll_mechanism_select=6
13494
13495 cat >>confdefs.h <<_ACEOF
13496 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13497 _ACEOF
13498
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501 /* Define select to an innocuous variant, in case <limits.h> declares select.
13502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13503 #define select innocuous_select
13504
13505 /* System header to define __stub macros and hopefully few prototypes,
13506 which can conflict with char select (); below.
13507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13508 <limits.h> exists even on freestanding compilers. */
13509
13510 #ifdef __STDC__
13511 # include <limits.h>
13512 #else
13513 # include <assert.h>
13514 #endif
13515
13516 #undef select
13517
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char select ();
13525 /* The GNU C library defines this for functions which it implements
13526 to always fail with ENOSYS. Some functions are actually named
13527 something starting with __ and the normal name is an alias. */
13528 #if defined __stub_select || defined __stub___select
13529 choke me
13530 #endif
13531
13532 int
13533 main ()
13534 {
13535 return select ();
13536 ;
13537 return 0;
13538 }
13539 _ACEOF
13540 if ac_fn_c_try_link "$LINENO"; then :
13541 is_select_mechanism_available="yes"
13542 else
13543 is_select_mechanism_available="no"
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 optimal_iopoll_mechanism="none"
13548 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13549 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13550 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13551 optimal_iopoll_mechanism="$mechanism"
13552 break
13553 fi
13554 done
13555 if test "$desired_iopoll_mechanism" = "none" ; then
13556 if test "$optimal_iopoll_mechanism" = "none" ; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13558 $as_echo "none" >&6; }
13559 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13560 else
13561 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13563 $as_echo "$selected_iopoll_mechanism" >&6; }
13564 fi
13565 else
13566 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13567 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13568 selected_iopoll_mechanism=$desired_iopoll_mechanism
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13570 $as_echo "$selected_iopoll_mechanism" >&6; }
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13573 $as_echo "none" >&6; }
13574 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13575 fi
13576 fi
13577 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13581 _ACEOF
13582
13583
13584
13585
13586 # Check whether --with-nicklen was given.
13587 if test "${with_nicklen+set}" = set; then :
13588 withval=$with_nicklen; nicklen="$withval"
13589 else
13590 nicklen="9"
13591 fi
13592
13593
13594 cat >>confdefs.h <<_ACEOF
13595 #define NICKLEN ($nicklen+1)
13596 _ACEOF
13597
13598
13599
13600
13601 # Check whether --with-topiclen was given.
13602 if test "${with_topiclen+set}" = set; then :
13603 withval=$with_topiclen; topiclen="$withval"
13604 else
13605 topiclen="160"
13606 fi
13607
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define TOPICLEN ($topiclen+1)
13611 _ACEOF
13612
13613
13614
13615
13616 # Check whether --with-syslog-facility was given.
13617 if test "${with_syslog_facility+set}" = set; then :
13618 withval=$with_syslog_facility; syslog_facility="$withval"
13619 else
13620 syslog_facility="LOG_LOCAL4"
13621 fi
13622
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define LOG_FACILITY $syslog_facility
13626 _ACEOF
13627
13628
13629
13630 # Check whether --enable-efnet was given.
13631 if test "${enable_efnet+set}" = set; then :
13632 enableval=$enable_efnet; efnet="$enableval"
13633 else
13634 efnet="no"
13635 fi
13636
13637 if test "$efnet" = "yes" ; then
13638 use_efnet="yes"
13639
13640 $as_echo "#define EFNET 1" >>confdefs.h
13641
13642
13643 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13644
13645 else
13646
13647 $as_echo "#define INVARIANTS 1" >>confdefs.h
13648
13649 use_efnet="no"
13650 fi
13651 if test "$use_efnet" = "yes"; then
13652 EFNET_TRUE=
13653 EFNET_FALSE='#'
13654 else
13655 EFNET_TRUE='#'
13656 EFNET_FALSE=
13657 fi
13658
13659
13660
13661 # Check whether --enable-halfops was given.
13662 if test "${enable_halfops+set}" = set; then :
13663 enableval=$enable_halfops; halfops="$enableval"
13664 else
13665 halfops="no"
13666 fi
13667
13668 if test "$halfops" = "yes" ; then
13669
13670 $as_echo "#define HALFOPS 1" >>confdefs.h
13671
13672 fi
13673
13674
13675 # Check whether --enable-debugging was given.
13676 if test "${enable_debugging+set}" = set; then :
13677 enableval=$enable_debugging; debugging="$enableval"
13678 else
13679 debugging="no"
13680 fi
13681
13682 if test "$debugging" = "yes" ; then
13683
13684 $as_echo "#define DEBUG 1" >>confdefs.h
13685
13686 CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13687 else
13688
13689 $as_echo "#define NDEBUG 1" >>confdefs.h
13690
13691 fi
13692
13693
13694 # Check whether --enable-warnings was given.
13695 if test "${enable_warnings+set}" = set; then :
13696 enableval=$enable_warnings; warnings="$enableval"
13697 else
13698 warnings="no"
13699 fi
13700
13701 if test "$warnings" = "yes" ; then
13702 CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused -Wundef"
13703 fi
13704
13705
13706 for ac_header in syslog.h sys/syslog.h
13707 do :
13708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13709 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13710 eval as_val=\$$as_ac_Header
13711 if test "x$as_val" = x""yes; then :
13712 cat >>confdefs.h <<_ACEOF
13713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13714 _ACEOF
13715
13716 fi
13717
13718 done
13719
13720 # Check whether --enable-syslog was given.
13721 if test "${enable_syslog+set}" = set; then :
13722 enableval=$enable_syslog; syslog="$enableval"
13723 else
13724 syslog="no"
13725 fi
13726
13727 if test "$enableval" != "no" ; then
13728 for option in $enableval ; do
13729 case "$option" in
13730 users)
13731 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13732 ;;
13733 oper)
13734 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13735 ;;
13736 yes) : ;;
13737 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13738 esac
13739 done
13740
13741 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13742
13743 fi
13744
13745
13746
13747 prefix_NONE=
13748 exec_prefix_NONE=
13749 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13750 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13751 eval ac_define_dir="\"$prefix\""
13752 eval ac_define_dir="\"$ac_define_dir\""
13753 PREFIX="$ac_define_dir"
13754
13755
13756 cat >>confdefs.h <<_ACEOF
13757 #define PREFIX "$ac_define_dir"
13758 _ACEOF
13759
13760 test "$prefix_NONE" && prefix=NONE
13761 test "$exec_prefix_NONE" && exec_prefix=NONE
13762
13763
13764 prefix_NONE=
13765 exec_prefix_NONE=
13766 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13767 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13768 eval ac_define_dir="\"$sysconfdir\""
13769 eval ac_define_dir="\"$ac_define_dir\""
13770 SYSCONFDIR="$ac_define_dir"
13771
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define SYSCONFDIR "$ac_define_dir"
13775 _ACEOF
13776
13777 test "$prefix_NONE" && prefix=NONE
13778 test "$exec_prefix_NONE" && exec_prefix=NONE
13779
13780
13781 prefix_NONE=
13782 exec_prefix_NONE=
13783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13785 eval ac_define_dir="\"$libdir\""
13786 eval ac_define_dir="\"$ac_define_dir\""
13787 LIBDIR="$ac_define_dir"
13788
13789
13790 cat >>confdefs.h <<_ACEOF
13791 #define LIBDIR "$ac_define_dir"
13792 _ACEOF
13793
13794 test "$prefix_NONE" && prefix=NONE
13795 test "$exec_prefix_NONE" && exec_prefix=NONE
13796
13797
13798 prefix_NONE=
13799 exec_prefix_NONE=
13800 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13801 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13802 eval ac_define_dir="\"$datadir\""
13803 eval ac_define_dir="\"$ac_define_dir\""
13804 DATADIR="$ac_define_dir"
13805
13806
13807 cat >>confdefs.h <<_ACEOF
13808 #define DATADIR "$ac_define_dir"
13809 _ACEOF
13810
13811 test "$prefix_NONE" && prefix=NONE
13812 test "$exec_prefix_NONE" && exec_prefix=NONE
13813
13814
13815 prefix_NONE=
13816 exec_prefix_NONE=
13817 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13818 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13819 eval ac_define_dir="\"$localstatedir\""
13820 eval ac_define_dir="\"$ac_define_dir\""
13821 LOCALSTATEDIR="$ac_define_dir"
13822
13823
13824 cat >>confdefs.h <<_ACEOF
13825 #define LOCALSTATEDIR "$ac_define_dir"
13826 _ACEOF
13827
13828 test "$prefix_NONE" && prefix=NONE
13829 test "$exec_prefix_NONE" && exec_prefix=NONE
13830
13831
13832 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13833
13834
13835 cat >confcache <<\_ACEOF
13836 # This file is a shell script that caches the results of configure
13837 # tests run on this system so they can be shared between configure
13838 # scripts and configure runs, see configure's option --config-cache.
13839 # It is not useful on other systems. If it contains results you don't
13840 # want to keep, you may remove or edit it.
13841 #
13842 # config.status only pays attention to the cache file if you give it
13843 # the --recheck option to rerun configure.
13844 #
13845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13847 # following values.
13848
13849 _ACEOF
13850
13851 # The following way of writing the cache mishandles newlines in values,
13852 # but we know of no workaround that is simple, portable, and efficient.
13853 # So, we kill variables containing newlines.
13854 # Ultrix sh set writes to stderr and can't be redirected directly,
13855 # and sets the high bit in the cache file unless we assign to the vars.
13856 (
13857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13858 eval ac_val=\$$ac_var
13859 case $ac_val in #(
13860 *${as_nl}*)
13861 case $ac_var in #(
13862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13864 esac
13865 case $ac_var in #(
13866 _ | IFS | as_nl) ;; #(
13867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13868 *) { eval $ac_var=; unset $ac_var;} ;;
13869 esac ;;
13870 esac
13871 done
13872
13873 (set) 2>&1 |
13874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13875 *${as_nl}ac_space=\ *)
13876 # `set' does not quote correctly, so add quotes: double-quote
13877 # substitution turns \\\\ into \\, and sed turns \\ into \.
13878 sed -n \
13879 "s/'/'\\\\''/g;
13880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13881 ;; #(
13882 *)
13883 # `set' quotes correctly as required by POSIX, so do not add quotes.
13884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13885 ;;
13886 esac |
13887 sort
13888 ) |
13889 sed '
13890 /^ac_cv_env_/b end
13891 t clear
13892 :clear
13893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13894 t end
13895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13896 :end' >>confcache
13897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13898 if test -w "$cache_file"; then
13899 test "x$cache_file" != "x/dev/null" &&
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13901 $as_echo "$as_me: updating cache $cache_file" >&6;}
13902 cat confcache >$cache_file
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13906 fi
13907 fi
13908 rm -f confcache
13909
13910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13911 # Let make expand exec_prefix.
13912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13913
13914 DEFS=-DHAVE_CONFIG_H
13915
13916 ac_libobjs=
13917 ac_ltlibobjs=
13918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13919 # 1. Remove the extension, and $U if already installed.
13920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13923 # will be set to the directory where LIBOBJS objects are built.
13924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13926 done
13927 LIBOBJS=$ac_libobjs
13928
13929 LTLIBOBJS=$ac_ltlibobjs
13930
13931
13932 if test -n "$EXEEXT"; then
13933 am__EXEEXT_TRUE=
13934 am__EXEEXT_FALSE='#'
13935 else
13936 am__EXEEXT_TRUE='#'
13937 am__EXEEXT_FALSE=
13938 fi
13939
13940 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13941 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13943 fi
13944 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13945 as_fn_error "conditional \"AMDEP\" was never defined.
13946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13947 fi
13948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13949 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13951 fi
13952 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13953 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13955 fi
13956 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13957 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13959 fi
13960 LT_CONFIG_H=config.h
13961
13962 _ltdl_libobjs=
13963 _ltdl_ltlibobjs=
13964 if test -n "$_LT_LIBOBJS"; then
13965 # Remove the extension.
13966 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13967 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13968 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13969 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13970 done
13971 fi
13972 ltdl_LIBOBJS=$_ltdl_libobjs
13973
13974 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13975
13976
13977
13978 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13979 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 fi
13982 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13983 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13985 fi
13986 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13987 as_fn_error "conditional \"EFNET\" was never defined.
13988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13989 fi
13990
13991 : ${CONFIG_STATUS=./config.status}
13992 ac_write_fail=0
13993 ac_clean_files_save=$ac_clean_files
13994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13997 as_write_fail=0
13998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13999 #! $SHELL
14000 # Generated by $as_me.
14001 # Run this file to recreate the current configuration.
14002 # Compiler output produced by configure, useful for debugging
14003 # configure, is in config.log if it exists.
14004
14005 debug=false
14006 ac_cs_recheck=false
14007 ac_cs_silent=false
14008
14009 SHELL=\${CONFIG_SHELL-$SHELL}
14010 export SHELL
14011 _ASEOF
14012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14013 ## -------------------- ##
14014 ## M4sh Initialization. ##
14015 ## -------------------- ##
14016
14017 # Be more Bourne compatible
14018 DUALCASE=1; export DUALCASE # for MKS sh
14019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14020 emulate sh
14021 NULLCMD=:
14022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14023 # is contrary to our usage. Disable this feature.
14024 alias -g '${1+"$@"}'='"$@"'
14025 setopt NO_GLOB_SUBST
14026 else
14027 case `(set -o) 2>/dev/null` in #(
14028 *posix*) :
14029 set -o posix ;; #(
14030 *) :
14031 ;;
14032 esac
14033 fi
14034
14035
14036 as_nl='
14037 '
14038 export as_nl
14039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14043 # Prefer a ksh shell builtin over an external printf program on Solaris,
14044 # but without wasting forks for bash or zsh.
14045 if test -z "$BASH_VERSION$ZSH_VERSION" \
14046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14047 as_echo='print -r --'
14048 as_echo_n='print -rn --'
14049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14050 as_echo='printf %s\n'
14051 as_echo_n='printf %s'
14052 else
14053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14055 as_echo_n='/usr/ucb/echo -n'
14056 else
14057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14058 as_echo_n_body='eval
14059 arg=$1;
14060 case $arg in #(
14061 *"$as_nl"*)
14062 expr "X$arg" : "X\\(.*\\)$as_nl";
14063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14064 esac;
14065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14066 '
14067 export as_echo_n_body
14068 as_echo_n='sh -c $as_echo_n_body as_echo'
14069 fi
14070 export as_echo_body
14071 as_echo='sh -c $as_echo_body as_echo'
14072 fi
14073
14074 # The user is always right.
14075 if test "${PATH_SEPARATOR+set}" != set; then
14076 PATH_SEPARATOR=:
14077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14079 PATH_SEPARATOR=';'
14080 }
14081 fi
14082
14083
14084 # IFS
14085 # We need space, tab and new line, in precisely that order. Quoting is
14086 # there to prevent editors from complaining about space-tab.
14087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14088 # splitting by setting IFS to empty value.)
14089 IFS=" "" $as_nl"
14090
14091 # Find who we are. Look in the path if we contain no directory separator.
14092 case $0 in #((
14093 *[\\/]* ) as_myself=$0 ;;
14094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14100 done
14101 IFS=$as_save_IFS
14102
14103 ;;
14104 esac
14105 # We did not find ourselves, most probably we were run as `sh COMMAND'
14106 # in which case we are not to be found in the path.
14107 if test "x$as_myself" = x; then
14108 as_myself=$0
14109 fi
14110 if test ! -f "$as_myself"; then
14111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14112 exit 1
14113 fi
14114
14115 # Unset variables that we do not need and which cause bugs (e.g. in
14116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14117 # suppresses any "Segmentation fault" message there. '((' could
14118 # trigger a bug in pdksh 5.2.14.
14119 for as_var in BASH_ENV ENV MAIL MAILPATH
14120 do eval test x\${$as_var+set} = xset \
14121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14122 done
14123 PS1='$ '
14124 PS2='> '
14125 PS4='+ '
14126
14127 # NLS nuisances.
14128 LC_ALL=C
14129 export LC_ALL
14130 LANGUAGE=C
14131 export LANGUAGE
14132
14133 # CDPATH.
14134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14135
14136
14137 # as_fn_error ERROR [LINENO LOG_FD]
14138 # ---------------------------------
14139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14141 # script with status $?, using 1 if that was 0.
14142 as_fn_error ()
14143 {
14144 as_status=$?; test $as_status -eq 0 && as_status=1
14145 if test "$3"; then
14146 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14148 fi
14149 $as_echo "$as_me: error: $1" >&2
14150 as_fn_exit $as_status
14151 } # as_fn_error
14152
14153
14154 # as_fn_set_status STATUS
14155 # -----------------------
14156 # Set $? to STATUS, without forking.
14157 as_fn_set_status ()
14158 {
14159 return $1
14160 } # as_fn_set_status
14161
14162 # as_fn_exit STATUS
14163 # -----------------
14164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14165 as_fn_exit ()
14166 {
14167 set +e
14168 as_fn_set_status $1
14169 exit $1
14170 } # as_fn_exit
14171
14172 # as_fn_unset VAR
14173 # ---------------
14174 # Portably unset VAR.
14175 as_fn_unset ()
14176 {
14177 { eval $1=; unset $1;}
14178 }
14179 as_unset=as_fn_unset
14180 # as_fn_append VAR VALUE
14181 # ----------------------
14182 # Append the text in VALUE to the end of the definition contained in VAR. Take
14183 # advantage of any shell optimizations that allow amortized linear growth over
14184 # repeated appends, instead of the typical quadratic growth present in naive
14185 # implementations.
14186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14187 eval 'as_fn_append ()
14188 {
14189 eval $1+=\$2
14190 }'
14191 else
14192 as_fn_append ()
14193 {
14194 eval $1=\$$1\$2
14195 }
14196 fi # as_fn_append
14197
14198 # as_fn_arith ARG...
14199 # ------------------
14200 # Perform arithmetic evaluation on the ARGs, and store the result in the
14201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14202 # must be portable across $(()) and expr.
14203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14204 eval 'as_fn_arith ()
14205 {
14206 as_val=$(( $* ))
14207 }'
14208 else
14209 as_fn_arith ()
14210 {
14211 as_val=`expr "$@" || test $? -eq 1`
14212 }
14213 fi # as_fn_arith
14214
14215
14216 if expr a : '\(a\)' >/dev/null 2>&1 &&
14217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14218 as_expr=expr
14219 else
14220 as_expr=false
14221 fi
14222
14223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14224 as_basename=basename
14225 else
14226 as_basename=false
14227 fi
14228
14229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14230 as_dirname=dirname
14231 else
14232 as_dirname=false
14233 fi
14234
14235 as_me=`$as_basename -- "$0" ||
14236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14237 X"$0" : 'X\(//\)$' \| \
14238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14239 $as_echo X/"$0" |
14240 sed '/^.*\/\([^/][^/]*\)\/*$/{
14241 s//\1/
14242 q
14243 }
14244 /^X\/\(\/\/\)$/{
14245 s//\1/
14246 q
14247 }
14248 /^X\/\(\/\).*/{
14249 s//\1/
14250 q
14251 }
14252 s/.*/./; q'`
14253
14254 # Avoid depending upon Character Ranges.
14255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14258 as_cr_digits='0123456789'
14259 as_cr_alnum=$as_cr_Letters$as_cr_digits
14260
14261 ECHO_C= ECHO_N= ECHO_T=
14262 case `echo -n x` in #(((((
14263 -n*)
14264 case `echo 'xy\c'` in
14265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14266 xy) ECHO_C='\c';;
14267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14268 ECHO_T=' ';;
14269 esac;;
14270 *)
14271 ECHO_N='-n';;
14272 esac
14273
14274 rm -f conf$$ conf$$.exe conf$$.file
14275 if test -d conf$$.dir; then
14276 rm -f conf$$.dir/conf$$.file
14277 else
14278 rm -f conf$$.dir
14279 mkdir conf$$.dir 2>/dev/null
14280 fi
14281 if (echo >conf$$.file) 2>/dev/null; then
14282 if ln -s conf$$.file conf$$ 2>/dev/null; then
14283 as_ln_s='ln -s'
14284 # ... but there are two gotchas:
14285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14287 # In both cases, we have to default to `cp -p'.
14288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14289 as_ln_s='cp -p'
14290 elif ln conf$$.file conf$$ 2>/dev/null; then
14291 as_ln_s=ln
14292 else
14293 as_ln_s='cp -p'
14294 fi
14295 else
14296 as_ln_s='cp -p'
14297 fi
14298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14299 rmdir conf$$.dir 2>/dev/null
14300
14301
14302 # as_fn_mkdir_p
14303 # -------------
14304 # Create "$as_dir" as a directory, including parents if necessary.
14305 as_fn_mkdir_p ()
14306 {
14307
14308 case $as_dir in #(
14309 -*) as_dir=./$as_dir;;
14310 esac
14311 test -d "$as_dir" || eval $as_mkdir_p || {
14312 as_dirs=
14313 while :; do
14314 case $as_dir in #(
14315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14316 *) as_qdir=$as_dir;;
14317 esac
14318 as_dirs="'$as_qdir' $as_dirs"
14319 as_dir=`$as_dirname -- "$as_dir" ||
14320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14321 X"$as_dir" : 'X\(//\)[^/]' \| \
14322 X"$as_dir" : 'X\(//\)$' \| \
14323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14324 $as_echo X"$as_dir" |
14325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14326 s//\1/
14327 q
14328 }
14329 /^X\(\/\/\)[^/].*/{
14330 s//\1/
14331 q
14332 }
14333 /^X\(\/\/\)$/{
14334 s//\1/
14335 q
14336 }
14337 /^X\(\/\).*/{
14338 s//\1/
14339 q
14340 }
14341 s/.*/./; q'`
14342 test -d "$as_dir" && break
14343 done
14344 test -z "$as_dirs" || eval "mkdir $as_dirs"
14345 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14346
14347
14348 } # as_fn_mkdir_p
14349 if mkdir -p . 2>/dev/null; then
14350 as_mkdir_p='mkdir -p "$as_dir"'
14351 else
14352 test -d ./-p && rmdir ./-p
14353 as_mkdir_p=false
14354 fi
14355
14356 if test -x / >/dev/null 2>&1; then
14357 as_test_x='test -x'
14358 else
14359 if ls -dL / >/dev/null 2>&1; then
14360 as_ls_L_option=L
14361 else
14362 as_ls_L_option=
14363 fi
14364 as_test_x='
14365 eval sh -c '\''
14366 if test -d "$1"; then
14367 test -d "$1/.";
14368 else
14369 case $1 in #(
14370 -*)set "./$1";;
14371 esac;
14372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14373 ???[sx]*):;;*)false;;esac;fi
14374 '\'' sh
14375 '
14376 fi
14377 as_executable_p=$as_test_x
14378
14379 # Sed expression to map a string onto a valid CPP name.
14380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14381
14382 # Sed expression to map a string onto a valid variable name.
14383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14384
14385
14386 exec 6>&1
14387 ## ----------------------------------- ##
14388 ## Main body of $CONFIG_STATUS script. ##
14389 ## ----------------------------------- ##
14390 _ASEOF
14391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14392
14393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14394 # Save the log message, to keep $0 and so on meaningful, and to
14395 # report actual input values of CONFIG_FILES etc. instead of their
14396 # values after options handling.
14397 ac_log="
14398 This file was extended by ircd-hybrid $as_me 7.2.4, which was
14399 generated by GNU Autoconf 2.64. Invocation command line was
14400
14401 CONFIG_FILES = $CONFIG_FILES
14402 CONFIG_HEADERS = $CONFIG_HEADERS
14403 CONFIG_LINKS = $CONFIG_LINKS
14404 CONFIG_COMMANDS = $CONFIG_COMMANDS
14405 $ $0 $@
14406
14407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14408 "
14409
14410 _ACEOF
14411
14412 case $ac_config_files in *"
14413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14414 esac
14415
14416 case $ac_config_headers in *"
14417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14418 esac
14419
14420
14421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14422 # Files that config.status was made for.
14423 config_files="$ac_config_files"
14424 config_headers="$ac_config_headers"
14425 config_commands="$ac_config_commands"
14426
14427 _ACEOF
14428
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430 ac_cs_usage="\
14431 \`$as_me' instantiates files and other configuration actions
14432 from templates according to the current configuration. Unless the files
14433 and actions are specified as TAGs, all are instantiated by default.
14434
14435 Usage: $0 [OPTION]... [TAG]...
14436
14437 -h, --help print this help, then exit
14438 -V, --version print version number and configuration settings, then exit
14439 -q, --quiet, --silent
14440 do not print progress messages
14441 -d, --debug don't remove temporary files
14442 --recheck update $as_me by reconfiguring in the same conditions
14443 --file=FILE[:TEMPLATE]
14444 instantiate the configuration file FILE
14445 --header=FILE[:TEMPLATE]
14446 instantiate the configuration header FILE
14447
14448 Configuration files:
14449 $config_files
14450
14451 Configuration headers:
14452 $config_headers
14453
14454 Configuration commands:
14455 $config_commands
14456
14457 Report bugs to the package provider."
14458
14459 _ACEOF
14460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14461 ac_cs_version="\\
14462 ircd-hybrid config.status 7.2.4
14463 configured by $0, generated by GNU Autoconf 2.64,
14464 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14465
14466 Copyright (C) 2009 Free Software Foundation, Inc.
14467 This config.status script is free software; the Free Software Foundation
14468 gives unlimited permission to copy, distribute and modify it."
14469
14470 ac_pwd='$ac_pwd'
14471 srcdir='$srcdir'
14472 INSTALL='$INSTALL'
14473 MKDIR_P='$MKDIR_P'
14474 AWK='$AWK'
14475 test -n "\$AWK" || AWK=awk
14476 _ACEOF
14477
14478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14479 # The default lists apply if the user does not specify any file.
14480 ac_need_defaults=:
14481 while test $# != 0
14482 do
14483 case $1 in
14484 --*=*)
14485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14487 ac_shift=:
14488 ;;
14489 *)
14490 ac_option=$1
14491 ac_optarg=$2
14492 ac_shift=shift
14493 ;;
14494 esac
14495
14496 case $ac_option in
14497 # Handling of the options.
14498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14499 ac_cs_recheck=: ;;
14500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14501 $as_echo "$ac_cs_version"; exit ;;
14502 --debug | --debu | --deb | --de | --d | -d )
14503 debug=: ;;
14504 --file | --fil | --fi | --f )
14505 $ac_shift
14506 case $ac_optarg in
14507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14508 esac
14509 as_fn_append CONFIG_FILES " '$ac_optarg'"
14510 ac_need_defaults=false;;
14511 --header | --heade | --head | --hea )
14512 $ac_shift
14513 case $ac_optarg in
14514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14515 esac
14516 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14517 ac_need_defaults=false;;
14518 --he | --h)
14519 # Conflict between --help and --header
14520 as_fn_error "ambiguous option: \`$1'
14521 Try \`$0 --help' for more information.";;
14522 --help | --hel | -h )
14523 $as_echo "$ac_cs_usage"; exit ;;
14524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14526 ac_cs_silent=: ;;
14527
14528 # This is an error.
14529 -*) as_fn_error "unrecognized option: \`$1'
14530 Try \`$0 --help' for more information." ;;
14531
14532 *) as_fn_append ac_config_targets " $1"
14533 ac_need_defaults=false ;;
14534
14535 esac
14536 shift
14537 done
14538
14539 ac_configure_extra_args=
14540
14541 if $ac_cs_silent; then
14542 exec 6>/dev/null
14543 ac_configure_extra_args="$ac_configure_extra_args --silent"
14544 fi
14545
14546 _ACEOF
14547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14548 if \$ac_cs_recheck; then
14549 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14550 shift
14551 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14552 CONFIG_SHELL='$SHELL'
14553 export CONFIG_SHELL
14554 exec "\$@"
14555 fi
14556
14557 _ACEOF
14558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559 exec 5>>config.log
14560 {
14561 echo
14562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14563 ## Running $as_me. ##
14564 _ASBOX
14565 $as_echo "$ac_log"
14566 } >&5
14567
14568 _ACEOF
14569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14570 #
14571 # INIT-COMMANDS
14572 #
14573 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14574
14575
14576 # The HP-UX ksh and POSIX shell print the target directory to stdout
14577 # if CDPATH is set.
14578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14579
14580 sed_quote_subst='$sed_quote_subst'
14581 double_quote_subst='$double_quote_subst'
14582 delay_variable_subst='$delay_variable_subst'
14583 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14584 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14585 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14586 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14587 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14588 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14589 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14590 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14591 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14592 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14593 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14594 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14595 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14596 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14597 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14598 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14599 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14600 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14601 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14602 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14603 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14604 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14605 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14606 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14607 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14608 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14609 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14610 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14611 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14612 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14613 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14614 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14615 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14616 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14617 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14618 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14619 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14620 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14621 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14622 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14623 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14624 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14625 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14626 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14627 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14629 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14630 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14631 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14632 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14633 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14634 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14635 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14636 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14637 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14638 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14639 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14640 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14641 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14642 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14643 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14644 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14645 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14646 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14647 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14648 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14649 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14650 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14651 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14652 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14653 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14654 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14655 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14656 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14657 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14658 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14659 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14660 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14661 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14662 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14663 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14664 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14665 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14666 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14667 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14668 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14669 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14670 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14671 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14672 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14673 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14674 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14675 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14676 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14677 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14678 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14679 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14680 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14681 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14682 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14683 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14684 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14685 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14686 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14687 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14688 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14689 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14690 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14691 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14692 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14693 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14694 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14695 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14696 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14697 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14698 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14699 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14700 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14701
14702 LTCC='$LTCC'
14703 LTCFLAGS='$LTCFLAGS'
14704 compiler='$compiler_DEFAULT'
14705
14706 # Quote evaled strings.
14707 for var in SED \
14708 GREP \
14709 EGREP \
14710 FGREP \
14711 LD \
14712 NM \
14713 LN_S \
14714 lt_SP2NL \
14715 lt_NL2SP \
14716 reload_flag \
14717 OBJDUMP \
14718 deplibs_check_method \
14719 file_magic_cmd \
14720 AR \
14721 AR_FLAGS \
14722 STRIP \
14723 RANLIB \
14724 CC \
14725 CFLAGS \
14726 compiler \
14727 lt_cv_sys_global_symbol_pipe \
14728 lt_cv_sys_global_symbol_to_cdecl \
14729 lt_cv_sys_global_symbol_to_c_name_address \
14730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14731 SHELL \
14732 ECHO \
14733 lt_prog_compiler_no_builtin_flag \
14734 lt_prog_compiler_wl \
14735 lt_prog_compiler_pic \
14736 lt_prog_compiler_static \
14737 lt_cv_prog_compiler_c_o \
14738 need_locks \
14739 DSYMUTIL \
14740 NMEDIT \
14741 LIPO \
14742 OTOOL \
14743 OTOOL64 \
14744 shrext_cmds \
14745 export_dynamic_flag_spec \
14746 whole_archive_flag_spec \
14747 compiler_needs_object \
14748 with_gnu_ld \
14749 allow_undefined_flag \
14750 no_undefined_flag \
14751 hardcode_libdir_flag_spec \
14752 hardcode_libdir_flag_spec_ld \
14753 hardcode_libdir_separator \
14754 fix_srcfile_path \
14755 exclude_expsyms \
14756 include_expsyms \
14757 file_list_spec \
14758 variables_saved_for_relink \
14759 libname_spec \
14760 library_names_spec \
14761 soname_spec \
14762 finish_eval \
14763 old_striplib \
14764 striplib; do
14765 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14766 *[\\\\\\\`\\"\\\$]*)
14767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14768 ;;
14769 *)
14770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14771 ;;
14772 esac
14773 done
14774
14775 # Double-quote double-evaled strings.
14776 for var in reload_cmds \
14777 old_postinstall_cmds \
14778 old_postuninstall_cmds \
14779 old_archive_cmds \
14780 extract_expsyms_cmds \
14781 old_archive_from_new_cmds \
14782 old_archive_from_expsyms_cmds \
14783 archive_cmds \
14784 archive_expsym_cmds \
14785 module_cmds \
14786 module_expsym_cmds \
14787 export_symbols_cmds \
14788 prelink_cmds \
14789 postinstall_cmds \
14790 postuninstall_cmds \
14791 finish_cmds \
14792 sys_lib_search_path_spec \
14793 sys_lib_dlsearch_path_spec; do
14794 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14795 *[\\\\\\\`\\"\\\$]*)
14796 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14797 ;;
14798 *)
14799 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14800 ;;
14801 esac
14802 done
14803
14804 # Fix-up fallback echo if it was mangled by the above quoting rules.
14805 case \$lt_ECHO in
14806 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14807 ;;
14808 esac
14809
14810 ac_aux_dir='$ac_aux_dir'
14811 xsi_shell='$xsi_shell'
14812 lt_shell_append='$lt_shell_append'
14813
14814 # See if we are running on zsh, and set the options which allow our
14815 # commands through without removal of \ escapes INIT.
14816 if test -n "\${ZSH_VERSION+set}" ; then
14817 setopt NO_GLOB_SUBST
14818 fi
14819
14820
14821 PACKAGE='$PACKAGE'
14822 VERSION='$VERSION'
14823 TIMESTAMP='$TIMESTAMP'
14824 RM='$RM'
14825 ofile='$ofile'
14826
14827
14828
14829
14830 _ACEOF
14831
14832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14833
14834 # Handling of arguments.
14835 for ac_config_target in $ac_config_targets
14836 do
14837 case $ac_config_target in
14838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14840 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14841 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14842 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14843 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14844 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14845 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14846 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14847 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14848 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14849 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14850 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14851 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14852 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14853 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14854 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14855 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14856 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14857 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14858
14859 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14860 esac
14861 done
14862
14863
14864 # If the user did not use the arguments to specify the items to instantiate,
14865 # then the envvar interface is used. Set only those that are not.
14866 # We use the long form for the default assignment because of an extremely
14867 # bizarre bug on SunOS 4.1.3.
14868 if $ac_need_defaults; then
14869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14872 fi
14873
14874 # Have a temporary directory for convenience. Make it in the build tree
14875 # simply because there is no reason against having it here, and in addition,
14876 # creating and moving files from /tmp can sometimes cause problems.
14877 # Hook for its removal unless debugging.
14878 # Note that there is a small window in which the directory will not be cleaned:
14879 # after its creation but before its name has been assigned to `$tmp'.
14880 $debug ||
14881 {
14882 tmp=
14883 trap 'exit_status=$?
14884 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14885 ' 0
14886 trap 'as_fn_exit 1' 1 2 13 15
14887 }
14888 # Create a (secure) tmp directory for tmp files.
14889
14890 {
14891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14892 test -n "$tmp" && test -d "$tmp"
14893 } ||
14894 {
14895 tmp=./conf$$-$RANDOM
14896 (umask 077 && mkdir "$tmp")
14897 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14898
14899 # Set up the scripts for CONFIG_FILES section.
14900 # No need to generate them if there are no CONFIG_FILES.
14901 # This happens for instance with `./config.status config.h'.
14902 if test -n "$CONFIG_FILES"; then
14903
14904
14905 ac_cr=`echo X | tr X '\015'`
14906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14907 # But we know of no other shell where ac_cr would be empty at this
14908 # point, so we can use a bashism as a fallback.
14909 if test "x$ac_cr" = x; then
14910 eval ac_cr=\$\'\\r\'
14911 fi
14912 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14914 ac_cs_awk_cr='\r'
14915 else
14916 ac_cs_awk_cr=$ac_cr
14917 fi
14918
14919 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14920 _ACEOF
14921
14922
14923 {
14924 echo "cat >conf$$subs.awk <<_ACEOF" &&
14925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14926 echo "_ACEOF"
14927 } >conf$$subs.sh ||
14928 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14930 ac_delim='%!_!# '
14931 for ac_last_try in false false false false false :; do
14932 . ./conf$$subs.sh ||
14933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14934
14935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14936 if test $ac_delim_n = $ac_delim_num; then
14937 break
14938 elif $ac_last_try; then
14939 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14940 else
14941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14942 fi
14943 done
14944 rm -f conf$$subs.sh
14945
14946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14947 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14948 _ACEOF
14949 sed -n '
14950 h
14951 s/^/S["/; s/!.*/"]=/
14952 p
14953 g
14954 s/^[^!]*!//
14955 :repl
14956 t repl
14957 s/'"$ac_delim"'$//
14958 t delim
14959 :nl
14960 h
14961 s/\(.\{148\}\).*/\1/
14962 t more1
14963 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14964 p
14965 n
14966 b repl
14967 :more1
14968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14969 p
14970 g
14971 s/.\{148\}//
14972 t nl
14973 :delim
14974 h
14975 s/\(.\{148\}\).*/\1/
14976 t more2
14977 s/["\\]/\\&/g; s/^/"/; s/$/"/
14978 p
14979 b
14980 :more2
14981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14982 p
14983 g
14984 s/.\{148\}//
14985 t delim
14986 ' <conf$$subs.awk | sed '
14987 /^[^""]/{
14988 N
14989 s/\n//
14990 }
14991 ' >>$CONFIG_STATUS || ac_write_fail=1
14992 rm -f conf$$subs.awk
14993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14994 _ACAWK
14995 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14996 for (key in S) S_is_set[key] = 1
14997 FS = ""
14998
14999 }
15000 {
15001 line = $ 0
15002 nfields = split(line, field, "@")
15003 substed = 0
15004 len = length(field[1])
15005 for (i = 2; i < nfields; i++) {
15006 key = field[i]
15007 keylen = length(key)
15008 if (S_is_set[key]) {
15009 value = S[key]
15010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15011 len += length(value) + length(field[++i])
15012 substed = 1
15013 } else
15014 len += 1 + keylen
15015 }
15016
15017 print line
15018 }
15019
15020 _ACAWK
15021 _ACEOF
15022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15025 else
15026 cat
15027 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15028 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15029 _ACEOF
15030
15031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15033 # trailing colons and then remove the whole line if VPATH becomes empty
15034 # (actually we leave an empty line to preserve line numbers).
15035 if test "x$srcdir" = x.; then
15036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15037 s/:*\$(srcdir):*/:/
15038 s/:*\${srcdir}:*/:/
15039 s/:*@srcdir@:*/:/
15040 s/^\([^=]*=[ ]*\):*/\1/
15041 s/:*$//
15042 s/^[^=]*=[ ]*$//
15043 }'
15044 fi
15045
15046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15047 fi # test -n "$CONFIG_FILES"
15048
15049 # Set up the scripts for CONFIG_HEADERS section.
15050 # No need to generate them if there are no CONFIG_HEADERS.
15051 # This happens for instance with `./config.status Makefile'.
15052 if test -n "$CONFIG_HEADERS"; then
15053 cat >"$tmp/defines.awk" <<\_ACAWK ||
15054 BEGIN {
15055 _ACEOF
15056
15057 # Transform confdefs.h into an awk script `defines.awk', embedded as
15058 # here-document in config.status, that substitutes the proper values into
15059 # config.h.in to produce config.h.
15060
15061 # Create a delimiter string that does not exist in confdefs.h, to ease
15062 # handling of long lines.
15063 ac_delim='%!_!# '
15064 for ac_last_try in false false :; do
15065 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15066 if test -z "$ac_t"; then
15067 break
15068 elif $ac_last_try; then
15069 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15070 else
15071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15072 fi
15073 done
15074
15075 # For the awk script, D is an array of macro values keyed by name,
15076 # likewise P contains macro parameters if any. Preserve backslash
15077 # newline sequences.
15078
15079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15080 sed -n '
15081 s/.\{148\}/&'"$ac_delim"'/g
15082 t rset
15083 :rset
15084 s/^[ ]*#[ ]*define[ ][ ]*/ /
15085 t def
15086 d
15087 :def
15088 s/\\$//
15089 t bsnl
15090 s/["\\]/\\&/g
15091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15092 D["\1"]=" \3"/p
15093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15094 d
15095 :bsnl
15096 s/["\\]/\\&/g
15097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15098 D["\1"]=" \3\\\\\\n"\\/p
15099 t cont
15100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15101 t cont
15102 d
15103 :cont
15104 n
15105 s/.\{148\}/&'"$ac_delim"'/g
15106 t clear
15107 :clear
15108 s/\\$//
15109 t bsnlc
15110 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15111 d
15112 :bsnlc
15113 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15114 b cont
15115 ' <confdefs.h | sed '
15116 s/'"$ac_delim"'/"\\\
15117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15118
15119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120 for (key in D) D_is_set[key] = 1
15121 FS = ""
15122 }
15123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15124 line = \$ 0
15125 split(line, arg, " ")
15126 if (arg[1] == "#") {
15127 defundef = arg[2]
15128 mac1 = arg[3]
15129 } else {
15130 defundef = substr(arg[1], 2)
15131 mac1 = arg[2]
15132 }
15133 split(mac1, mac2, "(") #)
15134 macro = mac2[1]
15135 prefix = substr(line, 1, index(line, defundef) - 1)
15136 if (D_is_set[macro]) {
15137 # Preserve the white space surrounding the "#".
15138 print prefix "define", macro P[macro] D[macro]
15139 next
15140 } else {
15141 # Replace #undef with comments. This is necessary, for example,
15142 # in the case of _POSIX_SOURCE, which is predefined and required
15143 # on some systems where configure will not decide to define it.
15144 if (defundef == "undef") {
15145 print "/*", prefix defundef, macro, "*/"
15146 next
15147 }
15148 }
15149 }
15150 { print }
15151 _ACAWK
15152 _ACEOF
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15155 fi # test -n "$CONFIG_HEADERS"
15156
15157
15158 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15159 shift
15160 for ac_tag
15161 do
15162 case $ac_tag in
15163 :[FHLC]) ac_mode=$ac_tag; continue;;
15164 esac
15165 case $ac_mode$ac_tag in
15166 :[FHL]*:*);;
15167 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15168 :[FH]-) ac_tag=-:-;;
15169 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15170 esac
15171 ac_save_IFS=$IFS
15172 IFS=:
15173 set x $ac_tag
15174 IFS=$ac_save_IFS
15175 shift
15176 ac_file=$1
15177 shift
15178
15179 case $ac_mode in
15180 :L) ac_source=$1;;
15181 :[FH])
15182 ac_file_inputs=
15183 for ac_f
15184 do
15185 case $ac_f in
15186 -) ac_f="$tmp/stdin";;
15187 *) # Look for the file first in the build tree, then in the source tree
15188 # (if the path is not absolute). The absolute path cannot be DOS-style,
15189 # because $ac_f cannot contain `:'.
15190 test -f "$ac_f" ||
15191 case $ac_f in
15192 [\\/$]*) false;;
15193 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15194 esac ||
15195 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15196 esac
15197 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15198 as_fn_append ac_file_inputs " '$ac_f'"
15199 done
15200
15201 # Let's still pretend it is `configure' which instantiates (i.e., don't
15202 # use $as_me), people would be surprised to read:
15203 # /* config.h. Generated by config.status. */
15204 configure_input='Generated from '`
15205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15206 `' by configure.'
15207 if test x"$ac_file" != x-; then
15208 configure_input="$ac_file. $configure_input"
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15210 $as_echo "$as_me: creating $ac_file" >&6;}
15211 fi
15212 # Neutralize special characters interpreted by sed in replacement strings.
15213 case $configure_input in #(
15214 *\&* | *\|* | *\\* )
15215 ac_sed_conf_input=`$as_echo "$configure_input" |
15216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15217 *) ac_sed_conf_input=$configure_input;;
15218 esac
15219
15220 case $ac_tag in
15221 *:-:* | *:-) cat >"$tmp/stdin" \
15222 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15223 esac
15224 ;;
15225 esac
15226
15227 ac_dir=`$as_dirname -- "$ac_file" ||
15228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229 X"$ac_file" : 'X\(//\)[^/]' \| \
15230 X"$ac_file" : 'X\(//\)$' \| \
15231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15232 $as_echo X"$ac_file" |
15233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15234 s//\1/
15235 q
15236 }
15237 /^X\(\/\/\)[^/].*/{
15238 s//\1/
15239 q
15240 }
15241 /^X\(\/\/\)$/{
15242 s//\1/
15243 q
15244 }
15245 /^X\(\/\).*/{
15246 s//\1/
15247 q
15248 }
15249 s/.*/./; q'`
15250 as_dir="$ac_dir"; as_fn_mkdir_p
15251 ac_builddir=.
15252
15253 case "$ac_dir" in
15254 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15255 *)
15256 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15257 # A ".." for each directory in $ac_dir_suffix.
15258 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15259 case $ac_top_builddir_sub in
15260 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15261 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15262 esac ;;
15263 esac
15264 ac_abs_top_builddir=$ac_pwd
15265 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15266 # for backward compatibility:
15267 ac_top_builddir=$ac_top_build_prefix
15268
15269 case $srcdir in
15270 .) # We are building in place.
15271 ac_srcdir=.
15272 ac_top_srcdir=$ac_top_builddir_sub
15273 ac_abs_top_srcdir=$ac_pwd ;;
15274 [\\/]* | ?:[\\/]* ) # Absolute name.
15275 ac_srcdir=$srcdir$ac_dir_suffix;
15276 ac_top_srcdir=$srcdir
15277 ac_abs_top_srcdir=$srcdir ;;
15278 *) # Relative name.
15279 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15280 ac_top_srcdir=$ac_top_build_prefix$srcdir
15281 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15282 esac
15283 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15284
15285
15286 case $ac_mode in
15287 :F)
15288 #
15289 # CONFIG_FILE
15290 #
15291
15292 case $INSTALL in
15293 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15294 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15295 esac
15296 ac_MKDIR_P=$MKDIR_P
15297 case $MKDIR_P in
15298 [\\/$]* | ?:[\\/]* ) ;;
15299 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15300 esac
15301 _ACEOF
15302
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 # If the template does not know about datarootdir, expand it.
15305 # FIXME: This hack should be removed a few years after 2.60.
15306 ac_datarootdir_hack=; ac_datarootdir_seen=
15307 ac_sed_dataroot='
15308 /datarootdir/ {
15309 p
15310 q
15311 }
15312 /@datadir@/p
15313 /@docdir@/p
15314 /@infodir@/p
15315 /@localedir@/p
15316 /@mandir@/p'
15317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15318 *datarootdir*) ac_datarootdir_seen=yes;;
15319 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15322 _ACEOF
15323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15324 ac_datarootdir_hack='
15325 s&@datadir@&$datadir&g
15326 s&@docdir@&$docdir&g
15327 s&@infodir@&$infodir&g
15328 s&@localedir@&$localedir&g
15329 s&@mandir@&$mandir&g
15330 s&\\\${datarootdir}&$datarootdir&g' ;;
15331 esac
15332 _ACEOF
15333
15334 # Neutralize VPATH when `$srcdir' = `.'.
15335 # Shell code in configure.ac might set extrasub.
15336 # FIXME: do we really want to maintain this feature?
15337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15338 ac_sed_extra="$ac_vpsub
15339 $extrasub
15340 _ACEOF
15341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342 :t
15343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15344 s|@configure_input@|$ac_sed_conf_input|;t t
15345 s&@top_builddir@&$ac_top_builddir_sub&;t t
15346 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15347 s&@srcdir@&$ac_srcdir&;t t
15348 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15349 s&@top_srcdir@&$ac_top_srcdir&;t t
15350 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15351 s&@builddir@&$ac_builddir&;t t
15352 s&@abs_builddir@&$ac_abs_builddir&;t t
15353 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15354 s&@INSTALL@&$ac_INSTALL&;t t
15355 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15356 $ac_datarootdir_hack
15357 "
15358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15359 || as_fn_error "could not create $ac_file" "$LINENO" 5
15360
15361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15362 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15365 which seems to be undefined. Please make sure it is defined." >&5
15366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15367 which seems to be undefined. Please make sure it is defined." >&2;}
15368
15369 rm -f "$tmp/stdin"
15370 case $ac_file in
15371 -) cat "$tmp/out" && rm -f "$tmp/out";;
15372 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15373 esac \
15374 || as_fn_error "could not create $ac_file" "$LINENO" 5
15375 ;;
15376 :H)
15377 #
15378 # CONFIG_HEADER
15379 #
15380 if test x"$ac_file" != x-; then
15381 {
15382 $as_echo "/* $configure_input */" \
15383 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15384 } >"$tmp/config.h" \
15385 || as_fn_error "could not create $ac_file" "$LINENO" 5
15386 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15389 else
15390 rm -f "$ac_file"
15391 mv "$tmp/config.h" "$ac_file" \
15392 || as_fn_error "could not create $ac_file" "$LINENO" 5
15393 fi
15394 else
15395 $as_echo "/* $configure_input */" \
15396 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15397 || as_fn_error "could not create -" "$LINENO" 5
15398 fi
15399 # Compute "$ac_file"'s index in $config_headers.
15400 _am_arg="$ac_file"
15401 _am_stamp_count=1
15402 for _am_header in $config_headers :; do
15403 case $_am_header in
15404 $_am_arg | $_am_arg:* )
15405 break ;;
15406 * )
15407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15408 esac
15409 done
15410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$_am_arg" : 'X\(//\)[^/]' \| \
15413 X"$_am_arg" : 'X\(//\)$' \| \
15414 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$_am_arg" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\/\)$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\).*/{
15429 s//\1/
15430 q
15431 }
15432 s/.*/./; q'`/stamp-h$_am_stamp_count
15433 ;;
15434
15435 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15436 $as_echo "$as_me: executing $ac_file commands" >&6;}
15437 ;;
15438 esac
15439
15440
15441 case $ac_file$ac_mode in
15442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15443 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15444 # are listed without --file. Let's play safe and only enable the eval
15445 # if we detect the quoting.
15446 case $CONFIG_FILES in
15447 *\'*) eval set x "$CONFIG_FILES" ;;
15448 *) set x $CONFIG_FILES ;;
15449 esac
15450 shift
15451 for mf
15452 do
15453 # Strip MF so we end up with the name of the file.
15454 mf=`echo "$mf" | sed -e 's/:.*$//'`
15455 # Check whether this is an Automake generated Makefile or not.
15456 # We used to match only the files named `Makefile.in', but
15457 # some people rename them; so instead we look at the file content.
15458 # Grep'ing the first line is not enough: some people post-process
15459 # each Makefile.in and add a new line on top of each file to say so.
15460 # Grep'ing the whole file is not good either: AIX grep has a line
15461 # limit of 2048, but all sed's we know have understand at least 4000.
15462 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15463 dirpart=`$as_dirname -- "$mf" ||
15464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15465 X"$mf" : 'X\(//\)[^/]' \| \
15466 X"$mf" : 'X\(//\)$' \| \
15467 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15468 $as_echo X"$mf" |
15469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15470 s//\1/
15471 q
15472 }
15473 /^X\(\/\/\)[^/].*/{
15474 s//\1/
15475 q
15476 }
15477 /^X\(\/\/\)$/{
15478 s//\1/
15479 q
15480 }
15481 /^X\(\/\).*/{
15482 s//\1/
15483 q
15484 }
15485 s/.*/./; q'`
15486 else
15487 continue
15488 fi
15489 # Extract the definition of DEPDIR, am__include, and am__quote
15490 # from the Makefile without running `make'.
15491 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15492 test -z "$DEPDIR" && continue
15493 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15494 test -z "am__include" && continue
15495 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15496 # When using ansi2knr, U may be empty or an underscore; expand it
15497 U=`sed -n 's/^U = //p' < "$mf"`
15498 # Find all dependency output files, they are included files with
15499 # $(DEPDIR) in their names. We invoke sed twice because it is the
15500 # simplest approach to changing $(DEPDIR) to its actual value in the
15501 # expansion.
15502 for file in `sed -n "
15503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15505 # Make sure the directory exists.
15506 test -f "$dirpart/$file" && continue
15507 fdir=`$as_dirname -- "$file" ||
15508 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$file" : 'X\(//\)[^/]' \| \
15510 X"$file" : 'X\(//\)$' \| \
15511 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15512 $as_echo X"$file" |
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\/\)[^/].*/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\).*/{
15526 s//\1/
15527 q
15528 }
15529 s/.*/./; q'`
15530 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15531 # echo "creating $dirpart/$file"
15532 echo '# dummy' > "$dirpart/$file"
15533 done
15534 done
15535 }
15536 ;;
15537 "libtool":C)
15538
15539 # See if we are running on zsh, and set the options which allow our
15540 # commands through without removal of \ escapes.
15541 if test -n "${ZSH_VERSION+set}" ; then
15542 setopt NO_GLOB_SUBST
15543 fi
15544
15545 cfgfile="${ofile}T"
15546 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15547 $RM "$cfgfile"
15548
15549 cat <<_LT_EOF >> "$cfgfile"
15550 #! $SHELL
15551
15552 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15553 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15555 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15556 #
15557 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15558 # 2006, 2007, 2008 Free Software Foundation, Inc.
15559 # Written by Gordon Matzigkeit, 1996
15560 #
15561 # This file is part of GNU Libtool.
15562 #
15563 # GNU Libtool is free software; you can redistribute it and/or
15564 # modify it under the terms of the GNU General Public License as
15565 # published by the Free Software Foundation; either version 2 of
15566 # the License, or (at your option) any later version.
15567 #
15568 # As a special exception to the GNU General Public License,
15569 # if you distribute this file as part of a program or library that
15570 # is built using GNU Libtool, you may include this file under the
15571 # same distribution terms that you use for the rest of that program.
15572 #
15573 # GNU Libtool is distributed in the hope that it will be useful,
15574 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15575 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15576 # GNU General Public License for more details.
15577 #
15578 # You should have received a copy of the GNU General Public License
15579 # along with GNU Libtool; see the file COPYING. If not, a copy
15580 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15581 # obtained by writing to the Free Software Foundation, Inc.,
15582 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15583
15584
15585 # The names of the tagged configurations supported by this script.
15586 available_tags=""
15587
15588 # ### BEGIN LIBTOOL CONFIG
15589
15590 # Which release of libtool.m4 was used?
15591 macro_version=$macro_version
15592 macro_revision=$macro_revision
15593
15594 # Whether or not to build static libraries.
15595 build_old_libs=$enable_static
15596
15597 # Whether or not to build shared libraries.
15598 build_libtool_libs=$enable_shared
15599
15600 # What type of objects to build.
15601 pic_mode=$pic_mode
15602
15603 # Whether or not to optimize for fast installation.
15604 fast_install=$enable_fast_install
15605
15606 # The host system.
15607 host_alias=$host_alias
15608 host=$host
15609 host_os=$host_os
15610
15611 # The build system.
15612 build_alias=$build_alias
15613 build=$build
15614 build_os=$build_os
15615
15616 # A sed program that does not truncate output.
15617 SED=$lt_SED
15618
15619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15620 Xsed="\$SED -e 1s/^X//"
15621
15622 # A grep program that handles long lines.
15623 GREP=$lt_GREP
15624
15625 # An ERE matcher.
15626 EGREP=$lt_EGREP
15627
15628 # A literal string matcher.
15629 FGREP=$lt_FGREP
15630
15631 # A BSD- or MS-compatible name lister.
15632 NM=$lt_NM
15633
15634 # Whether we need soft or hard links.
15635 LN_S=$lt_LN_S
15636
15637 # What is the maximum length of a command?
15638 max_cmd_len=$max_cmd_len
15639
15640 # Object file suffix (normally "o").
15641 objext=$ac_objext
15642
15643 # Executable file suffix (normally "").
15644 exeext=$exeext
15645
15646 # whether the shell understands "unset".
15647 lt_unset=$lt_unset
15648
15649 # turn spaces into newlines.
15650 SP2NL=$lt_lt_SP2NL
15651
15652 # turn newlines into spaces.
15653 NL2SP=$lt_lt_NL2SP
15654
15655 # How to create reloadable object files.
15656 reload_flag=$lt_reload_flag
15657 reload_cmds=$lt_reload_cmds
15658
15659 # An object symbol dumper.
15660 OBJDUMP=$lt_OBJDUMP
15661
15662 # Method to check whether dependent libraries are shared objects.
15663 deplibs_check_method=$lt_deplibs_check_method
15664
15665 # Command to use when deplibs_check_method == "file_magic".
15666 file_magic_cmd=$lt_file_magic_cmd
15667
15668 # The archiver.
15669 AR=$lt_AR
15670 AR_FLAGS=$lt_AR_FLAGS
15671
15672 # A symbol stripping program.
15673 STRIP=$lt_STRIP
15674
15675 # Commands used to install an old-style archive.
15676 RANLIB=$lt_RANLIB
15677 old_postinstall_cmds=$lt_old_postinstall_cmds
15678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15679
15680 # A C compiler.
15681 LTCC=$lt_CC
15682
15683 # LTCC compiler flags.
15684 LTCFLAGS=$lt_CFLAGS
15685
15686 # Take the output of nm and produce a listing of raw symbols and C names.
15687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15688
15689 # Transform the output of nm in a proper C declaration.
15690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15691
15692 # Transform the output of nm in a C name address pair.
15693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15694
15695 # Transform the output of nm in a C name address pair when lib prefix is needed.
15696 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15697
15698 # The name of the directory that contains temporary libtool files.
15699 objdir=$objdir
15700
15701 # Shell to use when invoking shell scripts.
15702 SHELL=$lt_SHELL
15703
15704 # An echo program that does not interpret backslashes.
15705 ECHO=$lt_ECHO
15706
15707 # Used to examine libraries when file_magic_cmd begins with "file".
15708 MAGIC_CMD=$MAGIC_CMD
15709
15710 # Must we lock files when doing compilation?
15711 need_locks=$lt_need_locks
15712
15713 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15714 DSYMUTIL=$lt_DSYMUTIL
15715
15716 # Tool to change global to local symbols on Mac OS X.
15717 NMEDIT=$lt_NMEDIT
15718
15719 # Tool to manipulate fat objects and archives on Mac OS X.
15720 LIPO=$lt_LIPO
15721
15722 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15723 OTOOL=$lt_OTOOL
15724
15725 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15726 OTOOL64=$lt_OTOOL64
15727
15728 # Old archive suffix (normally "a").
15729 libext=$libext
15730
15731 # Shared library suffix (normally ".so").
15732 shrext_cmds=$lt_shrext_cmds
15733
15734 # The commands to extract the exported symbol list from a shared archive.
15735 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15736
15737 # Variables whose values should be saved in libtool wrapper scripts and
15738 # restored at link time.
15739 variables_saved_for_relink=$lt_variables_saved_for_relink
15740
15741 # Do we need the "lib" prefix for modules?
15742 need_lib_prefix=$need_lib_prefix
15743
15744 # Do we need a version for libraries?
15745 need_version=$need_version
15746
15747 # Library versioning type.
15748 version_type=$version_type
15749
15750 # Shared library runtime path variable.
15751 runpath_var=$runpath_var
15752
15753 # Shared library path variable.
15754 shlibpath_var=$shlibpath_var
15755
15756 # Is shlibpath searched before the hard-coded library search path?
15757 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15758
15759 # Format of library name prefix.
15760 libname_spec=$lt_libname_spec
15761
15762 # List of archive names. First name is the real one, the rest are links.
15763 # The last name is the one that the linker finds with -lNAME
15764 library_names_spec=$lt_library_names_spec
15765
15766 # The coded name of the library, if different from the real name.
15767 soname_spec=$lt_soname_spec
15768
15769 # Command to use after installation of a shared archive.
15770 postinstall_cmds=$lt_postinstall_cmds
15771
15772 # Command to use after uninstallation of a shared archive.
15773 postuninstall_cmds=$lt_postuninstall_cmds
15774
15775 # Commands used to finish a libtool library installation in a directory.
15776 finish_cmds=$lt_finish_cmds
15777
15778 # As "finish_cmds", except a single script fragment to be evaled but
15779 # not shown.
15780 finish_eval=$lt_finish_eval
15781
15782 # Whether we should hardcode library paths into libraries.
15783 hardcode_into_libs=$hardcode_into_libs
15784
15785 # Compile-time system search path for libraries.
15786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15787
15788 # Run-time system search path for libraries.
15789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15790
15791 # Whether dlopen is supported.
15792 dlopen_support=$enable_dlopen
15793
15794 # Whether dlopen of programs is supported.
15795 dlopen_self=$enable_dlopen_self
15796
15797 # Whether dlopen of statically linked programs is supported.
15798 dlopen_self_static=$enable_dlopen_self_static
15799
15800 # Commands to strip libraries.
15801 old_striplib=$lt_old_striplib
15802 striplib=$lt_striplib
15803
15804
15805 # The linker used to build libraries.
15806 LD=$lt_LD
15807
15808 # Commands used to build an old-style archive.
15809 old_archive_cmds=$lt_old_archive_cmds
15810
15811 # A language specific compiler.
15812 CC=$lt_compiler
15813
15814 # Is the compiler the GNU compiler?
15815 with_gcc=$GCC
15816
15817 # Compiler flag to turn off builtin functions.
15818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15819
15820 # How to pass a linker flag through the compiler.
15821 wl=$lt_lt_prog_compiler_wl
15822
15823 # Additional compiler flags for building library objects.
15824 pic_flag=$lt_lt_prog_compiler_pic
15825
15826 # Compiler flag to prevent dynamic linking.
15827 link_static_flag=$lt_lt_prog_compiler_static
15828
15829 # Does compiler simultaneously support -c and -o options?
15830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15831
15832 # Whether or not to add -lc for building shared libraries.
15833 build_libtool_need_lc=$archive_cmds_need_lc
15834
15835 # Whether or not to disallow shared libs when runtime libs are static.
15836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15837
15838 # Compiler flag to allow reflexive dlopens.
15839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15840
15841 # Compiler flag to generate shared objects directly from archives.
15842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15843
15844 # Whether the compiler copes with passing no objects directly.
15845 compiler_needs_object=$lt_compiler_needs_object
15846
15847 # Create an old-style archive from a shared archive.
15848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15849
15850 # Create a temporary old-style archive to link instead of a shared archive.
15851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15852
15853 # Commands used to build a shared archive.
15854 archive_cmds=$lt_archive_cmds
15855 archive_expsym_cmds=$lt_archive_expsym_cmds
15856
15857 # Commands used to build a loadable module if different from building
15858 # a shared archive.
15859 module_cmds=$lt_module_cmds
15860 module_expsym_cmds=$lt_module_expsym_cmds
15861
15862 # Whether we are building with GNU ld or not.
15863 with_gnu_ld=$lt_with_gnu_ld
15864
15865 # Flag that allows shared libraries with undefined symbols to be built.
15866 allow_undefined_flag=$lt_allow_undefined_flag
15867
15868 # Flag that enforces no undefined symbols.
15869 no_undefined_flag=$lt_no_undefined_flag
15870
15871 # Flag to hardcode \$libdir into a binary during linking.
15872 # This must work even if \$libdir does not exist
15873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15874
15875 # If ld is used when linking, flag to hardcode \$libdir into a binary
15876 # during linking. This must work even if \$libdir does not exist.
15877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15878
15879 # Whether we need a single "-rpath" flag with a separated argument.
15880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15881
15882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15883 # DIR into the resulting binary.
15884 hardcode_direct=$hardcode_direct
15885
15886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15887 # DIR into the resulting binary and the resulting library dependency is
15888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15889 # library is relocated.
15890 hardcode_direct_absolute=$hardcode_direct_absolute
15891
15892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15893 # into the resulting binary.
15894 hardcode_minus_L=$hardcode_minus_L
15895
15896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15897 # into the resulting binary.
15898 hardcode_shlibpath_var=$hardcode_shlibpath_var
15899
15900 # Set to "yes" if building a shared library automatically hardcodes DIR
15901 # into the library and all subsequent libraries and executables linked
15902 # against it.
15903 hardcode_automatic=$hardcode_automatic
15904
15905 # Set to yes if linker adds runtime paths of dependent libraries
15906 # to runtime path list.
15907 inherit_rpath=$inherit_rpath
15908
15909 # Whether libtool must link a program against all its dependency libraries.
15910 link_all_deplibs=$link_all_deplibs
15911
15912 # Fix the shell variable \$srcfile for the compiler.
15913 fix_srcfile_path=$lt_fix_srcfile_path
15914
15915 # Set to "yes" if exported symbols are required.
15916 always_export_symbols=$always_export_symbols
15917
15918 # The commands to list exported symbols.
15919 export_symbols_cmds=$lt_export_symbols_cmds
15920
15921 # Symbols that should not be listed in the preloaded symbols.
15922 exclude_expsyms=$lt_exclude_expsyms
15923
15924 # Symbols that must always be exported.
15925 include_expsyms=$lt_include_expsyms
15926
15927 # Commands necessary for linking programs (against libraries) with templates.
15928 prelink_cmds=$lt_prelink_cmds
15929
15930 # Specify filename containing input files.
15931 file_list_spec=$lt_file_list_spec
15932
15933 # How to hardcode a shared library path into an executable.
15934 hardcode_action=$hardcode_action
15935
15936 # ### END LIBTOOL CONFIG
15937
15938 _LT_EOF
15939
15940 case $host_os in
15941 aix3*)
15942 cat <<\_LT_EOF >> "$cfgfile"
15943 # AIX sometimes has problems with the GCC collect2 program. For some
15944 # reason, if we set the COLLECT_NAMES environment variable, the problems
15945 # vanish in a puff of smoke.
15946 if test "X${COLLECT_NAMES+set}" != Xset; then
15947 COLLECT_NAMES=
15948 export COLLECT_NAMES
15949 fi
15950 _LT_EOF
15951 ;;
15952 esac
15953
15954
15955 ltmain="$ac_aux_dir/ltmain.sh"
15956
15957
15958 # We use sed instead of cat because bash on DJGPP gets confused if
15959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15960 # text mode, it properly converts lines to CR/LF. This bash problem
15961 # is reportedly fixed, but why not run on old versions too?
15962 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15963 || (rm -f "$cfgfile"; exit 1)
15964
15965 case $xsi_shell in
15966 yes)
15967 cat << \_LT_EOF >> "$cfgfile"
15968
15969 # func_dirname file append nondir_replacement
15970 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15971 # otherwise set result to NONDIR_REPLACEMENT.
15972 func_dirname ()
15973 {
15974 case ${1} in
15975 */*) func_dirname_result="${1%/*}${2}" ;;
15976 * ) func_dirname_result="${3}" ;;
15977 esac
15978 }
15979
15980 # func_basename file
15981 func_basename ()
15982 {
15983 func_basename_result="${1##*/}"
15984 }
15985
15986 # func_dirname_and_basename file append nondir_replacement
15987 # perform func_basename and func_dirname in a single function
15988 # call:
15989 # dirname: Compute the dirname of FILE. If nonempty,
15990 # add APPEND to the result, otherwise set result
15991 # to NONDIR_REPLACEMENT.
15992 # value returned in "$func_dirname_result"
15993 # basename: Compute filename of FILE.
15994 # value retuned in "$func_basename_result"
15995 # Implementation must be kept synchronized with func_dirname
15996 # and func_basename. For efficiency, we do not delegate to
15997 # those functions but instead duplicate the functionality here.
15998 func_dirname_and_basename ()
15999 {
16000 case ${1} in
16001 */*) func_dirname_result="${1%/*}${2}" ;;
16002 * ) func_dirname_result="${3}" ;;
16003 esac
16004 func_basename_result="${1##*/}"
16005 }
16006
16007 # func_stripname prefix suffix name
16008 # strip PREFIX and SUFFIX off of NAME.
16009 # PREFIX and SUFFIX must not contain globbing or regex special
16010 # characters, hashes, percent signs, but SUFFIX may contain a leading
16011 # dot (in which case that matches only a dot).
16012 func_stripname ()
16013 {
16014 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16015 # positional parameters, so assign one to ordinary parameter first.
16016 func_stripname_result=${3}
16017 func_stripname_result=${func_stripname_result#"${1}"}
16018 func_stripname_result=${func_stripname_result%"${2}"}
16019 }
16020
16021 # func_opt_split
16022 func_opt_split ()
16023 {
16024 func_opt_split_opt=${1%%=*}
16025 func_opt_split_arg=${1#*=}
16026 }
16027
16028 # func_lo2o object
16029 func_lo2o ()
16030 {
16031 case ${1} in
16032 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16033 *) func_lo2o_result=${1} ;;
16034 esac
16035 }
16036
16037 # func_xform libobj-or-source
16038 func_xform ()
16039 {
16040 func_xform_result=${1%.*}.lo
16041 }
16042
16043 # func_arith arithmetic-term...
16044 func_arith ()
16045 {
16046 func_arith_result=$(( $* ))
16047 }
16048
16049 # func_len string
16050 # STRING may not start with a hyphen.
16051 func_len ()
16052 {
16053 func_len_result=${#1}
16054 }
16055
16056 _LT_EOF
16057 ;;
16058 *) # Bourne compatible functions.
16059 cat << \_LT_EOF >> "$cfgfile"
16060
16061 # func_dirname file append nondir_replacement
16062 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16063 # otherwise set result to NONDIR_REPLACEMENT.
16064 func_dirname ()
16065 {
16066 # Extract subdirectory from the argument.
16067 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16068 if test "X$func_dirname_result" = "X${1}"; then
16069 func_dirname_result="${3}"
16070 else
16071 func_dirname_result="$func_dirname_result${2}"
16072 fi
16073 }
16074
16075 # func_basename file
16076 func_basename ()
16077 {
16078 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16079 }
16080
16081
16082 # func_stripname prefix suffix name
16083 # strip PREFIX and SUFFIX off of NAME.
16084 # PREFIX and SUFFIX must not contain globbing or regex special
16085 # characters, hashes, percent signs, but SUFFIX may contain a leading
16086 # dot (in which case that matches only a dot).
16087 # func_strip_suffix prefix name
16088 func_stripname ()
16089 {
16090 case ${2} in
16091 .*) func_stripname_result=`$ECHO "X${3}" \
16092 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16093 *) func_stripname_result=`$ECHO "X${3}" \
16094 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16095 esac
16096 }
16097
16098 # sed scripts:
16099 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16100 my_sed_long_arg='1s/^-[^=]*=//'
16101
16102 # func_opt_split
16103 func_opt_split ()
16104 {
16105 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16106 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16107 }
16108
16109 # func_lo2o object
16110 func_lo2o ()
16111 {
16112 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16113 }
16114
16115 # func_xform libobj-or-source
16116 func_xform ()
16117 {
16118 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16119 }
16120
16121 # func_arith arithmetic-term...
16122 func_arith ()
16123 {
16124 func_arith_result=`expr "$@"`
16125 }
16126
16127 # func_len string
16128 # STRING may not start with a hyphen.
16129 func_len ()
16130 {
16131 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16132 }
16133
16134 _LT_EOF
16135 esac
16136
16137 case $lt_shell_append in
16138 yes)
16139 cat << \_LT_EOF >> "$cfgfile"
16140
16141 # func_append var value
16142 # Append VALUE to the end of shell variable VAR.
16143 func_append ()
16144 {
16145 eval "$1+=\$2"
16146 }
16147 _LT_EOF
16148 ;;
16149 *)
16150 cat << \_LT_EOF >> "$cfgfile"
16151
16152 # func_append var value
16153 # Append VALUE to the end of shell variable VAR.
16154 func_append ()
16155 {
16156 eval "$1=\$$1\$2"
16157 }
16158
16159 _LT_EOF
16160 ;;
16161 esac
16162
16163
16164 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16165 || (rm -f "$cfgfile"; exit 1)
16166
16167 mv -f "$cfgfile" "$ofile" ||
16168 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16169 chmod +x "$ofile"
16170
16171 ;;
16172
16173 esac
16174 done # for ac_tag
16175
16176
16177 as_fn_exit 0
16178 _ACEOF
16179 ac_clean_files=$ac_clean_files_save
16180
16181 test $ac_write_fail = 0 ||
16182 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16183
16184
16185 # configure is writing to config.log, and then calls config.status.
16186 # config.status does its own redirection, appending to config.log.
16187 # Unfortunately, on DOS this fails, as config.log is still kept open
16188 # by configure, so config.status won't be able to write to it; its
16189 # output is simply discarded. So we exec the FD to /dev/null,
16190 # effectively closing config.log, so it can be properly (re)opened and
16191 # appended to by config.status. When coming back to configure, we
16192 # need to make the FD available again.
16193 if test "$no_create" != yes; then
16194 ac_cs_success=:
16195 ac_config_status_args=
16196 test "$silent" = yes &&
16197 ac_config_status_args="$ac_config_status_args --quiet"
16198 exec 5>/dev/null
16199 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16200 exec 5>>config.log
16201 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16202 # would make configure fail if this is the last instruction.
16203 $ac_cs_success || as_fn_exit $?
16204 fi
16205
16206 #
16207 # CONFIG_SUBDIRS section.
16208 #
16209 if test "$no_recursion" != yes; then
16210
16211 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16212 # so they do not pile up.
16213 ac_sub_configure_args=
16214 ac_prev=
16215 eval "set x $ac_configure_args"
16216 shift
16217 for ac_arg
16218 do
16219 if test -n "$ac_prev"; then
16220 ac_prev=
16221 continue
16222 fi
16223 case $ac_arg in
16224 -cache-file | --cache-file | --cache-fil | --cache-fi \
16225 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16226 ac_prev=cache_file ;;
16227 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16228 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16229 | --c=*)
16230 ;;
16231 --config-cache | -C)
16232 ;;
16233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16234 ac_prev=srcdir ;;
16235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16236 ;;
16237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16238 ac_prev=prefix ;;
16239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16240 ;;
16241 --disable-option-checking)
16242 ;;
16243 *)
16244 case $ac_arg in
16245 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16246 esac
16247 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16248 esac
16249 done
16250
16251 # Always prepend --prefix to ensure using the same prefix
16252 # in subdir configurations.
16253 ac_arg="--prefix=$prefix"
16254 case $ac_arg in
16255 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16256 esac
16257 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16258
16259 # Pass --silent
16260 if test "$silent" = yes; then
16261 ac_sub_configure_args="--silent $ac_sub_configure_args"
16262 fi
16263
16264 # Always prepend --disable-option-checking to silence warnings, since
16265 # different subdirs can have different --enable and --with options.
16266 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16267
16268 ac_popdir=`pwd`
16269 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16270
16271 # Do not complain, so a configure script can configure whichever
16272 # parts of a large source tree are present.
16273 test -d "$srcdir/$ac_dir" || continue
16274
16275 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16276 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16277 $as_echo "$ac_msg" >&6
16278 as_dir="$ac_dir"; as_fn_mkdir_p
16279 ac_builddir=.
16280
16281 case "$ac_dir" in
16282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16283 *)
16284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16285 # A ".." for each directory in $ac_dir_suffix.
16286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16287 case $ac_top_builddir_sub in
16288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16290 esac ;;
16291 esac
16292 ac_abs_top_builddir=$ac_pwd
16293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16294 # for backward compatibility:
16295 ac_top_builddir=$ac_top_build_prefix
16296
16297 case $srcdir in
16298 .) # We are building in place.
16299 ac_srcdir=.
16300 ac_top_srcdir=$ac_top_builddir_sub
16301 ac_abs_top_srcdir=$ac_pwd ;;
16302 [\\/]* | ?:[\\/]* ) # Absolute name.
16303 ac_srcdir=$srcdir$ac_dir_suffix;
16304 ac_top_srcdir=$srcdir
16305 ac_abs_top_srcdir=$srcdir ;;
16306 *) # Relative name.
16307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16308 ac_top_srcdir=$ac_top_build_prefix$srcdir
16309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16310 esac
16311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16312
16313
16314 cd "$ac_dir"
16315
16316 # Check for guested configure; otherwise get Cygnus style configure.
16317 if test -f "$ac_srcdir/configure.gnu"; then
16318 ac_sub_configure=$ac_srcdir/configure.gnu
16319 elif test -f "$ac_srcdir/configure"; then
16320 ac_sub_configure=$ac_srcdir/configure
16321 elif test -f "$ac_srcdir/configure.in"; then
16322 # This should be Cygnus configure.
16323 ac_sub_configure=$ac_aux_dir/configure
16324 else
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16326 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16327 ac_sub_configure=
16328 fi
16329
16330 # The recursion is here.
16331 if test -n "$ac_sub_configure"; then
16332 # Make the cache file name correct relative to the subdirectory.
16333 case $cache_file in
16334 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16335 *) # Relative name.
16336 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16337 esac
16338
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16340 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16341 # The eval makes quoting arguments work.
16342 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16343 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16344 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16345 fi
16346
16347 cd "$ac_popdir"
16348 done
16349 fi
16350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16353 fi
16354

Properties

Name Value
svn:executable *