ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 967
Committed: Sun Aug 2 18:05:28 2009 UTC (14 years, 8 months ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 469362 byte(s)
Log Message:
- added ssl_server_protocol configuration option to servinfo{}.
  valid flags are 'sslv3' and 'tlsv1'

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 955 2009-07-27 00:27:20Z 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 HAVE_CRYPT_FALSE
764 HAVE_CRYPT_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_shared
903 enable_static
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 enable_openssl
915 enable_assert
916 enable_small_net
917 enable_kqueue
918 enable_epoll
919 enable_devpoll
920 enable_rtsigio
921 enable_poll
922 enable_select
923 with_nicklen
924 with_topiclen
925 with_syslog_facility
926 enable_efnet
927 enable_halfops
928 enable_debugging
929 enable_warnings
930 enable_syslog
931 '
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 YACC
941 YFLAGS
942 CPP'
943 ac_subdirs_all='libltdl'
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
966
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
992
993 ac_prev=
994 ac_dashdash=
995 for ac_option
996 do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1002 fi
1003
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
1014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1039
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1062
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1067
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1072
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1292
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1308
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1312
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1319
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1326
1327 -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1329 ;;
1330
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1340
1341 *)
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 ;;
1348
1349 esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error "missing argument to $ac_option"
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1363 fi
1364
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1370 do
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1401 fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error "pwd does not report name of working directory"
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1448 fi
1449 else
1450 ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1538
1539 cat <<\_ACEOF
1540
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1555 esac
1556 cat <<\_ACEOF
1557
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-maintainer-mode enable make rules and dependencies not useful
1563 (and sometimes confusing) to the casual installer
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --enable-ltdl-install install libltdl
1572 --disable-zlib Disable ziplinks support
1573 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1574 --disable-openssl Disable OpenSSL support.
1575 --enable-assert Enable assert() statements
1576 --enable-small-net Enable small network support.
1577 --enable-kqueue Force kqueue usage.
1578 --enable-epoll Force epoll usage.
1579 --enable-devpoll Force devpoll usage.
1580 --enable-rtsigio Force rtsigio usage.
1581 --enable-poll Force poll usage.
1582 --enable-select Force select usage.
1583 --enable-efnet For IRCDs running on EFnet.
1584 --enable-halfops Enable halfops support.
1585 --enable-debugging Enable debugging.
1586 --enable-warnings Enable compiler warnings.
1587 --enable-syslog="EVENTS"
1588 Enable syslog for events: users oper (space
1589 separated in quotes; default: disabled).
1590
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-pic try to use only PIC/non-PIC objects [default=use
1595 both]
1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-included-ltdl use the GNU ltdl sources included here
1598 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1599 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1600 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1601 --with-nicklen=<value> Set nickname length (default 9).
1602 --with-topiclen=<value> Set topic length (default 160).
1603 --with-syslog-facility=LOG
1604 Define the syslog facility to use (default:
1605 LOG_LOCAL4)
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1616 the first program found out of: `bison -y', `byacc', `yacc'.
1617 YFLAGS The list of arguments that will be passed by default to $YACC.
1618 This script will default YFLAGS to the empty string to avoid a
1619 default value of `-d' given by some make applications.
1620 CPP C preprocessor
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to the package provider.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1637
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1653
1654 case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 ircd-hybrid configure 7.2.4
1689 generated by GNU Autoconf 2.64
1690
1691 Copyright (C) 2009 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736 return $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1783
1784 } # ac_fn_c_try_link
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } >/dev/null && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889 fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 return $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1912
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918 #ifdef __STDC__
1919 # include <limits.h>
1920 #else
1921 # include <assert.h>
1922 #endif
1923
1924 #undef $2
1925
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929 #ifdef __cplusplus
1930 extern "C"
1931 #endif
1932 char $2 ();
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1937 choke me
1938 #endif
1939
1940 int
1941 main ()
1942 {
1943 return $2 ();
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961 } # ac_fn_c_check_func
1962
1963 # ac_fn_c_check_decl LINENO SYMBOL VAR
1964 # ------------------------------------
1965 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1966 ac_fn_c_check_decl ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1970 $as_echo_n "checking whether $2 is declared... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 int
1978 main ()
1979 {
1980 #ifndef $2
1981 (void) $2;
1982 #endif
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 eval "$3=yes"
1990 else
1991 eval "$3=no"
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999
2000 } # ac_fn_c_check_decl
2001
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041
2042 else
2043 eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054 } # ac_fn_c_check_type
2055
2056 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2057 # ----------------------------------------------------
2058 # Tries to find if the field MEMBER exists in type AGGR, after including
2059 # INCLUDES, setting cache variable VAR accordingly.
2060 ac_fn_c_check_member ()
2061 {
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2064 $as_echo_n "checking for $2.$3... " >&6; }
2065 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $5
2071 int
2072 main ()
2073 {
2074 static $2 ac_aggr;
2075 if (ac_aggr.$3)
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 eval "$4=yes"
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $5
2087 int
2088 main ()
2089 {
2090 static $2 ac_aggr;
2091 if (sizeof ac_aggr.$3)
2092 return 0;
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 eval "$4=yes"
2099 else
2100 eval "$4=no"
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$4
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_c_check_member
2112
2113 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2114 # --------------------------------------------
2115 # Tries to find the compile-time value of EXPR in a program that includes
2116 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 # computed
2118 ac_fn_c_compute_int ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if test "$cross_compiling" = yes; then
2122 # Depending upon the size, compute the lo and hi bounds.
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main ()
2128 {
2129 static int test_array [1 - 2 * !(($2) >= 0)];
2130 test_array [0] = 0
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=0 ac_mid=0
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0
2147
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid; break
2154 else
2155 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2156 if test $ac_lo -le $ac_mid; then
2157 ac_lo= ac_hi=
2158 break
2159 fi
2160 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 else
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) < 0)];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=-1 ac_mid=-1
2180 while :; do
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2188 test_array [0] = 0
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_lo=$ac_mid; break
2196 else
2197 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198 if test $ac_mid -le $ac_hi; then
2199 ac_lo= ac_hi=
2200 break
2201 fi
2202 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 else
2207 ac_lo= ac_hi=
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 # Binary search between lo and hi bounds.
2213 while test "x$ac_lo" != "x$ac_hi"; do
2214 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0
2223
2224 ;
2225 return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230 else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 $4
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2247 int
2248 main ()
2249 {
2250
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2255 {
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2260 }
2261 else
2262 {
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2267 }
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2271
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279 ac_retval=1
2280 fi
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2284
2285 fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287 return $ac_retval
2288
2289 } # ac_fn_c_compute_int
2290
2291 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2292 # -------------------------------------------------------
2293 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2294 # the include files in INCLUDES and setting the cache variable VAR
2295 # accordingly.
2296 ac_fn_c_check_header_mongrel ()
2297 {
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301 $as_echo_n "checking for $2... " >&6; }
2302 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2303 $as_echo_n "(cached) " >&6
2304 fi
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 else
2309 # Is the header compilable?
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2311 $as_echo_n "checking $2 usability... " >&6; }
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 #include <$2>
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318 ac_header_compiler=yes
2319 else
2320 ac_header_compiler=no
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2324 $as_echo "$ac_header_compiler" >&6; }
2325
2326 # Is the header present?
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2328 $as_echo_n "checking $2 presence... " >&6; }
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_cpp "$LINENO"; then :
2334 ac_header_preproc=yes
2335 else
2336 ac_header_preproc=no
2337 fi
2338 rm -f conftest.err conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2340 $as_echo "$ac_header_preproc" >&6; }
2341
2342 # So? What about this header?
2343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2344 yes:no: )
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2346 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2348 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2349 ;;
2350 no:yes:* )
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2352 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2354 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2356 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2358 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361 ;;
2362 esac
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364 $as_echo_n "checking for $2... " >&6; }
2365 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 eval "$3=\$ac_header_compiler"
2369 fi
2370 eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373 fi
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376 } # ac_fn_c_check_header_mongrel
2377 cat >config.log <<_ACEOF
2378 This file contains any messages produced by compilers while
2379 running configure, to aid debugging if configure makes a mistake.
2380
2381 It was created by ircd-hybrid $as_me 7.2.4, which was
2382 generated by GNU Autoconf 2.64. Invocation command line was
2383
2384 $ $0 $@
2385
2386 _ACEOF
2387 exec 5>>config.log
2388 {
2389 cat <<_ASUNAME
2390 ## --------- ##
2391 ## Platform. ##
2392 ## --------- ##
2393
2394 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2395 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2396 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2397 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2398 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2399
2400 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2401 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2402
2403 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2404 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2405 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2406 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2407 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2408 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2409 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2410
2411 _ASUNAME
2412
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 $as_echo "PATH: $as_dir"
2419 done
2420 IFS=$as_save_IFS
2421
2422 } >&5
2423
2424 cat >&5 <<_ACEOF
2425
2426
2427 ## ----------- ##
2428 ## Core tests. ##
2429 ## ----------- ##
2430
2431 _ACEOF
2432
2433
2434 # Keep a trace of the command line.
2435 # Strip out --no-create and --no-recursion so they do not pile up.
2436 # Strip out --silent because we don't want to record it for future runs.
2437 # Also quote any args containing shell meta-characters.
2438 # Make two passes to allow for proper duplicate-argument suppression.
2439 ac_configure_args=
2440 ac_configure_args0=
2441 ac_configure_args1=
2442 ac_must_keep_next=false
2443 for ac_pass in 1 2
2444 do
2445 for ac_arg
2446 do
2447 case $ac_arg in
2448 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2450 | -silent | --silent | --silen | --sile | --sil)
2451 continue ;;
2452 *\'*)
2453 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2454 esac
2455 case $ac_pass in
2456 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2457 2)
2458 as_fn_append ac_configure_args1 " '$ac_arg'"
2459 if test $ac_must_keep_next = true; then
2460 ac_must_keep_next=false # Got value, back to normal.
2461 else
2462 case $ac_arg in
2463 *=* | --config-cache | -C | -disable-* | --disable-* \
2464 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2465 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2466 | -with-* | --with-* | -without-* | --without-* | --x)
2467 case "$ac_configure_args0 " in
2468 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2469 esac
2470 ;;
2471 -* ) ac_must_keep_next=true ;;
2472 esac
2473 fi
2474 as_fn_append ac_configure_args " '$ac_arg'"
2475 ;;
2476 esac
2477 done
2478 done
2479 { ac_configure_args0=; unset ac_configure_args0;}
2480 { ac_configure_args1=; unset ac_configure_args1;}
2481
2482 # When interrupted or exit'd, cleanup temporary files, and complete
2483 # config.log. We remove comments because anyway the quotes in there
2484 # would cause problems or look ugly.
2485 # WARNING: Use '\'' to represent an apostrophe within the trap.
2486 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2487 trap 'exit_status=$?
2488 # Save into config.log some information that might help in debugging.
2489 {
2490 echo
2491
2492 cat <<\_ASBOX
2493 ## ---------------- ##
2494 ## Cache variables. ##
2495 ## ---------------- ##
2496 _ASBOX
2497 echo
2498 # The following way of writing the cache mishandles newlines in values,
2499 (
2500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in #(
2503 *${as_nl}*)
2504 case $ac_var in #(
2505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2507 esac
2508 case $ac_var in #(
2509 _ | IFS | as_nl) ;; #(
2510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2511 *) { eval $ac_var=; unset $ac_var;} ;;
2512 esac ;;
2513 esac
2514 done
2515 (set) 2>&1 |
2516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2517 *${as_nl}ac_space=\ *)
2518 sed -n \
2519 "s/'\''/'\''\\\\'\'''\''/g;
2520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2521 ;; #(
2522 *)
2523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2524 ;;
2525 esac |
2526 sort
2527 )
2528 echo
2529
2530 cat <<\_ASBOX
2531 ## ----------------- ##
2532 ## Output variables. ##
2533 ## ----------------- ##
2534 _ASBOX
2535 echo
2536 for ac_var in $ac_subst_vars
2537 do
2538 eval ac_val=\$$ac_var
2539 case $ac_val in
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541 esac
2542 $as_echo "$ac_var='\''$ac_val'\''"
2543 done | sort
2544 echo
2545
2546 if test -n "$ac_subst_files"; then
2547 cat <<\_ASBOX
2548 ## ------------------- ##
2549 ## File substitutions. ##
2550 ## ------------------- ##
2551 _ASBOX
2552 echo
2553 for ac_var in $ac_subst_files
2554 do
2555 eval ac_val=\$$ac_var
2556 case $ac_val in
2557 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2558 esac
2559 $as_echo "$ac_var='\''$ac_val'\''"
2560 done | sort
2561 echo
2562 fi
2563
2564 if test -s confdefs.h; then
2565 cat <<\_ASBOX
2566 ## ----------- ##
2567 ## confdefs.h. ##
2568 ## ----------- ##
2569 _ASBOX
2570 echo
2571 cat confdefs.h
2572 echo
2573 fi
2574 test "$ac_signal" != 0 &&
2575 $as_echo "$as_me: caught signal $ac_signal"
2576 $as_echo "$as_me: exit $exit_status"
2577 } >&5
2578 rm -f core *.core core.conftest.* &&
2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2580 exit $exit_status
2581 ' 0
2582 for ac_signal in 1 2 13 15; do
2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2584 done
2585 ac_signal=0
2586
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest* confdefs.h
2589
2590 $as_echo "/* confdefs.h */" > confdefs.h
2591
2592 # Predefined preprocessor variables.
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_NAME "$PACKAGE_NAME"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_STRING "$PACKAGE_STRING"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2612 _ACEOF
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_URL "$PACKAGE_URL"
2616 _ACEOF
2617
2618
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2621 ac_site_file1=NONE
2622 ac_site_file2=NONE
2623 if test -n "$CONFIG_SITE"; then
2624 ac_site_file1=$CONFIG_SITE
2625 elif test "x$prefix" != xNONE; then
2626 ac_site_file1=$prefix/share/config.site
2627 ac_site_file2=$prefix/etc/config.site
2628 else
2629 ac_site_file1=$ac_default_prefix/share/config.site
2630 ac_site_file2=$ac_default_prefix/etc/config.site
2631 fi
2632 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2633 do
2634 test "x$ac_site_file" = xNONE && continue
2635 if test -r "$ac_site_file"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2637 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2638 sed 's/^/| /' "$ac_site_file" >&5
2639 . "$ac_site_file"
2640 fi
2641 done
2642
2643 if test -r "$cache_file"; then
2644 # Some versions of bash will fail to source /dev/null (special
2645 # files actually), so we avoid doing that.
2646 if test -f "$cache_file"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648 $as_echo "$as_me: loading cache $cache_file" >&6;}
2649 case $cache_file in
2650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651 *) . "./$cache_file";;
2652 esac
2653 fi
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656 $as_echo "$as_me: creating cache $cache_file" >&6;}
2657 >$cache_file
2658 fi
2659
2660 as_fn_append ac_func_list " snprintf"
2661 as_fn_append ac_func_list " vsnprintf"
2662 as_fn_append ac_func_list " lrand48"
2663 as_fn_append ac_func_list " srand48"
2664 as_fn_append ac_func_list " mmap"
2665 as_fn_append ac_func_list " strtok_r"
2666 as_fn_append ac_func_list " usleep"
2667 as_fn_append ac_func_list " strlcat"
2668 as_fn_append ac_func_list " strlcpy"
2669 as_fn_append ac_func_list " basename"
2670 as_fn_append ac_header_list " crypt.h"
2671 as_fn_append ac_header_list " inttypes.h"
2672 as_fn_append ac_header_list " stdint.h"
2673 as_fn_append ac_header_list " sys/resource.h"
2674 as_fn_append ac_header_list " sys/param.h"
2675 as_fn_append ac_header_list " errno.h"
2676 as_fn_append ac_header_list " sys/syslog.h"
2677 as_fn_append ac_header_list " stddef.h"
2678 as_fn_append ac_header_list " libgen.h"
2679 as_fn_append ac_header_list " types.h"
2680 as_fn_append ac_header_list " socket.h"
2681 as_fn_append ac_header_list " sys/wait.h"
2682 as_fn_append ac_header_list " wait.h"
2683 as_fn_append ac_header_list " link.h"
2684 # Check that the precious variables saved in the cache have kept the same
2685 # value.
2686 ac_cache_corrupted=false
2687 for ac_var in $ac_precious_vars; do
2688 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2689 eval ac_new_set=\$ac_env_${ac_var}_set
2690 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2691 eval ac_new_val=\$ac_env_${ac_var}_value
2692 case $ac_old_set,$ac_new_set in
2693 set,)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2696 ac_cache_corrupted=: ;;
2697 ,set)
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2700 ac_cache_corrupted=: ;;
2701 ,);;
2702 *)
2703 if test "x$ac_old_val" != "x$ac_new_val"; then
2704 # differences in whitespace do not lead to failure.
2705 ac_old_val_w=`echo x $ac_old_val`
2706 ac_new_val_w=`echo x $ac_new_val`
2707 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2710 ac_cache_corrupted=:
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2714 eval $ac_var=\$ac_old_val
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2717 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2719 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2720 fi;;
2721 esac
2722 # Pass precious variables to config.status.
2723 if test "$ac_new_set" = set; then
2724 case $ac_new_val in
2725 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2726 *) ac_arg=$ac_var=$ac_new_val ;;
2727 esac
2728 case " $ac_configure_args " in
2729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2730 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2731 esac
2732 fi
2733 done
2734 if $ac_cache_corrupted; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2739 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2740 fi
2741 ## -------------------- ##
2742 ## Main body of script. ##
2743 ## -------------------- ##
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751
2752 am__api_version='1.11'
2753
2754 ac_aux_dir=
2755 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2756 for ac_t in install-sh install.sh shtool; do
2757 if test -f "$ac_dir/$ac_t"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/$ac_t -c"
2760 break 2
2761 fi
2762 done
2763 done
2764 if test -z "$ac_aux_dir"; then
2765 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2766 fi
2767
2768 # These three variables are undocumented and unsupported,
2769 # and are intended to be withdrawn in a future Autoconf release.
2770 # They can cause serious problems if a builder's source tree is in a directory
2771 # whose full name contains unusual characters.
2772 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2773 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2774 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2775
2776
2777 # Find a good install program. We prefer a C program (faster),
2778 # so one script is as good as another. But avoid the broken or
2779 # incompatible versions:
2780 # SysV /etc/install, /usr/sbin/install
2781 # SunOS /usr/etc/install
2782 # IRIX /sbin/install
2783 # AIX /bin/install
2784 # AmigaOS /C/install, which installs bootblocks on floppy discs
2785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788 # OS/2's system install, which has a completely different semantic
2789 # ./install, which can be erroneously created by make from ./install.sh.
2790 # Reject install programs that cannot install multiple files.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2793 if test -z "$INSTALL"; then
2794 if test "${ac_cv_path_install+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 # Account for people who put trailing slashes in PATH elements.
2803 case $as_dir/ in #((
2804 ./ | .// | /[cC]/* | \
2805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2807 /usr/ucb/* ) ;;
2808 *)
2809 # OSF1 and SCO ODT 3.0 have their own names for install.
2810 # Don't use installbsd from OSF since it installs stuff as root
2811 # by default.
2812 for ac_prog in ginstall scoinst install; do
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2815 if test $ac_prog = install &&
2816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # AIX install. It has an incompatible calling convention.
2818 :
2819 elif test $ac_prog = install &&
2820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821 # program-specific install script used by HP pwplus--don't use.
2822 :
2823 else
2824 rm -rf conftest.one conftest.two conftest.dir
2825 echo one > conftest.one
2826 echo two > conftest.two
2827 mkdir conftest.dir
2828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829 test -s conftest.one && test -s conftest.two &&
2830 test -s conftest.dir/conftest.one &&
2831 test -s conftest.dir/conftest.two
2832 then
2833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2834 break 3
2835 fi
2836 fi
2837 fi
2838 done
2839 done
2840 ;;
2841 esac
2842
2843 done
2844 IFS=$as_save_IFS
2845
2846 rm -rf conftest.one conftest.two conftest.dir
2847
2848 fi
2849 if test "${ac_cv_path_install+set}" = set; then
2850 INSTALL=$ac_cv_path_install
2851 else
2852 # As a last resort, use the slow shell script. Don't cache a
2853 # value for INSTALL within a source directory, because that will
2854 # break other packages using the cache if that directory is
2855 # removed, or if the value is a relative name.
2856 INSTALL=$ac_install_sh
2857 fi
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860 $as_echo "$INSTALL" >&6; }
2861
2862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863 # It thinks the first close brace ends the variable substitution.
2864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2865
2866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2867
2868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871 $as_echo_n "checking whether build environment is sane... " >&6; }
2872 # Just in case
2873 sleep 1
2874 echo timestamp > conftest.file
2875 # Reject unsafe characters in $srcdir or the absolute working directory
2876 # name. Accept space and tab only in the latter.
2877 am_lf='
2878 '
2879 case `pwd` in
2880 *[\\\"\#\$\&\'\`$am_lf]*)
2881 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2882 esac
2883 case $srcdir in
2884 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2885 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2886 esac
2887
2888 # Do `set' in a subshell so we don't clobber the current shell's
2889 # arguments. Must try -L first in case configure is actually a
2890 # symlink; some systems play weird games with the mod time of symlinks
2891 # (eg FreeBSD returns the mod time of the symlink's containing
2892 # directory).
2893 if (
2894 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895 if test "$*" = "X"; then
2896 # -L didn't work.
2897 set X `ls -t "$srcdir/configure" conftest.file`
2898 fi
2899 rm -f conftest.file
2900 if test "$*" != "X $srcdir/configure conftest.file" \
2901 && test "$*" != "X conftest.file $srcdir/configure"; then
2902
2903 # If neither matched, then we have a broken ls. This can happen
2904 # if, for instance, CONFIG_SHELL is bash and it inherits a
2905 # broken ls alias from the environment. This has actually
2906 # happened. Such a system could not be considered "sane".
2907 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2908 alias in your environment" "$LINENO" 5
2909 fi
2910
2911 test "$2" = conftest.file
2912 )
2913 then
2914 # Ok.
2915 :
2916 else
2917 as_fn_error "newly created file is older than distributed files!
2918 Check your system clock" "$LINENO" 5
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921 $as_echo "yes" >&6; }
2922 test "$program_prefix" != NONE &&
2923 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924 # Use a double $ so make ignores it.
2925 test "$program_suffix" != NONE &&
2926 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927 # Double any \ or $.
2928 # By default was `s,x,x', remove it if useless.
2929 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931
2932 # expand $ac_aux_dir to an absolute path
2933 am_aux_dir=`cd $ac_aux_dir && pwd`
2934
2935 if test x"${MISSING+set}" != xset; then
2936 case $am_aux_dir in
2937 *\ * | *\ *)
2938 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2939 *)
2940 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941 esac
2942 fi
2943 # Use eval to expand $SHELL
2944 if eval "$MISSING --run true"; then
2945 am_missing_run="$MISSING --run "
2946 else
2947 am_missing_run=
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2949 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2950 fi
2951
2952 if test x"${install_sh}" != xset; then
2953 case $am_aux_dir in
2954 *\ * | *\ *)
2955 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2956 *)
2957 install_sh="\${SHELL} $am_aux_dir/install-sh"
2958 esac
2959 fi
2960
2961 # Installed binaries are usually stripped using `strip' when the user
2962 # run `make install-strip'. However `strip' might not be the right
2963 # tool to use in cross-compilation environments, therefore Automake
2964 # will honor the `STRIP' environment variable to overrule this program.
2965 if test "$cross_compiling" != no; then
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}strip; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_STRIP+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$STRIP"; then
2975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 STRIP=$ac_cv_prog_STRIP
2995 if test -n "$STRIP"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997 $as_echo "$STRIP" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004 fi
3005 if test -z "$ac_cv_prog_STRIP"; then
3006 ac_ct_STRIP=$STRIP
3007 # Extract the first word of "strip", so it can be a program name with args.
3008 set dummy strip; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_STRIP"; then
3015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_STRIP="strip"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035 if test -n "$ac_ct_STRIP"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037 $as_echo "$ac_ct_STRIP" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043 if test "x$ac_ct_STRIP" = x; then
3044 STRIP=":"
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047 yes:)
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3051 esac
3052 STRIP=$ac_ct_STRIP
3053 fi
3054 else
3055 STRIP="$ac_cv_prog_STRIP"
3056 fi
3057
3058 fi
3059 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3060
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063 if test -z "$MKDIR_P"; then
3064 if test "${ac_cv_path_mkdir+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_prog in mkdir gmkdir; do
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3075 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076 'mkdir (GNU coreutils) '* | \
3077 'mkdir (coreutils) '* | \
3078 'mkdir (fileutils) '4.1*)
3079 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080 break 3;;
3081 esac
3082 done
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088
3089 if test "${ac_cv_path_mkdir+set}" = set; then
3090 MKDIR_P="$ac_cv_path_mkdir -p"
3091 else
3092 # As a last resort, use the slow shell script. Don't cache a
3093 # value for MKDIR_P within a source directory, because that will
3094 # break other packages using the cache if that directory is
3095 # removed, or if the value is a relative name.
3096 test -d ./--version && rmdir ./--version
3097 MKDIR_P="$ac_install_sh -d"
3098 fi
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101 $as_echo "$MKDIR_P" >&6; }
3102
3103 mkdir_p="$MKDIR_P"
3104 case $mkdir_p in
3105 [\\/$]* | ?:[\\/]*) ;;
3106 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107 esac
3108
3109 for ac_prog in gawk mawk nawk awk
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_AWK+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$AWK"; then
3119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_AWK="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 AWK=$ac_cv_prog_AWK
3139 if test -n "$AWK"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141 $as_echo "$AWK" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147
3148 test -n "$AWK" && break
3149 done
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153 set x ${MAKE-make}
3154 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat >conftest.make <<\_ACEOF
3159 SHELL = /bin/sh
3160 all:
3161 @echo '@@@%%%=$(MAKE)=@@@%%%'
3162 _ACEOF
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165 *@@@%%%=?*=@@@%%%*)
3166 eval ac_cv_prog_make_${ac_make}_set=yes;;
3167 *)
3168 eval ac_cv_prog_make_${ac_make}_set=no;;
3169 esac
3170 rm -f conftest.make
3171 fi
3172 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3175 SET_MAKE=
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 SET_MAKE="MAKE=${MAKE-make}"
3180 fi
3181
3182 rm -rf .tst 2>/dev/null
3183 mkdir .tst 2>/dev/null
3184 if test -d .tst; then
3185 am__leading_dot=.
3186 else
3187 am__leading_dot=_
3188 fi
3189 rmdir .tst 2>/dev/null
3190
3191 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3192 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3193 # is not polluted with repeated "-I."
3194 am__isrc=' -I$(srcdir)'
3195 # test to see if srcdir already configured
3196 if test -f $srcdir/config.status; then
3197 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3198 fi
3199 fi
3200
3201 # test whether we have cygpath
3202 if test -z "$CYGPATH_W"; then
3203 if (cygpath --version) >/dev/null 2>/dev/null; then
3204 CYGPATH_W='cygpath -w'
3205 else
3206 CYGPATH_W=echo
3207 fi
3208 fi
3209
3210
3211 # Define the identity of the package.
3212 PACKAGE='ircd-hybrid'
3213 VERSION='7.2.4'
3214
3215
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE "$PACKAGE"
3218 _ACEOF
3219
3220
3221 cat >>confdefs.h <<_ACEOF
3222 #define VERSION "$VERSION"
3223 _ACEOF
3224
3225 # Some tools Automake needs.
3226
3227 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3228
3229
3230 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3231
3232
3233 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3234
3235
3236 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3237
3238
3239 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3240
3241 # We need awk for the "check" target. The system "awk" is bad on
3242 # some platforms.
3243 # Always define AMTAR for backward compatibility.
3244
3245 AMTAR=${AMTAR-"${am_missing_run}tar"}
3246
3247 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3248
3249
3250
3251
3252
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3255 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3256 # Check whether --enable-maintainer-mode was given.
3257 if test "${enable_maintainer_mode+set}" = set; then :
3258 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3259 else
3260 USE_MAINTAINER_MODE=no
3261 fi
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3264 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3265 if test $USE_MAINTAINER_MODE = yes; then
3266 MAINTAINER_MODE_TRUE=
3267 MAINTAINER_MODE_FALSE='#'
3268 else
3269 MAINTAINER_MODE_TRUE='#'
3270 MAINTAINER_MODE_FALSE=
3271 fi
3272
3273 MAINT=$MAINTAINER_MODE_TRUE
3274
3275
3276 ac_config_headers="$ac_config_headers config.h"
3277
3278
3279
3280
3281 # Checks for programs.
3282 ac_ext=c
3283 ac_cpp='$CPP $CPPFLAGS'
3284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if test "${ac_cv_prog_CC+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309 done
3310 done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 fi
3326 if test -z "$ac_cv_prog_CC"; then
3327 ac_ct_CC=$CC
3328 # Extract the first word of "gcc", so it can be a program name with args.
3329 set dummy gcc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$ac_ct_CC"; then
3336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_ac_ct_CC="gcc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354 fi
3355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3356 if test -n "$ac_ct_CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3358 $as_echo "$ac_ct_CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364 if test "x$ac_ct_CC" = x; then
3365 CC=""
3366 else
3367 case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373 CC=$ac_ct_CC
3374 fi
3375 else
3376 CC="$ac_cv_prog_CC"
3377 fi
3378
3379 if test -z "$CC"; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}cc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_CC="${ac_tool_prefix}cc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 fi
3407 fi
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417
3418 fi
3419 fi
3420 if test -z "$CC"; then
3421 # Extract the first word of "cc", so it can be a program name with args.
3422 set dummy cc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 ac_prog_rejected=no
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3440 ac_prog_rejected=yes
3441 continue
3442 fi
3443 ac_cv_prog_CC="cc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 if test $ac_prog_rejected = yes; then
3452 # We found a bogon in the path, so make sure we never use it.
3453 set dummy $ac_cv_prog_CC
3454 shift
3455 if test $# != 0; then
3456 # We chose a different compiler from the bogus one.
3457 # However, it has the same basename, so the bogon will be chosen
3458 # first if we set CC to just the basename; use the full file name.
3459 shift
3460 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3461 fi
3462 fi
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475 fi
3476 if test -z "$CC"; then
3477 if test -n "$ac_tool_prefix"; then
3478 for ac_prog in cl.exe
3479 do
3480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$CC"; then
3488 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 $as_echo "$CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516
3517 test -n "$CC" && break
3518 done
3519 fi
3520 if test -z "$CC"; then
3521 ac_ct_CC=$CC
3522 for ac_prog in cl.exe
3523 do
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$ac_ct_CC"; then
3532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_ac_ct_CC="$ac_prog"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545 done
3546 done
3547 IFS=$as_save_IFS
3548
3549 fi
3550 fi
3551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3552 if test -n "$ac_ct_CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3554 $as_echo "$ac_ct_CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 fi
3559
3560
3561 test -n "$ac_ct_CC" && break
3562 done
3563
3564 if test "x$ac_ct_CC" = x; then
3565 CC=""
3566 else
3567 case $cross_compiling:$ac_tool_warned in
3568 yes:)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3571 ac_tool_warned=yes ;;
3572 esac
3573 CC=$ac_ct_CC
3574 fi
3575 fi
3576
3577 fi
3578
3579
3580 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error "no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details." "$LINENO" 5; }
3584
3585 # Provide some information about the compiler.
3586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3587 set X $ac_compile
3588 ac_compiler=$2
3589 for ac_option in --version -v -V -qversion; do
3590 { { ac_try="$ac_compiler $ac_option >&5"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3598 ac_status=$?
3599 if test -s conftest.err; then
3600 sed '10a\
3601 ... rest of stderr output deleted ...
3602 10q' conftest.err >conftest.er1
3603 cat conftest.er1 >&5
3604 rm -f conftest.er1 conftest.err
3605 fi
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 done
3609
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <stdio.h>
3613 int
3614 main ()
3615 {
3616 FILE *f = fopen ("conftest.out", "w");
3617 return ferror (f) || fclose (f) != 0;
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3627 # of exeext.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3629 $as_echo_n "checking for C compiler default output file name... " >&6; }
3630 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631
3632 # The possible output files:
3633 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3634
3635 ac_rmfiles=
3636 for ac_file in $ac_files
3637 do
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641 esac
3642 done
3643 rm -f $ac_rmfiles
3644
3645 if { { ac_try="$ac_link_default"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link_default") 2>&5
3653 ac_status=$?
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; then :
3656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3659 # so that the user can short-circuit this test for compilers unknown to
3660 # Autoconf.
3661 for ac_file in $ac_files ''
3662 do
3663 test -f "$ac_file" || continue
3664 case $ac_file in
3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3666 ;;
3667 [ab].out )
3668 # We found the default executable, but exeext='' is most
3669 # certainly right.
3670 break;;
3671 *.* )
3672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3673 then :; else
3674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675 fi
3676 # We set ac_cv_exeext here because the later test for it is not
3677 # safe: cross compilers may not add the suffix if given an `-o'
3678 # argument, so we may need to know it at that point already.
3679 # Even if this section looks crufty: it has the advantage of
3680 # actually working.
3681 break;;
3682 * )
3683 break;;
3684 esac
3685 done
3686 test "$ac_cv_exeext" = no && ac_cv_exeext=
3687
3688 else
3689 ac_file=''
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3692 $as_echo "$ac_file" >&6; }
3693 if test -z "$ac_file"; then :
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 { as_fn_set_status 77
3700 as_fn_error "C compiler cannot create executables
3701 See \`config.log' for more details." "$LINENO" 5; }; }
3702 fi
3703 ac_exeext=$ac_cv_exeext
3704
3705 # Check that the compiler produces executables we can run. If not, either
3706 # the compiler is broken, or we cross compile.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3708 $as_echo_n "checking whether the C compiler works... " >&6; }
3709 # If not cross compiling, check that we can run a simple program.
3710 if test "$cross_compiling" != yes; then
3711 if { ac_try='./$ac_file'
3712 { { case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; }; then
3722 cross_compiling=no
3723 else
3724 if test "$cross_compiling" = maybe; then
3725 cross_compiling=yes
3726 else
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error "cannot run C compiled programs.
3730 If you meant to cross compile, use \`--host'.
3731 See \`config.log' for more details." "$LINENO" 5; }
3732 fi
3733 fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3736 $as_echo "yes" >&6; }
3737
3738 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3739 ac_clean_files=$ac_clean_files_save
3740 # Check that the compiler produces executables we can run. If not, either
3741 # the compiler is broken, or we cross compile.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 $as_echo_n "checking whether we are cross compiling... " >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3745 $as_echo "$cross_compiling" >&6; }
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3748 $as_echo_n "checking for suffix of executables... " >&6; }
3749 if { { ac_try="$ac_link"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_link") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; then :
3760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3762 # work properly (i.e., refer to `conftest.exe'), while it won't with
3763 # `rm'.
3764 for ac_file in conftest.exe conftest conftest.*; do
3765 test -f "$ac_file" || continue
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 break;;
3770 * ) break;;
3771 esac
3772 done
3773 else
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error "cannot compute suffix of executables: cannot compile and link
3777 See \`config.log' for more details." "$LINENO" 5; }
3778 fi
3779 rm -f conftest$ac_cv_exeext
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3781 $as_echo "$ac_cv_exeext" >&6; }
3782
3783 rm -f conftest.$ac_ext
3784 EXEEXT=$ac_cv_exeext
3785 ac_exeext=$EXEEXT
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3787 $as_echo_n "checking for suffix of object files... " >&6; }
3788 if test "${ac_cv_objext+set}" = set; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.o conftest.obj
3803 if { { ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compile") 2>&5
3811 ac_status=$?
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then :
3814 for ac_file in conftest.o conftest.obj conftest.*; do
3815 test -f "$ac_file" || continue;
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819 break;;
3820 esac
3821 done
3822 else
3823 $as_echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error "cannot compute suffix of object files: cannot compile
3829 See \`config.log' for more details." "$LINENO" 5; }
3830 fi
3831 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3834 $as_echo "$ac_cv_objext" >&6; }
3835 OBJEXT=$ac_cv_objext
3836 ac_objext=$OBJEXT
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3838 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3839 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844
3845 int
3846 main ()
3847 {
3848 #ifndef __GNUC__
3849 choke me
3850 #endif
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_compiler_gnu=yes
3858 else
3859 ac_compiler_gnu=no
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3866 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3867 if test $ac_compiler_gnu = yes; then
3868 GCC=yes
3869 else
3870 GCC=
3871 fi
3872 ac_test_CFLAGS=${CFLAGS+set}
3873 ac_save_CFLAGS=$CFLAGS
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3875 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3876 if test "${ac_cv_prog_cc_g+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 ac_save_c_werror_flag=$ac_c_werror_flag
3880 ac_c_werror_flag=yes
3881 ac_cv_prog_cc_g=no
3882 CFLAGS="-g"
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885
3886 int
3887 main ()
3888 {
3889
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_prog_cc_g=yes
3896 else
3897 CFLAGS=""
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910
3911 else
3912 ac_c_werror_flag=$ac_save_c_werror_flag
3913 CFLAGS="-g"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916
3917 int
3918 main ()
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_prog_cc_g=yes
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_c_werror_flag=$ac_save_c_werror_flag
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3936 $as_echo "$ac_cv_prog_cc_g" >&6; }
3937 if test "$ac_test_CFLAGS" = set; then
3938 CFLAGS=$ac_save_CFLAGS
3939 elif test $ac_cv_prog_cc_g = yes; then
3940 if test "$GCC" = yes; then
3941 CFLAGS="-g -O2"
3942 else
3943 CFLAGS="-g"
3944 fi
3945 else
3946 if test "$GCC" = yes; then
3947 CFLAGS="-O2"
3948 else
3949 CFLAGS=
3950 fi
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3953 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3954 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 ac_cv_prog_cc_c89=no
3958 ac_save_CC=$CC
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <stdarg.h>
3962 #include <stdio.h>
3963 #include <sys/types.h>
3964 #include <sys/stat.h>
3965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966 struct buf { int x; };
3967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968 static char *e (p, i)
3969 char **p;
3970 int i;
3971 {
3972 return p[i];
3973 }
3974 static char *f (char * (*g) (char **, int), char **p, ...)
3975 {
3976 char *s;
3977 va_list v;
3978 va_start (v,p);
3979 s = g (p, va_arg (v,int));
3980 va_end (v);
3981 return s;
3982 }
3983
3984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3995 #define FOO(x) 'x'
3996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002 int argc;
4003 char **argv;
4004 int
4005 main ()
4006 {
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 do
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c89=$ac_arg
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c89" != "xno" && break
4021 done
4022 rm -f conftest.$ac_ext
4023 CC=$ac_save_CC
4024
4025 fi
4026 # AC_CACHE_VAL
4027 case "x$ac_cv_prog_cc_c89" in
4028 x)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4031 xno)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4034 *)
4035 CC="$CC $ac_cv_prog_cc_c89"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4038 esac
4039 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040
4041 fi
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 DEPDIR="${am__leading_dot}deps"
4049
4050 ac_config_commands="$ac_config_commands depfiles"
4051
4052
4053 am_make=${MAKE-make}
4054 cat > confinc << 'END'
4055 am__doit:
4056 @echo this is the am__doit target
4057 .PHONY: am__doit
4058 END
4059 # If we don't find an include directive, just comment out the code.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4061 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4062 am__include="#"
4063 am__quote=
4064 _am_result=none
4065 # First try GNU make style include.
4066 echo "include confinc" > confmf
4067 # Ignore all kinds of additional output from `make'.
4068 case `$am_make -s -f confmf 2> /dev/null` in #(
4069 *the\ am__doit\ target*)
4070 am__include=include
4071 am__quote=
4072 _am_result=GNU
4073 ;;
4074 esac
4075 # Now try BSD make style include.
4076 if test "$am__include" = "#"; then
4077 echo '.include "confinc"' > confmf
4078 case `$am_make -s -f confmf 2> /dev/null` in #(
4079 *the\ am__doit\ target*)
4080 am__include=.include
4081 am__quote="\""
4082 _am_result=BSD
4083 ;;
4084 esac
4085 fi
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4089 $as_echo "$_am_result" >&6; }
4090 rm -f confinc confmf
4091
4092 # Check whether --enable-dependency-tracking was given.
4093 if test "${enable_dependency_tracking+set}" = set; then :
4094 enableval=$enable_dependency_tracking;
4095 fi
4096
4097 if test "x$enable_dependency_tracking" != xno; then
4098 am_depcomp="$ac_aux_dir/depcomp"
4099 AMDEPBACKSLASH='\'
4100 fi
4101 if test "x$enable_dependency_tracking" != xno; then
4102 AMDEP_TRUE=
4103 AMDEP_FALSE='#'
4104 else
4105 AMDEP_TRUE='#'
4106 AMDEP_FALSE=
4107 fi
4108
4109
4110
4111 depcc="$CC" am_compiler_list=
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114 $as_echo_n "checking dependency style of $depcc... " >&6; }
4115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119 # We make a subdir and do the tests there. Otherwise we can end up
4120 # making bogus files that we don't know about and never remove. For
4121 # instance it was reported that on HP-UX the gcc test will end up
4122 # making a dummy file named `D' -- because `-MD' means `put the output
4123 # in D'.
4124 mkdir conftest.dir
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4128 cd conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4134 # directory.
4135 mkdir sub
4136
4137 am_cv_CC_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140 fi
4141 am__universal=false
4142 case " $depcc " in #(
4143 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144 esac
4145
4146 for depmode in $am_compiler_list; do
4147 # Setup a source with many dependencies, because some compilers
4148 # like to wrap large dependency lists on column 80 (with \), and
4149 # we should not choose a depcomp mode which is confused by this.
4150 #
4151 # We need to recreate these files for each test, as the compiler may
4152 # overwrite some of them when testing with obscure command lines.
4153 # This happens at least with the AIX C compiler.
4154 : > sub/conftest.c
4155 for i in 1 2 3 4 5 6; do
4156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158 # Solaris 8's {/usr,}/bin/sh.
4159 touch sub/conftst$i.h
4160 done
4161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
4163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164 # mode. It turns out that the SunPro C++ compiler does not properly
4165 # handle `-M -o', and we need to detect this. Also, some Intel
4166 # versions had trouble with output in subdirs
4167 am__obj=sub/conftest.${OBJEXT-o}
4168 am__minus_obj="-o $am__obj"
4169 case $depmode in
4170 gcc)
4171 # This depmode causes a compiler race in universal mode.
4172 test "$am__universal" = false || continue
4173 ;;
4174 nosideeffect)
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes; then
4178 continue
4179 else
4180 break
4181 fi
4182 ;;
4183 msvisualcpp | msvcmsys)
4184 # This compiler won't grok `-c -o', but also, the minuso test has
4185 # not run yet. These depmodes are late enough in the game, and
4186 # so weak that their functioning should not be impacted.
4187 am__obj=conftest.${OBJEXT-o}
4188 am__minus_obj=
4189 ;;
4190 none) break ;;
4191 esac
4192 if depmode=$depmode \
4193 source=sub/conftest.c object=$am__obj \
4194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196 >/dev/null 2>conftest.err &&
4197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201 # icc doesn't choke on unknown options, it will just issue warnings
4202 # or remarks (even with -Werror). So we grep stderr for any message
4203 # that says an option was ignored or not supported.
4204 # When given -MP, icc 7.0 and 7.1 complain thusly:
4205 # icc: Command line warning: ignoring option '-M'; no argument required
4206 # The diagnosis changed in icc 8.0:
4207 # icc: Command line remark: option '-MP' not supported
4208 if (grep 'ignoring option' conftest.err ||
4209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210 am_cv_CC_dependencies_compiler_type=$depmode
4211 break
4212 fi
4213 fi
4214 done
4215
4216 cd ..
4217 rm -rf conftest.dir
4218 else
4219 am_cv_CC_dependencies_compiler_type=none
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4224 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226
4227 if
4228 test "x$enable_dependency_tracking" != xno \
4229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4230 am__fastdepCC_TRUE=
4231 am__fastdepCC_FALSE='#'
4232 else
4233 am__fastdepCC_TRUE='#'
4234 am__fastdepCC_FALSE=
4235 fi
4236
4237
4238 for ac_prog in 'bison -y' byacc
4239 do
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if test "${ac_cv_prog_YACC+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$YACC"; then
4248 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_YACC="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 YACC=$ac_cv_prog_YACC
4268 if test -n "$YACC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4270 $as_echo "$YACC" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276
4277 test -n "$YACC" && break
4278 done
4279 test -n "$YACC" || YACC="yacc"
4280
4281
4282 for ac_prog in flex lex
4283 do
4284 # Extract the first word of "$ac_prog", so it can be a program name with args.
4285 set dummy $ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_LEX+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$LEX"; then
4292 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_LEX="$ac_prog"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 fi
4310 fi
4311 LEX=$ac_cv_prog_LEX
4312 if test -n "$LEX"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4314 $as_echo "$LEX" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320
4321 test -n "$LEX" && break
4322 done
4323 test -n "$LEX" || LEX=":"
4324
4325 if test "x$LEX" != "x:"; then
4326 cat >conftest.l <<_ACEOF
4327 %%
4328 a { ECHO; }
4329 b { REJECT; }
4330 c { yymore (); }
4331 d { yyless (1); }
4332 e { yyless (input () != 0); }
4333 f { unput (yytext[0]); }
4334 . { BEGIN INITIAL; }
4335 %%
4336 #ifdef YYTEXT_POINTER
4337 extern char *yytext;
4338 #endif
4339 int
4340 main (void)
4341 {
4342 return ! yylex () + ! yywrap ();
4343 }
4344 _ACEOF
4345 { { ac_try="$LEX conftest.l"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$LEX conftest.l") 2>&5
4353 ac_status=$?
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4357 $as_echo_n "checking lex output file root... " >&6; }
4358 if test "${ac_cv_prog_lex_root+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361
4362 if test -f lex.yy.c; then
4363 ac_cv_prog_lex_root=lex.yy
4364 elif test -f lexyy.c; then
4365 ac_cv_prog_lex_root=lexyy
4366 else
4367 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4368 fi
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4371 $as_echo "$ac_cv_prog_lex_root" >&6; }
4372 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4373
4374 if test -z "${LEXLIB+set}"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4376 $as_echo_n "checking lex library... " >&6; }
4377 if test "${ac_cv_lib_lex+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380
4381 ac_save_LIBS=$LIBS
4382 ac_cv_lib_lex='none needed'
4383 for ac_lib in '' -lfl -ll; do
4384 LIBS="$ac_lib $ac_save_LIBS"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 `cat $LEX_OUTPUT_ROOT.c`
4388 _ACEOF
4389 if ac_fn_c_try_link "$LINENO"; then :
4390 ac_cv_lib_lex=$ac_lib
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext \
4393 conftest$ac_exeext conftest.$ac_ext
4394 test "$ac_cv_lib_lex" != 'none needed' && break
4395 done
4396 LIBS=$ac_save_LIBS
4397
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4400 $as_echo "$ac_cv_lib_lex" >&6; }
4401 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4402 fi
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4406 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4407 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 # POSIX says lex can declare yytext either as a pointer or an array; the
4411 # default is implementation-dependent. Figure out which it is, since
4412 # not all implementations provide the %pointer and %array declarations.
4413 ac_cv_prog_lex_yytext_pointer=no
4414 ac_save_LIBS=$LIBS
4415 LIBS="$LEXLIB $ac_save_LIBS"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #define YYTEXT_POINTER 1
4419 `cat $LEX_OUTPUT_ROOT.c`
4420 _ACEOF
4421 if ac_fn_c_try_link "$LINENO"; then :
4422 ac_cv_prog_lex_yytext_pointer=yes
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext \
4425 conftest$ac_exeext conftest.$ac_ext
4426 LIBS=$ac_save_LIBS
4427
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4430 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4431 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4432
4433 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4434
4435 fi
4436 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4437
4438 fi
4439 if test "$LEX" = :; then
4440 LEX=${am_missing_run}flex
4441 fi
4442
4443
4444
4445 #ltdl stuff
4446 case `pwd` in
4447 *\ * | *\ *)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4449 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4450 esac
4451
4452
4453
4454 macro_version='2.2.6'
4455 macro_revision='1.3012'
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469 ltmain="$ac_aux_dir/ltmain.sh"
4470
4471 # Make sure we can run config.sub.
4472 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4473 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4476 $as_echo_n "checking build system type... " >&6; }
4477 if test "${ac_cv_build+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 ac_build_alias=$build_alias
4481 test "x$ac_build_alias" = x &&
4482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4483 test "x$ac_build_alias" = x &&
4484 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4485 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4486 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4487
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4490 $as_echo "$ac_cv_build" >&6; }
4491 case $ac_cv_build in
4492 *-*-*) ;;
4493 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4494 esac
4495 build=$ac_cv_build
4496 ac_save_IFS=$IFS; IFS='-'
4497 set x $ac_cv_build
4498 shift
4499 build_cpu=$1
4500 build_vendor=$2
4501 shift; shift
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4504 build_os=$*
4505 IFS=$ac_save_IFS
4506 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4507
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4510 $as_echo_n "checking host system type... " >&6; }
4511 if test "${ac_cv_host+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test "x$host_alias" = x; then
4515 ac_cv_host=$ac_cv_build
4516 else
4517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4518 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4519 fi
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4523 $as_echo "$ac_cv_host" >&6; }
4524 case $ac_cv_host in
4525 *-*-*) ;;
4526 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4527 esac
4528 host=$ac_cv_host
4529 ac_save_IFS=$IFS; IFS='-'
4530 set x $ac_cv_host
4531 shift
4532 host_cpu=$1
4533 host_vendor=$2
4534 shift; shift
4535 # Remember, the first character of IFS is used to create $*,
4536 # except with old shells:
4537 host_os=$*
4538 IFS=$ac_save_IFS
4539 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4544 if test "${ac_cv_path_SED+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4548 for ac_i in 1 2 3 4 5 6 7; do
4549 ac_script="$ac_script$as_nl$ac_script"
4550 done
4551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4552 { ac_script=; unset ac_script;}
4553 if test -z "$SED"; then
4554 ac_path_SED_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in sed gsed; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4564 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4565 # Check for GNU ac_path_SED and select it if it is found.
4566 # Check for GNU $ac_path_SED
4567 case `"$ac_path_SED" --version 2>&1` in
4568 *GNU*)
4569 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4570 *)
4571 ac_count=0
4572 $as_echo_n 0123456789 >"conftest.in"
4573 while :
4574 do
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo '' >> "conftest.nl"
4579 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_SED_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_SED="$ac_path_SED"
4585 ac_path_SED_max=$ac_count
4586 fi
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4592
4593 $ac_path_SED_found && break 3
4594 done
4595 done
4596 done
4597 IFS=$as_save_IFS
4598 if test -z "$ac_cv_path_SED"; then
4599 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4600 fi
4601 else
4602 ac_cv_path_SED=$SED
4603 fi
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4607 $as_echo "$ac_cv_path_SED" >&6; }
4608 SED="$ac_cv_path_SED"
4609 rm -f conftest.sed
4610
4611 test -z "$SED" && SED=sed
4612 Xsed="$SED -e 1s/^X//"
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if test "${ac_cv_path_GREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -z "$GREP"; then
4630 ac_path_GREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642 # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'GREP' >> "conftest.nl"
4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_GREP_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_GREP=$GREP
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if test "${ac_cv_path_EGREP+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4694 else
4695 if test -z "$EGREP"; then
4696 ac_path_EGREP_found=false
4697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708 # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4710 *GNU*)
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 *)
4713 ac_count=0
4714 $as_echo_n 0123456789 >"conftest.in"
4715 while :
4716 do
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
4720 $as_echo 'EGREP' >> "conftest.nl"
4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723 as_fn_arith $ac_count + 1 && ac_count=$as_val
4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4728 fi
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4731 done
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735 $ac_path_EGREP_found && break 3
4736 done
4737 done
4738 done
4739 IFS=$as_save_IFS
4740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 fi
4743 else
4744 ac_cv_path_EGREP=$EGREP
4745 fi
4746
4747 fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4752
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4755 $as_echo_n "checking for fgrep... " >&6; }
4756 if test "${ac_cv_path_FGREP+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4760 then ac_cv_path_FGREP="$GREP -F"
4761 else
4762 if test -z "$FGREP"; then
4763 ac_path_FGREP_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_prog in fgrep; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4774 # Check for GNU ac_path_FGREP and select it if it is found.
4775 # Check for GNU $ac_path_FGREP
4776 case `"$ac_path_FGREP" --version 2>&1` in
4777 *GNU*)
4778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4779 *)
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo 'FGREP' >> "conftest.nl"
4788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790 as_fn_arith $ac_count + 1 && ac_count=$as_val
4791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_FGREP="$ac_path_FGREP"
4794 ac_path_FGREP_max=$ac_count
4795 fi
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 esac
4801
4802 $ac_path_FGREP_found && break 3
4803 done
4804 done
4805 done
4806 IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_FGREP"; then
4808 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 fi
4810 else
4811 ac_cv_path_FGREP=$FGREP
4812 fi
4813
4814 fi
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4817 $as_echo "$ac_cv_path_FGREP" >&6; }
4818 FGREP="$ac_cv_path_FGREP"
4819
4820
4821 test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 # Check whether --with-gnu-ld was given.
4842 if test "${with_gnu_ld+set}" = set; then :
4843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844 else
4845 with_gnu_ld=no
4846 fi
4847
4848 ac_prog=ld
4849 if test "$GCC" = yes; then
4850 # Check if gcc -print-prog-name=ld gives a path.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4852 $as_echo_n "checking for ld used by $CC... " >&6; }
4853 case $host in
4854 *-*-mingw*)
4855 # gcc leaves a trailing carriage return which upsets mingw
4856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 *)
4858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859 esac
4860 case $ac_prog in
4861 # Accept absolute paths.
4862 [\\/]* | ?:[\\/]*)
4863 re_direlt='/[^/][^/]*/\.\./'
4864 # Canonicalize the pathname of ld
4865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868 done
4869 test -z "$LD" && LD="$ac_prog"
4870 ;;
4871 "")
4872 # If it fails, then pretend we aren't using GCC.
4873 ac_prog=ld
4874 ;;
4875 *)
4876 # If it is relative, then search for the first ld in PATH.
4877 with_gnu_ld=unknown
4878 ;;
4879 esac
4880 elif test "$with_gnu_ld" = yes; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4882 $as_echo_n "checking for GNU ld... " >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4885 $as_echo_n "checking for non-GNU ld... " >&6; }
4886 fi
4887 if test "${lt_cv_path_LD+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -z "$LD"; then
4891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892 for ac_dir in $PATH; do
4893 IFS="$lt_save_ifs"
4894 test -z "$ac_dir" && ac_dir=.
4895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896 lt_cv_path_LD="$ac_dir/$ac_prog"
4897 # Check to see if the program is GNU ld. I'd rather use --version,
4898 # but apparently some variants of GNU ld only accept -v.
4899 # Break only if it was the GNU/non-GNU ld that we prefer.
4900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901 *GNU* | *'with BFD'*)
4902 test "$with_gnu_ld" != no && break
4903 ;;
4904 *)
4905 test "$with_gnu_ld" != yes && break
4906 ;;
4907 esac
4908 fi
4909 done
4910 IFS="$lt_save_ifs"
4911 else
4912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913 fi
4914 fi
4915
4916 LD="$lt_cv_path_LD"
4917 if test -n "$LD"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4919 $as_echo "$LD" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4927 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4931 case `$LD -v 2>&1 </dev/null` in
4932 *GNU* | *'with BFD'*)
4933 lt_cv_prog_gnu_ld=yes
4934 ;;
4935 *)
4936 lt_cv_prog_gnu_ld=no
4937 ;;
4938 esac
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4942 with_gnu_ld=$lt_cv_prog_gnu_ld
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4953 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4954 if test "${lt_cv_path_NM+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$NM"; then
4958 # Let the user override the test.
4959 lt_cv_path_NM="$NM"
4960 else
4961 lt_nm_to_check="${ac_tool_prefix}nm"
4962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4963 lt_nm_to_check="$lt_nm_to_check nm"
4964 fi
4965 for lt_tmp_nm in $lt_nm_to_check; do
4966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968 IFS="$lt_save_ifs"
4969 test -z "$ac_dir" && ac_dir=.
4970 tmp_nm="$ac_dir/$lt_tmp_nm"
4971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4972 # Check to see if the nm accepts a BSD-compat flag.
4973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4974 # nm: unknown option "B" ignored
4975 # Tru64's nm complains that /dev/null is an invalid object file
4976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4977 */dev/null* | *'Invalid file or object type'*)
4978 lt_cv_path_NM="$tmp_nm -B"
4979 break
4980 ;;
4981 *)
4982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983 */dev/null*)
4984 lt_cv_path_NM="$tmp_nm -p"
4985 break
4986 ;;
4987 *)
4988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4989 continue # so that we can try to find one that supports BSD flags
4990 ;;
4991 esac
4992 ;;
4993 esac
4994 fi
4995 done
4996 IFS="$lt_save_ifs"
4997 done
4998 : ${lt_cv_path_NM=no}
4999 fi
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5002 $as_echo "$lt_cv_path_NM" >&6; }
5003 if test "$lt_cv_path_NM" != "no"; then
5004 NM="$lt_cv_path_NM"
5005 else
5006 # Didn't find any BSD compatible name lister, look for dumpbin.
5007 if test -n "$ac_tool_prefix"; then
5008 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5009 do
5010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$DUMPBIN"; then
5018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 DUMPBIN=$ac_cv_prog_DUMPBIN
5038 if test -n "$DUMPBIN"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5040 $as_echo "$DUMPBIN" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 test -n "$DUMPBIN" && break
5048 done
5049 fi
5050 if test -z "$DUMPBIN"; then
5051 ac_ct_DUMPBIN=$DUMPBIN
5052 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5053 do
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$ac_ct_DUMPBIN"; then
5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5082 if test -n "$ac_ct_DUMPBIN"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5084 $as_echo "$ac_ct_DUMPBIN" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 test -n "$ac_ct_DUMPBIN" && break
5092 done
5093
5094 if test "x$ac_ct_DUMPBIN" = x; then
5095 DUMPBIN=":"
5096 else
5097 case $cross_compiling:$ac_tool_warned in
5098 yes:)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101 ac_tool_warned=yes ;;
5102 esac
5103 DUMPBIN=$ac_ct_DUMPBIN
5104 fi
5105 fi
5106
5107
5108 if test "$DUMPBIN" != ":"; then
5109 NM="$DUMPBIN"
5110 fi
5111 fi
5112 test -z "$NM" && NM=nm
5113
5114
5115
5116
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5120 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5121 if test "${lt_cv_nm_interface+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 lt_cv_nm_interface="BSD nm"
5125 echo "int some_variable = 0;" > conftest.$ac_ext
5126 (eval echo "\"\$as_me:5126: $ac_compile\"" >&5)
5127 (eval "$ac_compile" 2>conftest.err)
5128 cat conftest.err >&5
5129 (eval echo "\"\$as_me:5129: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5130 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5131 cat conftest.err >&5
5132 (eval echo "\"\$as_me:5132: output\"" >&5)
5133 cat conftest.out >&5
5134 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5135 lt_cv_nm_interface="MS dumpbin"
5136 fi
5137 rm -f conftest*
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5140 $as_echo "$lt_cv_nm_interface" >&6; }
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5143 $as_echo_n "checking whether ln -s works... " >&6; }
5144 LN_S=$as_ln_s
5145 if test "$LN_S" = "ln -s"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147 $as_echo "yes" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5150 $as_echo "no, using $LN_S" >&6; }
5151 fi
5152
5153 # find the maximum length of command line arguments
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 i=0
5160 teststring="ABCD"
5161
5162 case $build_os in
5163 msdosdjgpp*)
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5169 ;;
5170
5171 gnu*)
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5176 ;;
5177
5178 cygwin* | mingw* | cegcc*)
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
5189 amigaos*)
5190 # On AmigaOS with pdksh, this test takes hours, literally.
5191 # So we just punt and use a minimum line length of 8192.
5192 lt_cv_sys_max_cmd_len=8192;
5193 ;;
5194
5195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5196 # This has been around since 386BSD, at least. Likely further.
5197 if test -x /sbin/sysctl; then
5198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5199 elif test -x /usr/sbin/sysctl; then
5200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5201 else
5202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5203 fi
5204 # And add a safety zone
5205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5207 ;;
5208
5209 interix*)
5210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5211 lt_cv_sys_max_cmd_len=196608
5212 ;;
5213
5214 osf*)
5215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217 # nice to cause kernel panics so lets avoid the loop below.
5218 # First set a reasonable default.
5219 lt_cv_sys_max_cmd_len=16384
5220 #
5221 if test -x /sbin/sysconfig; then
5222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224 esac
5225 fi
5226 ;;
5227 sco3.2v5*)
5228 lt_cv_sys_max_cmd_len=102400
5229 ;;
5230 sysv5* | sco5v6* | sysv4.2uw2*)
5231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232 if test -n "$kargmax"; then
5233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5234 else
5235 lt_cv_sys_max_cmd_len=32768
5236 fi
5237 ;;
5238 *)
5239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240 if test -n "$lt_cv_sys_max_cmd_len"; then
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5243 else
5244 # Make teststring a little bigger before we do anything with it.
5245 # a 1K string should be a reasonable start.
5246 for i in 1 2 3 4 5 6 7 8 ; do
5247 teststring=$teststring$teststring
5248 done
5249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5250 # If test is not a shell built-in, we'll probably end up computing a
5251 # maximum length that is only half of the actual maximum length, but
5252 # we can't tell.
5253 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5254 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5255 test $i != 17 # 1/2 MB should be enough
5256 do
5257 i=`expr $i + 1`
5258 teststring=$teststring$teststring
5259 done
5260 # Only check the string length outside the loop.
5261 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5262 teststring=
5263 # Add a significant safety factor because C++ compilers can tack on
5264 # massive amounts of additional arguments before passing them to the
5265 # linker. It appears as though 1/2 is a usable value.
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5267 fi
5268 ;;
5269 esac
5270
5271 fi
5272
5273 if test -n $lt_cv_sys_max_cmd_len ; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5275 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5278 $as_echo "none" >&6; }
5279 fi
5280 max_cmd_len=$lt_cv_sys_max_cmd_len
5281
5282
5283
5284
5285
5286
5287 : ${CP="cp -f"}
5288 : ${MV="mv -f"}
5289 : ${RM="rm -f"}
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5292 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5293 # Try some XSI features
5294 xsi_shell=no
5295 ( _lt_dummy="a/b/c"
5296 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5297 = c,a/b,, \
5298 && eval 'test $(( 1 + 1 )) -eq 2 \
5299 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5300 && xsi_shell=yes
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5302 $as_echo "$xsi_shell" >&6; }
5303
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5306 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5307 lt_shell_append=no
5308 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5309 >/dev/null 2>&1 \
5310 && lt_shell_append=yes
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5312 $as_echo "$lt_shell_append" >&6; }
5313
5314
5315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5316 lt_unset=unset
5317 else
5318 lt_unset=false
5319 fi
5320
5321
5322
5323
5324
5325 # test EBCDIC or ASCII
5326 case `echo X|tr X '\101'` in
5327 A) # ASCII based system
5328 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5329 lt_SP2NL='tr \040 \012'
5330 lt_NL2SP='tr \015\012 \040\040'
5331 ;;
5332 *) # EBCDIC based system
5333 lt_SP2NL='tr \100 \n'
5334 lt_NL2SP='tr \r\n \100\100'
5335 ;;
5336 esac
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5347 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5348 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 lt_cv_ld_reload_flag='-r'
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5354 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5355 reload_flag=$lt_cv_ld_reload_flag
5356 case $reload_flag in
5357 "" | " "*) ;;
5358 *) reload_flag=" $reload_flag" ;;
5359 esac
5360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361 case $host_os in
5362 darwin*)
5363 if test "$GCC" = yes; then
5364 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5365 else
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 fi
5368 ;;
5369 esac
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5381 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$OBJDUMP"; then
5388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401 done
5402 done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 OBJDUMP=$ac_cv_prog_OBJDUMP
5408 if test -n "$OBJDUMP"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5410 $as_echo "$OBJDUMP" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 fi
5418 if test -z "$ac_cv_prog_OBJDUMP"; then
5419 ac_ct_OBJDUMP=$OBJDUMP
5420 # Extract the first word of "objdump", so it can be a program name with args.
5421 set dummy objdump; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$ac_ct_OBJDUMP"; then
5428 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5448 if test -n "$ac_ct_OBJDUMP"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5450 $as_echo "$ac_ct_OBJDUMP" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456 if test "x$ac_ct_OBJDUMP" = x; then
5457 OBJDUMP="false"
5458 else
5459 case $cross_compiling:$ac_tool_warned in
5460 yes:)
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5464 esac
5465 OBJDUMP=$ac_ct_OBJDUMP
5466 fi
5467 else
5468 OBJDUMP="$ac_cv_prog_OBJDUMP"
5469 fi
5470
5471 test -z "$OBJDUMP" && OBJDUMP=objdump
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5482 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5483 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 lt_cv_file_magic_cmd='$MAGIC_CMD'
5487 lt_cv_file_magic_test_file=
5488 lt_cv_deplibs_check_method='unknown'
5489 # Need to set the preceding variable on all platforms that support
5490 # interlibrary dependencies.
5491 # 'none' -- dependencies not supported.
5492 # `unknown' -- same as none, but documents that we really don't know.
5493 # 'pass_all' -- all dependencies passed with no checks.
5494 # 'test_compile' -- check by making test program.
5495 # 'file_magic [[regex]]' -- check by looking for files in library path
5496 # which responds to the $file_magic_cmd with a given extended regex.
5497 # If you have `file' or equivalent on your system and you're not sure
5498 # whether `pass_all' will *always* work, you probably want this one.
5499
5500 case $host_os in
5501 aix[4-9]*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505 beos*)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509 bsdi[45]*)
5510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5511 lt_cv_file_magic_cmd='/usr/bin/file -L'
5512 lt_cv_file_magic_test_file=/shlib/libc.so
5513 ;;
5514
5515 cygwin*)
5516 # func_win32_libid is a shell function defined in ltmain.sh
5517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518 lt_cv_file_magic_cmd='func_win32_libid'
5519 ;;
5520
5521 mingw* | pw32*)
5522 # Base MSYS/MinGW do not provide the 'file' command needed by
5523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5524 # unless we find 'file', for example because we are cross-compiling.
5525 if ( file / ) >/dev/null 2>&1; then
5526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527 lt_cv_file_magic_cmd='func_win32_libid'
5528 else
5529 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5530 lt_cv_file_magic_cmd='$OBJDUMP -f'
5531 fi
5532 ;;
5533
5534 cegcc)
5535 # use the weaker test based on 'objdump'. See mingw*.
5536 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5537 lt_cv_file_magic_cmd='$OBJDUMP -f'
5538 ;;
5539
5540 darwin* | rhapsody*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544 freebsd* | dragonfly*)
5545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5546 case $host_cpu in
5547 i*86 )
5548 # Not sure whether the presence of OpenBSD here was a mistake.
5549 # Let's accept both of them until this is cleared up.
5550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5551 lt_cv_file_magic_cmd=/usr/bin/file
5552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5553 ;;
5554 esac
5555 else
5556 lt_cv_deplibs_check_method=pass_all
5557 fi
5558 ;;
5559
5560 gnu*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 hpux10.20* | hpux11*)
5565 lt_cv_file_magic_cmd=/usr/bin/file
5566 case $host_cpu in
5567 ia64*)
5568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5570 ;;
5571 hppa*64*)
5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5574 ;;
5575 *)
5576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5578 ;;
5579 esac
5580 ;;
5581
5582 interix[3-9]*)
5583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5585 ;;
5586
5587 irix5* | irix6* | nonstopux*)
5588 case $LD in
5589 *-32|*"-32 ") libmagic=32-bit;;
5590 *-n32|*"-n32 ") libmagic=N32;;
5591 *-64|*"-64 ") libmagic=64-bit;;
5592 *) libmagic=never-match;;
5593 esac
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 # This must be Linux ELF.
5598 linux* | k*bsd*-gnu)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601
5602 netbsd*)
5603 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 else
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5607 fi
5608 ;;
5609
5610 newos6*)
5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5612 lt_cv_file_magic_cmd=/usr/bin/file
5613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5614 ;;
5615
5616 *nto* | *qnx*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620 openbsd*)
5621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 else
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 fi
5626 ;;
5627
5628 osf3* | osf4* | osf5*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632 rdos*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636 solaris*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643
5644 sysv4 | sysv4.3*)
5645 case $host_vendor in
5646 motorola)
5647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5649 ;;
5650 ncr)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 sequent)
5654 lt_cv_file_magic_cmd='/bin/file'
5655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5656 ;;
5657 sni)
5658 lt_cv_file_magic_cmd='/bin/file'
5659 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5660 lt_cv_file_magic_test_file=/lib/libc.so
5661 ;;
5662 siemens)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665 pc)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668 esac
5669 ;;
5670
5671 tpf*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 esac
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5678 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5679 file_magic_cmd=$lt_cv_file_magic_cmd
5680 deplibs_check_method=$lt_cv_deplibs_check_method
5681 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696 set dummy ${ac_tool_prefix}ar; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if test "${ac_cv_prog_AR+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$AR"; then
5703 ac_cv_prog_AR="$AR" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_AR="${ac_tool_prefix}ar"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 AR=$ac_cv_prog_AR
5723 if test -n "$AR"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5725 $as_echo "$AR" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if test -z "$ac_cv_prog_AR"; then
5734 ac_ct_AR=$AR
5735 # Extract the first word of "ar", so it can be a program name with args.
5736 set dummy ar; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$ac_ct_AR"; then
5743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_ac_ct_AR="ar"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5763 if test -n "$ac_ct_AR"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5765 $as_echo "$ac_ct_AR" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771 if test "x$ac_ct_AR" = x; then
5772 AR="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775 yes:)
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778 ac_tool_warned=yes ;;
5779 esac
5780 AR=$ac_ct_AR
5781 fi
5782 else
5783 AR="$ac_cv_prog_AR"
5784 fi
5785
5786 test -z "$AR" && AR=ar
5787 test -z "$AR_FLAGS" && AR_FLAGS=cru
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}strip; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_STRIP+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$STRIP"; then
5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 STRIP=$ac_cv_prog_STRIP
5828 if test -n "$STRIP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830 $as_echo "$STRIP" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_STRIP"; then
5839 ac_ct_STRIP=$STRIP
5840 # Extract the first word of "strip", so it can be a program name with args.
5841 set dummy strip; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if test -n "$ac_ct_STRIP"; then
5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_STRIP="strip"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868 if test -n "$ac_ct_STRIP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870 $as_echo "$ac_ct_STRIP" >&6; }
5871 else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876 if test "x$ac_ct_STRIP" = x; then
5877 STRIP=":"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 STRIP=$ac_ct_STRIP
5886 fi
5887 else
5888 STRIP="$ac_cv_prog_STRIP"
5889 fi
5890
5891 test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 RANLIB=$ac_cv_prog_RANLIB
5927 if test -n "$RANLIB"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929 $as_echo "$RANLIB" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936 fi
5937 if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940 set dummy ranlib; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967 if test -n "$ac_ct_RANLIB"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969 $as_echo "$ac_ct_RANLIB" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 fi
5974
5975 if test "x$ac_ct_RANLIB" = x; then
5976 RANLIB=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984 RANLIB=$ac_ct_RANLIB
5985 fi
5986 else
5987 RANLIB="$ac_cv_prog_RANLIB"
5988 fi
5989
5990 test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997 # Determine commands to create old-style static archives.
5998 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999 old_postinstall_cmds='chmod 644 $oldlib'
6000 old_postuninstall_cmds=
6001
6002 if test -n "$RANLIB"; then
6003 case $host_os in
6004 openbsd*)
6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6006 ;;
6007 *)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6009 ;;
6010 esac
6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6012 fi
6013
6014
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 # If no C compiler was specified, use CC.
6048 LTCC=${LTCC-"$CC"}
6049
6050 # If no C compiler flags were specified, use CFLAGS.
6051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
6053 # Allow CC to be a program name with arguments.
6054 compiler=$CC
6055
6056
6057 # Check for command to grab the raw symbol name followed by C symbol from nm.
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6059 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6060 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063
6064 # These are sane defaults that work on at least a few old systems.
6065 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6066
6067 # Character class describing NM global symbol codes.
6068 symcode='[BCDEGRST]'
6069
6070 # Regexp to match symbols that can be accessed directly from C.
6071 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6072
6073 # Define system-specific variables.
6074 case $host_os in
6075 aix*)
6076 symcode='[BCDT]'
6077 ;;
6078 cygwin* | mingw* | pw32* | cegcc*)
6079 symcode='[ABCDGISTW]'
6080 ;;
6081 hpux*)
6082 if test "$host_cpu" = ia64; then
6083 symcode='[ABCDEGRST]'
6084 fi
6085 ;;
6086 irix* | nonstopux*)
6087 symcode='[BCDEGRST]'
6088 ;;
6089 osf*)
6090 symcode='[BCDEGQRST]'
6091 ;;
6092 solaris*)
6093 symcode='[BDRT]'
6094 ;;
6095 sco3.2v5*)
6096 symcode='[DT]'
6097 ;;
6098 sysv4.2uw2*)
6099 symcode='[DT]'
6100 ;;
6101 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6102 symcode='[ABDT]'
6103 ;;
6104 sysv4)
6105 symcode='[DFNSTU]'
6106 ;;
6107 esac
6108
6109 # If we're using GNU nm, then use its standard symbol codes.
6110 case `$NM -V 2>&1` in
6111 *GNU* | *'with BFD'*)
6112 symcode='[ABCDGIRSTW]' ;;
6113 esac
6114
6115 # Transform an extracted symbol line into a proper C declaration.
6116 # Some systems (esp. on ia64) link data and code symbols differently,
6117 # so use this general approach.
6118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6119
6120 # Transform an extracted symbol line into symbol name and symbol address
6121 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6122 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'"
6123
6124 # Handle CRLF in mingw tool chain
6125 opt_cr=
6126 case $build_os in
6127 mingw*)
6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 ;;
6130 esac
6131
6132 # Try without a prefix underscore, then with it.
6133 for ac_symprfx in "" "_"; do
6134
6135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6136 symxfrm="\\1 $ac_symprfx\\2 \\2"
6137
6138 # Write the raw and C identifiers.
6139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6140 # Fake it for dumpbin and say T for any non-static function
6141 # and D for any global variable.
6142 # Also find C++ and __fastcall symbols from MSVC++,
6143 # which start with @ or ?.
6144 lt_cv_sys_global_symbol_pipe="$AWK '"\
6145 " {last_section=section; section=\$ 3};"\
6146 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6147 " \$ 0!~/External *\|/{next};"\
6148 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6149 " {if(hide[section]) next};"\
6150 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6151 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6152 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6153 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6154 " ' prfx=^$ac_symprfx"
6155 else
6156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6157 fi
6158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
6163 cat > conftest.$ac_ext <<_LT_EOF
6164 #ifdef __cplusplus
6165 extern "C" {
6166 #endif
6167 char nm_test_var;
6168 void nm_test_func(void);
6169 void nm_test_func(void){}
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173 int main(){nm_test_var='a';nm_test_func();return(0);}
6174 _LT_EOF
6175
6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177 (eval $ac_compile) 2>&5
6178 ac_status=$?
6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; }; then
6181 # Now try to grab the symbols.
6182 nlist=conftest.nm
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s "$nlist"; then
6188 # Try sorting and uniquifying the output.
6189 if sort "$nlist" | uniq > "$nlist"T; then
6190 mv -f "$nlist"T "$nlist"
6191 else
6192 rm -f "$nlist"T
6193 fi
6194
6195 # Make sure that we snagged all the symbols we need.
6196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198 cat <<_LT_EOF > conftest.$ac_ext
6199 #ifdef __cplusplus
6200 extern "C" {
6201 #endif
6202
6203 _LT_EOF
6204 # Now generate the symbol file.
6205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6206
6207 cat <<_LT_EOF >> conftest.$ac_ext
6208
6209 /* The mapping between symbol names and symbols. */
6210 const struct {
6211 const char *name;
6212 void *address;
6213 }
6214 lt__PROGRAM__LTX_preloaded_symbols[] =
6215 {
6216 { "@PROGRAM@", (void *) 0 },
6217 _LT_EOF
6218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6219 cat <<\_LT_EOF >> conftest.$ac_ext
6220 {0, (void *) 0}
6221 };
6222
6223 /* This works around a problem in FreeBSD linker */
6224 #ifdef FREEBSD_WORKAROUND
6225 static const void *lt_preloaded_setup() {
6226 return lt__PROGRAM__LTX_preloaded_symbols;
6227 }
6228 #endif
6229
6230 #ifdef __cplusplus
6231 }
6232 #endif
6233 _LT_EOF
6234 # Now try linking the two files.
6235 mv conftest.$ac_objext conftstm.$ac_objext
6236 lt_save_LIBS="$LIBS"
6237 lt_save_CFLAGS="$CFLAGS"
6238 LIBS="conftstm.$ac_objext"
6239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6241 (eval $ac_link) 2>&5
6242 ac_status=$?
6243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6245 pipe_works=yes
6246 fi
6247 LIBS="$lt_save_LIBS"
6248 CFLAGS="$lt_save_CFLAGS"
6249 else
6250 echo "cannot find nm_test_func in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot find nm_test_var in $nlist" >&5
6254 fi
6255 else
6256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6257 fi
6258 else
6259 echo "$progname: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
6262 rm -rf conftest* conftst*
6263
6264 # Do not use the global_symbol_pipe unless it works.
6265 if test "$pipe_works" = yes; then
6266 break
6267 else
6268 lt_cv_sys_global_symbol_pipe=
6269 fi
6270 done
6271
6272 fi
6273
6274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6275 lt_cv_sys_global_symbol_to_cdecl=
6276 fi
6277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6279 $as_echo "failed" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6282 $as_echo "ok" >&6; }
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # Check whether --enable-libtool-lock was given.
6307 if test "${enable_libtool_lock+set}" = set; then :
6308 enableval=$enable_libtool_lock;
6309 fi
6310
6311 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6312
6313 # Some flags need to be propagated to the compiler or linker for good
6314 # libtool support.
6315 case $host in
6316 ia64-*-hpux*)
6317 # Find out which ABI we are using.
6318 echo 'int i;' > conftest.$ac_ext
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320 (eval $ac_compile) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *ELF-32*)
6326 HPUX_IA64_MODE="32"
6327 ;;
6328 *ELF-64*)
6329 HPUX_IA64_MODE="64"
6330 ;;
6331 esac
6332 fi
6333 rm -rf conftest*
6334 ;;
6335 *-*-irix6*)
6336 # Find out which ABI we are using.
6337 echo '#line 6337 "configure"' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 if test "$lt_cv_prog_gnu_ld" = yes; then
6344 case `/usr/bin/file conftest.$ac_objext` in
6345 *32-bit*)
6346 LD="${LD-ld} -melf32bsmip"
6347 ;;
6348 *N32*)
6349 LD="${LD-ld} -melf32bmipn32"
6350 ;;
6351 *64-bit*)
6352 LD="${LD-ld} -melf64bmip"
6353 ;;
6354 esac
6355 else
6356 case `/usr/bin/file conftest.$ac_objext` in
6357 *32-bit*)
6358 LD="${LD-ld} -32"
6359 ;;
6360 *N32*)
6361 LD="${LD-ld} -n32"
6362 ;;
6363 *64-bit*)
6364 LD="${LD-ld} -64"
6365 ;;
6366 esac
6367 fi
6368 fi
6369 rm -rf conftest*
6370 ;;
6371
6372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
6381 case `/usr/bin/file conftest.o` in
6382 *32-bit*)
6383 case $host in
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_i386_fbsd"
6386 ;;
6387 x86_64-*linux*)
6388 LD="${LD-ld} -m elf_i386"
6389 ;;
6390 ppc64-*linux*|powerpc64-*linux*)
6391 LD="${LD-ld} -m elf32ppclinux"
6392 ;;
6393 s390x-*linux*)
6394 LD="${LD-ld} -m elf_s390"
6395 ;;
6396 sparc64-*linux*)
6397 LD="${LD-ld} -m elf32_sparc"
6398 ;;
6399 esac
6400 ;;
6401 *64-bit*)
6402 case $host in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_x86_64_fbsd"
6405 ;;
6406 x86_64-*linux*)
6407 LD="${LD-ld} -m elf_x86_64"
6408 ;;
6409 ppc*-*linux*|powerpc*-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6411 ;;
6412 s390*-*linux*|s390*-*tpf*)
6413 LD="${LD-ld} -m elf64_s390"
6414 ;;
6415 sparc*-*linux*)
6416 LD="${LD-ld} -m elf64_sparc"
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 fi
6422 rm -rf conftest*
6423 ;;
6424
6425 *-*-sco3.2v5*)
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS="$CFLAGS"
6428 CFLAGS="$CFLAGS -belf"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6431 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442
6443 int
6444 main ()
6445 {
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"; then :
6452 lt_cv_cc_needs_belf=yes
6453 else
6454 lt_cv_cc_needs_belf=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6467 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469 CFLAGS="$SAVE_CFLAGS"
6470 fi
6471 ;;
6472 sparc*-*solaris*)
6473 # Find out which ABI we are using.
6474 echo 'int i;' > conftest.$ac_ext
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476 (eval $ac_compile) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
6480 case `/usr/bin/file conftest.o` in
6481 *64-bit*)
6482 case $lt_cv_prog_gnu_ld in
6483 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6484 *)
6485 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486 LD="${LD-ld} -64"
6487 fi
6488 ;;
6489 esac
6490 ;;
6491 esac
6492 fi
6493 rm -rf conftest*
6494 ;;
6495 esac
6496
6497 need_locks="$enable_libtool_lock"
6498
6499
6500 case $host_os in
6501 rhapsody* | darwin*)
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$DSYMUTIL"; then
6511 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6531 if test -n "$DSYMUTIL"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6533 $as_echo "$DSYMUTIL" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_DSYMUTIL"; then
6542 ac_ct_DSYMUTIL=$DSYMUTIL
6543 # Extract the first word of "dsymutil", so it can be a program name with args.
6544 set dummy dsymutil; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$ac_ct_DSYMUTIL"; then
6551 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6571 if test -n "$ac_ct_DSYMUTIL"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6573 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579 if test "x$ac_ct_DSYMUTIL" = x; then
6580 DSYMUTIL=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 DSYMUTIL=$ac_ct_DSYMUTIL
6589 fi
6590 else
6591 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6592 fi
6593
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$NMEDIT"; then
6603 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 NMEDIT=$ac_cv_prog_NMEDIT
6623 if test -n "$NMEDIT"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6625 $as_echo "$NMEDIT" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632 fi
6633 if test -z "$ac_cv_prog_NMEDIT"; then
6634 ac_ct_NMEDIT=$NMEDIT
6635 # Extract the first word of "nmedit", so it can be a program name with args.
6636 set dummy nmedit; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$ac_ct_NMEDIT"; then
6643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6663 if test -n "$ac_ct_NMEDIT"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6665 $as_echo "$ac_ct_NMEDIT" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671 if test "x$ac_ct_NMEDIT" = x; then
6672 NMEDIT=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 NMEDIT=$ac_ct_NMEDIT
6681 fi
6682 else
6683 NMEDIT="$ac_cv_prog_NMEDIT"
6684 fi
6685
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_LIPO+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$LIPO"; then
6695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 LIPO=$ac_cv_prog_LIPO
6715 if test -n "$LIPO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6717 $as_echo "$LIPO" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724 fi
6725 if test -z "$ac_cv_prog_LIPO"; then
6726 ac_ct_LIPO=$LIPO
6727 # Extract the first word of "lipo", so it can be a program name with args.
6728 set dummy lipo; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$ac_ct_LIPO"; then
6735 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_LIPO="lipo"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6755 if test -n "$ac_ct_LIPO"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6757 $as_echo "$ac_ct_LIPO" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763 if test "x$ac_ct_LIPO" = x; then
6764 LIPO=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 LIPO=$ac_ct_LIPO
6773 fi
6774 else
6775 LIPO="$ac_cv_prog_LIPO"
6776 fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}otool; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$OTOOL"; then
6787 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 OTOOL=$ac_cv_prog_OTOOL
6807 if test -n "$OTOOL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6809 $as_echo "$OTOOL" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_OTOOL"; then
6818 ac_ct_OTOOL=$OTOOL
6819 # Extract the first word of "otool", so it can be a program name with args.
6820 set dummy otool; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$ac_ct_OTOOL"; then
6827 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_OTOOL="otool"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6847 if test -n "$ac_ct_OTOOL"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6849 $as_echo "$ac_ct_OTOOL" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855 if test "x$ac_ct_OTOOL" = x; then
6856 OTOOL=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 OTOOL=$ac_ct_OTOOL
6865 fi
6866 else
6867 OTOOL="$ac_cv_prog_OTOOL"
6868 fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$OTOOL64"; then
6879 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 OTOOL64=$ac_cv_prog_OTOOL64
6899 if test -n "$OTOOL64"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6901 $as_echo "$OTOOL64" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_OTOOL64"; then
6910 ac_ct_OTOOL64=$OTOOL64
6911 # Extract the first word of "otool64", so it can be a program name with args.
6912 set dummy otool64; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 if test -n "$ac_ct_OTOOL64"; then
6919 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_OTOOL64="otool64"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6939 if test -n "$ac_ct_OTOOL64"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6941 $as_echo "$ac_ct_OTOOL64" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947 if test "x$ac_ct_OTOOL64" = x; then
6948 OTOOL64=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956 OTOOL64=$ac_ct_OTOOL64
6957 fi
6958 else
6959 OTOOL64="$ac_cv_prog_OTOOL64"
6960 fi
6961
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6989 $as_echo_n "checking for -single_module linker flag... " >&6; }
6990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_apple_cc_single_mod=no
6994 if test -z "${LT_MULTI_MODULE}"; then
6995 # By default we will add the -single_module flag. You can override
6996 # by either setting the environment variable LT_MULTI_MODULE
6997 # non-empty at configure time, or by adding -multi_module to the
6998 # link flags.
6999 rm -rf libconftest.dylib*
7000 echo "int foo(void){return 1;}" > conftest.c
7001 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7002 -dynamiclib -Wl,-single_module conftest.c" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7005 _lt_result=$?
7006 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7007 lt_cv_apple_cc_single_mod=yes
7008 else
7009 cat conftest.err >&5
7010 fi
7011 rm -rf libconftest.dylib*
7012 rm -f conftest.*
7013 fi
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7016 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7018 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7019 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 lt_cv_ld_exported_symbols_list=no
7023 save_LDFLAGS=$LDFLAGS
7024 echo "_main" > conftest.sym
7025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028
7029 int
7030 main ()
7031 {
7032
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 lt_cv_ld_exported_symbols_list=yes
7039 else
7040 lt_cv_ld_exported_symbols_list=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LDFLAGS="$save_LDFLAGS"
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7048 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7049 case $host_os in
7050 rhapsody* | darwin1.[012])
7051 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7052 darwin1.*)
7053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7054 darwin*) # darwin 5.x on
7055 # if running on 10.5 or later, the deployment target defaults
7056 # to the OS version, if on x86, and 10.4, the deployment
7057 # target defaults to 10.4. Don't you love it?
7058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7061 10.[012]*)
7062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063 10.*)
7064 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7065 esac
7066 ;;
7067 esac
7068 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7069 _lt_dar_single_mod='$single_module'
7070 fi
7071 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7072 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7073 else
7074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7075 fi
7076 if test "$DSYMUTIL" != ":"; then
7077 _lt_dsymutil='~$DSYMUTIL $lib || :'
7078 else
7079 _lt_dsymutil=
7080 fi
7081 ;;
7082 esac
7083
7084 ac_ext=c
7085 ac_cpp='$CPP $CPPFLAGS'
7086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7091 # On Suns, sometimes $CPP names a directory.
7092 if test -n "$CPP" && test -d "$CPP"; then
7093 CPP=
7094 fi
7095 if test -z "$CPP"; then
7096 if test "${ac_cv_prog_CPP+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 # Double quotes because CPP needs to be expanded
7100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7101 do
7102 ac_preproc_ok=false
7103 for ac_c_preproc_warn_flag in '' yes
7104 do
7105 # Use a header file that comes with gcc, so configuring glibc
7106 # with a fresh cross-compiler works.
7107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 # <limits.h> exists even on freestanding compilers.
7109 # On the NeXT, cc -E runs the code through the compiler's parser,
7110 # not just through cpp. "Syntax error" is here to catch this case.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #ifdef __STDC__
7114 # include <limits.h>
7115 #else
7116 # include <assert.h>
7117 #endif
7118 Syntax error
7119 _ACEOF
7120 if ac_fn_c_try_cpp "$LINENO"; then :
7121
7122 else
7123 # Broken: fails on valid input.
7124 continue
7125 fi
7126 rm -f conftest.err conftest.$ac_ext
7127
7128 # OK, works on sane cases. Now check whether nonexistent headers
7129 # can be detected and how.
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 #include <ac_nonexistent.h>
7133 _ACEOF
7134 if ac_fn_c_try_cpp "$LINENO"; then :
7135 # Broken: success on invalid input.
7136 continue
7137 else
7138 # Passes both tests.
7139 ac_preproc_ok=:
7140 break
7141 fi
7142 rm -f conftest.err conftest.$ac_ext
7143
7144 done
7145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7146 rm -f conftest.err conftest.$ac_ext
7147 if $ac_preproc_ok; then :
7148 break
7149 fi
7150
7151 done
7152 ac_cv_prog_CPP=$CPP
7153
7154 fi
7155 CPP=$ac_cv_prog_CPP
7156 else
7157 ac_cv_prog_CPP=$CPP
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7160 $as_echo "$CPP" >&6; }
7161 ac_preproc_ok=false
7162 for ac_c_preproc_warn_flag in '' yes
7163 do
7164 # Use a header file that comes with gcc, so configuring glibc
7165 # with a fresh cross-compiler works.
7166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 # <limits.h> exists even on freestanding compilers.
7168 # On the NeXT, cc -E runs the code through the compiler's parser,
7169 # not just through cpp. "Syntax error" is here to catch this case.
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #ifdef __STDC__
7173 # include <limits.h>
7174 #else
7175 # include <assert.h>
7176 #endif
7177 Syntax error
7178 _ACEOF
7179 if ac_fn_c_try_cpp "$LINENO"; then :
7180
7181 else
7182 # Broken: fails on valid input.
7183 continue
7184 fi
7185 rm -f conftest.err conftest.$ac_ext
7186
7187 # OK, works on sane cases. Now check whether nonexistent headers
7188 # can be detected and how.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #include <ac_nonexistent.h>
7192 _ACEOF
7193 if ac_fn_c_try_cpp "$LINENO"; then :
7194 # Broken: success on invalid input.
7195 continue
7196 else
7197 # Passes both tests.
7198 ac_preproc_ok=:
7199 break
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202
7203 done
7204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7205 rm -f conftest.err conftest.$ac_ext
7206 if $ac_preproc_ok; then :
7207
7208 else
7209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7211 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7212 See \`config.log' for more details." "$LINENO" 5; }
7213 fi
7214
7215 ac_ext=c
7216 ac_cpp='$CPP $CPPFLAGS'
7217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
7221
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7223 $as_echo_n "checking for ANSI C header files... " >&6; }
7224 if test "${ac_cv_header_stdc+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 #include <stdlib.h>
7230 #include <stdarg.h>
7231 #include <string.h>
7232 #include <float.h>
7233
7234 int
7235 main ()
7236 {
7237
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_compile "$LINENO"; then :
7243 ac_cv_header_stdc=yes
7244 else
7245 ac_cv_header_stdc=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248
7249 if test $ac_cv_header_stdc = yes; then
7250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 #include <string.h>
7254
7255 _ACEOF
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "memchr" >/dev/null 2>&1; then :
7258
7259 else
7260 ac_cv_header_stdc=no
7261 fi
7262 rm -f conftest*
7263
7264 fi
7265
7266 if test $ac_cv_header_stdc = yes; then
7267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <stdlib.h>
7271
7272 _ACEOF
7273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7274 $EGREP "free" >/dev/null 2>&1; then :
7275
7276 else
7277 ac_cv_header_stdc=no
7278 fi
7279 rm -f conftest*
7280
7281 fi
7282
7283 if test $ac_cv_header_stdc = yes; then
7284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7285 if test "$cross_compiling" = yes; then :
7286 :
7287 else
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 #include <ctype.h>
7291 #include <stdlib.h>
7292 #if ((' ' & 0x0FF) == 0x020)
7293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7295 #else
7296 # define ISLOWER(c) \
7297 (('a' <= (c) && (c) <= 'i') \
7298 || ('j' <= (c) && (c) <= 'r') \
7299 || ('s' <= (c) && (c) <= 'z'))
7300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7301 #endif
7302
7303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7304 int
7305 main ()
7306 {
7307 int i;
7308 for (i = 0; i < 256; i++)
7309 if (XOR (islower (i), ISLOWER (i))
7310 || toupper (i) != TOUPPER (i))
7311 return 2;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_run "$LINENO"; then :
7316
7317 else
7318 ac_cv_header_stdc=no
7319 fi
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
7322 fi
7323
7324 fi
7325 fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7327 $as_echo "$ac_cv_header_stdc" >&6; }
7328 if test $ac_cv_header_stdc = yes; then
7329
7330 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7331
7332 fi
7333
7334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7336 inttypes.h stdint.h unistd.h
7337 do :
7338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7339 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7340 "
7341 eval as_val=\$$as_ac_Header
7342 if test "x$as_val" = x""yes; then :
7343 cat >>confdefs.h <<_ACEOF
7344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345 _ACEOF
7346
7347 fi
7348
7349 done
7350
7351
7352 for ac_header in dlfcn.h
7353 do :
7354 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7355 "
7356 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7357 cat >>confdefs.h <<_ACEOF
7358 #define HAVE_DLFCN_H 1
7359 _ACEOF
7360
7361 fi
7362
7363 done
7364
7365
7366
7367 # Set options
7368 enable_dlopen=yes
7369
7370
7371
7372
7373 enable_win32_dll=no
7374
7375
7376 # Check whether --enable-shared was given.
7377 if test "${enable_shared+set}" = set; then :
7378 enableval=$enable_shared; p=${PACKAGE-default}
7379 case $enableval in
7380 yes) enable_shared=yes ;;
7381 no) enable_shared=no ;;
7382 *)
7383 enable_shared=no
7384 # Look at the argument we got. We use all the common list separators.
7385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7386 for pkg in $enableval; do
7387 IFS="$lt_save_ifs"
7388 if test "X$pkg" = "X$p"; then
7389 enable_shared=yes
7390 fi
7391 done
7392 IFS="$lt_save_ifs"
7393 ;;
7394 esac
7395 else
7396 enable_shared=yes
7397 fi
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407 # Check whether --enable-static was given.
7408 if test "${enable_static+set}" = set; then :
7409 enableval=$enable_static; p=${PACKAGE-default}
7410 case $enableval in
7411 yes) enable_static=yes ;;
7412 no) enable_static=no ;;
7413 *)
7414 enable_static=no
7415 # Look at the argument we got. We use all the common list separators.
7416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7417 for pkg in $enableval; do
7418 IFS="$lt_save_ifs"
7419 if test "X$pkg" = "X$p"; then
7420 enable_static=yes
7421 fi
7422 done
7423 IFS="$lt_save_ifs"
7424 ;;
7425 esac
7426 else
7427 enable_static=yes
7428 fi
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
12769
12770
12771
12772
12773
12774 # Checks for header files.
12775
12776
12777
12778 for ac_header in $ac_header_list
12779 do :
12780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12782 "
12783 eval as_val=\$$as_ac_Header
12784 if test "x$as_val" = x""yes; then :
12785 cat >>confdefs.h <<_ACEOF
12786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12787 _ACEOF
12788
12789 fi
12790
12791 done
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
12818
12819
12820
12821
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12824 $as_echo_n "checking for /dev/null... " >&6; }
12825 if test -c /dev/null ; then
12826
12827 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830 $as_echo "yes" >&6; }
12831 else
12832
12833 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12836 $as_echo "no - using devnull.log" >&6; }
12837 fi
12838
12839
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12841 $as_echo_n "checking for library containing crypt... " >&6; }
12842 if test "${ac_cv_search_crypt+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_func_search_save_LIBS=$LIBS
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848
12849 /* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 char crypt ();
12856 int
12857 main ()
12858 {
12859 return crypt ();
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 for ac_lib in '' crypt descrypt; do
12865 if test -z "$ac_lib"; then
12866 ac_res="none required"
12867 else
12868 ac_res=-l$ac_lib
12869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12870 fi
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_search_crypt=$ac_res
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext
12876 if test "${ac_cv_search_crypt+set}" = set; then :
12877 break
12878 fi
12879 done
12880 if test "${ac_cv_search_crypt+set}" = set; then :
12881
12882 else
12883 ac_cv_search_crypt=no
12884 fi
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12887 fi
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12889 $as_echo "$ac_cv_search_crypt" >&6; }
12890 ac_res=$ac_cv_search_crypt
12891 if test "$ac_res" != no; then :
12892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12893
12894 fi
12895
12896 if test "$ac_cv_search_crypt" = "none required"; then
12897 HAVE_CRYPT_TRUE=
12898 HAVE_CRYPT_FALSE='#'
12899 else
12900 HAVE_CRYPT_TRUE='#'
12901 HAVE_CRYPT_FALSE=
12902 fi
12903
12904
12905
12906
12907 # Check whether --with-zlib-path was given.
12908 if test "${with_zlib_path+set}" = set; then :
12909 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12910 fi
12911
12912
12913 # Check whether --enable-zlib was given.
12914 if test "${enable_zlib+set}" = set; then :
12915 enableval=$enable_zlib; zlib=$enableval
12916 else
12917 zlib=yes
12918 fi
12919
12920
12921 if test "$zlib" = yes; then
12922 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12923 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12925 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12926 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lz $LIBS"
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char zlibVersion ();
12941 int
12942 main ()
12943 {
12944 return zlibVersion ();
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_z_zlibVersion=yes
12951 else
12952 ac_cv_lib_z_zlibVersion=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12959 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12960 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12961
12962 LIBS="-lz $LIBS"
12963
12964 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12965
12966
12967 else
12968 zlib=no
12969 fi
12970
12971
12972 else
12973 zlib=no
12974 fi
12975
12976
12977 fi
12978
12979
12980 # Check whether --enable-openssl was given.
12981 if test "${enable_openssl+set}" = set; then :
12982 enableval=$enable_openssl; cf_enable_openssl=$enableval
12983 else
12984 cf_enable_openssl="auto"
12985 fi
12986
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12988 $as_echo_n "checking for OpenSSL... " >&6; }
12989 if test "$cf_enable_openssl" != "no"; then
12990 cf_openssl_basedir=""
12991 if test "$cf_enable_openssl" != "auto" &&
12992 test "$cf_enable_openssl" != "yes"; then
12993 cf_openssl_basedir="${cf_enable_openssl}"
12994 else
12995 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12996 /opt /opt/openssl /usr/local/openssl; do
12997 if test -f "${dirs}/include/openssl/opensslv.h"; then
12998 cf_openssl_basedir="${dirs}"
12999 break
13000 fi
13001 done
13002 unset dirs
13003 fi
13004
13005 if test ! -z "$cf_openssl_basedir"; then
13006 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13007 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13008 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13009 else
13010 cf_openssl_basedir=""
13011 fi
13012 else
13013 if test -f "/usr/include/openssl/opensslv.h"; then
13014 cf_openssl_basedir="/usr"
13015 fi
13016 fi
13017
13018 if test ! -z "$cf_openssl_basedir"; then
13019 LIBS="-lcrypto -lssl $LIBS"
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13021 $as_echo "$cf_openssl_basedir" >&6; }
13022 cf_enable_openssl="yes"
13023
13024 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13025
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13028 $as_echo "not found. Please check your path." >&6; }
13029 cf_enable_openssl="no"
13030 fi
13031 unset cf_openssl_basedir
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13034 $as_echo "disabled" >&6; }
13035 fi
13036 if test "$cf_enable_openssl" = yes; then
13037 ENABLE_SSL_TRUE=
13038 ENABLE_SSL_FALSE='#'
13039 else
13040 ENABLE_SSL_TRUE='#'
13041 ENABLE_SSL_FALSE=
13042 fi
13043
13044
13045
13046 # Check whether --enable-assert was given.
13047 if test "${enable_assert+set}" = set; then :
13048 enableval=$enable_assert; assert=$enableval
13049 else
13050 assert=no
13051 fi
13052
13053 if test "$assert" = no; then
13054
13055 $as_echo "#define NDEBUG 1" >>confdefs.h
13056
13057 fi
13058
13059
13060 # Check whether --enable-small-net was given.
13061 if test "${enable_small_net+set}" = set; then :
13062 enableval=$enable_small_net; small_net=$enableval
13063 else
13064 small_net=no
13065 fi
13066
13067
13068 if test "$small_net" = yes; then
13069
13070 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13071
13072
13073 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13074
13075
13076 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13077
13078
13079 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13080
13081
13082 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13083
13084
13085 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13086
13087
13088 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13089
13090
13091 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13092
13093 else
13094
13095 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13096
13097
13098 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13099
13100
13101 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13102
13103
13104 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13105
13106
13107 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13108
13109
13110 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13111
13112
13113 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13114
13115
13116 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13117
13118 fi
13119
13120
13121 # Argument processing.
13122
13123 desired_iopoll_mechanism="none"
13124 # Check whether --enable-kqueue was given.
13125 if test "${enable_kqueue+set}" = set; then :
13126 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13127 fi
13128
13129 # Check whether --enable-epoll was given.
13130 if test "${enable_epoll+set}" = set; then :
13131 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13132 fi
13133
13134 # Check whether --enable-devpoll was given.
13135 if test "${enable_devpoll+set}" = set; then :
13136 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13137 fi
13138
13139 # Check whether --enable-rtsigio was given.
13140 if test "${enable_rtsigio+set}" = set; then :
13141 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13142 fi
13143
13144 # Check whether --enable-poll was given.
13145 if test "${enable_poll+set}" = set; then :
13146 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13147 fi
13148
13149 # Check whether --enable-select was given.
13150 if test "${enable_select+set}" = set; then :
13151 enableval=$enable_select; desired_iopoll_mechanism="select"
13152 fi
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13155 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13156 iopoll_mechanism_none=0
13157
13158 cat >>confdefs.h <<_ACEOF
13159 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13160 _ACEOF
13161
13162 iopoll_mechanism_kqueue=1
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13166 _ACEOF
13167
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13172 #define kevent innocuous_kevent
13173
13174 /* System header to define __stub macros and hopefully few prototypes,
13175 which can conflict with char kevent (); below.
13176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13177 <limits.h> exists even on freestanding compilers. */
13178
13179 #ifdef __STDC__
13180 # include <limits.h>
13181 #else
13182 # include <assert.h>
13183 #endif
13184
13185 #undef kevent
13186
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13190 #ifdef __cplusplus
13191 extern "C"
13192 #endif
13193 char kevent ();
13194 /* The GNU C library defines this for functions which it implements
13195 to always fail with ENOSYS. Some functions are actually named
13196 something starting with __ and the normal name is an alias. */
13197 #if defined __stub_kevent || defined __stub___kevent
13198 choke me
13199 #endif
13200
13201 int
13202 main ()
13203 {
13204 return kevent ();
13205 ;
13206 return 0;
13207 }
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 is_kqueue_mechanism_available="yes"
13211 else
13212 is_kqueue_mechanism_available="no"
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216 iopoll_mechanism_epoll=2
13217
13218 cat >>confdefs.h <<_ACEOF
13219 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13220 _ACEOF
13221
13222 if test "$cross_compiling" = yes; then :
13223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13225 as_fn_error "cannot run test program while cross compiling
13226 See \`config.log' for more details." "$LINENO" 5; }
13227 else
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230
13231 #include <sys/epoll.h>
13232 #include <sys/syscall.h>
13233 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13234 #if !defined(__NR_epoll_create)
13235 #if defined(__ia64__)
13236 #define __NR_epoll_create 1243
13237 #elif defined(__x86_64__)
13238 #define __NR_epoll_create 214
13239 #elif defined(__sparc64__) || defined(__sparc__)
13240 #define __NR_epoll_create 193
13241 #elif defined(__s390__) || defined(__m68k__)
13242 #define __NR_epoll_create 249
13243 #elif defined(__ppc64__) || defined(__ppc__)
13244 #define __NR_epoll_create 236
13245 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13246 #define __NR_epoll_create 224
13247 #elif defined(__alpha__)
13248 #define __NR_epoll_create 407
13249 #elif defined(__sh64__)
13250 #define __NR_epoll_create 282
13251 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13252 #define __NR_epoll_create 254
13253 #else
13254 #error No system call numbers defined for epoll family.
13255 #endif
13256 #endif
13257 _syscall1(int, epoll_create, int, size)
13258 #endif
13259 main() { return epoll_create(256) == -1 ? 1 : 0; }
13260
13261 _ACEOF
13262 if ac_fn_c_try_run "$LINENO"; then :
13263 is_epoll_mechanism_available="yes"
13264 else
13265 is_epoll_mechanism_available="no"
13266 fi
13267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13268 conftest.$ac_objext conftest.beam conftest.$ac_ext
13269 fi
13270
13271 iopoll_mechanism_devpoll=3
13272
13273 cat >>confdefs.h <<_ACEOF
13274 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13275 _ACEOF
13276
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <devpoll.h>
13280 int
13281 main ()
13282 {
13283
13284 ;
13285 return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"; then :
13289 is_devpoll_mechanism_available="yes"
13290 else
13291 is_devpoll_mechanism_available="no"
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 if test "$is_devpoll_mechanism_available" = "yes" ; then
13295
13296 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13297
13298 fi
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 #include <sys/devpoll.h>
13302 int
13303 main ()
13304 {
13305
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_compile "$LINENO"; then :
13311 is_devpoll_mechanism_available="yes"
13312 else
13313 is_devpoll_mechanism_available="no"
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 if test "$is_devpoll_mechanism_available" = "yes" ; then
13317
13318 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13319
13320 fi
13321 iopoll_mechanism_rtsigio=4
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13325 _ACEOF
13326
13327 if test "$cross_compiling" = yes; then :
13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error "cannot run test program while cross compiling
13331 See \`config.log' for more details." "$LINENO" 5; }
13332 else
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 #include <fcntl.h>
13337 #ifdef F_SETSIG
13338 main () { return 0; } /* F_SETSIG defined */
13339 #else
13340 main () { return 1; } /* F_SETSIG not defined */
13341 #endif
13342
13343 int
13344 main ()
13345 {
13346
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_run "$LINENO"; then :
13352 is_rtsigio_mechanism_available="yes"
13353 else
13354 is_rtsigio_mechanism_available="no"
13355 fi
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13357 conftest.$ac_objext conftest.beam conftest.$ac_ext
13358 fi
13359
13360 iopoll_mechanism_poll=5
13361
13362 cat >>confdefs.h <<_ACEOF
13363 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13364 _ACEOF
13365
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13370 #define poll innocuous_poll
13371
13372 /* System header to define __stub macros and hopefully few prototypes,
13373 which can conflict with char poll (); below.
13374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13375 <limits.h> exists even on freestanding compilers. */
13376
13377 #ifdef __STDC__
13378 # include <limits.h>
13379 #else
13380 # include <assert.h>
13381 #endif
13382
13383 #undef poll
13384
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13388 #ifdef __cplusplus
13389 extern "C"
13390 #endif
13391 char poll ();
13392 /* The GNU C library defines this for functions which it implements
13393 to always fail with ENOSYS. Some functions are actually named
13394 something starting with __ and the normal name is an alias. */
13395 #if defined __stub_poll || defined __stub___poll
13396 choke me
13397 #endif
13398
13399 int
13400 main ()
13401 {
13402 return poll ();
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"; then :
13408 is_poll_mechanism_available="yes"
13409 else
13410 is_poll_mechanism_available="no"
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext \
13413 conftest$ac_exeext conftest.$ac_ext
13414 iopoll_mechanism_select=6
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13418 _ACEOF
13419
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 /* Define select to an innocuous variant, in case <limits.h> declares select.
13423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13424 #define select innocuous_select
13425
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char select (); below.
13428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13429 <limits.h> exists even on freestanding compilers. */
13430
13431 #ifdef __STDC__
13432 # include <limits.h>
13433 #else
13434 # include <assert.h>
13435 #endif
13436
13437 #undef select
13438
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13442 #ifdef __cplusplus
13443 extern "C"
13444 #endif
13445 char select ();
13446 /* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449 #if defined __stub_select || defined __stub___select
13450 choke me
13451 #endif
13452
13453 int
13454 main ()
13455 {
13456 return select ();
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 is_select_mechanism_available="yes"
13463 else
13464 is_select_mechanism_available="no"
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 optimal_iopoll_mechanism="none"
13469 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13470 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13471 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13472 optimal_iopoll_mechanism="$mechanism"
13473 break
13474 fi
13475 done
13476 if test "$desired_iopoll_mechanism" = "none" ; then
13477 if test "$optimal_iopoll_mechanism" = "none" ; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13479 $as_echo "none" >&6; }
13480 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13481 else
13482 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13484 $as_echo "$selected_iopoll_mechanism" >&6; }
13485 fi
13486 else
13487 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13488 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13489 selected_iopoll_mechanism=$desired_iopoll_mechanism
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13491 $as_echo "$selected_iopoll_mechanism" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13494 $as_echo "none" >&6; }
13495 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13496 fi
13497 fi
13498 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13499
13500 cat >>confdefs.h <<_ACEOF
13501 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13502 _ACEOF
13503
13504
13505
13506
13507 # Check whether --with-nicklen was given.
13508 if test "${with_nicklen+set}" = set; then :
13509 withval=$with_nicklen; nicklen="$withval"
13510 else
13511 nicklen="9"
13512 fi
13513
13514
13515 cat >>confdefs.h <<_ACEOF
13516 #define NICKLEN ($nicklen+1)
13517 _ACEOF
13518
13519
13520
13521
13522 # Check whether --with-topiclen was given.
13523 if test "${with_topiclen+set}" = set; then :
13524 withval=$with_topiclen; topiclen="$withval"
13525 else
13526 topiclen="160"
13527 fi
13528
13529
13530 cat >>confdefs.h <<_ACEOF
13531 #define TOPICLEN ($topiclen+1)
13532 _ACEOF
13533
13534
13535
13536
13537 # Check whether --with-syslog-facility was given.
13538 if test "${with_syslog_facility+set}" = set; then :
13539 withval=$with_syslog_facility; syslog_facility="$withval"
13540 else
13541 syslog_facility="LOG_LOCAL4"
13542 fi
13543
13544
13545 cat >>confdefs.h <<_ACEOF
13546 #define LOG_FACILITY $syslog_facility
13547 _ACEOF
13548
13549
13550
13551 # Check whether --enable-efnet was given.
13552 if test "${enable_efnet+set}" = set; then :
13553 enableval=$enable_efnet; efnet="$enableval"
13554 else
13555 efnet="no"
13556 fi
13557
13558 if test "$efnet" = "yes" ; then
13559 use_efnet="yes"
13560
13561 $as_echo "#define EFNET 1" >>confdefs.h
13562
13563
13564 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13565
13566 else
13567
13568 $as_echo "#define INVARIANTS 1" >>confdefs.h
13569
13570 use_efnet="no"
13571 fi
13572 if test "$use_efnet" = "yes"; then
13573 EFNET_TRUE=
13574 EFNET_FALSE='#'
13575 else
13576 EFNET_TRUE='#'
13577 EFNET_FALSE=
13578 fi
13579
13580
13581
13582 # Check whether --enable-halfops was given.
13583 if test "${enable_halfops+set}" = set; then :
13584 enableval=$enable_halfops; halfops="$enableval"
13585 else
13586 halfops="no"
13587 fi
13588
13589 if test "$halfops" = "yes" ; then
13590
13591 $as_echo "#define HALFOPS 1" >>confdefs.h
13592
13593 fi
13594
13595
13596 # Check whether --enable-debugging was given.
13597 if test "${enable_debugging+set}" = set; then :
13598 enableval=$enable_debugging; debugging="$enableval"
13599 else
13600 debugging="no"
13601 fi
13602
13603 if test "$debugging" = "yes" ; then
13604
13605 $as_echo "#define DEBUG 1" >>confdefs.h
13606
13607 CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13608 else
13609
13610 $as_echo "#define NDEBUG 1" >>confdefs.h
13611
13612 fi
13613
13614
13615 # Check whether --enable-warnings was given.
13616 if test "${enable_warnings+set}" = set; then :
13617 enableval=$enable_warnings; warnings="$enableval"
13618 else
13619 warnings="no"
13620 fi
13621
13622 if test "$warnings" = "yes" ; then
13623 CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused"
13624 fi
13625
13626
13627 for ac_header in syslog.h sys/syslog.h
13628 do :
13629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13630 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13631 eval as_val=\$$as_ac_Header
13632 if test "x$as_val" = x""yes; then :
13633 cat >>confdefs.h <<_ACEOF
13634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13635 _ACEOF
13636
13637 fi
13638
13639 done
13640
13641 # Check whether --enable-syslog was given.
13642 if test "${enable_syslog+set}" = set; then :
13643 enableval=$enable_syslog; syslog="$enableval"
13644 else
13645 syslog="no"
13646 fi
13647
13648 if test "$enableval" != "no" ; then
13649 for option in $enableval ; do
13650 case "$option" in
13651 users)
13652 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13653 ;;
13654 oper)
13655 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13656 ;;
13657 yes) : ;;
13658 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13659 esac
13660 done
13661
13662 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13663
13664 fi
13665
13666
13667
13668 prefix_NONE=
13669 exec_prefix_NONE=
13670 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13671 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13672 eval ac_define_dir="\"$prefix\""
13673 eval ac_define_dir="\"$ac_define_dir\""
13674 PREFIX="$ac_define_dir"
13675
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define PREFIX "$ac_define_dir"
13679 _ACEOF
13680
13681 test "$prefix_NONE" && prefix=NONE
13682 test "$exec_prefix_NONE" && exec_prefix=NONE
13683
13684
13685 prefix_NONE=
13686 exec_prefix_NONE=
13687 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13688 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13689 eval ac_define_dir="\"$sysconfdir\""
13690 eval ac_define_dir="\"$ac_define_dir\""
13691 SYSCONFDIR="$ac_define_dir"
13692
13693
13694 cat >>confdefs.h <<_ACEOF
13695 #define SYSCONFDIR "$ac_define_dir"
13696 _ACEOF
13697
13698 test "$prefix_NONE" && prefix=NONE
13699 test "$exec_prefix_NONE" && exec_prefix=NONE
13700
13701
13702 prefix_NONE=
13703 exec_prefix_NONE=
13704 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13705 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13706 eval ac_define_dir="\"$libdir\""
13707 eval ac_define_dir="\"$ac_define_dir\""
13708 LIBDIR="$ac_define_dir"
13709
13710
13711 cat >>confdefs.h <<_ACEOF
13712 #define LIBDIR "$ac_define_dir"
13713 _ACEOF
13714
13715 test "$prefix_NONE" && prefix=NONE
13716 test "$exec_prefix_NONE" && exec_prefix=NONE
13717
13718
13719 prefix_NONE=
13720 exec_prefix_NONE=
13721 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13722 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13723 eval ac_define_dir="\"$datadir\""
13724 eval ac_define_dir="\"$ac_define_dir\""
13725 DATADIR="$ac_define_dir"
13726
13727
13728 cat >>confdefs.h <<_ACEOF
13729 #define DATADIR "$ac_define_dir"
13730 _ACEOF
13731
13732 test "$prefix_NONE" && prefix=NONE
13733 test "$exec_prefix_NONE" && exec_prefix=NONE
13734
13735
13736 prefix_NONE=
13737 exec_prefix_NONE=
13738 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13739 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13740 eval ac_define_dir="\"$localstatedir\""
13741 eval ac_define_dir="\"$ac_define_dir\""
13742 LOCALSTATEDIR="$ac_define_dir"
13743
13744
13745 cat >>confdefs.h <<_ACEOF
13746 #define LOCALSTATEDIR "$ac_define_dir"
13747 _ACEOF
13748
13749 test "$prefix_NONE" && prefix=NONE
13750 test "$exec_prefix_NONE" && exec_prefix=NONE
13751
13752
13753 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 lib/Makefile lib/pcre/Makefile tools/Makefile"
13754
13755
13756 cat >confcache <<\_ACEOF
13757 # This file is a shell script that caches the results of configure
13758 # tests run on this system so they can be shared between configure
13759 # scripts and configure runs, see configure's option --config-cache.
13760 # It is not useful on other systems. If it contains results you don't
13761 # want to keep, you may remove or edit it.
13762 #
13763 # config.status only pays attention to the cache file if you give it
13764 # the --recheck option to rerun configure.
13765 #
13766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13768 # following values.
13769
13770 _ACEOF
13771
13772 # The following way of writing the cache mishandles newlines in values,
13773 # but we know of no workaround that is simple, portable, and efficient.
13774 # So, we kill variables containing newlines.
13775 # Ultrix sh set writes to stderr and can't be redirected directly,
13776 # and sets the high bit in the cache file unless we assign to the vars.
13777 (
13778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13779 eval ac_val=\$$ac_var
13780 case $ac_val in #(
13781 *${as_nl}*)
13782 case $ac_var in #(
13783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13785 esac
13786 case $ac_var in #(
13787 _ | IFS | as_nl) ;; #(
13788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13789 *) { eval $ac_var=; unset $ac_var;} ;;
13790 esac ;;
13791 esac
13792 done
13793
13794 (set) 2>&1 |
13795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13796 *${as_nl}ac_space=\ *)
13797 # `set' does not quote correctly, so add quotes: double-quote
13798 # substitution turns \\\\ into \\, and sed turns \\ into \.
13799 sed -n \
13800 "s/'/'\\\\''/g;
13801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13802 ;; #(
13803 *)
13804 # `set' quotes correctly as required by POSIX, so do not add quotes.
13805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13806 ;;
13807 esac |
13808 sort
13809 ) |
13810 sed '
13811 /^ac_cv_env_/b end
13812 t clear
13813 :clear
13814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13815 t end
13816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13817 :end' >>confcache
13818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13819 if test -w "$cache_file"; then
13820 test "x$cache_file" != "x/dev/null" &&
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13822 $as_echo "$as_me: updating cache $cache_file" >&6;}
13823 cat confcache >$cache_file
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13827 fi
13828 fi
13829 rm -f confcache
13830
13831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13832 # Let make expand exec_prefix.
13833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13834
13835 DEFS=-DHAVE_CONFIG_H
13836
13837 ac_libobjs=
13838 ac_ltlibobjs=
13839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13840 # 1. Remove the extension, and $U if already installed.
13841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13844 # will be set to the directory where LIBOBJS objects are built.
13845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13847 done
13848 LIBOBJS=$ac_libobjs
13849
13850 LTLIBOBJS=$ac_ltlibobjs
13851
13852
13853 if test -n "$EXEEXT"; then
13854 am__EXEEXT_TRUE=
13855 am__EXEEXT_FALSE='#'
13856 else
13857 am__EXEEXT_TRUE='#'
13858 am__EXEEXT_FALSE=
13859 fi
13860
13861 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13862 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13864 fi
13865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13866 as_fn_error "conditional \"AMDEP\" was never defined.
13867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13868 fi
13869 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13870 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13872 fi
13873 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13874 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13876 fi
13877 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13878 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13880 fi
13881 LT_CONFIG_H=config.h
13882
13883 _ltdl_libobjs=
13884 _ltdl_ltlibobjs=
13885 if test -n "$_LT_LIBOBJS"; then
13886 # Remove the extension.
13887 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13888 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13889 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13890 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13891 done
13892 fi
13893 ltdl_LIBOBJS=$_ltdl_libobjs
13894
13895 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13896
13897
13898
13899 if test -z "${HAVE_CRYPT_TRUE}" && test -z "${HAVE_CRYPT_FALSE}"; then
13900 as_fn_error "conditional \"HAVE_CRYPT\" was never defined.
13901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13902 fi
13903 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13904 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13906 fi
13907 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13908 as_fn_error "conditional \"EFNET\" was never defined.
13909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13910 fi
13911
13912 : ${CONFIG_STATUS=./config.status}
13913 ac_write_fail=0
13914 ac_clean_files_save=$ac_clean_files
13915 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918 as_write_fail=0
13919 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13920 #! $SHELL
13921 # Generated by $as_me.
13922 # Run this file to recreate the current configuration.
13923 # Compiler output produced by configure, useful for debugging
13924 # configure, is in config.log if it exists.
13925
13926 debug=false
13927 ac_cs_recheck=false
13928 ac_cs_silent=false
13929
13930 SHELL=\${CONFIG_SHELL-$SHELL}
13931 export SHELL
13932 _ASEOF
13933 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13934 ## -------------------- ##
13935 ## M4sh Initialization. ##
13936 ## -------------------- ##
13937
13938 # Be more Bourne compatible
13939 DUALCASE=1; export DUALCASE # for MKS sh
13940 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13941 emulate sh
13942 NULLCMD=:
13943 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13944 # is contrary to our usage. Disable this feature.
13945 alias -g '${1+"$@"}'='"$@"'
13946 setopt NO_GLOB_SUBST
13947 else
13948 case `(set -o) 2>/dev/null` in #(
13949 *posix*) :
13950 set -o posix ;; #(
13951 *) :
13952 ;;
13953 esac
13954 fi
13955
13956
13957 as_nl='
13958 '
13959 export as_nl
13960 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13961 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13962 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13964 # Prefer a ksh shell builtin over an external printf program on Solaris,
13965 # but without wasting forks for bash or zsh.
13966 if test -z "$BASH_VERSION$ZSH_VERSION" \
13967 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13968 as_echo='print -r --'
13969 as_echo_n='print -rn --'
13970 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13971 as_echo='printf %s\n'
13972 as_echo_n='printf %s'
13973 else
13974 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13975 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13976 as_echo_n='/usr/ucb/echo -n'
13977 else
13978 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13979 as_echo_n_body='eval
13980 arg=$1;
13981 case $arg in #(
13982 *"$as_nl"*)
13983 expr "X$arg" : "X\\(.*\\)$as_nl";
13984 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13985 esac;
13986 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13987 '
13988 export as_echo_n_body
13989 as_echo_n='sh -c $as_echo_n_body as_echo'
13990 fi
13991 export as_echo_body
13992 as_echo='sh -c $as_echo_body as_echo'
13993 fi
13994
13995 # The user is always right.
13996 if test "${PATH_SEPARATOR+set}" != set; then
13997 PATH_SEPARATOR=:
13998 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13999 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14000 PATH_SEPARATOR=';'
14001 }
14002 fi
14003
14004
14005 # IFS
14006 # We need space, tab and new line, in precisely that order. Quoting is
14007 # there to prevent editors from complaining about space-tab.
14008 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14009 # splitting by setting IFS to empty value.)
14010 IFS=" "" $as_nl"
14011
14012 # Find who we are. Look in the path if we contain no directory separator.
14013 case $0 in #((
14014 *[\\/]* ) as_myself=$0 ;;
14015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14021 done
14022 IFS=$as_save_IFS
14023
14024 ;;
14025 esac
14026 # We did not find ourselves, most probably we were run as `sh COMMAND'
14027 # in which case we are not to be found in the path.
14028 if test "x$as_myself" = x; then
14029 as_myself=$0
14030 fi
14031 if test ! -f "$as_myself"; then
14032 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14033 exit 1
14034 fi
14035
14036 # Unset variables that we do not need and which cause bugs (e.g. in
14037 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14038 # suppresses any "Segmentation fault" message there. '((' could
14039 # trigger a bug in pdksh 5.2.14.
14040 for as_var in BASH_ENV ENV MAIL MAILPATH
14041 do eval test x\${$as_var+set} = xset \
14042 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14043 done
14044 PS1='$ '
14045 PS2='> '
14046 PS4='+ '
14047
14048 # NLS nuisances.
14049 LC_ALL=C
14050 export LC_ALL
14051 LANGUAGE=C
14052 export LANGUAGE
14053
14054 # CDPATH.
14055 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14056
14057
14058 # as_fn_error ERROR [LINENO LOG_FD]
14059 # ---------------------------------
14060 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14061 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14062 # script with status $?, using 1 if that was 0.
14063 as_fn_error ()
14064 {
14065 as_status=$?; test $as_status -eq 0 && as_status=1
14066 if test "$3"; then
14067 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14068 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14069 fi
14070 $as_echo "$as_me: error: $1" >&2
14071 as_fn_exit $as_status
14072 } # as_fn_error
14073
14074
14075 # as_fn_set_status STATUS
14076 # -----------------------
14077 # Set $? to STATUS, without forking.
14078 as_fn_set_status ()
14079 {
14080 return $1
14081 } # as_fn_set_status
14082
14083 # as_fn_exit STATUS
14084 # -----------------
14085 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14086 as_fn_exit ()
14087 {
14088 set +e
14089 as_fn_set_status $1
14090 exit $1
14091 } # as_fn_exit
14092
14093 # as_fn_unset VAR
14094 # ---------------
14095 # Portably unset VAR.
14096 as_fn_unset ()
14097 {
14098 { eval $1=; unset $1;}
14099 }
14100 as_unset=as_fn_unset
14101 # as_fn_append VAR VALUE
14102 # ----------------------
14103 # Append the text in VALUE to the end of the definition contained in VAR. Take
14104 # advantage of any shell optimizations that allow amortized linear growth over
14105 # repeated appends, instead of the typical quadratic growth present in naive
14106 # implementations.
14107 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14108 eval 'as_fn_append ()
14109 {
14110 eval $1+=\$2
14111 }'
14112 else
14113 as_fn_append ()
14114 {
14115 eval $1=\$$1\$2
14116 }
14117 fi # as_fn_append
14118
14119 # as_fn_arith ARG...
14120 # ------------------
14121 # Perform arithmetic evaluation on the ARGs, and store the result in the
14122 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14123 # must be portable across $(()) and expr.
14124 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14125 eval 'as_fn_arith ()
14126 {
14127 as_val=$(( $* ))
14128 }'
14129 else
14130 as_fn_arith ()
14131 {
14132 as_val=`expr "$@" || test $? -eq 1`
14133 }
14134 fi # as_fn_arith
14135
14136
14137 if expr a : '\(a\)' >/dev/null 2>&1 &&
14138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14139 as_expr=expr
14140 else
14141 as_expr=false
14142 fi
14143
14144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14145 as_basename=basename
14146 else
14147 as_basename=false
14148 fi
14149
14150 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14151 as_dirname=dirname
14152 else
14153 as_dirname=false
14154 fi
14155
14156 as_me=`$as_basename -- "$0" ||
14157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14158 X"$0" : 'X\(//\)$' \| \
14159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14160 $as_echo X/"$0" |
14161 sed '/^.*\/\([^/][^/]*\)\/*$/{
14162 s//\1/
14163 q
14164 }
14165 /^X\/\(\/\/\)$/{
14166 s//\1/
14167 q
14168 }
14169 /^X\/\(\/\).*/{
14170 s//\1/
14171 q
14172 }
14173 s/.*/./; q'`
14174
14175 # Avoid depending upon Character Ranges.
14176 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14177 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14178 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14179 as_cr_digits='0123456789'
14180 as_cr_alnum=$as_cr_Letters$as_cr_digits
14181
14182 ECHO_C= ECHO_N= ECHO_T=
14183 case `echo -n x` in #(((((
14184 -n*)
14185 case `echo 'xy\c'` in
14186 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14187 xy) ECHO_C='\c';;
14188 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14189 ECHO_T=' ';;
14190 esac;;
14191 *)
14192 ECHO_N='-n';;
14193 esac
14194
14195 rm -f conf$$ conf$$.exe conf$$.file
14196 if test -d conf$$.dir; then
14197 rm -f conf$$.dir/conf$$.file
14198 else
14199 rm -f conf$$.dir
14200 mkdir conf$$.dir 2>/dev/null
14201 fi
14202 if (echo >conf$$.file) 2>/dev/null; then
14203 if ln -s conf$$.file conf$$ 2>/dev/null; then
14204 as_ln_s='ln -s'
14205 # ... but there are two gotchas:
14206 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14207 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14208 # In both cases, we have to default to `cp -p'.
14209 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14210 as_ln_s='cp -p'
14211 elif ln conf$$.file conf$$ 2>/dev/null; then
14212 as_ln_s=ln
14213 else
14214 as_ln_s='cp -p'
14215 fi
14216 else
14217 as_ln_s='cp -p'
14218 fi
14219 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14220 rmdir conf$$.dir 2>/dev/null
14221
14222
14223 # as_fn_mkdir_p
14224 # -------------
14225 # Create "$as_dir" as a directory, including parents if necessary.
14226 as_fn_mkdir_p ()
14227 {
14228
14229 case $as_dir in #(
14230 -*) as_dir=./$as_dir;;
14231 esac
14232 test -d "$as_dir" || eval $as_mkdir_p || {
14233 as_dirs=
14234 while :; do
14235 case $as_dir in #(
14236 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14237 *) as_qdir=$as_dir;;
14238 esac
14239 as_dirs="'$as_qdir' $as_dirs"
14240 as_dir=`$as_dirname -- "$as_dir" ||
14241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242 X"$as_dir" : 'X\(//\)[^/]' \| \
14243 X"$as_dir" : 'X\(//\)$' \| \
14244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14245 $as_echo X"$as_dir" |
14246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\(\/\/\)[^/].*/{
14251 s//\1/
14252 q
14253 }
14254 /^X\(\/\/\)$/{
14255 s//\1/
14256 q
14257 }
14258 /^X\(\/\).*/{
14259 s//\1/
14260 q
14261 }
14262 s/.*/./; q'`
14263 test -d "$as_dir" && break
14264 done
14265 test -z "$as_dirs" || eval "mkdir $as_dirs"
14266 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14267
14268
14269 } # as_fn_mkdir_p
14270 if mkdir -p . 2>/dev/null; then
14271 as_mkdir_p='mkdir -p "$as_dir"'
14272 else
14273 test -d ./-p && rmdir ./-p
14274 as_mkdir_p=false
14275 fi
14276
14277 if test -x / >/dev/null 2>&1; then
14278 as_test_x='test -x'
14279 else
14280 if ls -dL / >/dev/null 2>&1; then
14281 as_ls_L_option=L
14282 else
14283 as_ls_L_option=
14284 fi
14285 as_test_x='
14286 eval sh -c '\''
14287 if test -d "$1"; then
14288 test -d "$1/.";
14289 else
14290 case $1 in #(
14291 -*)set "./$1";;
14292 esac;
14293 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14294 ???[sx]*):;;*)false;;esac;fi
14295 '\'' sh
14296 '
14297 fi
14298 as_executable_p=$as_test_x
14299
14300 # Sed expression to map a string onto a valid CPP name.
14301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14302
14303 # Sed expression to map a string onto a valid variable name.
14304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14305
14306
14307 exec 6>&1
14308 ## ----------------------------------- ##
14309 ## Main body of $CONFIG_STATUS script. ##
14310 ## ----------------------------------- ##
14311 _ASEOF
14312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14313
14314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315 # Save the log message, to keep $0 and so on meaningful, and to
14316 # report actual input values of CONFIG_FILES etc. instead of their
14317 # values after options handling.
14318 ac_log="
14319 This file was extended by ircd-hybrid $as_me 7.2.4, which was
14320 generated by GNU Autoconf 2.64. Invocation command line was
14321
14322 CONFIG_FILES = $CONFIG_FILES
14323 CONFIG_HEADERS = $CONFIG_HEADERS
14324 CONFIG_LINKS = $CONFIG_LINKS
14325 CONFIG_COMMANDS = $CONFIG_COMMANDS
14326 $ $0 $@
14327
14328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14329 "
14330
14331 _ACEOF
14332
14333 case $ac_config_files in *"
14334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14335 esac
14336
14337 case $ac_config_headers in *"
14338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14339 esac
14340
14341
14342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14343 # Files that config.status was made for.
14344 config_files="$ac_config_files"
14345 config_headers="$ac_config_headers"
14346 config_commands="$ac_config_commands"
14347
14348 _ACEOF
14349
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351 ac_cs_usage="\
14352 \`$as_me' instantiates files and other configuration actions
14353 from templates according to the current configuration. Unless the files
14354 and actions are specified as TAGs, all are instantiated by default.
14355
14356 Usage: $0 [OPTION]... [TAG]...
14357
14358 -h, --help print this help, then exit
14359 -V, --version print version number and configuration settings, then exit
14360 -q, --quiet, --silent
14361 do not print progress messages
14362 -d, --debug don't remove temporary files
14363 --recheck update $as_me by reconfiguring in the same conditions
14364 --file=FILE[:TEMPLATE]
14365 instantiate the configuration file FILE
14366 --header=FILE[:TEMPLATE]
14367 instantiate the configuration header FILE
14368
14369 Configuration files:
14370 $config_files
14371
14372 Configuration headers:
14373 $config_headers
14374
14375 Configuration commands:
14376 $config_commands
14377
14378 Report bugs to the package provider."
14379
14380 _ACEOF
14381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14382 ac_cs_version="\\
14383 ircd-hybrid config.status 7.2.4
14384 configured by $0, generated by GNU Autoconf 2.64,
14385 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14386
14387 Copyright (C) 2009 Free Software Foundation, Inc.
14388 This config.status script is free software; the Free Software Foundation
14389 gives unlimited permission to copy, distribute and modify it."
14390
14391 ac_pwd='$ac_pwd'
14392 srcdir='$srcdir'
14393 INSTALL='$INSTALL'
14394 MKDIR_P='$MKDIR_P'
14395 AWK='$AWK'
14396 test -n "\$AWK" || AWK=awk
14397 _ACEOF
14398
14399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14400 # The default lists apply if the user does not specify any file.
14401 ac_need_defaults=:
14402 while test $# != 0
14403 do
14404 case $1 in
14405 --*=*)
14406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14408 ac_shift=:
14409 ;;
14410 *)
14411 ac_option=$1
14412 ac_optarg=$2
14413 ac_shift=shift
14414 ;;
14415 esac
14416
14417 case $ac_option in
14418 # Handling of the options.
14419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14420 ac_cs_recheck=: ;;
14421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14422 $as_echo "$ac_cs_version"; exit ;;
14423 --debug | --debu | --deb | --de | --d | -d )
14424 debug=: ;;
14425 --file | --fil | --fi | --f )
14426 $ac_shift
14427 case $ac_optarg in
14428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14429 esac
14430 as_fn_append CONFIG_FILES " '$ac_optarg'"
14431 ac_need_defaults=false;;
14432 --header | --heade | --head | --hea )
14433 $ac_shift
14434 case $ac_optarg in
14435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14436 esac
14437 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14438 ac_need_defaults=false;;
14439 --he | --h)
14440 # Conflict between --help and --header
14441 as_fn_error "ambiguous option: \`$1'
14442 Try \`$0 --help' for more information.";;
14443 --help | --hel | -h )
14444 $as_echo "$ac_cs_usage"; exit ;;
14445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14446 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14447 ac_cs_silent=: ;;
14448
14449 # This is an error.
14450 -*) as_fn_error "unrecognized option: \`$1'
14451 Try \`$0 --help' for more information." ;;
14452
14453 *) as_fn_append ac_config_targets " $1"
14454 ac_need_defaults=false ;;
14455
14456 esac
14457 shift
14458 done
14459
14460 ac_configure_extra_args=
14461
14462 if $ac_cs_silent; then
14463 exec 6>/dev/null
14464 ac_configure_extra_args="$ac_configure_extra_args --silent"
14465 fi
14466
14467 _ACEOF
14468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14469 if \$ac_cs_recheck; then
14470 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14471 shift
14472 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14473 CONFIG_SHELL='$SHELL'
14474 export CONFIG_SHELL
14475 exec "\$@"
14476 fi
14477
14478 _ACEOF
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480 exec 5>>config.log
14481 {
14482 echo
14483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14484 ## Running $as_me. ##
14485 _ASBOX
14486 $as_echo "$ac_log"
14487 } >&5
14488
14489 _ACEOF
14490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14491 #
14492 # INIT-COMMANDS
14493 #
14494 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14495
14496
14497 # The HP-UX ksh and POSIX shell print the target directory to stdout
14498 # if CDPATH is set.
14499 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14500
14501 sed_quote_subst='$sed_quote_subst'
14502 double_quote_subst='$double_quote_subst'
14503 delay_variable_subst='$delay_variable_subst'
14504 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14505 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14506 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14507 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14508 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14509 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14510 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14511 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14512 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14513 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14514 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14515 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14516 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14517 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14518 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14519 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14520 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14521 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14522 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14523 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14524 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14525 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14526 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14527 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14528 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14529 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14530 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14531 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14532 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14533 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14534 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14535 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14536 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14537 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14538 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14539 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14540 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14541 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14542 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14543 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14544 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14545 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14546 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14547 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14548 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"`'
14549 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"`'
14550 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14551 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14552 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14553 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14554 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14555 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14556 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14557 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14558 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14559 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14560 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14561 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14562 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14563 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14564 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14565 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14566 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14567 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14568 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14569 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14570 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14571 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14572 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14573 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14574 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14575 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14576 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14577 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14578 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14579 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14580 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14581 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14582 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14583 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14584 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14585 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14586 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14587 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14588 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14589 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14590 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14591 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14592 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14593 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14594 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14595 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14596 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14597 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14598 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14599 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14600 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14601 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14602 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14603 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14604 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14605 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14606 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14607 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14608 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14609 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14610 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14611 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14612 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14613 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14614 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14615 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14616 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14617 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14618 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14619 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14620 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14621 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14622
14623 LTCC='$LTCC'
14624 LTCFLAGS='$LTCFLAGS'
14625 compiler='$compiler_DEFAULT'
14626
14627 # Quote evaled strings.
14628 for var in SED \
14629 GREP \
14630 EGREP \
14631 FGREP \
14632 LD \
14633 NM \
14634 LN_S \
14635 lt_SP2NL \
14636 lt_NL2SP \
14637 reload_flag \
14638 OBJDUMP \
14639 deplibs_check_method \
14640 file_magic_cmd \
14641 AR \
14642 AR_FLAGS \
14643 STRIP \
14644 RANLIB \
14645 CC \
14646 CFLAGS \
14647 compiler \
14648 lt_cv_sys_global_symbol_pipe \
14649 lt_cv_sys_global_symbol_to_cdecl \
14650 lt_cv_sys_global_symbol_to_c_name_address \
14651 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14652 SHELL \
14653 ECHO \
14654 lt_prog_compiler_no_builtin_flag \
14655 lt_prog_compiler_wl \
14656 lt_prog_compiler_pic \
14657 lt_prog_compiler_static \
14658 lt_cv_prog_compiler_c_o \
14659 need_locks \
14660 DSYMUTIL \
14661 NMEDIT \
14662 LIPO \
14663 OTOOL \
14664 OTOOL64 \
14665 shrext_cmds \
14666 export_dynamic_flag_spec \
14667 whole_archive_flag_spec \
14668 compiler_needs_object \
14669 with_gnu_ld \
14670 allow_undefined_flag \
14671 no_undefined_flag \
14672 hardcode_libdir_flag_spec \
14673 hardcode_libdir_flag_spec_ld \
14674 hardcode_libdir_separator \
14675 fix_srcfile_path \
14676 exclude_expsyms \
14677 include_expsyms \
14678 file_list_spec \
14679 variables_saved_for_relink \
14680 libname_spec \
14681 library_names_spec \
14682 soname_spec \
14683 finish_eval \
14684 old_striplib \
14685 striplib; do
14686 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14687 *[\\\\\\\`\\"\\\$]*)
14688 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14689 ;;
14690 *)
14691 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14692 ;;
14693 esac
14694 done
14695
14696 # Double-quote double-evaled strings.
14697 for var in reload_cmds \
14698 old_postinstall_cmds \
14699 old_postuninstall_cmds \
14700 old_archive_cmds \
14701 extract_expsyms_cmds \
14702 old_archive_from_new_cmds \
14703 old_archive_from_expsyms_cmds \
14704 archive_cmds \
14705 archive_expsym_cmds \
14706 module_cmds \
14707 module_expsym_cmds \
14708 export_symbols_cmds \
14709 prelink_cmds \
14710 postinstall_cmds \
14711 postuninstall_cmds \
14712 finish_cmds \
14713 sys_lib_search_path_spec \
14714 sys_lib_dlsearch_path_spec; do
14715 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14716 *[\\\\\\\`\\"\\\$]*)
14717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14718 ;;
14719 *)
14720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14721 ;;
14722 esac
14723 done
14724
14725 # Fix-up fallback echo if it was mangled by the above quoting rules.
14726 case \$lt_ECHO in
14727 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14728 ;;
14729 esac
14730
14731 ac_aux_dir='$ac_aux_dir'
14732 xsi_shell='$xsi_shell'
14733 lt_shell_append='$lt_shell_append'
14734
14735 # See if we are running on zsh, and set the options which allow our
14736 # commands through without removal of \ escapes INIT.
14737 if test -n "\${ZSH_VERSION+set}" ; then
14738 setopt NO_GLOB_SUBST
14739 fi
14740
14741
14742 PACKAGE='$PACKAGE'
14743 VERSION='$VERSION'
14744 TIMESTAMP='$TIMESTAMP'
14745 RM='$RM'
14746 ofile='$ofile'
14747
14748
14749
14750
14751 _ACEOF
14752
14753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754
14755 # Handling of arguments.
14756 for ac_config_target in $ac_config_targets
14757 do
14758 case $ac_config_target in
14759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14763 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14764 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14765 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14766 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14767 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14768 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14769 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14770 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14771 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14772 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14773 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14774 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14775 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14776 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14777 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14778 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14779 "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
14780 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14781
14782 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14783 esac
14784 done
14785
14786
14787 # If the user did not use the arguments to specify the items to instantiate,
14788 # then the envvar interface is used. Set only those that are not.
14789 # We use the long form for the default assignment because of an extremely
14790 # bizarre bug on SunOS 4.1.3.
14791 if $ac_need_defaults; then
14792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14795 fi
14796
14797 # Have a temporary directory for convenience. Make it in the build tree
14798 # simply because there is no reason against having it here, and in addition,
14799 # creating and moving files from /tmp can sometimes cause problems.
14800 # Hook for its removal unless debugging.
14801 # Note that there is a small window in which the directory will not be cleaned:
14802 # after its creation but before its name has been assigned to `$tmp'.
14803 $debug ||
14804 {
14805 tmp=
14806 trap 'exit_status=$?
14807 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14808 ' 0
14809 trap 'as_fn_exit 1' 1 2 13 15
14810 }
14811 # Create a (secure) tmp directory for tmp files.
14812
14813 {
14814 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14815 test -n "$tmp" && test -d "$tmp"
14816 } ||
14817 {
14818 tmp=./conf$$-$RANDOM
14819 (umask 077 && mkdir "$tmp")
14820 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14821
14822 # Set up the scripts for CONFIG_FILES section.
14823 # No need to generate them if there are no CONFIG_FILES.
14824 # This happens for instance with `./config.status config.h'.
14825 if test -n "$CONFIG_FILES"; then
14826
14827
14828 ac_cr=`echo X | tr X '\015'`
14829 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14830 # But we know of no other shell where ac_cr would be empty at this
14831 # point, so we can use a bashism as a fallback.
14832 if test "x$ac_cr" = x; then
14833 eval ac_cr=\$\'\\r\'
14834 fi
14835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14837 ac_cs_awk_cr='\r'
14838 else
14839 ac_cs_awk_cr=$ac_cr
14840 fi
14841
14842 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14843 _ACEOF
14844
14845
14846 {
14847 echo "cat >conf$$subs.awk <<_ACEOF" &&
14848 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14849 echo "_ACEOF"
14850 } >conf$$subs.sh ||
14851 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14852 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14853 ac_delim='%!_!# '
14854 for ac_last_try in false false false false false :; do
14855 . ./conf$$subs.sh ||
14856 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14857
14858 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14859 if test $ac_delim_n = $ac_delim_num; then
14860 break
14861 elif $ac_last_try; then
14862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14863 else
14864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14865 fi
14866 done
14867 rm -f conf$$subs.sh
14868
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14871 _ACEOF
14872 sed -n '
14873 h
14874 s/^/S["/; s/!.*/"]=/
14875 p
14876 g
14877 s/^[^!]*!//
14878 :repl
14879 t repl
14880 s/'"$ac_delim"'$//
14881 t delim
14882 :nl
14883 h
14884 s/\(.\{148\}\).*/\1/
14885 t more1
14886 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14887 p
14888 n
14889 b repl
14890 :more1
14891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14892 p
14893 g
14894 s/.\{148\}//
14895 t nl
14896 :delim
14897 h
14898 s/\(.\{148\}\).*/\1/
14899 t more2
14900 s/["\\]/\\&/g; s/^/"/; s/$/"/
14901 p
14902 b
14903 :more2
14904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14905 p
14906 g
14907 s/.\{148\}//
14908 t delim
14909 ' <conf$$subs.awk | sed '
14910 /^[^""]/{
14911 N
14912 s/\n//
14913 }
14914 ' >>$CONFIG_STATUS || ac_write_fail=1
14915 rm -f conf$$subs.awk
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917 _ACAWK
14918 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14919 for (key in S) S_is_set[key] = 1
14920 FS = ""
14921
14922 }
14923 {
14924 line = $ 0
14925 nfields = split(line, field, "@")
14926 substed = 0
14927 len = length(field[1])
14928 for (i = 2; i < nfields; i++) {
14929 key = field[i]
14930 keylen = length(key)
14931 if (S_is_set[key]) {
14932 value = S[key]
14933 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14934 len += length(value) + length(field[++i])
14935 substed = 1
14936 } else
14937 len += 1 + keylen
14938 }
14939
14940 print line
14941 }
14942
14943 _ACAWK
14944 _ACEOF
14945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14946 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14947 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14948 else
14949 cat
14950 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14951 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14952 _ACEOF
14953
14954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14956 # trailing colons and then remove the whole line if VPATH becomes empty
14957 # (actually we leave an empty line to preserve line numbers).
14958 if test "x$srcdir" = x.; then
14959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14960 s/:*\$(srcdir):*/:/
14961 s/:*\${srcdir}:*/:/
14962 s/:*@srcdir@:*/:/
14963 s/^\([^=]*=[ ]*\):*/\1/
14964 s/:*$//
14965 s/^[^=]*=[ ]*$//
14966 }'
14967 fi
14968
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970 fi # test -n "$CONFIG_FILES"
14971
14972 # Set up the scripts for CONFIG_HEADERS section.
14973 # No need to generate them if there are no CONFIG_HEADERS.
14974 # This happens for instance with `./config.status Makefile'.
14975 if test -n "$CONFIG_HEADERS"; then
14976 cat >"$tmp/defines.awk" <<\_ACAWK ||
14977 BEGIN {
14978 _ACEOF
14979
14980 # Transform confdefs.h into an awk script `defines.awk', embedded as
14981 # here-document in config.status, that substitutes the proper values into
14982 # config.h.in to produce config.h.
14983
14984 # Create a delimiter string that does not exist in confdefs.h, to ease
14985 # handling of long lines.
14986 ac_delim='%!_!# '
14987 for ac_last_try in false false :; do
14988 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14989 if test -z "$ac_t"; then
14990 break
14991 elif $ac_last_try; then
14992 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14993 else
14994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14995 fi
14996 done
14997
14998 # For the awk script, D is an array of macro values keyed by name,
14999 # likewise P contains macro parameters if any. Preserve backslash
15000 # newline sequences.
15001
15002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15003 sed -n '
15004 s/.\{148\}/&'"$ac_delim"'/g
15005 t rset
15006 :rset
15007 s/^[ ]*#[ ]*define[ ][ ]*/ /
15008 t def
15009 d
15010 :def
15011 s/\\$//
15012 t bsnl
15013 s/["\\]/\\&/g
15014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15015 D["\1"]=" \3"/p
15016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15017 d
15018 :bsnl
15019 s/["\\]/\\&/g
15020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15021 D["\1"]=" \3\\\\\\n"\\/p
15022 t cont
15023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15024 t cont
15025 d
15026 :cont
15027 n
15028 s/.\{148\}/&'"$ac_delim"'/g
15029 t clear
15030 :clear
15031 s/\\$//
15032 t bsnlc
15033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15034 d
15035 :bsnlc
15036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15037 b cont
15038 ' <confdefs.h | sed '
15039 s/'"$ac_delim"'/"\\\
15040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15041
15042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15043 for (key in D) D_is_set[key] = 1
15044 FS = ""
15045 }
15046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15047 line = \$ 0
15048 split(line, arg, " ")
15049 if (arg[1] == "#") {
15050 defundef = arg[2]
15051 mac1 = arg[3]
15052 } else {
15053 defundef = substr(arg[1], 2)
15054 mac1 = arg[2]
15055 }
15056 split(mac1, mac2, "(") #)
15057 macro = mac2[1]
15058 prefix = substr(line, 1, index(line, defundef) - 1)
15059 if (D_is_set[macro]) {
15060 # Preserve the white space surrounding the "#".
15061 print prefix "define", macro P[macro] D[macro]
15062 next
15063 } else {
15064 # Replace #undef with comments. This is necessary, for example,
15065 # in the case of _POSIX_SOURCE, which is predefined and required
15066 # on some systems where configure will not decide to define it.
15067 if (defundef == "undef") {
15068 print "/*", prefix defundef, macro, "*/"
15069 next
15070 }
15071 }
15072 }
15073 { print }
15074 _ACAWK
15075 _ACEOF
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15078 fi # test -n "$CONFIG_HEADERS"
15079
15080
15081 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15082 shift
15083 for ac_tag
15084 do
15085 case $ac_tag in
15086 :[FHLC]) ac_mode=$ac_tag; continue;;
15087 esac
15088 case $ac_mode$ac_tag in
15089 :[FHL]*:*);;
15090 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15091 :[FH]-) ac_tag=-:-;;
15092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15093 esac
15094 ac_save_IFS=$IFS
15095 IFS=:
15096 set x $ac_tag
15097 IFS=$ac_save_IFS
15098 shift
15099 ac_file=$1
15100 shift
15101
15102 case $ac_mode in
15103 :L) ac_source=$1;;
15104 :[FH])
15105 ac_file_inputs=
15106 for ac_f
15107 do
15108 case $ac_f in
15109 -) ac_f="$tmp/stdin";;
15110 *) # Look for the file first in the build tree, then in the source tree
15111 # (if the path is not absolute). The absolute path cannot be DOS-style,
15112 # because $ac_f cannot contain `:'.
15113 test -f "$ac_f" ||
15114 case $ac_f in
15115 [\\/$]*) false;;
15116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15117 esac ||
15118 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15119 esac
15120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15121 as_fn_append ac_file_inputs " '$ac_f'"
15122 done
15123
15124 # Let's still pretend it is `configure' which instantiates (i.e., don't
15125 # use $as_me), people would be surprised to read:
15126 # /* config.h. Generated by config.status. */
15127 configure_input='Generated from '`
15128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15129 `' by configure.'
15130 if test x"$ac_file" != x-; then
15131 configure_input="$ac_file. $configure_input"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15133 $as_echo "$as_me: creating $ac_file" >&6;}
15134 fi
15135 # Neutralize special characters interpreted by sed in replacement strings.
15136 case $configure_input in #(
15137 *\&* | *\|* | *\\* )
15138 ac_sed_conf_input=`$as_echo "$configure_input" |
15139 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15140 *) ac_sed_conf_input=$configure_input;;
15141 esac
15142
15143 case $ac_tag in
15144 *:-:* | *:-) cat >"$tmp/stdin" \
15145 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15146 esac
15147 ;;
15148 esac
15149
15150 ac_dir=`$as_dirname -- "$ac_file" ||
15151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152 X"$ac_file" : 'X\(//\)[^/]' \| \
15153 X"$ac_file" : 'X\(//\)$' \| \
15154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$ac_file" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15157 s//\1/
15158 q
15159 }
15160 /^X\(\/\/\)[^/].*/{
15161 s//\1/
15162 q
15163 }
15164 /^X\(\/\/\)$/{
15165 s//\1/
15166 q
15167 }
15168 /^X\(\/\).*/{
15169 s//\1/
15170 q
15171 }
15172 s/.*/./; q'`
15173 as_dir="$ac_dir"; as_fn_mkdir_p
15174 ac_builddir=.
15175
15176 case "$ac_dir" in
15177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15178 *)
15179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15180 # A ".." for each directory in $ac_dir_suffix.
15181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15182 case $ac_top_builddir_sub in
15183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15185 esac ;;
15186 esac
15187 ac_abs_top_builddir=$ac_pwd
15188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15189 # for backward compatibility:
15190 ac_top_builddir=$ac_top_build_prefix
15191
15192 case $srcdir in
15193 .) # We are building in place.
15194 ac_srcdir=.
15195 ac_top_srcdir=$ac_top_builddir_sub
15196 ac_abs_top_srcdir=$ac_pwd ;;
15197 [\\/]* | ?:[\\/]* ) # Absolute name.
15198 ac_srcdir=$srcdir$ac_dir_suffix;
15199 ac_top_srcdir=$srcdir
15200 ac_abs_top_srcdir=$srcdir ;;
15201 *) # Relative name.
15202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15203 ac_top_srcdir=$ac_top_build_prefix$srcdir
15204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15205 esac
15206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15207
15208
15209 case $ac_mode in
15210 :F)
15211 #
15212 # CONFIG_FILE
15213 #
15214
15215 case $INSTALL in
15216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15218 esac
15219 ac_MKDIR_P=$MKDIR_P
15220 case $MKDIR_P in
15221 [\\/$]* | ?:[\\/]* ) ;;
15222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15223 esac
15224 _ACEOF
15225
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # If the template does not know about datarootdir, expand it.
15228 # FIXME: This hack should be removed a few years after 2.60.
15229 ac_datarootdir_hack=; ac_datarootdir_seen=
15230 ac_sed_dataroot='
15231 /datarootdir/ {
15232 p
15233 q
15234 }
15235 /@datadir@/p
15236 /@docdir@/p
15237 /@infodir@/p
15238 /@localedir@/p
15239 /@mandir@/p'
15240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15241 *datarootdir*) ac_datarootdir_seen=yes;;
15242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15245 _ACEOF
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247 ac_datarootdir_hack='
15248 s&@datadir@&$datadir&g
15249 s&@docdir@&$docdir&g
15250 s&@infodir@&$infodir&g
15251 s&@localedir@&$localedir&g
15252 s&@mandir@&$mandir&g
15253 s&\\\${datarootdir}&$datarootdir&g' ;;
15254 esac
15255 _ACEOF
15256
15257 # Neutralize VPATH when `$srcdir' = `.'.
15258 # Shell code in configure.ac might set extrasub.
15259 # FIXME: do we really want to maintain this feature?
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_sed_extra="$ac_vpsub
15262 $extrasub
15263 _ACEOF
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15265 :t
15266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15267 s|@configure_input@|$ac_sed_conf_input|;t t
15268 s&@top_builddir@&$ac_top_builddir_sub&;t t
15269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15270 s&@srcdir@&$ac_srcdir&;t t
15271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15272 s&@top_srcdir@&$ac_top_srcdir&;t t
15273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15274 s&@builddir@&$ac_builddir&;t t
15275 s&@abs_builddir@&$ac_abs_builddir&;t t
15276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15277 s&@INSTALL@&$ac_INSTALL&;t t
15278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15279 $ac_datarootdir_hack
15280 "
15281 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15282 || as_fn_error "could not create $ac_file" "$LINENO" 5
15283
15284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15288 which seems to be undefined. Please make sure it is defined." >&5
15289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15290 which seems to be undefined. Please make sure it is defined." >&2;}
15291
15292 rm -f "$tmp/stdin"
15293 case $ac_file in
15294 -) cat "$tmp/out" && rm -f "$tmp/out";;
15295 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15296 esac \
15297 || as_fn_error "could not create $ac_file" "$LINENO" 5
15298 ;;
15299 :H)
15300 #
15301 # CONFIG_HEADER
15302 #
15303 if test x"$ac_file" != x-; then
15304 {
15305 $as_echo "/* $configure_input */" \
15306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15307 } >"$tmp/config.h" \
15308 || as_fn_error "could not create $ac_file" "$LINENO" 5
15309 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15311 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15312 else
15313 rm -f "$ac_file"
15314 mv "$tmp/config.h" "$ac_file" \
15315 || as_fn_error "could not create $ac_file" "$LINENO" 5
15316 fi
15317 else
15318 $as_echo "/* $configure_input */" \
15319 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15320 || as_fn_error "could not create -" "$LINENO" 5
15321 fi
15322 # Compute "$ac_file"'s index in $config_headers.
15323 _am_arg="$ac_file"
15324 _am_stamp_count=1
15325 for _am_header in $config_headers :; do
15326 case $_am_header in
15327 $_am_arg | $_am_arg:* )
15328 break ;;
15329 * )
15330 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15331 esac
15332 done
15333 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15334 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15335 X"$_am_arg" : 'X\(//\)[^/]' \| \
15336 X"$_am_arg" : 'X\(//\)$' \| \
15337 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15338 $as_echo X"$_am_arg" |
15339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15340 s//\1/
15341 q
15342 }
15343 /^X\(\/\/\)[^/].*/{
15344 s//\1/
15345 q
15346 }
15347 /^X\(\/\/\)$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\(\/\).*/{
15352 s//\1/
15353 q
15354 }
15355 s/.*/./; q'`/stamp-h$_am_stamp_count
15356 ;;
15357
15358 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15359 $as_echo "$as_me: executing $ac_file commands" >&6;}
15360 ;;
15361 esac
15362
15363
15364 case $ac_file$ac_mode in
15365 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15366 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15367 # are listed without --file. Let's play safe and only enable the eval
15368 # if we detect the quoting.
15369 case $CONFIG_FILES in
15370 *\'*) eval set x "$CONFIG_FILES" ;;
15371 *) set x $CONFIG_FILES ;;
15372 esac
15373 shift
15374 for mf
15375 do
15376 # Strip MF so we end up with the name of the file.
15377 mf=`echo "$mf" | sed -e 's/:.*$//'`
15378 # Check whether this is an Automake generated Makefile or not.
15379 # We used to match only the files named `Makefile.in', but
15380 # some people rename them; so instead we look at the file content.
15381 # Grep'ing the first line is not enough: some people post-process
15382 # each Makefile.in and add a new line on top of each file to say so.
15383 # Grep'ing the whole file is not good either: AIX grep has a line
15384 # limit of 2048, but all sed's we know have understand at least 4000.
15385 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15386 dirpart=`$as_dirname -- "$mf" ||
15387 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15388 X"$mf" : 'X\(//\)[^/]' \| \
15389 X"$mf" : 'X\(//\)$' \| \
15390 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15391 $as_echo X"$mf" |
15392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15393 s//\1/
15394 q
15395 }
15396 /^X\(\/\/\)[^/].*/{
15397 s//\1/
15398 q
15399 }
15400 /^X\(\/\/\)$/{
15401 s//\1/
15402 q
15403 }
15404 /^X\(\/\).*/{
15405 s//\1/
15406 q
15407 }
15408 s/.*/./; q'`
15409 else
15410 continue
15411 fi
15412 # Extract the definition of DEPDIR, am__include, and am__quote
15413 # from the Makefile without running `make'.
15414 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15415 test -z "$DEPDIR" && continue
15416 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15417 test -z "am__include" && continue
15418 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15419 # When using ansi2knr, U may be empty or an underscore; expand it
15420 U=`sed -n 's/^U = //p' < "$mf"`
15421 # Find all dependency output files, they are included files with
15422 # $(DEPDIR) in their names. We invoke sed twice because it is the
15423 # simplest approach to changing $(DEPDIR) to its actual value in the
15424 # expansion.
15425 for file in `sed -n "
15426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15428 # Make sure the directory exists.
15429 test -f "$dirpart/$file" && continue
15430 fdir=`$as_dirname -- "$file" ||
15431 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15432 X"$file" : 'X\(//\)[^/]' \| \
15433 X"$file" : 'X\(//\)$' \| \
15434 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15435 $as_echo X"$file" |
15436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15437 s//\1/
15438 q
15439 }
15440 /^X\(\/\/\)[^/].*/{
15441 s//\1/
15442 q
15443 }
15444 /^X\(\/\/\)$/{
15445 s//\1/
15446 q
15447 }
15448 /^X\(\/\).*/{
15449 s//\1/
15450 q
15451 }
15452 s/.*/./; q'`
15453 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15454 # echo "creating $dirpart/$file"
15455 echo '# dummy' > "$dirpart/$file"
15456 done
15457 done
15458 }
15459 ;;
15460 "libtool":C)
15461
15462 # See if we are running on zsh, and set the options which allow our
15463 # commands through without removal of \ escapes.
15464 if test -n "${ZSH_VERSION+set}" ; then
15465 setopt NO_GLOB_SUBST
15466 fi
15467
15468 cfgfile="${ofile}T"
15469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15470 $RM "$cfgfile"
15471
15472 cat <<_LT_EOF >> "$cfgfile"
15473 #! $SHELL
15474
15475 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15476 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15478 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15479 #
15480 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15481 # 2006, 2007, 2008 Free Software Foundation, Inc.
15482 # Written by Gordon Matzigkeit, 1996
15483 #
15484 # This file is part of GNU Libtool.
15485 #
15486 # GNU Libtool is free software; you can redistribute it and/or
15487 # modify it under the terms of the GNU General Public License as
15488 # published by the Free Software Foundation; either version 2 of
15489 # the License, or (at your option) any later version.
15490 #
15491 # As a special exception to the GNU General Public License,
15492 # if you distribute this file as part of a program or library that
15493 # is built using GNU Libtool, you may include this file under the
15494 # same distribution terms that you use for the rest of that program.
15495 #
15496 # GNU Libtool is distributed in the hope that it will be useful,
15497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15499 # GNU General Public License for more details.
15500 #
15501 # You should have received a copy of the GNU General Public License
15502 # along with GNU Libtool; see the file COPYING. If not, a copy
15503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 # obtained by writing to the Free Software Foundation, Inc.,
15505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15506
15507
15508 # The names of the tagged configurations supported by this script.
15509 available_tags=""
15510
15511 # ### BEGIN LIBTOOL CONFIG
15512
15513 # Which release of libtool.m4 was used?
15514 macro_version=$macro_version
15515 macro_revision=$macro_revision
15516
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15519
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15522
15523 # What type of objects to build.
15524 pic_mode=$pic_mode
15525
15526 # Whether or not to optimize for fast installation.
15527 fast_install=$enable_fast_install
15528
15529 # The host system.
15530 host_alias=$host_alias
15531 host=$host
15532 host_os=$host_os
15533
15534 # The build system.
15535 build_alias=$build_alias
15536 build=$build
15537 build_os=$build_os
15538
15539 # A sed program that does not truncate output.
15540 SED=$lt_SED
15541
15542 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15543 Xsed="\$SED -e 1s/^X//"
15544
15545 # A grep program that handles long lines.
15546 GREP=$lt_GREP
15547
15548 # An ERE matcher.
15549 EGREP=$lt_EGREP
15550
15551 # A literal string matcher.
15552 FGREP=$lt_FGREP
15553
15554 # A BSD- or MS-compatible name lister.
15555 NM=$lt_NM
15556
15557 # Whether we need soft or hard links.
15558 LN_S=$lt_LN_S
15559
15560 # What is the maximum length of a command?
15561 max_cmd_len=$max_cmd_len
15562
15563 # Object file suffix (normally "o").
15564 objext=$ac_objext
15565
15566 # Executable file suffix (normally "").
15567 exeext=$exeext
15568
15569 # whether the shell understands "unset".
15570 lt_unset=$lt_unset
15571
15572 # turn spaces into newlines.
15573 SP2NL=$lt_lt_SP2NL
15574
15575 # turn newlines into spaces.
15576 NL2SP=$lt_lt_NL2SP
15577
15578 # How to create reloadable object files.
15579 reload_flag=$lt_reload_flag
15580 reload_cmds=$lt_reload_cmds
15581
15582 # An object symbol dumper.
15583 OBJDUMP=$lt_OBJDUMP
15584
15585 # Method to check whether dependent libraries are shared objects.
15586 deplibs_check_method=$lt_deplibs_check_method
15587
15588 # Command to use when deplibs_check_method == "file_magic".
15589 file_magic_cmd=$lt_file_magic_cmd
15590
15591 # The archiver.
15592 AR=$lt_AR
15593 AR_FLAGS=$lt_AR_FLAGS
15594
15595 # A symbol stripping program.
15596 STRIP=$lt_STRIP
15597
15598 # Commands used to install an old-style archive.
15599 RANLIB=$lt_RANLIB
15600 old_postinstall_cmds=$lt_old_postinstall_cmds
15601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15602
15603 # A C compiler.
15604 LTCC=$lt_CC
15605
15606 # LTCC compiler flags.
15607 LTCFLAGS=$lt_CFLAGS
15608
15609 # Take the output of nm and produce a listing of raw symbols and C names.
15610 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15611
15612 # Transform the output of nm in a proper C declaration.
15613 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15614
15615 # Transform the output of nm in a C name address pair.
15616 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15617
15618 # Transform the output of nm in a C name address pair when lib prefix is needed.
15619 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15620
15621 # The name of the directory that contains temporary libtool files.
15622 objdir=$objdir
15623
15624 # Shell to use when invoking shell scripts.
15625 SHELL=$lt_SHELL
15626
15627 # An echo program that does not interpret backslashes.
15628 ECHO=$lt_ECHO
15629
15630 # Used to examine libraries when file_magic_cmd begins with "file".
15631 MAGIC_CMD=$MAGIC_CMD
15632
15633 # Must we lock files when doing compilation?
15634 need_locks=$lt_need_locks
15635
15636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15637 DSYMUTIL=$lt_DSYMUTIL
15638
15639 # Tool to change global to local symbols on Mac OS X.
15640 NMEDIT=$lt_NMEDIT
15641
15642 # Tool to manipulate fat objects and archives on Mac OS X.
15643 LIPO=$lt_LIPO
15644
15645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15646 OTOOL=$lt_OTOOL
15647
15648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15649 OTOOL64=$lt_OTOOL64
15650
15651 # Old archive suffix (normally "a").
15652 libext=$libext
15653
15654 # Shared library suffix (normally ".so").
15655 shrext_cmds=$lt_shrext_cmds
15656
15657 # The commands to extract the exported symbol list from a shared archive.
15658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15659
15660 # Variables whose values should be saved in libtool wrapper scripts and
15661 # restored at link time.
15662 variables_saved_for_relink=$lt_variables_saved_for_relink
15663
15664 # Do we need the "lib" prefix for modules?
15665 need_lib_prefix=$need_lib_prefix
15666
15667 # Do we need a version for libraries?
15668 need_version=$need_version
15669
15670 # Library versioning type.
15671 version_type=$version_type
15672
15673 # Shared library runtime path variable.
15674 runpath_var=$runpath_var
15675
15676 # Shared library path variable.
15677 shlibpath_var=$shlibpath_var
15678
15679 # Is shlibpath searched before the hard-coded library search path?
15680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15681
15682 # Format of library name prefix.
15683 libname_spec=$lt_libname_spec
15684
15685 # List of archive names. First name is the real one, the rest are links.
15686 # The last name is the one that the linker finds with -lNAME
15687 library_names_spec=$lt_library_names_spec
15688
15689 # The coded name of the library, if different from the real name.
15690 soname_spec=$lt_soname_spec
15691
15692 # Command to use after installation of a shared archive.
15693 postinstall_cmds=$lt_postinstall_cmds
15694
15695 # Command to use after uninstallation of a shared archive.
15696 postuninstall_cmds=$lt_postuninstall_cmds
15697
15698 # Commands used to finish a libtool library installation in a directory.
15699 finish_cmds=$lt_finish_cmds
15700
15701 # As "finish_cmds", except a single script fragment to be evaled but
15702 # not shown.
15703 finish_eval=$lt_finish_eval
15704
15705 # Whether we should hardcode library paths into libraries.
15706 hardcode_into_libs=$hardcode_into_libs
15707
15708 # Compile-time system search path for libraries.
15709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15710
15711 # Run-time system search path for libraries.
15712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15713
15714 # Whether dlopen is supported.
15715 dlopen_support=$enable_dlopen
15716
15717 # Whether dlopen of programs is supported.
15718 dlopen_self=$enable_dlopen_self
15719
15720 # Whether dlopen of statically linked programs is supported.
15721 dlopen_self_static=$enable_dlopen_self_static
15722
15723 # Commands to strip libraries.
15724 old_striplib=$lt_old_striplib
15725 striplib=$lt_striplib
15726
15727
15728 # The linker used to build libraries.
15729 LD=$lt_LD
15730
15731 # Commands used to build an old-style archive.
15732 old_archive_cmds=$lt_old_archive_cmds
15733
15734 # A language specific compiler.
15735 CC=$lt_compiler
15736
15737 # Is the compiler the GNU compiler?
15738 with_gcc=$GCC
15739
15740 # Compiler flag to turn off builtin functions.
15741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15742
15743 # How to pass a linker flag through the compiler.
15744 wl=$lt_lt_prog_compiler_wl
15745
15746 # Additional compiler flags for building library objects.
15747 pic_flag=$lt_lt_prog_compiler_pic
15748
15749 # Compiler flag to prevent dynamic linking.
15750 link_static_flag=$lt_lt_prog_compiler_static
15751
15752 # Does compiler simultaneously support -c and -o options?
15753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15754
15755 # Whether or not to add -lc for building shared libraries.
15756 build_libtool_need_lc=$archive_cmds_need_lc
15757
15758 # Whether or not to disallow shared libs when runtime libs are static.
15759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15760
15761 # Compiler flag to allow reflexive dlopens.
15762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15763
15764 # Compiler flag to generate shared objects directly from archives.
15765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15766
15767 # Whether the compiler copes with passing no objects directly.
15768 compiler_needs_object=$lt_compiler_needs_object
15769
15770 # Create an old-style archive from a shared archive.
15771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15772
15773 # Create a temporary old-style archive to link instead of a shared archive.
15774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15775
15776 # Commands used to build a shared archive.
15777 archive_cmds=$lt_archive_cmds
15778 archive_expsym_cmds=$lt_archive_expsym_cmds
15779
15780 # Commands used to build a loadable module if different from building
15781 # a shared archive.
15782 module_cmds=$lt_module_cmds
15783 module_expsym_cmds=$lt_module_expsym_cmds
15784
15785 # Whether we are building with GNU ld or not.
15786 with_gnu_ld=$lt_with_gnu_ld
15787
15788 # Flag that allows shared libraries with undefined symbols to be built.
15789 allow_undefined_flag=$lt_allow_undefined_flag
15790
15791 # Flag that enforces no undefined symbols.
15792 no_undefined_flag=$lt_no_undefined_flag
15793
15794 # Flag to hardcode \$libdir into a binary during linking.
15795 # This must work even if \$libdir does not exist
15796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15797
15798 # If ld is used when linking, flag to hardcode \$libdir into a binary
15799 # during linking. This must work even if \$libdir does not exist.
15800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15801
15802 # Whether we need a single "-rpath" flag with a separated argument.
15803 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15804
15805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15806 # DIR into the resulting binary.
15807 hardcode_direct=$hardcode_direct
15808
15809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15810 # DIR into the resulting binary and the resulting library dependency is
15811 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15812 # library is relocated.
15813 hardcode_direct_absolute=$hardcode_direct_absolute
15814
15815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15816 # into the resulting binary.
15817 hardcode_minus_L=$hardcode_minus_L
15818
15819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15820 # into the resulting binary.
15821 hardcode_shlibpath_var=$hardcode_shlibpath_var
15822
15823 # Set to "yes" if building a shared library automatically hardcodes DIR
15824 # into the library and all subsequent libraries and executables linked
15825 # against it.
15826 hardcode_automatic=$hardcode_automatic
15827
15828 # Set to yes if linker adds runtime paths of dependent libraries
15829 # to runtime path list.
15830 inherit_rpath=$inherit_rpath
15831
15832 # Whether libtool must link a program against all its dependency libraries.
15833 link_all_deplibs=$link_all_deplibs
15834
15835 # Fix the shell variable \$srcfile for the compiler.
15836 fix_srcfile_path=$lt_fix_srcfile_path
15837
15838 # Set to "yes" if exported symbols are required.
15839 always_export_symbols=$always_export_symbols
15840
15841 # The commands to list exported symbols.
15842 export_symbols_cmds=$lt_export_symbols_cmds
15843
15844 # Symbols that should not be listed in the preloaded symbols.
15845 exclude_expsyms=$lt_exclude_expsyms
15846
15847 # Symbols that must always be exported.
15848 include_expsyms=$lt_include_expsyms
15849
15850 # Commands necessary for linking programs (against libraries) with templates.
15851 prelink_cmds=$lt_prelink_cmds
15852
15853 # Specify filename containing input files.
15854 file_list_spec=$lt_file_list_spec
15855
15856 # How to hardcode a shared library path into an executable.
15857 hardcode_action=$hardcode_action
15858
15859 # ### END LIBTOOL CONFIG
15860
15861 _LT_EOF
15862
15863 case $host_os in
15864 aix3*)
15865 cat <<\_LT_EOF >> "$cfgfile"
15866 # AIX sometimes has problems with the GCC collect2 program. For some
15867 # reason, if we set the COLLECT_NAMES environment variable, the problems
15868 # vanish in a puff of smoke.
15869 if test "X${COLLECT_NAMES+set}" != Xset; then
15870 COLLECT_NAMES=
15871 export COLLECT_NAMES
15872 fi
15873 _LT_EOF
15874 ;;
15875 esac
15876
15877
15878 ltmain="$ac_aux_dir/ltmain.sh"
15879
15880
15881 # We use sed instead of cat because bash on DJGPP gets confused if
15882 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15883 # text mode, it properly converts lines to CR/LF. This bash problem
15884 # is reportedly fixed, but why not run on old versions too?
15885 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15886 || (rm -f "$cfgfile"; exit 1)
15887
15888 case $xsi_shell in
15889 yes)
15890 cat << \_LT_EOF >> "$cfgfile"
15891
15892 # func_dirname file append nondir_replacement
15893 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15894 # otherwise set result to NONDIR_REPLACEMENT.
15895 func_dirname ()
15896 {
15897 case ${1} in
15898 */*) func_dirname_result="${1%/*}${2}" ;;
15899 * ) func_dirname_result="${3}" ;;
15900 esac
15901 }
15902
15903 # func_basename file
15904 func_basename ()
15905 {
15906 func_basename_result="${1##*/}"
15907 }
15908
15909 # func_dirname_and_basename file append nondir_replacement
15910 # perform func_basename and func_dirname in a single function
15911 # call:
15912 # dirname: Compute the dirname of FILE. If nonempty,
15913 # add APPEND to the result, otherwise set result
15914 # to NONDIR_REPLACEMENT.
15915 # value returned in "$func_dirname_result"
15916 # basename: Compute filename of FILE.
15917 # value retuned in "$func_basename_result"
15918 # Implementation must be kept synchronized with func_dirname
15919 # and func_basename. For efficiency, we do not delegate to
15920 # those functions but instead duplicate the functionality here.
15921 func_dirname_and_basename ()
15922 {
15923 case ${1} in
15924 */*) func_dirname_result="${1%/*}${2}" ;;
15925 * ) func_dirname_result="${3}" ;;
15926 esac
15927 func_basename_result="${1##*/}"
15928 }
15929
15930 # func_stripname prefix suffix name
15931 # strip PREFIX and SUFFIX off of NAME.
15932 # PREFIX and SUFFIX must not contain globbing or regex special
15933 # characters, hashes, percent signs, but SUFFIX may contain a leading
15934 # dot (in which case that matches only a dot).
15935 func_stripname ()
15936 {
15937 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15938 # positional parameters, so assign one to ordinary parameter first.
15939 func_stripname_result=${3}
15940 func_stripname_result=${func_stripname_result#"${1}"}
15941 func_stripname_result=${func_stripname_result%"${2}"}
15942 }
15943
15944 # func_opt_split
15945 func_opt_split ()
15946 {
15947 func_opt_split_opt=${1%%=*}
15948 func_opt_split_arg=${1#*=}
15949 }
15950
15951 # func_lo2o object
15952 func_lo2o ()
15953 {
15954 case ${1} in
15955 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15956 *) func_lo2o_result=${1} ;;
15957 esac
15958 }
15959
15960 # func_xform libobj-or-source
15961 func_xform ()
15962 {
15963 func_xform_result=${1%.*}.lo
15964 }
15965
15966 # func_arith arithmetic-term...
15967 func_arith ()
15968 {
15969 func_arith_result=$(( $* ))
15970 }
15971
15972 # func_len string
15973 # STRING may not start with a hyphen.
15974 func_len ()
15975 {
15976 func_len_result=${#1}
15977 }
15978
15979 _LT_EOF
15980 ;;
15981 *) # Bourne compatible functions.
15982 cat << \_LT_EOF >> "$cfgfile"
15983
15984 # func_dirname file append nondir_replacement
15985 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15986 # otherwise set result to NONDIR_REPLACEMENT.
15987 func_dirname ()
15988 {
15989 # Extract subdirectory from the argument.
15990 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15991 if test "X$func_dirname_result" = "X${1}"; then
15992 func_dirname_result="${3}"
15993 else
15994 func_dirname_result="$func_dirname_result${2}"
15995 fi
15996 }
15997
15998 # func_basename file
15999 func_basename ()
16000 {
16001 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16002 }
16003
16004
16005 # func_stripname prefix suffix name
16006 # strip PREFIX and SUFFIX off of NAME.
16007 # PREFIX and SUFFIX must not contain globbing or regex special
16008 # characters, hashes, percent signs, but SUFFIX may contain a leading
16009 # dot (in which case that matches only a dot).
16010 # func_strip_suffix prefix name
16011 func_stripname ()
16012 {
16013 case ${2} in
16014 .*) func_stripname_result=`$ECHO "X${3}" \
16015 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16016 *) func_stripname_result=`$ECHO "X${3}" \
16017 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16018 esac
16019 }
16020
16021 # sed scripts:
16022 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16023 my_sed_long_arg='1s/^-[^=]*=//'
16024
16025 # func_opt_split
16026 func_opt_split ()
16027 {
16028 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16029 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16030 }
16031
16032 # func_lo2o object
16033 func_lo2o ()
16034 {
16035 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16036 }
16037
16038 # func_xform libobj-or-source
16039 func_xform ()
16040 {
16041 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16042 }
16043
16044 # func_arith arithmetic-term...
16045 func_arith ()
16046 {
16047 func_arith_result=`expr "$@"`
16048 }
16049
16050 # func_len string
16051 # STRING may not start with a hyphen.
16052 func_len ()
16053 {
16054 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16055 }
16056
16057 _LT_EOF
16058 esac
16059
16060 case $lt_shell_append in
16061 yes)
16062 cat << \_LT_EOF >> "$cfgfile"
16063
16064 # func_append var value
16065 # Append VALUE to the end of shell variable VAR.
16066 func_append ()
16067 {
16068 eval "$1+=\$2"
16069 }
16070 _LT_EOF
16071 ;;
16072 *)
16073 cat << \_LT_EOF >> "$cfgfile"
16074
16075 # func_append var value
16076 # Append VALUE to the end of shell variable VAR.
16077 func_append ()
16078 {
16079 eval "$1=\$$1\$2"
16080 }
16081
16082 _LT_EOF
16083 ;;
16084 esac
16085
16086
16087 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16088 || (rm -f "$cfgfile"; exit 1)
16089
16090 mv -f "$cfgfile" "$ofile" ||
16091 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16092 chmod +x "$ofile"
16093
16094 ;;
16095
16096 esac
16097 done # for ac_tag
16098
16099
16100 as_fn_exit 0
16101 _ACEOF
16102 ac_clean_files=$ac_clean_files_save
16103
16104 test $ac_write_fail = 0 ||
16105 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16106
16107
16108 # configure is writing to config.log, and then calls config.status.
16109 # config.status does its own redirection, appending to config.log.
16110 # Unfortunately, on DOS this fails, as config.log is still kept open
16111 # by configure, so config.status won't be able to write to it; its
16112 # output is simply discarded. So we exec the FD to /dev/null,
16113 # effectively closing config.log, so it can be properly (re)opened and
16114 # appended to by config.status. When coming back to configure, we
16115 # need to make the FD available again.
16116 if test "$no_create" != yes; then
16117 ac_cs_success=:
16118 ac_config_status_args=
16119 test "$silent" = yes &&
16120 ac_config_status_args="$ac_config_status_args --quiet"
16121 exec 5>/dev/null
16122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16123 exec 5>>config.log
16124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16125 # would make configure fail if this is the last instruction.
16126 $ac_cs_success || as_fn_exit $?
16127 fi
16128
16129 #
16130 # CONFIG_SUBDIRS section.
16131 #
16132 if test "$no_recursion" != yes; then
16133
16134 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16135 # so they do not pile up.
16136 ac_sub_configure_args=
16137 ac_prev=
16138 eval "set x $ac_configure_args"
16139 shift
16140 for ac_arg
16141 do
16142 if test -n "$ac_prev"; then
16143 ac_prev=
16144 continue
16145 fi
16146 case $ac_arg in
16147 -cache-file | --cache-file | --cache-fil | --cache-fi \
16148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16149 ac_prev=cache_file ;;
16150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16152 | --c=*)
16153 ;;
16154 --config-cache | -C)
16155 ;;
16156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16157 ac_prev=srcdir ;;
16158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16159 ;;
16160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16161 ac_prev=prefix ;;
16162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16163 ;;
16164 --disable-option-checking)
16165 ;;
16166 *)
16167 case $ac_arg in
16168 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16169 esac
16170 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16171 esac
16172 done
16173
16174 # Always prepend --prefix to ensure using the same prefix
16175 # in subdir configurations.
16176 ac_arg="--prefix=$prefix"
16177 case $ac_arg in
16178 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16179 esac
16180 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16181
16182 # Pass --silent
16183 if test "$silent" = yes; then
16184 ac_sub_configure_args="--silent $ac_sub_configure_args"
16185 fi
16186
16187 # Always prepend --disable-option-checking to silence warnings, since
16188 # different subdirs can have different --enable and --with options.
16189 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16190
16191 ac_popdir=`pwd`
16192 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16193
16194 # Do not complain, so a configure script can configure whichever
16195 # parts of a large source tree are present.
16196 test -d "$srcdir/$ac_dir" || continue
16197
16198 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16200 $as_echo "$ac_msg" >&6
16201 as_dir="$ac_dir"; as_fn_mkdir_p
16202 ac_builddir=.
16203
16204 case "$ac_dir" in
16205 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16206 *)
16207 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16208 # A ".." for each directory in $ac_dir_suffix.
16209 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16210 case $ac_top_builddir_sub in
16211 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16212 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16213 esac ;;
16214 esac
16215 ac_abs_top_builddir=$ac_pwd
16216 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16217 # for backward compatibility:
16218 ac_top_builddir=$ac_top_build_prefix
16219
16220 case $srcdir in
16221 .) # We are building in place.
16222 ac_srcdir=.
16223 ac_top_srcdir=$ac_top_builddir_sub
16224 ac_abs_top_srcdir=$ac_pwd ;;
16225 [\\/]* | ?:[\\/]* ) # Absolute name.
16226 ac_srcdir=$srcdir$ac_dir_suffix;
16227 ac_top_srcdir=$srcdir
16228 ac_abs_top_srcdir=$srcdir ;;
16229 *) # Relative name.
16230 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16231 ac_top_srcdir=$ac_top_build_prefix$srcdir
16232 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16233 esac
16234 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16235
16236
16237 cd "$ac_dir"
16238
16239 # Check for guested configure; otherwise get Cygnus style configure.
16240 if test -f "$ac_srcdir/configure.gnu"; then
16241 ac_sub_configure=$ac_srcdir/configure.gnu
16242 elif test -f "$ac_srcdir/configure"; then
16243 ac_sub_configure=$ac_srcdir/configure
16244 elif test -f "$ac_srcdir/configure.in"; then
16245 # This should be Cygnus configure.
16246 ac_sub_configure=$ac_aux_dir/configure
16247 else
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16249 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16250 ac_sub_configure=
16251 fi
16252
16253 # The recursion is here.
16254 if test -n "$ac_sub_configure"; then
16255 # Make the cache file name correct relative to the subdirectory.
16256 case $cache_file in
16257 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16258 *) # Relative name.
16259 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16260 esac
16261
16262 { $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
16263 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16264 # The eval makes quoting arguments work.
16265 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16266 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16267 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16268 fi
16269
16270 cd "$ac_popdir"
16271 done
16272 fi
16273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16276 fi
16277

Properties

Name Value
svn:executable *