ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1039
Committed: Sat Dec 5 23:19:44 2009 UTC (14 years, 4 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 468936 byte(s)
Log Message:
- bump version to 7.3-rc1

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1015 2009-10-25 00:08:06Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.3-rc1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 else
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: bugs@ircd-hybrid.org about your system, including any
236 $0: error possibly output before this message. Then install
237 $0: a modern shell, or manually run the script under such a
238 $0: shell if you do have one."
239 fi
240 exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258 { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267 return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275 set +e
276 as_fn_set_status $1
277 exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286 case $as_dir in #(
287 -*) as_dir=./$as_dir;;
288 esac
289 test -d "$as_dir" || eval $as_mkdir_p || {
290 as_dirs=
291 while :; do
292 case $as_dir in #(
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 *) as_qdir=$as_dir;;
295 esac
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)[^/].*/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\).*/{
316 s//\1/
317 q
318 }
319 s/.*/./; q'`
320 test -d "$as_dir" && break
321 done
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
335 {
336 eval $1+=\$2
337 }'
338 else
339 as_fn_append ()
340 {
341 eval $1=\$$1\$2
342 }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351 eval 'as_fn_arith ()
352 {
353 as_val=$(( $* ))
354 }'
355 else
356 as_fn_arith ()
357 {
358 as_val=`expr "$@" || test $? -eq 1`
359 }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370 as_status=$?; test $as_status -eq 0 && as_status=1
371 if test "$3"; then
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 fi
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
381 as_expr=expr
382 else
383 as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387 as_basename=basename
388 else
389 as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393 as_dirname=dirname
394 else
395 as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\/\)$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\).*/{
412 s//\1/
413 q
414 }
415 s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 sed -n '
431 p
432 /[$]LINENO/=
433 ' <$as_myself |
434 sed '
435 s/[$]LINENO.*/&-/
436 t lineno
437 b
438 :lineno
439 N
440 :loop
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 t loop
443 s/-\n.*//
444 ' >$as_me.lineno &&
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
451 . "./$as_me.lineno"
452 # Exit status is that of the last command.
453 exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 xy) ECHO_C='\c';;
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 ECHO_T=' ';;
464 esac;;
465 *)
466 ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
472 else
473 rm -f conf$$.dir
474 mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 as_ln_s='ln -s'
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 as_ln_s='cp -p'
485 elif ln conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s=ln
487 else
488 as_ln_s='cp -p'
489 fi
490 else
491 as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
498 else
499 test -d ./-p && rmdir ./-p
500 as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504 as_test_x='test -x'
505 else
506 if ls -dL / >/dev/null 2>&1; then
507 as_ls_L_option=L
508 else
509 as_ls_L_option=
510 fi
511 as_test_x='
512 eval sh -c '\''
513 if test -d "$1"; then
514 test -d "$1/.";
515 else
516 case $1 in #(
517 -*)set "./$1";;
518 esac;
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
521 '\'' sh
522 '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539 # Remove one level of quotation (which was required for Make).
540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546 # Discard the --no-reexec flag, and continue.
547 shift
548 elif test "X$1" = X--fallback-echo; then
549 # Avoid inline document here, it may be left over
550 :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552 # Yippee, $ECHO works!
553 :
554 else
555 # Restart under the correct shell.
556 exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560 # used as fallback echo
561 shift
562 cat <<_LT_EOF
563 $*
564 _LT_EOF
565 exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 then
580 break
581 fi
582 done
583 fi
584
585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589 else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 ECHO="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$ECHO" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 ECHO='print -r'
616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 ECHO='printf %s\n'
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 ECHO=echo
665 fi
666 fi
667 fi
668 fi
669 fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 lt_ltdl_dir='libltdl'
683
684 lt_dlopen_dir="$lt_ltdl_dir"
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='ircd-hybrid'
708 PACKAGE_TARNAME='ircd-hybrid'
709 PACKAGE_VERSION='7.3-rc1'
710 PACKAGE_STRING='ircd-hybrid 7.3-rc1'
711 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
712 PACKAGE_URL=''
713
714 ac_unique_file="src/ircd.c"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 # include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 # include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 enable_option_checking=no
752 ac_func_list=
753 ac_header_list=
754 ac_subst_vars='ltdl_LTLIBOBJS
755 ltdl_LIBOBJS
756 am__EXEEXT_FALSE
757 am__EXEEXT_TRUE
758 LTLIBOBJS
759 LIBOBJS
760 LOCALSTATEDIR
761 DATADIR
762 LIBDIR
763 SYSCONFDIR
764 PREFIX
765 EFNET_FALSE
766 EFNET_TRUE
767 ENABLE_SSL_FALSE
768 ENABLE_SSL_TRUE
769 ENABLE_PCRE_FALSE
770 ENABLE_PCRE_TRUE
771 LTDLOPEN
772 LT_CONFIG_H
773 subdirs
774 CONVENIENCE_LTDL_FALSE
775 CONVENIENCE_LTDL_TRUE
776 INSTALL_LTDL_FALSE
777 INSTALL_LTDL_TRUE
778 ARGZ_H
779 sys_symbol_underscore
780 LIBADD_DL
781 LT_DLPREOPEN
782 LIBADD_DLD_LINK
783 LIBADD_SHL_LOAD
784 LIBADD_DLOPEN
785 LT_DLLOADERS
786 INCLTDL
787 LTDLINCL
788 LTDLDEPS
789 LIBLTDL
790 CPP
791 OTOOL64
792 OTOOL
793 LIPO
794 NMEDIT
795 DSYMUTIL
796 lt_ECHO
797 RANLIB
798 AR
799 OBJDUMP
800 LN_S
801 NM
802 ac_ct_DUMPBIN
803 DUMPBIN
804 LD
805 FGREP
806 EGREP
807 GREP
808 SED
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 LIBTOOL
818 LEXLIB
819 LEX_OUTPUT_ROOT
820 LEX
821 YFLAGS
822 YACC
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 MAINT
840 MAINTAINER_MODE_FALSE
841 MAINTAINER_MODE_TRUE
842 am__untar
843 am__tar
844 AMTAR
845 am__leading_dot
846 SET_MAKE
847 AWK
848 mkdir_p
849 MKDIR_P
850 INSTALL_STRIP_PROGRAM
851 STRIP
852 install_sh
853 MAKEINFO
854 AUTOHEADER
855 AUTOMAKE
856 AUTOCONF
857 ACLOCAL
858 VERSION
859 PACKAGE
860 CYGPATH_W
861 am__isrc
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 target_alias
866 host_alias
867 build_alias
868 LIBS
869 ECHO_T
870 ECHO_N
871 ECHO_C
872 DEFS
873 mandir
874 localedir
875 libdir
876 psdir
877 pdfdir
878 dvidir
879 htmldir
880 infodir
881 docdir
882 oldincludedir
883 includedir
884 localstatedir
885 sharedstatedir
886 sysconfdir
887 datadir
888 datarootdir
889 libexecdir
890 sbindir
891 bindir
892 program_transform_name
893 prefix
894 exec_prefix
895 PACKAGE_URL
896 PACKAGE_BUGREPORT
897 PACKAGE_STRING
898 PACKAGE_VERSION
899 PACKAGE_TARNAME
900 PACKAGE_NAME
901 PATH_SEPARATOR
902 SHELL'
903 ac_subst_files=''
904 ac_user_opts='
905 enable_option_checking
906 enable_maintainer_mode
907 enable_dependency_tracking
908 enable_static
909 enable_shared
910 with_pic
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 with_included_ltdl
915 with_ltdl_include
916 with_ltdl_lib
917 enable_ltdl_install
918 with_zlib_path
919 enable_zlib
920 with_libpcre_path
921 enable_libpcre
922 enable_openssl
923 enable_assert
924 enable_small_net
925 enable_kqueue
926 enable_epoll
927 enable_devpoll
928 enable_rtsigio
929 enable_poll
930 enable_select
931 with_nicklen
932 with_topiclen
933 with_syslog_facility
934 enable_efnet
935 enable_halfops
936 enable_debugging
937 enable_warnings
938 enable_syslog
939 '
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
943 CC
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
948 YACC
949 YFLAGS
950 CPP'
951 ac_subdirs_all='libltdl'
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1010 fi
1011
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1016
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
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 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1245
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1256
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1261
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1266
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1273
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1278
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1281
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1284
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1316
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1320
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1327
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1334
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1348
1349 *)
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355 ;;
1356
1357 esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1378 do
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1409 fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\/\)$/{
1445 s//\1/
1446 q
1447 }
1448 /^X\(\/\).*/{
1449 s//\1/
1450 q
1451 }
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1456 fi
1457 else
1458 ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1546
1547 cat <<\_ACEOF
1548
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1563 esac
1564 cat <<\_ACEOF
1565
1566 Optional Features:
1567 --disable-option-checking ignore unrecognized --enable/--with options
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-maintainer-mode enable make rules and dependencies not useful
1571 (and sometimes confusing) to the casual installer
1572 --disable-dependency-tracking speeds up one-time build
1573 --enable-dependency-tracking do not reject slow dependency extractors
1574 --enable-static[=PKGS] build static libraries [default=no]
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation [default=yes]
1578 --disable-libtool-lock avoid locking (might break parallel builds)
1579 --enable-ltdl-install install libltdl
1580 --disable-zlib Disable ziplinks support
1581 --disable-libpcre Disable PCRE support
1582 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1583 --disable-openssl Disable OpenSSL support.
1584 --enable-assert Enable assert() statements
1585 --enable-small-net Enable small network support.
1586 --enable-kqueue Force kqueue usage.
1587 --enable-epoll Force epoll usage.
1588 --enable-devpoll Force devpoll usage.
1589 --enable-rtsigio Force rtsigio usage.
1590 --enable-poll Force poll usage.
1591 --enable-select Force select usage.
1592 --enable-efnet For IRCDs running on EFnet.
1593 --enable-halfops Enable halfops support.
1594 --enable-debugging Enable debugging.
1595 --enable-warnings Enable compiler warnings.
1596 --enable-syslog="EVENTS"
1597 Enable syslog for events: users oper (space
1598 separated in quotes; default: disabled).
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-included-ltdl use the GNU ltdl sources included here
1607 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1608 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1609 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1610 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1611 --with-nicklen=<value> Set nickname length (default 9).
1612 --with-topiclen=<value> Set topic length (default 160).
1613 --with-syslog-facility=LOG
1614 Define the syslog facility to use (default:
1615 LOG_LOCAL4)
1616
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1626 the first program found out of: `bison -y', `byacc', `yacc'.
1627 YFLAGS The list of arguments that will be passed by default to $YACC.
1628 This script will default YFLAGS to the empty string to avoid a
1629 default value of `-d' given by some make applications.
1630 CPP C preprocessor
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to <bugs@ircd-hybrid.org>.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 ircd-hybrid configure 7.3-rc1
1699 generated by GNU Autoconf 2.65
1700
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_compile
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_link
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_try_cpp LINENO
1828 # ----------------------
1829 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_c_try_cpp ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_cpp conftest.$ac_ext"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } >/dev/null && {
1849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=1
1858 fi
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_cpp
1863
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1868 ac_fn_c_try_run ()
1869 {
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
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_link") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1889 ac_status=$?
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=$ac_status
1899 fi
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_run
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_func
1972
1973 # ac_fn_c_check_decl LINENO SYMBOL VAR
1974 # ------------------------------------
1975 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1976 ac_fn_c_check_decl ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1980 $as_echo_n "checking whether $2 is declared... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 #ifndef $2
1991 (void) $2;
1992 #endif
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$3=yes"
2000 else
2001 eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_decl
2011
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=no"
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof ($2))
2032 return 0;
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof (($2)))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051
2052 else
2053 eval "$3=yes"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064 } # ac_fn_c_check_type
2065
2066 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067 # ----------------------------------------------------
2068 # Tries to find if the field MEMBER exists in type AGGR, after including
2069 # INCLUDES, setting cache variable VAR accordingly.
2070 ac_fn_c_check_member ()
2071 {
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074 $as_echo_n "checking for $2.$3... " >&6; }
2075 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $5
2081 int
2082 main ()
2083 {
2084 static $2 ac_aggr;
2085 if (ac_aggr.$3)
2086 return 0;
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$4=yes"
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $5
2097 int
2098 main ()
2099 {
2100 static $2 ac_aggr;
2101 if (sizeof ac_aggr.$3)
2102 return 0;
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$4=yes"
2109 else
2110 eval "$4=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$4
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
2121 } # ac_fn_c_check_member
2122
2123 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126 # the include files in INCLUDES and setting the cache variable VAR
2127 # accordingly.
2128 ac_fn_c_check_header_mongrel ()
2129 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2136 fi
2137 eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 else
2141 # Is the header compilable?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143 $as_echo_n "checking $2 usability... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 $4
2147 #include <$2>
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_header_compiler=yes
2151 else
2152 ac_header_compiler=no
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156 $as_echo "$ac_header_compiler" >&6; }
2157
2158 # Is the header present?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160 $as_echo_n "checking $2 presence... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 #include <$2>
2164 _ACEOF
2165 if ac_fn_c_try_cpp "$LINENO"; then :
2166 ac_header_preproc=yes
2167 else
2168 ac_header_preproc=no
2169 fi
2170 rm -f conftest.err conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172 $as_echo "$ac_header_preproc" >&6; }
2173
2174 # So? What about this header?
2175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2176 yes:no: )
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 ;;
2182 no:yes:* )
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2186 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2190 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 ( cat <<\_ASBOX
2194 ## ----------------------------------- ##
2195 ## Report this to bugs@ircd-hybrid.org ##
2196 ## ----------------------------------- ##
2197 _ASBOX
2198 ) | sed "s/^/$as_me: WARNING: /" >&2
2199 ;;
2200 esac
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 eval "$3=\$ac_header_compiler"
2207 fi
2208 eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 fi
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213
2214 } # ac_fn_c_check_header_mongrel
2215 cat >config.log <<_ACEOF
2216 This file contains any messages produced by compilers while
2217 running configure, to aid debugging if configure makes a mistake.
2218
2219 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2220 generated by GNU Autoconf 2.65. Invocation command line was
2221
2222 $ $0 $@
2223
2224 _ACEOF
2225 exec 5>>config.log
2226 {
2227 cat <<_ASUNAME
2228 ## --------- ##
2229 ## Platform. ##
2230 ## --------- ##
2231
2232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2237
2238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2240
2241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2248
2249 _ASUNAME
2250
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 $as_echo "PATH: $as_dir"
2257 done
2258 IFS=$as_save_IFS
2259
2260 } >&5
2261
2262 cat >&5 <<_ACEOF
2263
2264
2265 ## ----------- ##
2266 ## Core tests. ##
2267 ## ----------- ##
2268
2269 _ACEOF
2270
2271
2272 # Keep a trace of the command line.
2273 # Strip out --no-create and --no-recursion so they do not pile up.
2274 # Strip out --silent because we don't want to record it for future runs.
2275 # Also quote any args containing shell meta-characters.
2276 # Make two passes to allow for proper duplicate-argument suppression.
2277 ac_configure_args=
2278 ac_configure_args0=
2279 ac_configure_args1=
2280 ac_must_keep_next=false
2281 for ac_pass in 1 2
2282 do
2283 for ac_arg
2284 do
2285 case $ac_arg in
2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288 | -silent | --silent | --silen | --sile | --sil)
2289 continue ;;
2290 *\'*)
2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 esac
2293 case $ac_pass in
2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2295 2)
2296 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 if test $ac_must_keep_next = true; then
2298 ac_must_keep_next=false # Got value, back to normal.
2299 else
2300 case $ac_arg in
2301 *=* | --config-cache | -C | -disable-* | --disable-* \
2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304 | -with-* | --with-* | -without-* | --without-* | --x)
2305 case "$ac_configure_args0 " in
2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 esac
2308 ;;
2309 -* ) ac_must_keep_next=true ;;
2310 esac
2311 fi
2312 as_fn_append ac_configure_args " '$ac_arg'"
2313 ;;
2314 esac
2315 done
2316 done
2317 { ac_configure_args0=; unset ac_configure_args0;}
2318 { ac_configure_args1=; unset ac_configure_args1;}
2319
2320 # When interrupted or exit'd, cleanup temporary files, and complete
2321 # config.log. We remove comments because anyway the quotes in there
2322 # would cause problems or look ugly.
2323 # WARNING: Use '\'' to represent an apostrophe within the trap.
2324 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325 trap 'exit_status=$?
2326 # Save into config.log some information that might help in debugging.
2327 {
2328 echo
2329
2330 cat <<\_ASBOX
2331 ## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##
2334 _ASBOX
2335 echo
2336 # The following way of writing the cache mishandles newlines in values,
2337 (
2338 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in #(
2341 *${as_nl}*)
2342 case $ac_var in #(
2343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 esac
2346 case $ac_var in #(
2347 _ | IFS | as_nl) ;; #(
2348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 *) { eval $ac_var=; unset $ac_var;} ;;
2350 esac ;;
2351 esac
2352 done
2353 (set) 2>&1 |
2354 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355 *${as_nl}ac_space=\ *)
2356 sed -n \
2357 "s/'\''/'\''\\\\'\'''\''/g;
2358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359 ;; #(
2360 *)
2361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362 ;;
2363 esac |
2364 sort
2365 )
2366 echo
2367
2368 cat <<\_ASBOX
2369 ## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##
2372 _ASBOX
2373 echo
2374 for ac_var in $ac_subst_vars
2375 do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 esac
2380 $as_echo "$ac_var='\''$ac_val'\''"
2381 done | sort
2382 echo
2383
2384 if test -n "$ac_subst_files"; then
2385 cat <<\_ASBOX
2386 ## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##
2389 _ASBOX
2390 echo
2391 for ac_var in $ac_subst_files
2392 do
2393 eval ac_val=\$$ac_var
2394 case $ac_val in
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 esac
2397 $as_echo "$ac_var='\''$ac_val'\''"
2398 done | sort
2399 echo
2400 fi
2401
2402 if test -s confdefs.h; then
2403 cat <<\_ASBOX
2404 ## ----------- ##
2405 ## confdefs.h. ##
2406 ## ----------- ##
2407 _ASBOX
2408 echo
2409 cat confdefs.h
2410 echo
2411 fi
2412 test "$ac_signal" != 0 &&
2413 $as_echo "$as_me: caught signal $ac_signal"
2414 $as_echo "$as_me: exit $exit_status"
2415 } >&5
2416 rm -f core *.core core.conftest.* &&
2417 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 exit $exit_status
2419 ' 0
2420 for ac_signal in 1 2 13 15; do
2421 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 done
2423 ac_signal=0
2424
2425 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2426 rm -f -r conftest* confdefs.h
2427
2428 $as_echo "/* confdefs.h */" > confdefs.h
2429
2430 # Predefined preprocessor variables.
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_NAME "$PACKAGE_NAME"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_STRING "$PACKAGE_STRING"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450 _ACEOF
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_URL "$PACKAGE_URL"
2454 _ACEOF
2455
2456
2457 # Let the site file select an alternate cache file if it wants to.
2458 # Prefer an explicitly selected file to automatically selected ones.
2459 ac_site_file1=NONE
2460 ac_site_file2=NONE
2461 if test -n "$CONFIG_SITE"; then
2462 ac_site_file1=$CONFIG_SITE
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2466 else
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2469 fi
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 do
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2477 . "$ac_site_file"
2478 fi
2479 done
2480
2481 if test -r "$cache_file"; then
2482 # Some versions of bash will fail to source /dev/null (special files
2483 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2484 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 case $cache_file in
2488 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489 *) . "./$cache_file";;
2490 esac
2491 fi
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494 $as_echo "$as_me: creating cache $cache_file" >&6;}
2495 >$cache_file
2496 fi
2497
2498 as_fn_append ac_func_list " mmap"
2499 as_fn_append ac_func_list " strtok_r"
2500 as_fn_append ac_func_list " usleep"
2501 as_fn_append ac_func_list " strlcat"
2502 as_fn_append ac_func_list " strlcpy"
2503 as_fn_append ac_header_list " crypt.h"
2504 as_fn_append ac_header_list " inttypes.h"
2505 as_fn_append ac_header_list " stdint.h"
2506 as_fn_append ac_header_list " sys/resource.h"
2507 as_fn_append ac_header_list " sys/param.h"
2508 as_fn_append ac_header_list " errno.h"
2509 as_fn_append ac_header_list " sys/syslog.h"
2510 as_fn_append ac_header_list " types.h"
2511 as_fn_append ac_header_list " socket.h"
2512 as_fn_append ac_header_list " sys/wait.h"
2513 as_fn_append ac_header_list " wait.h"
2514 as_fn_append ac_header_list " link.h"
2515 # Check that the precious variables saved in the cache have kept the same
2516 # value.
2517 ac_cache_corrupted=false
2518 for ac_var in $ac_precious_vars; do
2519 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2520 eval ac_new_set=\$ac_env_${ac_var}_set
2521 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2522 eval ac_new_val=\$ac_env_${ac_var}_value
2523 case $ac_old_set,$ac_new_set in
2524 set,)
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2526 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2527 ac_cache_corrupted=: ;;
2528 ,set)
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2530 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2531 ac_cache_corrupted=: ;;
2532 ,);;
2533 *)
2534 if test "x$ac_old_val" != "x$ac_new_val"; then
2535 # differences in whitespace do not lead to failure.
2536 ac_old_val_w=`echo x $ac_old_val`
2537 ac_new_val_w=`echo x $ac_new_val`
2538 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2540 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2541 ac_cache_corrupted=:
2542 else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2544 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2545 eval $ac_var=\$ac_old_val
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2548 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2550 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2551 fi;;
2552 esac
2553 # Pass precious variables to config.status.
2554 if test "$ac_new_set" = set; then
2555 case $ac_new_val in
2556 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2557 *) ac_arg=$ac_var=$ac_new_val ;;
2558 esac
2559 case " $ac_configure_args " in
2560 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2561 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2562 esac
2563 fi
2564 done
2565 if $ac_cache_corrupted; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2569 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2570 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2571 fi
2572 ## -------------------- ##
2573 ## Main body of script. ##
2574 ## -------------------- ##
2575
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
2582
2583 am__api_version='1.11'
2584
2585 ac_aux_dir=
2586 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587 for ac_t in install-sh install.sh shtool; do
2588 if test -f "$ac_dir/$ac_t"; then
2589 ac_aux_dir=$ac_dir
2590 ac_install_sh="$ac_aux_dir/$ac_t -c"
2591 break 2
2592 fi
2593 done
2594 done
2595 if test -z "$ac_aux_dir"; then
2596 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2597 fi
2598
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606
2607
2608 # Find a good install program. We prefer a C program (faster),
2609 # so one script is as good as another. But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2614 # AIX /bin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # OS/2's system install, which has a completely different semantic
2620 # ./install, which can be erroneously created by make from ./install.sh.
2621 # Reject install programs that cannot install multiple files.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 if test -z "$INSTALL"; then
2625 if test "${ac_cv_path_install+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 # Account for people who put trailing slashes in PATH elements.
2634 case $as_dir/ in #((
2635 ./ | .// | /[cC]/* | \
2636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638 /usr/ucb/* ) ;;
2639 *)
2640 # OSF1 and SCO ODT 3.0 have their own names for install.
2641 # Don't use installbsd from OSF since it installs stuff as root
2642 # by default.
2643 for ac_prog in ginstall scoinst install; do
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2646 if test $ac_prog = install &&
2647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648 # AIX install. It has an incompatible calling convention.
2649 :
2650 elif test $ac_prog = install &&
2651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652 # program-specific install script used by HP pwplus--don't use.
2653 :
2654 else
2655 rm -rf conftest.one conftest.two conftest.dir
2656 echo one > conftest.one
2657 echo two > conftest.two
2658 mkdir conftest.dir
2659 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660 test -s conftest.one && test -s conftest.two &&
2661 test -s conftest.dir/conftest.one &&
2662 test -s conftest.dir/conftest.two
2663 then
2664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2665 break 3
2666 fi
2667 fi
2668 fi
2669 done
2670 done
2671 ;;
2672 esac
2673
2674 done
2675 IFS=$as_save_IFS
2676
2677 rm -rf conftest.one conftest.two conftest.dir
2678
2679 fi
2680 if test "${ac_cv_path_install+set}" = set; then
2681 INSTALL=$ac_cv_path_install
2682 else
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for INSTALL within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
2687 INSTALL=$ac_install_sh
2688 fi
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 $as_echo "$INSTALL" >&6; }
2692
2693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694 # It thinks the first close brace ends the variable substitution.
2695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696
2697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698
2699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 $as_echo_n "checking whether build environment is sane... " >&6; }
2703 # Just in case
2704 sleep 1
2705 echo timestamp > conftest.file
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name. Accept space and tab only in the latter.
2708 am_lf='
2709 '
2710 case `pwd` in
2711 *[\\\"\#\$\&\'\`$am_lf]*)
2712 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2713 esac
2714 case $srcdir in
2715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2717 esac
2718
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments. Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726 if test "$*" = "X"; then
2727 # -L didn't work.
2728 set X `ls -t "$srcdir/configure" conftest.file`
2729 fi
2730 rm -f conftest.file
2731 if test "$*" != "X $srcdir/configure conftest.file" \
2732 && test "$*" != "X conftest.file $srcdir/configure"; then
2733
2734 # If neither matched, then we have a broken ls. This can happen
2735 # if, for instance, CONFIG_SHELL is bash and it inherits a
2736 # broken ls alias from the environment. This has actually
2737 # happened. Such a system could not be considered "sane".
2738 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2740 fi
2741
2742 test "$2" = conftest.file
2743 )
2744 then
2745 # Ok.
2746 :
2747 else
2748 as_fn_error "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2765
2766 if test x"${MISSING+set}" != xset; then
2767 case $am_aux_dir in
2768 *\ * | *\ *)
2769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2770 *)
2771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2772 esac
2773 fi
2774 # Use eval to expand $SHELL
2775 if eval "$MISSING --run true"; then
2776 am_missing_run="$MISSING --run "
2777 else
2778 am_missing_run=
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2781 fi
2782
2783 if test x"${install_sh}" != xset; then
2784 case $am_aux_dir in
2785 *\ * | *\ *)
2786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2787 *)
2788 install_sh="\${SHELL} $am_aux_dir/install-sh"
2789 esac
2790 fi
2791
2792 # Installed binaries are usually stripped using `strip' when the user
2793 # run `make install-strip'. However `strip' might not be the right
2794 # tool to use in cross-compilation environments, therefore Automake
2795 # will honor the `STRIP' environment variable to overrule this program.
2796 if test "$cross_compiling" != no; then
2797 if test -n "$ac_tool_prefix"; then
2798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_STRIP+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$STRIP"; then
2806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 STRIP=$ac_cv_prog_STRIP
2826 if test -n "$STRIP"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 $as_echo "$STRIP" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$ac_cv_prog_STRIP"; then
2837 ac_ct_STRIP=$STRIP
2838 # Extract the first word of "strip", so it can be a program name with args.
2839 set dummy strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$ac_ct_STRIP"; then
2846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_ac_ct_STRIP="strip"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866 if test -n "$ac_ct_STRIP"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 $as_echo "$ac_ct_STRIP" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874 if test "x$ac_ct_STRIP" = x; then
2875 STRIP=":"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883 STRIP=$ac_ct_STRIP
2884 fi
2885 else
2886 STRIP="$ac_cv_prog_STRIP"
2887 fi
2888
2889 fi
2890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 if test -z "$MKDIR_P"; then
2895 if test "${ac_cv_path_mkdir+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_prog in mkdir gmkdir; do
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907 'mkdir (GNU coreutils) '* | \
2908 'mkdir (coreutils) '* | \
2909 'mkdir (fileutils) '4.1*)
2910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911 break 3;;
2912 esac
2913 done
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919
2920 test -d ./--version && rmdir ./--version
2921 if test "${ac_cv_path_mkdir+set}" = set; then
2922 MKDIR_P="$ac_cv_path_mkdir -p"
2923 else
2924 # As a last resort, use the slow shell script. Don't cache a
2925 # value for MKDIR_P within a source directory, because that will
2926 # break other packages using the cache if that directory is
2927 # removed, or if the value is a relative name.
2928 MKDIR_P="$ac_install_sh -d"
2929 fi
2930 fi
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 $as_echo "$MKDIR_P" >&6; }
2933
2934 mkdir_p="$MKDIR_P"
2935 case $mkdir_p in
2936 [\\/$]* | ?:[\\/]*) ;;
2937 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2938 esac
2939
2940 for ac_prog in gawk mawk nawk awk
2941 do
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_AWK+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$AWK"; then
2950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_AWK="$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 AWK=$ac_cv_prog_AWK
2970 if test -n "$AWK"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 $as_echo "$AWK" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$AWK" && break
2980 done
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984 set x ${MAKE-make}
2985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 cat >conftest.make <<\_ACEOF
2990 SHELL = /bin/sh
2991 all:
2992 @echo '@@@%%%=$(MAKE)=@@@%%%'
2993 _ACEOF
2994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996 *@@@%%%=?*=@@@%%%*)
2997 eval ac_cv_prog_make_${ac_make}_set=yes;;
2998 *)
2999 eval ac_cv_prog_make_${ac_make}_set=no;;
3000 esac
3001 rm -f conftest.make
3002 fi
3003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 SET_MAKE=
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 SET_MAKE="MAKE=${MAKE-make}"
3011 fi
3012
3013 rm -rf .tst 2>/dev/null
3014 mkdir .tst 2>/dev/null
3015 if test -d .tst; then
3016 am__leading_dot=.
3017 else
3018 am__leading_dot=_
3019 fi
3020 rmdir .tst 2>/dev/null
3021
3022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024 # is not polluted with repeated "-I."
3025 am__isrc=' -I$(srcdir)'
3026 # test to see if srcdir already configured
3027 if test -f $srcdir/config.status; then
3028 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3029 fi
3030 fi
3031
3032 # test whether we have cygpath
3033 if test -z "$CYGPATH_W"; then
3034 if (cygpath --version) >/dev/null 2>/dev/null; then
3035 CYGPATH_W='cygpath -w'
3036 else
3037 CYGPATH_W=echo
3038 fi
3039 fi
3040
3041
3042 # Define the identity of the package.
3043 PACKAGE='ircd-hybrid'
3044 VERSION='7.3-rc1'
3045
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE "$PACKAGE"
3049 _ACEOF
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define VERSION "$VERSION"
3054 _ACEOF
3055
3056 # Some tools Automake needs.
3057
3058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059
3060
3061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062
3063
3064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065
3066
3067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068
3069
3070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071
3072 # We need awk for the "check" target. The system "awk" is bad on
3073 # some platforms.
3074 # Always define AMTAR for backward compatibility.
3075
3076 AMTAR=${AMTAR-"${am_missing_run}tar"}
3077
3078 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3079
3080
3081
3082
3083
3084
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3087 # Check whether --enable-maintainer-mode was given.
3088 if test "${enable_maintainer_mode+set}" = set; then :
3089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3090 else
3091 USE_MAINTAINER_MODE=no
3092 fi
3093
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3096 if test $USE_MAINTAINER_MODE = yes; then
3097 MAINTAINER_MODE_TRUE=
3098 MAINTAINER_MODE_FALSE='#'
3099 else
3100 MAINTAINER_MODE_TRUE='#'
3101 MAINTAINER_MODE_FALSE=
3102 fi
3103
3104 MAINT=$MAINTAINER_MODE_TRUE
3105
3106
3107 ac_config_headers="$ac_config_headers config.h"
3108
3109
3110
3111 # Checks for programs.
3112 DEPDIR="${am__leading_dot}deps"
3113
3114 ac_config_commands="$ac_config_commands depfiles"
3115
3116
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3119 am__doit:
3120 @echo this is the am__doit target
3121 .PHONY: am__doit
3122 END
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126 am__include="#"
3127 am__quote=
3128 _am_result=none
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from `make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=include
3135 am__quote=
3136 _am_result=GNU
3137 ;;
3138 esac
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 case `$am_make -s -f confmf 2> /dev/null` in #(
3143 *the\ am__doit\ target*)
3144 am__include=.include
3145 am__quote="\""
3146 _am_result=BSD
3147 ;;
3148 esac
3149 fi
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3155
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158 enableval=$enable_dependency_tracking;
3159 fi
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162 am_depcomp="$ac_aux_dir/depcomp"
3163 AMDEPBACKSLASH='\'
3164 fi
3165 if test "x$enable_dependency_tracking" != xno; then
3166 AMDEP_TRUE=
3167 AMDEP_FALSE='#'
3168 else
3169 AMDEP_TRUE='#'
3170 AMDEP_FALSE=
3171 fi
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_CC"; then
3219 ac_ct_CC=$CC
3220 # Extract the first word of "gcc", so it can be a program name with args.
3221 set dummy gcc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 fi
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 ac_prog_rejected=no
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332 ac_prog_rejected=yes
3333 continue
3334 fi
3335 ac_cv_prog_CC="cc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 if test $ac_prog_rejected = yes; then
3344 # We found a bogon in the path, so make sure we never use it.
3345 set dummy $ac_cv_prog_CC
3346 shift
3347 if test $# != 0; then
3348 # We chose a different compiler from the bogus one.
3349 # However, it has the same basename, so the bogon will be chosen
3350 # first if we set CC to just the basename; use the full file name.
3351 shift
3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353 fi
3354 fi
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if test "${ac_cv_prog_CC+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$CC" && break
3410 done
3411 fi
3412 if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 test -n "$ac_ct_CC" && break
3454 done
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 fi
3468
3469 fi
3470
3471
3472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error "no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details." "$LINENO" 5; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 fi
3497 rm -f conftest.er1 conftest.err
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3519 $as_echo_n "checking whether the C compiler works... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3552 do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 ;;
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 fi
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3572 * )
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3577
3578 else
3579 ac_file=''
3580 fi
3581 if test -z "$ac_file"; then :
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 { as_fn_set_status 77
3590 as_fn_error "C compiler cannot create executables
3591 See \`config.log' for more details." "$LINENO" 5; }; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3601
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 # `rm'.
3621 for ac_file in conftest.exe conftest conftest.*; do
3622 test -f "$ac_file" || continue
3623 case $ac_file in
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626 break;;
3627 * ) break;;
3628 esac
3629 done
3630 else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details." "$LINENO" 5; }
3635 fi
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3639
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3642 ac_exeext=$EXEEXT
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdio.h>
3646 int
3647 main ()
3648 {
3649 FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662 { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 if { ac_try='./conftest$ac_cv_exeext'
3674 { { case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; }; then
3684 cross_compiling=no
3685 else
3686 if test "$cross_compiling" = maybe; then
3687 cross_compiling=yes
3688 else
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details." "$LINENO" 5; }
3694 fi
3695 fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3699
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if test "${ac_cv_objext+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_compile") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 for ac_file in conftest.o conftest.obj conftest.*; do
3731 test -f "$ac_file" || continue;
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735 break;;
3736 esac
3737 done
3738 else
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details." "$LINENO" 5; }
3746 fi
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3752 ac_objext=$OBJEXT
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764 #ifndef __GNUC__
3765 choke me
3766 #endif
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_compiler_gnu=yes
3774 else
3775 ac_compiler_gnu=no
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3784 GCC=yes
3785 else
3786 GCC=
3787 fi
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if test "${ac_cv_prog_cc_g+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3797 ac_cv_prog_cc_g=no
3798 CFLAGS="-g"
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_g=yes
3812 else
3813 CFLAGS=""
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 int
3818 main ()
3819 {
3820
3821 ;
3822 return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826
3827 else
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 CFLAGS="-g"
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_g=yes
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854 CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856 if test "$GCC" = yes; then
3857 CFLAGS="-g -O2"
3858 else
3859 CFLAGS="-g"
3860 fi
3861 else
3862 if test "$GCC" = yes; then
3863 CFLAGS="-O2"
3864 else
3865 CFLAGS=
3866 fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 ac_cv_prog_cc_c89=no
3874 ac_save_CC=$CC
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877 #include <stdarg.h>
3878 #include <stdio.h>
3879 #include <sys/types.h>
3880 #include <sys/stat.h>
3881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3882 struct buf { int x; };
3883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3884 static char *e (p, i)
3885 char **p;
3886 int i;
3887 {
3888 return p[i];
3889 }
3890 static char *f (char * (*g) (char **, int), char **p, ...)
3891 {
3892 char *s;
3893 va_list v;
3894 va_start (v,p);
3895 s = g (p, va_arg (v,int));
3896 va_end (v);
3897 return s;
3898 }
3899
3900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3901 function prototypes and stuff, but not '\xHH' hex character constants.
3902 These don't provoke an error unfortunately, instead are silently treated
3903 as 'x'. The following induces an error, until -std is added to get
3904 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3905 array size at least. It's necessary to write '\x00'==0 to get something
3906 that's true only with -std. */
3907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908
3909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3910 inside strings and character constants. */
3911 #define FOO(x) 'x'
3912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913
3914 int test (int i, double x);
3915 struct s1 {int (*f) (int a);};
3916 struct s2 {int (*f) (double a);};
3917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918 int argc;
3919 char **argv;
3920 int
3921 main ()
3922 {
3923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3929 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 do
3931 CC="$ac_save_CC $ac_arg"
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_prog_cc_c89=$ac_arg
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext
3936 test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 done
3938 rm -f conftest.$ac_ext
3939 CC=$ac_save_CC
3940
3941 fi
3942 # AC_CACHE_VAL
3943 case "x$ac_cv_prog_cc_c89" in
3944 x)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3946 $as_echo "none needed" >&6; } ;;
3947 xno)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3949 $as_echo "unsupported" >&6; } ;;
3950 *)
3951 CC="$CC $ac_cv_prog_cc_c89"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 esac
3955 if test "x$ac_cv_prog_cc_c89" != xno; then :
3956
3957 fi
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965 depcc="$CC" am_compiler_list=
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973 # We make a subdir and do the tests there. Otherwise we can end up
3974 # making bogus files that we don't know about and never remove. For
3975 # instance it was reported that on HP-UX the gcc test will end up
3976 # making a dummy file named `D' -- because `-MD' means `put the output
3977 # in D'.
3978 mkdir conftest.dir
3979 # Copy depcomp to subdir because otherwise we won't find it if we're
3980 # using a relative directory.
3981 cp "$am_depcomp" conftest.dir
3982 cd conftest.dir
3983 # We will build objects and dependencies in a subdirectory because
3984 # it helps to detect inapplicable dependency modes. For instance
3985 # both Tru64's cc and ICC support -MD to output dependencies as a
3986 # side effect of compilation, but ICC will put the dependencies in
3987 # the current directory while Tru64 will put them in the object
3988 # directory.
3989 mkdir sub
3990
3991 am_cv_CC_dependencies_compiler_type=none
3992 if test "$am_compiler_list" = ""; then
3993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3994 fi
3995 am__universal=false
3996 case " $depcc " in #(
3997 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3998 esac
3999
4000 for depmode in $am_compiler_list; do
4001 # Setup a source with many dependencies, because some compilers
4002 # like to wrap large dependency lists on column 80 (with \), and
4003 # we should not choose a depcomp mode which is confused by this.
4004 #
4005 # We need to recreate these files for each test, as the compiler may
4006 # overwrite some of them when testing with obscure command lines.
4007 # This happens at least with the AIX C compiler.
4008 : > sub/conftest.c
4009 for i in 1 2 3 4 5 6; do
4010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4012 # Solaris 8's {/usr,}/bin/sh.
4013 touch sub/conftst$i.h
4014 done
4015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4016
4017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4018 # mode. It turns out that the SunPro C++ compiler does not properly
4019 # handle `-M -o', and we need to detect this. Also, some Intel
4020 # versions had trouble with output in subdirs
4021 am__obj=sub/conftest.${OBJEXT-o}
4022 am__minus_obj="-o $am__obj"
4023 case $depmode in
4024 gcc)
4025 # This depmode causes a compiler race in universal mode.
4026 test "$am__universal" = false || continue
4027 ;;
4028 nosideeffect)
4029 # after this tag, mechanisms are not by side-effect, so they'll
4030 # only be used when explicitly requested
4031 if test "x$enable_dependency_tracking" = xyes; then
4032 continue
4033 else
4034 break
4035 fi
4036 ;;
4037 msvisualcpp | msvcmsys)
4038 # This compiler won't grok `-c -o', but also, the minuso test has
4039 # not run yet. These depmodes are late enough in the game, and
4040 # so weak that their functioning should not be impacted.
4041 am__obj=conftest.${OBJEXT-o}
4042 am__minus_obj=
4043 ;;
4044 none) break ;;
4045 esac
4046 if depmode=$depmode \
4047 source=sub/conftest.c object=$am__obj \
4048 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4049 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4050 >/dev/null 2>conftest.err &&
4051 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055 # icc doesn't choke on unknown options, it will just issue warnings
4056 # or remarks (even with -Werror). So we grep stderr for any message
4057 # that says an option was ignored or not supported.
4058 # When given -MP, icc 7.0 and 7.1 complain thusly:
4059 # icc: Command line warning: ignoring option '-M'; no argument required
4060 # The diagnosis changed in icc 8.0:
4061 # icc: Command line remark: option '-MP' not supported
4062 if (grep 'ignoring option' conftest.err ||
4063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4064 am_cv_CC_dependencies_compiler_type=$depmode
4065 break
4066 fi
4067 fi
4068 done
4069
4070 cd ..
4071 rm -rf conftest.dir
4072 else
4073 am_cv_CC_dependencies_compiler_type=none
4074 fi
4075
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4078 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4080
4081 if
4082 test "x$enable_dependency_tracking" != xno \
4083 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4084 am__fastdepCC_TRUE=
4085 am__fastdepCC_FALSE='#'
4086 else
4087 am__fastdepCC_TRUE='#'
4088 am__fastdepCC_FALSE=
4089 fi
4090
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4093 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4094 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 ac_cv_prog_cc_c99=no
4098 ac_save_CC=$CC
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdarg.h>
4102 #include <stdbool.h>
4103 #include <stdlib.h>
4104 #include <wchar.h>
4105 #include <stdio.h>
4106
4107 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4108 #define debug(...) fprintf (stderr, __VA_ARGS__)
4109 #define showlist(...) puts (#__VA_ARGS__)
4110 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4111 static void
4112 test_varargs_macros (void)
4113 {
4114 int x = 1234;
4115 int y = 5678;
4116 debug ("Flag");
4117 debug ("X = %d\n", x);
4118 showlist (The first, second, and third items.);
4119 report (x>y, "x is %d but y is %d", x, y);
4120 }
4121
4122 // Check long long types.
4123 #define BIG64 18446744073709551615ull
4124 #define BIG32 4294967295ul
4125 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4126 #if !BIG_OK
4127 your preprocessor is broken;
4128 #endif
4129 #if BIG_OK
4130 #else
4131 your preprocessor is broken;
4132 #endif
4133 static long long int bignum = -9223372036854775807LL;
4134 static unsigned long long int ubignum = BIG64;
4135
4136 struct incomplete_array
4137 {
4138 int datasize;
4139 double data[];
4140 };
4141
4142 struct named_init {
4143 int number;
4144 const wchar_t *name;
4145 double average;
4146 };
4147
4148 typedef const char *ccp;
4149
4150 static inline int
4151 test_restrict (ccp restrict text)
4152 {
4153 // See if C++-style comments work.
4154 // Iterate through items via the restricted pointer.
4155 // Also check for declarations in for loops.
4156 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4157 continue;
4158 return 0;
4159 }
4160
4161 // Check varargs and va_copy.
4162 static void
4163 test_varargs (const char *format, ...)
4164 {
4165 va_list args;
4166 va_start (args, format);
4167 va_list args_copy;
4168 va_copy (args_copy, args);
4169
4170 const char *str;
4171 int number;
4172 float fnumber;
4173
4174 while (*format)
4175 {
4176 switch (*format++)
4177 {
4178 case 's': // string
4179 str = va_arg (args_copy, const char *);
4180 break;
4181 case 'd': // int
4182 number = va_arg (args_copy, int);
4183 break;
4184 case 'f': // float
4185 fnumber = va_arg (args_copy, double);
4186 break;
4187 default:
4188 break;
4189 }
4190 }
4191 va_end (args_copy);
4192 va_end (args);
4193 }
4194
4195 int
4196 main ()
4197 {
4198
4199 // Check bool.
4200 _Bool success = false;
4201
4202 // Check restrict.
4203 if (test_restrict ("String literal") == 0)
4204 success = true;
4205 char *restrict newvar = "Another string";
4206
4207 // Check varargs.
4208 test_varargs ("s, d' f .", "string", 65, 34.234);
4209 test_varargs_macros ();
4210
4211 // Check flexible array members.
4212 struct incomplete_array *ia =
4213 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4214 ia->datasize = 10;
4215 for (int i = 0; i < ia->datasize; ++i)
4216 ia->data[i] = i * 1.234;
4217
4218 // Check named initializers.
4219 struct named_init ni = {
4220 .number = 34,
4221 .name = L"Test wide string",
4222 .average = 543.34343,
4223 };
4224
4225 ni.number = 58;
4226
4227 int dynamic_array[ni.number];
4228 dynamic_array[ni.number - 1] = 543;
4229
4230 // work around unused variable warnings
4231 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4232 || dynamic_array[ni.number - 1] != 543);
4233
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4239 do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c99=$ac_arg
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c99" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4249
4250 fi
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c99" in
4253 x)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4259 *)
4260 CC="$CC $ac_cv_prog_cc_c99"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c99" != xno; then :
4265
4266 fi
4267
4268
4269 if test "$ac_cv_prog_cc_c99" = "no"; then :
4270 as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4271 fi
4272 for ac_prog in 'bison -y' byacc
4273 do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_YACC+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$YACC"; then
4282 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_YACC="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 YACC=$ac_cv_prog_YACC
4302 if test -n "$YACC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4304 $as_echo "$YACC" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310
4311 test -n "$YACC" && break
4312 done
4313 test -n "$YACC" || YACC="yacc"
4314
4315
4316 for ac_prog in flex lex
4317 do
4318 # Extract the first word of "$ac_prog", so it can be a program name with args.
4319 set dummy $ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_LEX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$LEX"; then
4326 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_LEX="$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339 done
4340 done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 LEX=$ac_cv_prog_LEX
4346 if test -n "$LEX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4348 $as_echo "$LEX" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354
4355 test -n "$LEX" && break
4356 done
4357 test -n "$LEX" || LEX=":"
4358
4359 if test "x$LEX" != "x:"; then
4360 cat >conftest.l <<_ACEOF
4361 %%
4362 a { ECHO; }
4363 b { REJECT; }
4364 c { yymore (); }
4365 d { yyless (1); }
4366 e { yyless (input () != 0); }
4367 f { unput (yytext[0]); }
4368 . { BEGIN INITIAL; }
4369 %%
4370 #ifdef YYTEXT_POINTER
4371 extern char *yytext;
4372 #endif
4373 int
4374 main (void)
4375 {
4376 return ! yylex () + ! yywrap ();
4377 }
4378 _ACEOF
4379 { { ac_try="$LEX conftest.l"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386 (eval "$LEX conftest.l") 2>&5
4387 ac_status=$?
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4391 $as_echo_n "checking lex output file root... " >&6; }
4392 if test "${ac_cv_prog_lex_root+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395
4396 if test -f lex.yy.c; then
4397 ac_cv_prog_lex_root=lex.yy
4398 elif test -f lexyy.c; then
4399 ac_cv_prog_lex_root=lexyy
4400 else
4401 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4402 fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4405 $as_echo "$ac_cv_prog_lex_root" >&6; }
4406 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4407
4408 if test -z "${LEXLIB+set}"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4410 $as_echo_n "checking lex library... " >&6; }
4411 if test "${ac_cv_lib_lex+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414
4415 ac_save_LIBS=$LIBS
4416 ac_cv_lib_lex='none needed'
4417 for ac_lib in '' -lfl -ll; do
4418 LIBS="$ac_lib $ac_save_LIBS"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 `cat $LEX_OUTPUT_ROOT.c`
4422 _ACEOF
4423 if ac_fn_c_try_link "$LINENO"; then :
4424 ac_cv_lib_lex=$ac_lib
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext \
4427 conftest$ac_exeext conftest.$ac_ext
4428 test "$ac_cv_lib_lex" != 'none needed' && break
4429 done
4430 LIBS=$ac_save_LIBS
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4434 $as_echo "$ac_cv_lib_lex" >&6; }
4435 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4436 fi
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4440 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4441 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 # POSIX says lex can declare yytext either as a pointer or an array; the
4445 # default is implementation-dependent. Figure out which it is, since
4446 # not all implementations provide the %pointer and %array declarations.
4447 ac_cv_prog_lex_yytext_pointer=no
4448 ac_save_LIBS=$LIBS
4449 LIBS="$LEXLIB $ac_save_LIBS"
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #define YYTEXT_POINTER 1
4453 `cat $LEX_OUTPUT_ROOT.c`
4454 _ACEOF
4455 if ac_fn_c_try_link "$LINENO"; then :
4456 ac_cv_prog_lex_yytext_pointer=yes
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_save_LIBS
4461
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4464 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4465 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4466
4467 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4468
4469 fi
4470 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4471
4472 fi
4473 if test "$LEX" = :; then
4474 LEX=${am_missing_run}flex
4475 fi
4476
4477
4478 # Initializing libtool.
4479 case `pwd` in
4480 *\ * | *\ *)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4482 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4483 esac
4484
4485
4486
4487 macro_version='2.2.6'
4488 macro_revision='1.3012'
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 ltmain="$ac_aux_dir/ltmain.sh"
4503
4504 # Make sure we can run config.sub.
4505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4506 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4509 $as_echo_n "checking build system type... " >&6; }
4510 if test "${ac_cv_build+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_build_alias=$build_alias
4514 test "x$ac_build_alias" = x &&
4515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4516 test "x$ac_build_alias" = x &&
4517 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4519 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4523 $as_echo "$ac_cv_build" >&6; }
4524 case $ac_cv_build in
4525 *-*-*) ;;
4526 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4527 esac
4528 build=$ac_cv_build
4529 ac_save_IFS=$IFS; IFS='-'
4530 set x $ac_cv_build
4531 shift
4532 build_cpu=$1
4533 build_vendor=$2
4534 shift; shift
4535 # Remember, the first character of IFS is used to create $*,
4536 # except with old shells:
4537 build_os=$*
4538 IFS=$ac_save_IFS
4539 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4543 $as_echo_n "checking host system type... " >&6; }
4544 if test "${ac_cv_host+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 if test "x$host_alias" = x; then
4548 ac_cv_host=$ac_cv_build
4549 else
4550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4551 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4552 fi
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4556 $as_echo "$ac_cv_host" >&6; }
4557 case $ac_cv_host in
4558 *-*-*) ;;
4559 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4560 esac
4561 host=$ac_cv_host
4562 ac_save_IFS=$IFS; IFS='-'
4563 set x $ac_cv_host
4564 shift
4565 host_cpu=$1
4566 host_vendor=$2
4567 shift; shift
4568 # Remember, the first character of IFS is used to create $*,
4569 # except with old shells:
4570 host_os=$*
4571 IFS=$ac_save_IFS
4572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4576 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4577 if test "${ac_cv_path_SED+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4581 for ac_i in 1 2 3 4 5 6 7; do
4582 ac_script="$ac_script$as_nl$ac_script"
4583 done
4584 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4585 { ac_script=; unset ac_script;}
4586 if test -z "$SED"; then
4587 ac_path_SED_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in sed gsed; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4597 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4598 # Check for GNU ac_path_SED and select it if it is found.
4599 # Check for GNU $ac_path_SED
4600 case `"$ac_path_SED" --version 2>&1` in
4601 *GNU*)
4602 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4603 *)
4604 ac_count=0
4605 $as_echo_n 0123456789 >"conftest.in"
4606 while :
4607 do
4608 cat "conftest.in" "conftest.in" >"conftest.tmp"
4609 mv "conftest.tmp" "conftest.in"
4610 cp "conftest.in" "conftest.nl"
4611 $as_echo '' >> "conftest.nl"
4612 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_SED_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_SED="$ac_path_SED"
4618 ac_path_SED_max=$ac_count
4619 fi
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4622 done
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624 esac
4625
4626 $ac_path_SED_found && break 3
4627 done
4628 done
4629 done
4630 IFS=$as_save_IFS
4631 if test -z "$ac_cv_path_SED"; then
4632 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4633 fi
4634 else
4635 ac_cv_path_SED=$SED
4636 fi
4637
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4640 $as_echo "$ac_cv_path_SED" >&6; }
4641 SED="$ac_cv_path_SED"
4642 rm -f conftest.sed
4643
4644 test -z "$SED" && SED=sed
4645 Xsed="$SED -e 1s/^X//"
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4658 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4659 if test "${ac_cv_path_GREP+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -z "$GREP"; then
4663 ac_path_GREP_found=false
4664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_prog in grep ggrep; do
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4674 # Check for GNU ac_path_GREP and select it if it is found.
4675 # Check for GNU $ac_path_GREP
4676 case `"$ac_path_GREP" --version 2>&1` in
4677 *GNU*)
4678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4679 *)
4680 ac_count=0
4681 $as_echo_n 0123456789 >"conftest.in"
4682 while :
4683 do
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
4687 $as_echo 'GREP' >> "conftest.nl"
4688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 as_fn_arith $ac_count + 1 && ac_count=$as_val
4691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_GREP="$ac_path_GREP"
4694 ac_path_GREP_max=$ac_count
4695 fi
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4698 done
4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 esac
4701
4702 $ac_path_GREP_found && break 3
4703 done
4704 done
4705 done
4706 IFS=$as_save_IFS
4707 if test -z "$ac_cv_path_GREP"; then
4708 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 fi
4710 else
4711 ac_cv_path_GREP=$GREP
4712 fi
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4716 $as_echo "$ac_cv_path_GREP" >&6; }
4717 GREP="$ac_cv_path_GREP"
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4721 $as_echo_n "checking for egrep... " >&6; }
4722 if test "${ac_cv_path_EGREP+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4726 then ac_cv_path_EGREP="$GREP -E"
4727 else
4728 if test -z "$EGREP"; then
4729 ac_path_EGREP_found=false
4730 # Loop through the user's path and test for each of PROGNAME-LIST
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_prog in egrep; do
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4739 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4740 # Check for GNU ac_path_EGREP and select it if it is found.
4741 # Check for GNU $ac_path_EGREP
4742 case `"$ac_path_EGREP" --version 2>&1` in
4743 *GNU*)
4744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4745 *)
4746 ac_count=0
4747 $as_echo_n 0123456789 >"conftest.in"
4748 while :
4749 do
4750 cat "conftest.in" "conftest.in" >"conftest.tmp"
4751 mv "conftest.tmp" "conftest.in"
4752 cp "conftest.in" "conftest.nl"
4753 $as_echo 'EGREP' >> "conftest.nl"
4754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4758 # Best one so far, save it but keep looking for a better one
4759 ac_cv_path_EGREP="$ac_path_EGREP"
4760 ac_path_EGREP_max=$ac_count
4761 fi
4762 # 10*(2^10) chars as input seems more than enough
4763 test $ac_count -gt 10 && break
4764 done
4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766 esac
4767
4768 $ac_path_EGREP_found && break 3
4769 done
4770 done
4771 done
4772 IFS=$as_save_IFS
4773 if test -z "$ac_cv_path_EGREP"; then
4774 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 fi
4776 else
4777 ac_cv_path_EGREP=$EGREP
4778 fi
4779
4780 fi
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4783 $as_echo "$ac_cv_path_EGREP" >&6; }
4784 EGREP="$ac_cv_path_EGREP"
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4788 $as_echo_n "checking for fgrep... " >&6; }
4789 if test "${ac_cv_path_FGREP+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4793 then ac_cv_path_FGREP="$GREP -F"
4794 else
4795 if test -z "$FGREP"; then
4796 ac_path_FGREP_found=false
4797 # Loop through the user's path and test for each of PROGNAME-LIST
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_prog in fgrep; do
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4806 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4807 # Check for GNU ac_path_FGREP and select it if it is found.
4808 # Check for GNU $ac_path_FGREP
4809 case `"$ac_path_FGREP" --version 2>&1` in
4810 *GNU*)
4811 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4812 *)
4813 ac_count=0
4814 $as_echo_n 0123456789 >"conftest.in"
4815 while :
4816 do
4817 cat "conftest.in" "conftest.in" >"conftest.tmp"
4818 mv "conftest.tmp" "conftest.in"
4819 cp "conftest.in" "conftest.nl"
4820 $as_echo 'FGREP' >> "conftest.nl"
4821 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823 as_fn_arith $ac_count + 1 && ac_count=$as_val
4824 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4825 # Best one so far, save it but keep looking for a better one
4826 ac_cv_path_FGREP="$ac_path_FGREP"
4827 ac_path_FGREP_max=$ac_count
4828 fi
4829 # 10*(2^10) chars as input seems more than enough
4830 test $ac_count -gt 10 && break
4831 done
4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 esac
4834
4835 $ac_path_FGREP_found && break 3
4836 done
4837 done
4838 done
4839 IFS=$as_save_IFS
4840 if test -z "$ac_cv_path_FGREP"; then
4841 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 fi
4843 else
4844 ac_cv_path_FGREP=$FGREP
4845 fi
4846
4847 fi
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4850 $as_echo "$ac_cv_path_FGREP" >&6; }
4851 FGREP="$ac_cv_path_FGREP"
4852
4853
4854 test -z "$GREP" && GREP=grep
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 # Check whether --with-gnu-ld was given.
4875 if test "${with_gnu_ld+set}" = set; then :
4876 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4877 else
4878 with_gnu_ld=no
4879 fi
4880
4881 ac_prog=ld
4882 if test "$GCC" = yes; then
4883 # Check if gcc -print-prog-name=ld gives a path.
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4885 $as_echo_n "checking for ld used by $CC... " >&6; }
4886 case $host in
4887 *-*-mingw*)
4888 # gcc leaves a trailing carriage return which upsets mingw
4889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4890 *)
4891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4892 esac
4893 case $ac_prog in
4894 # Accept absolute paths.
4895 [\\/]* | ?:[\\/]*)
4896 re_direlt='/[^/][^/]*/\.\./'
4897 # Canonicalize the pathname of ld
4898 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4899 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4900 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4901 done
4902 test -z "$LD" && LD="$ac_prog"
4903 ;;
4904 "")
4905 # If it fails, then pretend we aren't using GCC.
4906 ac_prog=ld
4907 ;;
4908 *)
4909 # If it is relative, then search for the first ld in PATH.
4910 with_gnu_ld=unknown
4911 ;;
4912 esac
4913 elif test "$with_gnu_ld" = yes; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4915 $as_echo_n "checking for GNU ld... " >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4918 $as_echo_n "checking for non-GNU ld... " >&6; }
4919 fi
4920 if test "${lt_cv_path_LD+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -z "$LD"; then
4924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4925 for ac_dir in $PATH; do
4926 IFS="$lt_save_ifs"
4927 test -z "$ac_dir" && ac_dir=.
4928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929 lt_cv_path_LD="$ac_dir/$ac_prog"
4930 # Check to see if the program is GNU ld. I'd rather use --version,
4931 # but apparently some variants of GNU ld only accept -v.
4932 # Break only if it was the GNU/non-GNU ld that we prefer.
4933 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4934 *GNU* | *'with BFD'*)
4935 test "$with_gnu_ld" != no && break
4936 ;;
4937 *)
4938 test "$with_gnu_ld" != yes && break
4939 ;;
4940 esac
4941 fi
4942 done
4943 IFS="$lt_save_ifs"
4944 else
4945 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4946 fi
4947 fi
4948
4949 LD="$lt_cv_path_LD"
4950 if test -n "$LD"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4952 $as_echo "$LD" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4960 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4964 case `$LD -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966 lt_cv_prog_gnu_ld=yes
4967 ;;
4968 *)
4969 lt_cv_prog_gnu_ld=no
4970 ;;
4971 esac
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4974 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4975 with_gnu_ld=$lt_cv_prog_gnu_ld
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4986 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4987 if test "${lt_cv_path_NM+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$NM"; then
4991 # Let the user override the test.
4992 lt_cv_path_NM="$NM"
4993 else
4994 lt_nm_to_check="${ac_tool_prefix}nm"
4995 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4996 lt_nm_to_check="$lt_nm_to_check nm"
4997 fi
4998 for lt_tmp_nm in $lt_nm_to_check; do
4999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5000 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5001 IFS="$lt_save_ifs"
5002 test -z "$ac_dir" && ac_dir=.
5003 tmp_nm="$ac_dir/$lt_tmp_nm"
5004 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5005 # Check to see if the nm accepts a BSD-compat flag.
5006 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5007 # nm: unknown option "B" ignored
5008 # Tru64's nm complains that /dev/null is an invalid object file
5009 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5010 */dev/null* | *'Invalid file or object type'*)
5011 lt_cv_path_NM="$tmp_nm -B"
5012 break
5013 ;;
5014 *)
5015 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5016 */dev/null*)
5017 lt_cv_path_NM="$tmp_nm -p"
5018 break
5019 ;;
5020 *)
5021 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5022 continue # so that we can try to find one that supports BSD flags
5023 ;;
5024 esac
5025 ;;
5026 esac
5027 fi
5028 done
5029 IFS="$lt_save_ifs"
5030 done
5031 : ${lt_cv_path_NM=no}
5032 fi
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5035 $as_echo "$lt_cv_path_NM" >&6; }
5036 if test "$lt_cv_path_NM" != "no"; then
5037 NM="$lt_cv_path_NM"
5038 else
5039 # Didn't find any BSD compatible name lister, look for dumpbin.
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5042 do
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$DUMPBIN"; then
5051 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 DUMPBIN=$ac_cv_prog_DUMPBIN
5071 if test -n "$DUMPBIN"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5073 $as_echo "$DUMPBIN" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 test -n "$DUMPBIN" && break
5081 done
5082 fi
5083 if test -z "$DUMPBIN"; then
5084 ac_ct_DUMPBIN=$DUMPBIN
5085 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5086 do
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_DUMPBIN"; then
5095 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5115 if test -n "$ac_ct_DUMPBIN"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5117 $as_echo "$ac_ct_DUMPBIN" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 test -n "$ac_ct_DUMPBIN" && break
5125 done
5126
5127 if test "x$ac_ct_DUMPBIN" = x; then
5128 DUMPBIN=":"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 DUMPBIN=$ac_ct_DUMPBIN
5137 fi
5138 fi
5139
5140
5141 if test "$DUMPBIN" != ":"; then
5142 NM="$DUMPBIN"
5143 fi
5144 fi
5145 test -z "$NM" && NM=nm
5146
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5153 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5154 if test "${lt_cv_nm_interface+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 lt_cv_nm_interface="BSD nm"
5158 echo "int some_variable = 0;" > conftest.$ac_ext
5159 (eval echo "\"\$as_me:5159: $ac_compile\"" >&5)
5160 (eval "$ac_compile" 2>conftest.err)
5161 cat conftest.err >&5
5162 (eval echo "\"\$as_me:5162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5164 cat conftest.err >&5
5165 (eval echo "\"\$as_me:5165: output\"" >&5)
5166 cat conftest.out >&5
5167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5168 lt_cv_nm_interface="MS dumpbin"
5169 fi
5170 rm -f conftest*
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5173 $as_echo "$lt_cv_nm_interface" >&6; }
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5176 $as_echo_n "checking whether ln -s works... " >&6; }
5177 LN_S=$as_ln_s
5178 if test "$LN_S" = "ln -s"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5180 $as_echo "yes" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5183 $as_echo "no, using $LN_S" >&6; }
5184 fi
5185
5186 # find the maximum length of command line arguments
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5188 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5189 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 i=0
5193 teststring="ABCD"
5194
5195 case $build_os in
5196 msdosdjgpp*)
5197 # On DJGPP, this test can blow up pretty badly due to problems in libc
5198 # (any single argument exceeding 2000 bytes causes a buffer overrun
5199 # during glob expansion). Even if it were fixed, the result of this
5200 # check would be larger than it should be.
5201 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5202 ;;
5203
5204 gnu*)
5205 # Under GNU Hurd, this test is not required because there is
5206 # no limit to the length of command line arguments.
5207 # Libtool will interpret -1 as no limit whatsoever
5208 lt_cv_sys_max_cmd_len=-1;
5209 ;;
5210
5211 cygwin* | mingw* | cegcc*)
5212 # On Win9x/ME, this test blows up -- it succeeds, but takes
5213 # about 5 minutes as the teststring grows exponentially.
5214 # Worse, since 9x/ME are not pre-emptively multitasking,
5215 # you end up with a "frozen" computer, even though with patience
5216 # the test eventually succeeds (with a max line length of 256k).
5217 # Instead, let's just punt: use the minimum linelength reported by
5218 # all of the supported platforms: 8192 (on NT/2K/XP).
5219 lt_cv_sys_max_cmd_len=8192;
5220 ;;
5221
5222 amigaos*)
5223 # On AmigaOS with pdksh, this test takes hours, literally.
5224 # So we just punt and use a minimum line length of 8192.
5225 lt_cv_sys_max_cmd_len=8192;
5226 ;;
5227
5228 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5229 # This has been around since 386BSD, at least. Likely further.
5230 if test -x /sbin/sysctl; then
5231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5232 elif test -x /usr/sbin/sysctl; then
5233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5234 else
5235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5236 fi
5237 # And add a safety zone
5238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240 ;;
5241
5242 interix*)
5243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5244 lt_cv_sys_max_cmd_len=196608
5245 ;;
5246
5247 osf*)
5248 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5249 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5250 # nice to cause kernel panics so lets avoid the loop below.
5251 # First set a reasonable default.
5252 lt_cv_sys_max_cmd_len=16384
5253 #
5254 if test -x /sbin/sysconfig; then
5255 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5256 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5257 esac
5258 fi
5259 ;;
5260 sco3.2v5*)
5261 lt_cv_sys_max_cmd_len=102400
5262 ;;
5263 sysv5* | sco5v6* | sysv4.2uw2*)
5264 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5265 if test -n "$kargmax"; then
5266 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5267 else
5268 lt_cv_sys_max_cmd_len=32768
5269 fi
5270 ;;
5271 *)
5272 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5273 if test -n "$lt_cv_sys_max_cmd_len"; then
5274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5276 else
5277 # Make teststring a little bigger before we do anything with it.
5278 # a 1K string should be a reasonable start.
5279 for i in 1 2 3 4 5 6 7 8 ; do
5280 teststring=$teststring$teststring
5281 done
5282 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5283 # If test is not a shell built-in, we'll probably end up computing a
5284 # maximum length that is only half of the actual maximum length, but
5285 # we can't tell.
5286 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5287 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5288 test $i != 17 # 1/2 MB should be enough
5289 do
5290 i=`expr $i + 1`
5291 teststring=$teststring$teststring
5292 done
5293 # Only check the string length outside the loop.
5294 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5295 teststring=
5296 # Add a significant safety factor because C++ compilers can tack on
5297 # massive amounts of additional arguments before passing them to the
5298 # linker. It appears as though 1/2 is a usable value.
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5300 fi
5301 ;;
5302 esac
5303
5304 fi
5305
5306 if test -n $lt_cv_sys_max_cmd_len ; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5308 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5311 $as_echo "none" >&6; }
5312 fi
5313 max_cmd_len=$lt_cv_sys_max_cmd_len
5314
5315
5316
5317
5318
5319
5320 : ${CP="cp -f"}
5321 : ${MV="mv -f"}
5322 : ${RM="rm -f"}
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5325 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5326 # Try some XSI features
5327 xsi_shell=no
5328 ( _lt_dummy="a/b/c"
5329 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5330 = c,a/b,, \
5331 && eval 'test $(( 1 + 1 )) -eq 2 \
5332 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5333 && xsi_shell=yes
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5335 $as_echo "$xsi_shell" >&6; }
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5339 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5340 lt_shell_append=no
5341 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5342 >/dev/null 2>&1 \
5343 && lt_shell_append=yes
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5345 $as_echo "$lt_shell_append" >&6; }
5346
5347
5348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5349 lt_unset=unset
5350 else
5351 lt_unset=false
5352 fi
5353
5354
5355
5356
5357
5358 # test EBCDIC or ASCII
5359 case `echo X|tr X '\101'` in
5360 A) # ASCII based system
5361 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5362 lt_SP2NL='tr \040 \012'
5363 lt_NL2SP='tr \015\012 \040\040'
5364 ;;
5365 *) # EBCDIC based system
5366 lt_SP2NL='tr \100 \n'
5367 lt_NL2SP='tr \r\n \100\100'
5368 ;;
5369 esac
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5380 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5381 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 lt_cv_ld_reload_flag='-r'
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5387 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5388 reload_flag=$lt_cv_ld_reload_flag
5389 case $reload_flag in
5390 "" | " "*) ;;
5391 *) reload_flag=" $reload_flag" ;;
5392 esac
5393 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5394 case $host_os in
5395 darwin*)
5396 if test "$GCC" = yes; then
5397 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5398 else
5399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 fi
5401 ;;
5402 esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$OBJDUMP"; then
5421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434 done
5435 done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 OBJDUMP=$ac_cv_prog_OBJDUMP
5441 if test -n "$OBJDUMP"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5443 $as_echo "$OBJDUMP" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 fi
5451 if test -z "$ac_cv_prog_OBJDUMP"; then
5452 ac_ct_OBJDUMP=$OBJDUMP
5453 # Extract the first word of "objdump", so it can be a program name with args.
5454 set dummy objdump; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$ac_ct_OBJDUMP"; then
5461 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5481 if test -n "$ac_ct_OBJDUMP"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5483 $as_echo "$ac_ct_OBJDUMP" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489 if test "x$ac_ct_OBJDUMP" = x; then
5490 OBJDUMP="false"
5491 else
5492 case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498 OBJDUMP=$ac_ct_OBJDUMP
5499 fi
5500 else
5501 OBJDUMP="$ac_cv_prog_OBJDUMP"
5502 fi
5503
5504 test -z "$OBJDUMP" && OBJDUMP=objdump
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5516 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 lt_cv_file_magic_cmd='$MAGIC_CMD'
5520 lt_cv_file_magic_test_file=
5521 lt_cv_deplibs_check_method='unknown'
5522 # Need to set the preceding variable on all platforms that support
5523 # interlibrary dependencies.
5524 # 'none' -- dependencies not supported.
5525 # `unknown' -- same as none, but documents that we really don't know.
5526 # 'pass_all' -- all dependencies passed with no checks.
5527 # 'test_compile' -- check by making test program.
5528 # 'file_magic [[regex]]' -- check by looking for files in library path
5529 # which responds to the $file_magic_cmd with a given extended regex.
5530 # If you have `file' or equivalent on your system and you're not sure
5531 # whether `pass_all' will *always* work, you probably want this one.
5532
5533 case $host_os in
5534 aix[4-9]*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
5538 beos*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 bsdi[45]*)
5543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544 lt_cv_file_magic_cmd='/usr/bin/file -L'
5545 lt_cv_file_magic_test_file=/shlib/libc.so
5546 ;;
5547
5548 cygwin*)
5549 # func_win32_libid is a shell function defined in ltmain.sh
5550 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551 lt_cv_file_magic_cmd='func_win32_libid'
5552 ;;
5553
5554 mingw* | pw32*)
5555 # Base MSYS/MinGW do not provide the 'file' command needed by
5556 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5557 # unless we find 'file', for example because we are cross-compiling.
5558 if ( file / ) >/dev/null 2>&1; then
5559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560 lt_cv_file_magic_cmd='func_win32_libid'
5561 else
5562 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5563 lt_cv_file_magic_cmd='$OBJDUMP -f'
5564 fi
5565 ;;
5566
5567 cegcc)
5568 # use the weaker test based on 'objdump'. See mingw*.
5569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570 lt_cv_file_magic_cmd='$OBJDUMP -f'
5571 ;;
5572
5573 darwin* | rhapsody*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577 freebsd* | dragonfly*)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 case $host_cpu in
5580 i*86 )
5581 # Not sure whether the presence of OpenBSD here was a mistake.
5582 # Let's accept both of them until this is cleared up.
5583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586 ;;
5587 esac
5588 else
5589 lt_cv_deplibs_check_method=pass_all
5590 fi
5591 ;;
5592
5593 gnu*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 hpux10.20* | hpux11*)
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 case $host_cpu in
5600 ia64*)
5601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603 ;;
5604 hppa*64*)
5605 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]'
5606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607 ;;
5608 *)
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5611 ;;
5612 esac
5613 ;;
5614
5615 interix[3-9]*)
5616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618 ;;
5619
5620 irix5* | irix6* | nonstopux*)
5621 case $LD in
5622 *-32|*"-32 ") libmagic=32-bit;;
5623 *-n32|*"-n32 ") libmagic=N32;;
5624 *-64|*"-64 ") libmagic=64-bit;;
5625 *) libmagic=never-match;;
5626 esac
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 # This must be Linux ELF.
5631 linux* | k*bsd*-gnu)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 netbsd*)
5636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638 else
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640 fi
5641 ;;
5642
5643 newos6*)
5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647 ;;
5648
5649 *nto* | *qnx*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 openbsd*)
5654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5656 else
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 fi
5659 ;;
5660
5661 osf3* | osf4* | osf5*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665 rdos*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 solaris*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677 sysv4 | sysv4.3*)
5678 case $host_vendor in
5679 motorola)
5680 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]'
5681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5682 ;;
5683 ncr)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686 sequent)
5687 lt_cv_file_magic_cmd='/bin/file'
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5689 ;;
5690 sni)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693 lt_cv_file_magic_test_file=/lib/libc.so
5694 ;;
5695 siemens)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698 pc)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 esac
5702 ;;
5703
5704 tpf*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707 esac
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5712 file_magic_cmd=$lt_cv_file_magic_cmd
5713 deplibs_check_method=$lt_cv_deplibs_check_method
5714 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ar; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_AR+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$AR"; then
5736 ac_cv_prog_AR="$AR" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_AR="${ac_tool_prefix}ar"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 AR=$ac_cv_prog_AR
5756 if test -n "$AR"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5758 $as_echo "$AR" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765 fi
5766 if test -z "$ac_cv_prog_AR"; then
5767 ac_ct_AR=$AR
5768 # Extract the first word of "ar", so it can be a program name with args.
5769 set dummy ar; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$ac_ct_AR"; then
5776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_prog_ac_ct_AR="ar"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5796 if test -n "$ac_ct_AR"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5798 $as_echo "$ac_ct_AR" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804 if test "x$ac_ct_AR" = x; then
5805 AR="false"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 AR=$ac_ct_AR
5814 fi
5815 else
5816 AR="$ac_cv_prog_AR"
5817 fi
5818
5819 test -z "$AR" && AR=ar
5820 test -z "$AR_FLAGS" && AR_FLAGS=cru
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}strip; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if test "${ac_cv_prog_STRIP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$STRIP"; then
5841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 STRIP=$ac_cv_prog_STRIP
5861 if test -n "$STRIP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5863 $as_echo "$STRIP" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870 fi
5871 if test -z "$ac_cv_prog_STRIP"; then
5872 ac_ct_STRIP=$STRIP
5873 # Extract the first word of "strip", so it can be a program name with args.
5874 set dummy strip; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$ac_ct_STRIP"; then
5881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_prog_ac_ct_STRIP="strip"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5901 if test -n "$ac_ct_STRIP"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5903 $as_echo "$ac_ct_STRIP" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909 if test "x$ac_ct_STRIP" = x; then
5910 STRIP=":"
5911 else
5912 case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918 STRIP=$ac_ct_STRIP
5919 fi
5920 else
5921 STRIP="$ac_cv_prog_STRIP"
5922 fi
5923
5924 test -z "$STRIP" && STRIP=:
5925
5926
5927
5928
5929
5930
5931 if test -n "$ac_tool_prefix"; then
5932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test -n "$RANLIB"; then
5940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953 done
5954 done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 RANLIB=$ac_cv_prog_RANLIB
5960 if test -n "$RANLIB"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5962 $as_echo "$RANLIB" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968
5969 fi
5970 if test -z "$ac_cv_prog_RANLIB"; then
5971 ac_ct_RANLIB=$RANLIB
5972 # Extract the first word of "ranlib", so it can be a program name with args.
5973 set dummy ranlib; ac_word=$2
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test -n "$ac_ct_RANLIB"; then
5980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_prog_ac_ct_RANLIB="ranlib"
5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6000 if test -n "$ac_ct_RANLIB"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6002 $as_echo "$ac_ct_RANLIB" >&6; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008 if test "x$ac_ct_RANLIB" = x; then
6009 RANLIB=":"
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012 yes:)
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015 ac_tool_warned=yes ;;
6016 esac
6017 RANLIB=$ac_ct_RANLIB
6018 fi
6019 else
6020 RANLIB="$ac_cv_prog_RANLIB"
6021 fi
6022
6023 test -z "$RANLIB" && RANLIB=:
6024
6025
6026
6027
6028
6029
6030 # Determine commands to create old-style static archives.
6031 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6032 old_postinstall_cmds='chmod 644 $oldlib'
6033 old_postuninstall_cmds=
6034
6035 if test -n "$RANLIB"; then
6036 case $host_os in
6037 openbsd*)
6038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6039 ;;
6040 *)
6041 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6042 ;;
6043 esac
6044 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6045 fi
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 # If no C compiler was specified, use CC.
6081 LTCC=${LTCC-"$CC"}
6082
6083 # If no C compiler flags were specified, use CFLAGS.
6084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6085
6086 # Allow CC to be a program name with arguments.
6087 compiler=$CC
6088
6089
6090 # Check for command to grab the raw symbol name followed by C symbol from nm.
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6093 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096
6097 # These are sane defaults that work on at least a few old systems.
6098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6099
6100 # Character class describing NM global symbol codes.
6101 symcode='[BCDEGRST]'
6102
6103 # Regexp to match symbols that can be accessed directly from C.
6104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6105
6106 # Define system-specific variables.
6107 case $host_os in
6108 aix*)
6109 symcode='[BCDT]'
6110 ;;
6111 cygwin* | mingw* | pw32* | cegcc*)
6112 symcode='[ABCDGISTW]'
6113 ;;
6114 hpux*)
6115 if test "$host_cpu" = ia64; then
6116 symcode='[ABCDEGRST]'
6117 fi
6118 ;;
6119 irix* | nonstopux*)
6120 symcode='[BCDEGRST]'
6121 ;;
6122 osf*)
6123 symcode='[BCDEGQRST]'
6124 ;;
6125 solaris*)
6126 symcode='[BDRT]'
6127 ;;
6128 sco3.2v5*)
6129 symcode='[DT]'
6130 ;;
6131 sysv4.2uw2*)
6132 symcode='[DT]'
6133 ;;
6134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6135 symcode='[ABDT]'
6136 ;;
6137 sysv4)
6138 symcode='[DFNSTU]'
6139 ;;
6140 esac
6141
6142 # If we're using GNU nm, then use its standard symbol codes.
6143 case `$NM -V 2>&1` in
6144 *GNU* | *'with BFD'*)
6145 symcode='[ABCDGIRSTW]' ;;
6146 esac
6147
6148 # Transform an extracted symbol line into a proper C declaration.
6149 # Some systems (esp. on ia64) link data and code symbols differently,
6150 # so use this general approach.
6151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6152
6153 # Transform an extracted symbol line into symbol name and symbol address
6154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6155 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'"
6156
6157 # Handle CRLF in mingw tool chain
6158 opt_cr=
6159 case $build_os in
6160 mingw*)
6161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6162 ;;
6163 esac
6164
6165 # Try without a prefix underscore, then with it.
6166 for ac_symprfx in "" "_"; do
6167
6168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6169 symxfrm="\\1 $ac_symprfx\\2 \\2"
6170
6171 # Write the raw and C identifiers.
6172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6173 # Fake it for dumpbin and say T for any non-static function
6174 # and D for any global variable.
6175 # Also find C++ and __fastcall symbols from MSVC++,
6176 # which start with @ or ?.
6177 lt_cv_sys_global_symbol_pipe="$AWK '"\
6178 " {last_section=section; section=\$ 3};"\
6179 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6180 " \$ 0!~/External *\|/{next};"\
6181 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6182 " {if(hide[section]) next};"\
6183 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6184 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6185 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6186 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6187 " ' prfx=^$ac_symprfx"
6188 else
6189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6190 fi
6191
6192 # Check to see that the pipe works correctly.
6193 pipe_works=no
6194
6195 rm -f conftest*
6196 cat > conftest.$ac_ext <<_LT_EOF
6197 #ifdef __cplusplus
6198 extern "C" {
6199 #endif
6200 char nm_test_var;
6201 void nm_test_func(void);
6202 void nm_test_func(void){}
6203 #ifdef __cplusplus
6204 }
6205 #endif
6206 int main(){nm_test_var='a';nm_test_func();return(0);}
6207 _LT_EOF
6208
6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6211 ac_status=$?
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 # Now try to grab the symbols.
6215 nlist=conftest.nm
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6217 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; } && test -s "$nlist"; then
6221 # Try sorting and uniquifying the output.
6222 if sort "$nlist" | uniq > "$nlist"T; then
6223 mv -f "$nlist"T "$nlist"
6224 else
6225 rm -f "$nlist"T
6226 fi
6227
6228 # Make sure that we snagged all the symbols we need.
6229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231 cat <<_LT_EOF > conftest.$ac_ext
6232 #ifdef __cplusplus
6233 extern "C" {
6234 #endif
6235
6236 _LT_EOF
6237 # Now generate the symbol file.
6238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6239
6240 cat <<_LT_EOF >> conftest.$ac_ext
6241
6242 /* The mapping between symbol names and symbols. */
6243 const struct {
6244 const char *name;
6245 void *address;
6246 }
6247 lt__PROGRAM__LTX_preloaded_symbols[] =
6248 {
6249 { "@PROGRAM@", (void *) 0 },
6250 _LT_EOF
6251 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6252 cat <<\_LT_EOF >> conftest.$ac_ext
6253 {0, (void *) 0}
6254 };
6255
6256 /* This works around a problem in FreeBSD linker */
6257 #ifdef FREEBSD_WORKAROUND
6258 static const void *lt_preloaded_setup() {
6259 return lt__PROGRAM__LTX_preloaded_symbols;
6260 }
6261 #endif
6262
6263 #ifdef __cplusplus
6264 }
6265 #endif
6266 _LT_EOF
6267 # Now try linking the two files.
6268 mv conftest.$ac_objext conftstm.$ac_objext
6269 lt_save_LIBS="$LIBS"
6270 lt_save_CFLAGS="$CFLAGS"
6271 LIBS="conftstm.$ac_objext"
6272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6274 (eval $ac_link) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6278 pipe_works=yes
6279 fi
6280 LIBS="$lt_save_LIBS"
6281 CFLAGS="$lt_save_CFLAGS"
6282 else
6283 echo "cannot find nm_test_func in $nlist" >&5
6284 fi
6285 else
6286 echo "cannot find nm_test_var in $nlist" >&5
6287 fi
6288 else
6289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6290 fi
6291 else
6292 echo "$progname: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 fi
6295 rm -rf conftest* conftst*
6296
6297 # Do not use the global_symbol_pipe unless it works.
6298 if test "$pipe_works" = yes; then
6299 break
6300 else
6301 lt_cv_sys_global_symbol_pipe=
6302 fi
6303 done
6304
6305 fi
6306
6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308 lt_cv_sys_global_symbol_to_cdecl=
6309 fi
6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6312 $as_echo "failed" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6315 $as_echo "ok" >&6; }
6316 fi
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 # Check whether --enable-libtool-lock was given.
6340 if test "${enable_libtool_lock+set}" = set; then :
6341 enableval=$enable_libtool_lock;
6342 fi
6343
6344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6345
6346 # Some flags need to be propagated to the compiler or linker for good
6347 # libtool support.
6348 case $host in
6349 ia64-*-hpux*)
6350 # Find out which ABI we are using.
6351 echo 'int i;' > conftest.$ac_ext
6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353 (eval $ac_compile) 2>&5
6354 ac_status=$?
6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; }; then
6357 case `/usr/bin/file conftest.$ac_objext` in
6358 *ELF-32*)
6359 HPUX_IA64_MODE="32"
6360 ;;
6361 *ELF-64*)
6362 HPUX_IA64_MODE="64"
6363 ;;
6364 esac
6365 fi
6366 rm -rf conftest*
6367 ;;
6368 *-*-irix6*)
6369 # Find out which ABI we are using.
6370 echo '#line 6370 "configure"' > conftest.$ac_ext
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 (eval $ac_compile) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; then
6376 if test "$lt_cv_prog_gnu_ld" = yes; then
6377 case `/usr/bin/file conftest.$ac_objext` in
6378 *32-bit*)
6379 LD="${LD-ld} -melf32bsmip"
6380 ;;
6381 *N32*)
6382 LD="${LD-ld} -melf32bmipn32"
6383 ;;
6384 *64-bit*)
6385 LD="${LD-ld} -melf64bmip"
6386 ;;
6387 esac
6388 else
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *32-bit*)
6391 LD="${LD-ld} -32"
6392 ;;
6393 *N32*)
6394 LD="${LD-ld} -n32"
6395 ;;
6396 *64-bit*)
6397 LD="${LD-ld} -64"
6398 ;;
6399 esac
6400 fi
6401 fi
6402 rm -rf conftest*
6403 ;;
6404
6405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6407 # Find out which ABI we are using.
6408 echo 'int i;' > conftest.$ac_ext
6409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410 (eval $ac_compile) 2>&5
6411 ac_status=$?
6412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413 test $ac_status = 0; }; then
6414 case `/usr/bin/file conftest.o` in
6415 *32-bit*)
6416 case $host in
6417 x86_64-*kfreebsd*-gnu)
6418 LD="${LD-ld} -m elf_i386_fbsd"
6419 ;;
6420 x86_64-*linux*)
6421 LD="${LD-ld} -m elf_i386"
6422 ;;
6423 ppc64-*linux*|powerpc64-*linux*)
6424 LD="${LD-ld} -m elf32ppclinux"
6425 ;;
6426 s390x-*linux*)
6427 LD="${LD-ld} -m elf_s390"
6428 ;;
6429 sparc64-*linux*)
6430 LD="${LD-ld} -m elf32_sparc"
6431 ;;
6432 esac
6433 ;;
6434 *64-bit*)
6435 case $host in
6436 x86_64-*kfreebsd*-gnu)
6437 LD="${LD-ld} -m elf_x86_64_fbsd"
6438 ;;
6439 x86_64-*linux*)
6440 LD="${LD-ld} -m elf_x86_64"
6441 ;;
6442 ppc*-*linux*|powerpc*-*linux*)
6443 LD="${LD-ld} -m elf64ppc"
6444 ;;
6445 s390*-*linux*|s390*-*tpf*)
6446 LD="${LD-ld} -m elf64_s390"
6447 ;;
6448 sparc*-*linux*)
6449 LD="${LD-ld} -m elf64_sparc"
6450 ;;
6451 esac
6452 ;;
6453 esac
6454 fi
6455 rm -rf conftest*
6456 ;;
6457
6458 *-*-sco3.2v5*)
6459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6460 SAVE_CFLAGS="$CFLAGS"
6461 CFLAGS="$CFLAGS -belf"
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6463 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6464 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475
6476 int
6477 main ()
6478 {
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_link "$LINENO"; then :
6485 lt_cv_cc_needs_belf=yes
6486 else
6487 lt_cv_cc_needs_belf=no
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 ac_ext=c
6492 ac_cpp='$CPP $CPPFLAGS'
6493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6499 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6500 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6501 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6502 CFLAGS="$SAVE_CFLAGS"
6503 fi
6504 ;;
6505 sparc*-*solaris*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.o` in
6514 *64-bit*)
6515 case $lt_cv_prog_gnu_ld in
6516 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6517 *)
6518 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6519 LD="${LD-ld} -64"
6520 fi
6521 ;;
6522 esac
6523 ;;
6524 esac
6525 fi
6526 rm -rf conftest*
6527 ;;
6528 esac
6529
6530 need_locks="$enable_libtool_lock"
6531
6532
6533 case $host_os in
6534 rhapsody* | darwin*)
6535 if test -n "$ac_tool_prefix"; then
6536 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$DSYMUTIL"; then
6544 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6564 if test -n "$DSYMUTIL"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6566 $as_echo "$DSYMUTIL" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572
6573 fi
6574 if test -z "$ac_cv_prog_DSYMUTIL"; then
6575 ac_ct_DSYMUTIL=$DSYMUTIL
6576 # Extract the first word of "dsymutil", so it can be a program name with args.
6577 set dummy dsymutil; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$ac_ct_DSYMUTIL"; then
6584 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6604 if test -n "$ac_ct_DSYMUTIL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6606 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612 if test "x$ac_ct_DSYMUTIL" = x; then
6613 DSYMUTIL=":"
6614 else
6615 case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621 DSYMUTIL=$ac_ct_DSYMUTIL
6622 fi
6623 else
6624 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6625 fi
6626
6627 if test -n "$ac_tool_prefix"; then
6628 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$NMEDIT"; then
6636 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 NMEDIT=$ac_cv_prog_NMEDIT
6656 if test -n "$NMEDIT"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6658 $as_echo "$NMEDIT" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664
6665 fi
6666 if test -z "$ac_cv_prog_NMEDIT"; then
6667 ac_ct_NMEDIT=$NMEDIT
6668 # Extract the first word of "nmedit", so it can be a program name with args.
6669 set dummy nmedit; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$ac_ct_NMEDIT"; then
6676 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6696 if test -n "$ac_ct_NMEDIT"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6698 $as_echo "$ac_ct_NMEDIT" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704 if test "x$ac_ct_NMEDIT" = x; then
6705 NMEDIT=":"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713 NMEDIT=$ac_ct_NMEDIT
6714 fi
6715 else
6716 NMEDIT="$ac_cv_prog_NMEDIT"
6717 fi
6718
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_LIPO+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if test -n "$LIPO"; then
6728 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 LIPO=$ac_cv_prog_LIPO
6748 if test -n "$LIPO"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6750 $as_echo "$LIPO" >&6; }
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757 fi
6758 if test -z "$ac_cv_prog_LIPO"; then
6759 ac_ct_LIPO=$LIPO
6760 # Extract the first word of "lipo", so it can be a program name with args.
6761 set dummy lipo; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$ac_ct_LIPO"; then
6768 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_LIPO="lipo"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6788 if test -n "$ac_ct_LIPO"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6790 $as_echo "$ac_ct_LIPO" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796 if test "x$ac_ct_LIPO" = x; then
6797 LIPO=":"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805 LIPO=$ac_ct_LIPO
6806 fi
6807 else
6808 LIPO="$ac_cv_prog_LIPO"
6809 fi
6810
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}otool; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$OTOOL"; then
6820 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 OTOOL=$ac_cv_prog_OTOOL
6840 if test -n "$OTOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6842 $as_echo "$OTOOL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_OTOOL"; then
6851 ac_ct_OTOOL=$OTOOL
6852 # Extract the first word of "otool", so it can be a program name with args.
6853 set dummy otool; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$ac_ct_OTOOL"; then
6860 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_ac_ct_OTOOL="otool"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6880 if test -n "$ac_ct_OTOOL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6882 $as_echo "$ac_ct_OTOOL" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888 if test "x$ac_ct_OTOOL" = x; then
6889 OTOOL=":"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897 OTOOL=$ac_ct_OTOOL
6898 fi
6899 else
6900 OTOOL="$ac_cv_prog_OTOOL"
6901 fi
6902
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$OTOOL64"; then
6912 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 OTOOL64=$ac_cv_prog_OTOOL64
6932 if test -n "$OTOOL64"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6934 $as_echo "$OTOOL64" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 fi
6942 if test -z "$ac_cv_prog_OTOOL64"; then
6943 ac_ct_OTOOL64=$OTOOL64
6944 # Extract the first word of "otool64", so it can be a program name with args.
6945 set dummy otool64; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$ac_ct_OTOOL64"; then
6952 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_prog_ac_ct_OTOOL64="otool64"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6972 if test -n "$ac_ct_OTOOL64"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6974 $as_echo "$ac_ct_OTOOL64" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980 if test "x$ac_ct_OTOOL64" = x; then
6981 OTOOL64=":"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989 OTOOL64=$ac_ct_OTOOL64
6990 fi
6991 else
6992 OTOOL64="$ac_cv_prog_OTOOL64"
6993 fi
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7022 $as_echo_n "checking for -single_module linker flag... " >&6; }
7023 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 lt_cv_apple_cc_single_mod=no
7027 if test -z "${LT_MULTI_MODULE}"; then
7028 # By default we will add the -single_module flag. You can override
7029 # by either setting the environment variable LT_MULTI_MODULE
7030 # non-empty at configure time, or by adding -multi_module to the
7031 # link flags.
7032 rm -rf libconftest.dylib*
7033 echo "int foo(void){return 1;}" > conftest.c
7034 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7035 -dynamiclib -Wl,-single_module conftest.c" >&5
7036 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7037 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7038 _lt_result=$?
7039 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7040 lt_cv_apple_cc_single_mod=yes
7041 else
7042 cat conftest.err >&5
7043 fi
7044 rm -rf libconftest.dylib*
7045 rm -f conftest.*
7046 fi
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7049 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7051 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7052 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 lt_cv_ld_exported_symbols_list=no
7056 save_LDFLAGS=$LDFLAGS
7057 echo "_main" > conftest.sym
7058 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061
7062 int
7063 main ()
7064 {
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"; then :
7071 lt_cv_ld_exported_symbols_list=yes
7072 else
7073 lt_cv_ld_exported_symbols_list=no
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext \
7076 conftest$ac_exeext conftest.$ac_ext
7077 LDFLAGS="$save_LDFLAGS"
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7081 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7082 case $host_os in
7083 rhapsody* | darwin1.[012])
7084 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7085 darwin1.*)
7086 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7087 darwin*) # darwin 5.x on
7088 # if running on 10.5 or later, the deployment target defaults
7089 # to the OS version, if on x86, and 10.4, the deployment
7090 # target defaults to 10.4. Don't you love it?
7091 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7092 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7093 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7094 10.[012]*)
7095 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7096 10.*)
7097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7098 esac
7099 ;;
7100 esac
7101 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7102 _lt_dar_single_mod='$single_module'
7103 fi
7104 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7105 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7106 else
7107 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7108 fi
7109 if test "$DSYMUTIL" != ":"; then
7110 _lt_dsymutil='~$DSYMUTIL $lib || :'
7111 else
7112 _lt_dsymutil=
7113 fi
7114 ;;
7115 esac
7116
7117 ac_ext=c
7118 ac_cpp='$CPP $CPPFLAGS'
7119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7124 # On Suns, sometimes $CPP names a directory.
7125 if test -n "$CPP" && test -d "$CPP"; then
7126 CPP=
7127 fi
7128 if test -z "$CPP"; then
7129 if test "${ac_cv_prog_CPP+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 # Double quotes because CPP needs to be expanded
7133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7134 do
7135 ac_preproc_ok=false
7136 for ac_c_preproc_warn_flag in '' yes
7137 do
7138 # Use a header file that comes with gcc, so configuring glibc
7139 # with a fresh cross-compiler works.
7140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141 # <limits.h> exists even on freestanding compilers.
7142 # On the NeXT, cc -E runs the code through the compiler's parser,
7143 # not just through cpp. "Syntax error" is here to catch this case.
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #ifdef __STDC__
7147 # include <limits.h>
7148 #else
7149 # include <assert.h>
7150 #endif
7151 Syntax error
7152 _ACEOF
7153 if ac_fn_c_try_cpp "$LINENO"; then :
7154
7155 else
7156 # Broken: fails on valid input.
7157 continue
7158 fi
7159 rm -f conftest.err conftest.$ac_ext
7160
7161 # OK, works on sane cases. Now check whether nonexistent headers
7162 # can be detected and how.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <ac_nonexistent.h>
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168 # Broken: success on invalid input.
7169 continue
7170 else
7171 # Passes both tests.
7172 ac_preproc_ok=:
7173 break
7174 fi
7175 rm -f conftest.err conftest.$ac_ext
7176
7177 done
7178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7179 rm -f conftest.err conftest.$ac_ext
7180 if $ac_preproc_ok; then :
7181 break
7182 fi
7183
7184 done
7185 ac_cv_prog_CPP=$CPP
7186
7187 fi
7188 CPP=$ac_cv_prog_CPP
7189 else
7190 ac_cv_prog_CPP=$CPP
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7193 $as_echo "$CPP" >&6; }
7194 ac_preproc_ok=false
7195 for ac_c_preproc_warn_flag in '' yes
7196 do
7197 # Use a header file that comes with gcc, so configuring glibc
7198 # with a fresh cross-compiler works.
7199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200 # <limits.h> exists even on freestanding compilers.
7201 # On the NeXT, cc -E runs the code through the compiler's parser,
7202 # not just through cpp. "Syntax error" is here to catch this case.
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 #ifdef __STDC__
7206 # include <limits.h>
7207 #else
7208 # include <assert.h>
7209 #endif
7210 Syntax error
7211 _ACEOF
7212 if ac_fn_c_try_cpp "$LINENO"; then :
7213
7214 else
7215 # Broken: fails on valid input.
7216 continue
7217 fi
7218 rm -f conftest.err conftest.$ac_ext
7219
7220 # OK, works on sane cases. Now check whether nonexistent headers
7221 # can be detected and how.
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 #include <ac_nonexistent.h>
7225 _ACEOF
7226 if ac_fn_c_try_cpp "$LINENO"; then :
7227 # Broken: success on invalid input.
7228 continue
7229 else
7230 # Passes both tests.
7231 ac_preproc_ok=:
7232 break
7233 fi
7234 rm -f conftest.err conftest.$ac_ext
7235
7236 done
7237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7238 rm -f conftest.err conftest.$ac_ext
7239 if $ac_preproc_ok; then :
7240
7241 else
7242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7244 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7245 See \`config.log' for more details." "$LINENO" 5; }
7246 fi
7247
7248 ac_ext=c
7249 ac_cpp='$CPP $CPPFLAGS'
7250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
7254
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7256 $as_echo_n "checking for ANSI C header files... " >&6; }
7257 if test "${ac_cv_header_stdc+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <stdlib.h>
7263 #include <stdarg.h>
7264 #include <string.h>
7265 #include <float.h>
7266
7267 int
7268 main ()
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_compile "$LINENO"; then :
7276 ac_cv_header_stdc=yes
7277 else
7278 ac_cv_header_stdc=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281
7282 if test $ac_cv_header_stdc = yes; then
7283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 #include <string.h>
7287
7288 _ACEOF
7289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7290 $EGREP "memchr" >/dev/null 2>&1; then :
7291
7292 else
7293 ac_cv_header_stdc=no
7294 fi
7295 rm -f conftest*
7296
7297 fi
7298
7299 if test $ac_cv_header_stdc = yes; then
7300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #include <stdlib.h>
7304
7305 _ACEOF
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "free" >/dev/null 2>&1; then :
7308
7309 else
7310 ac_cv_header_stdc=no
7311 fi
7312 rm -f conftest*
7313
7314 fi
7315
7316 if test $ac_cv_header_stdc = yes; then
7317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7318 if test "$cross_compiling" = yes; then :
7319 :
7320 else
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 #include <ctype.h>
7324 #include <stdlib.h>
7325 #if ((' ' & 0x0FF) == 0x020)
7326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7328 #else
7329 # define ISLOWER(c) \
7330 (('a' <= (c) && (c) <= 'i') \
7331 || ('j' <= (c) && (c) <= 'r') \
7332 || ('s' <= (c) && (c) <= 'z'))
7333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334 #endif
7335
7336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7337 int
7338 main ()
7339 {
7340 int i;
7341 for (i = 0; i < 256; i++)
7342 if (XOR (islower (i), ISLOWER (i))
7343 || toupper (i) != TOUPPER (i))
7344 return 2;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_run "$LINENO"; then :
7349
7350 else
7351 ac_cv_header_stdc=no
7352 fi
7353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7354 conftest.$ac_objext conftest.beam conftest.$ac_ext
7355 fi
7356
7357 fi
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7360 $as_echo "$ac_cv_header_stdc" >&6; }
7361 if test $ac_cv_header_stdc = yes; then
7362
7363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7364
7365 fi
7366
7367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7369 inttypes.h stdint.h unistd.h
7370 do :
7371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7373 "
7374 eval as_val=\$$as_ac_Header
7375 if test "x$as_val" = x""yes; then :
7376 cat >>confdefs.h <<_ACEOF
7377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378 _ACEOF
7379
7380 fi
7381
7382 done
7383
7384
7385 for ac_header in dlfcn.h
7386 do :
7387 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7388 "
7389 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7390 cat >>confdefs.h <<_ACEOF
7391 #define HAVE_DLFCN_H 1
7392 _ACEOF
7393
7394 fi
7395
7396 done
7397
7398
7399
7400 # Set options
7401 enable_dlopen=yes
7402 # Check whether --enable-static was given.
7403 if test "${enable_static+set}" = set; then :
7404 enableval=$enable_static; p=${PACKAGE-default}
7405 case $enableval in
7406 yes) enable_static=yes ;;
7407 no) enable_static=no ;;
7408 *)
7409 enable_static=no
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7413 IFS="$lt_save_ifs"
7414 if test "X$pkg" = "X$p"; then
7415 enable_static=yes
7416 fi
7417 done
7418 IFS="$lt_save_ifs"
7419 ;;
7420 esac
7421 else
7422 enable_static=no
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 enable_win32_dll=no
7436
7437
7438 # Check whether --enable-shared was given.
7439 if test "${enable_shared+set}" = set; then :
7440 enableval=$enable_shared; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_shared=yes ;;
7443 no) enable_shared=no ;;
7444 *)
7445 enable_shared=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_shared=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
7455 ;;
7456 esac
7457 else
7458 enable_shared=yes
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # Check whether --with-pic was given.
7472 if test "${with_pic+set}" = set; then :
7473 withval=$with_pic; pic_mode="$withval"
7474 else
7475 pic_mode=default
7476 fi
7477
7478
7479 test -z "$pic_mode" && pic_mode=default
7480
7481
7482
7483
7484
7485
7486
7487 # Check whether --enable-fast-install was given.
7488 if test "${enable_fast_install+set}" = set; then :
7489 enableval=$enable_fast_install; p=${PACKAGE-default}
7490 case $enableval in
7491 yes) enable_fast_install=yes ;;
7492 no) enable_fast_install=no ;;
7493 *)
7494 enable_fast_install=no
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7498 IFS="$lt_save_ifs"
7499 if test "X$pkg" = "X$p"; then
7500 enable_fast_install=yes
7501 fi
7502 done
7503 IFS="$lt_save_ifs"
7504 ;;
7505 esac
7506 else
7507 enable_fast_install=yes
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 # This can be used to rebuild libtool when needed
7521 LIBTOOL_DEPS="$ltmain"
7522
7523 # Always use our own libtool.
7524 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 test -z "$LN_S" && LN_S="ln -s"
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 if test -n "${ZSH_VERSION+set}" ; then
7566 setopt NO_GLOB_SUBST
7567 fi
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7570 $as_echo_n "checking for objdir... " >&6; }
7571 if test "${lt_cv_objdir+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 rm -f .libs 2>/dev/null
7575 mkdir .libs 2>/dev/null
7576 if test -d .libs; then
7577 lt_cv_objdir=.libs
7578 else
7579 # MS-DOS does not allow filenames that begin with a dot.
7580 lt_cv_objdir=_libs
7581 fi
7582 rmdir .libs 2>/dev/null
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7585 $as_echo "$lt_cv_objdir" >&6; }
7586 objdir=$lt_cv_objdir
7587
7588
7589
7590
7591
7592 cat >>confdefs.h <<_ACEOF
7593 #define LT_OBJDIR "$lt_cv_objdir/"
7594 _ACEOF
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612 case $host_os in
7613 aix3*)
7614 # AIX sometimes has problems with the GCC collect2 program. For some
7615 # reason, if we set the COLLECT_NAMES environment variable, the problems
7616 # vanish in a puff of smoke.
7617 if test "X${COLLECT_NAMES+set}" != Xset; then
7618 COLLECT_NAMES=
7619 export COLLECT_NAMES
7620 fi
7621 ;;
7622 esac
7623
7624 # Sed substitution that helps us do robust quoting. It backslashifies
7625 # metacharacters that are still active within double-quoted strings.
7626 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7627
7628 # Same as above, but do not quote variable references.
7629 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7630
7631 # Sed substitution to delay expansion of an escaped shell variable in a
7632 # double_quote_subst'ed string.
7633 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7634
7635 # Sed substitution to delay expansion of an escaped single quote.
7636 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7637
7638 # Sed substitution to avoid accidental globbing in evaled expressions
7639 no_glob_subst='s/\*/\\\*/g'
7640
7641 # Global variables:
7642 ofile=libtool
7643 can_build_shared=yes
7644
7645 # All known linkers require a `.a' archive for static linking (except MSVC,
7646 # which needs '.lib').
7647 libext=a
7648
7649 with_gnu_ld="$lt_cv_prog_gnu_ld"
7650
7651 old_CC="$CC"
7652 old_CFLAGS="$CFLAGS"
7653
7654 # Set sane defaults for various variables
7655 test -z "$CC" && CC=cc
7656 test -z "$LTCC" && LTCC=$CC
7657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7658 test -z "$LD" && LD=ld
7659 test -z "$ac_objext" && ac_objext=o
7660
7661 for cc_temp in $compiler""; do
7662 case $cc_temp in
7663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7665 \-*) ;;
7666 *) break;;
7667 esac
7668 done
7669 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7670
7671
7672 # Only perform the check for file, if the check method requires it
7673 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7674 case $deplibs_check_method in
7675 file_magic*)
7676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7678 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 case $MAGIC_CMD in
7683 [\\/*] | ?:[\\/]*)
7684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685 ;;
7686 *)
7687 lt_save_MAGIC_CMD="$MAGIC_CMD"
7688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7690 for ac_dir in $ac_dummy; do
7691 IFS="$lt_save_ifs"
7692 test -z "$ac_dir" && ac_dir=.
7693 if test -f $ac_dir/${ac_tool_prefix}file; then
7694 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7695 if test -n "$file_magic_test_file"; then
7696 case $deplibs_check_method in
7697 "file_magic "*)
7698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7701 $EGREP "$file_magic_regex" > /dev/null; then
7702 :
7703 else
7704 cat <<_LT_EOF 1>&2
7705
7706 *** Warning: the command libtool uses to detect shared libraries,
7707 *** $file_magic_cmd, produces output that libtool cannot recognize.
7708 *** The result is that libtool may fail to recognize shared libraries
7709 *** as such. This will affect the creation of libtool libraries that
7710 *** depend on shared libraries, but programs linked with such libtool
7711 *** libraries will work regardless of this problem. Nevertheless, you
7712 *** may want to report the problem to your system manager and/or to
7713 *** bug-libtool@gnu.org
7714
7715 _LT_EOF
7716 fi ;;
7717 esac
7718 fi
7719 break
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 MAGIC_CMD="$lt_save_MAGIC_CMD"
7724 ;;
7725 esac
7726 fi
7727
7728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729 if test -n "$MAGIC_CMD"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7731 $as_echo "$MAGIC_CMD" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738
7739
7740
7741 if test -z "$lt_cv_path_MAGIC_CMD"; then
7742 if test -n "$ac_tool_prefix"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7744 $as_echo_n "checking for file... " >&6; }
7745 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 case $MAGIC_CMD in
7749 [\\/*] | ?:[\\/]*)
7750 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 lt_save_MAGIC_CMD="$MAGIC_CMD"
7754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756 for ac_dir in $ac_dummy; do
7757 IFS="$lt_save_ifs"
7758 test -z "$ac_dir" && ac_dir=.
7759 if test -f $ac_dir/file; then
7760 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7761 if test -n "$file_magic_test_file"; then
7762 case $deplibs_check_method in
7763 "file_magic "*)
7764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767 $EGREP "$file_magic_regex" > /dev/null; then
7768 :
7769 else
7770 cat <<_LT_EOF 1>&2
7771
7772 *** Warning: the command libtool uses to detect shared libraries,
7773 *** $file_magic_cmd, produces output that libtool cannot recognize.
7774 *** The result is that libtool may fail to recognize shared libraries
7775 *** as such. This will affect the creation of libtool libraries that
7776 *** depend on shared libraries, but programs linked with such libtool
7777 *** libraries will work regardless of this problem. Nevertheless, you
7778 *** may want to report the problem to your system manager and/or to
7779 *** bug-libtool@gnu.org
7780
7781 _LT_EOF
7782 fi ;;
7783 esac
7784 fi
7785 break
7786 fi
7787 done
7788 IFS="$lt_save_ifs"
7789 MAGIC_CMD="$lt_save_MAGIC_CMD"
7790 ;;
7791 esac
7792 fi
7793
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if test -n "$MAGIC_CMD"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7797 $as_echo "$MAGIC_CMD" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804 else
7805 MAGIC_CMD=:
7806 fi
7807 fi
7808
7809 fi
7810 ;;
7811 esac
7812
7813 # Use C for the default configuration in the libtool script
7814
7815 lt_save_CC="$CC"
7816 ac_ext=c
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823 # Source file extension for C test sources.
7824 ac_ext=c
7825
7826 # Object file extension for compiled C test sources.
7827 objext=o
7828 objext=$objext
7829
7830 # Code to be used in simple compile tests
7831 lt_simple_compile_test_code="int some_variable = 0;"
7832
7833 # Code to be used in simple link tests
7834 lt_simple_link_test_code='int main(){return(0);}'
7835
7836
7837
7838
7839
7840
7841
7842 # If no C compiler was specified, use CC.
7843 LTCC=${LTCC-"$CC"}
7844
7845 # If no C compiler flags were specified, use CFLAGS.
7846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7847
7848 # Allow CC to be a program name with arguments.
7849 compiler=$CC
7850
7851 # Save the default compiler, since it gets overwritten when the other
7852 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7853 compiler_DEFAULT=$CC
7854
7855 # save warnings/boilerplate of simple test code
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7858 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859 _lt_compiler_boilerplate=`cat conftest.err`
7860 $RM conftest*
7861
7862 ac_outfile=conftest.$ac_objext
7863 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7864 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7865 _lt_linker_boilerplate=`cat conftest.err`
7866 $RM -r conftest*
7867
7868
7869 if test -n "$compiler"; then
7870
7871 lt_prog_compiler_no_builtin_flag=
7872
7873 if test "$GCC" = yes; then
7874 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7878 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_prog_compiler_rtti_exceptions=no
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884 lt_compiler_flag="-fno-rtti -fno-exceptions"
7885 # Insert the option either (1) after the last *FLAGS variable, or
7886 # (2) before a word containing "conftest.", or (3) at the end.
7887 # Note that $ac_compile itself does not contain backslashes and begins
7888 # with a dollar sign (not a hyphen), so the echo should work correctly.
7889 # The option is referenced via a variable to avoid confusing sed.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>conftest.err)
7896 ac_status=$?
7897 cat conftest.err >&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s "$ac_outfile"; then
7900 # The compiler can only warn and ignore the option if not recognized
7901 # So say no if there are warnings other than the usual output.
7902 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905 lt_cv_prog_compiler_rtti_exceptions=yes
7906 fi
7907 fi
7908 $RM conftest*
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7913
7914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7916 else
7917 :
7918 fi
7919
7920 fi
7921
7922
7923
7924
7925
7926
7927 lt_prog_compiler_wl=
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_static=
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7933
7934 if test "$GCC" = yes; then
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_static='-static'
7937
7938 case $host_os in
7939 aix*)
7940 # All AIX code is PIC.
7941 if test "$host_cpu" = ia64; then
7942 # AIX 5 now supports IA64 processor
7943 lt_prog_compiler_static='-Bstatic'
7944 fi
7945 ;;
7946
7947 amigaos*)
7948 case $host_cpu in
7949 powerpc)
7950 # see comment about AmigaOS4 .so support
7951 lt_prog_compiler_pic='-fPIC'
7952 ;;
7953 m68k)
7954 # FIXME: we need at least 68020 code to build shared libraries, but
7955 # adding the `-m68020' flag to GCC prevents building anything better,
7956 # like `-m68040'.
7957 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7958 ;;
7959 esac
7960 ;;
7961
7962 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7963 # PIC is the default for these OSes.
7964 ;;
7965
7966 mingw* | cygwin* | pw32* | os2* | cegcc*)
7967 # This hack is so that the source file can tell whether it is being
7968 # built for inclusion in a dll (and should export symbols for example).
7969 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7970 # (--disable-auto-import) libraries
7971 lt_prog_compiler_pic='-DDLL_EXPORT'
7972 ;;
7973
7974 darwin* | rhapsody*)
7975 # PIC is the default on this platform
7976 # Common symbols not allowed in MH_DYLIB files
7977 lt_prog_compiler_pic='-fno-common'
7978 ;;
7979
7980 hpux*)
7981 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7982 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7983 # sets the default TLS model and affects inlining.
7984 case $host_cpu in
7985 hppa*64*)
7986 # +Z the default
7987 ;;
7988 *)
7989 lt_prog_compiler_pic='-fPIC'
7990 ;;
7991 esac
7992 ;;
7993
7994 interix[3-9]*)
7995 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7996 # Instead, we relocate shared libraries at runtime.
7997 ;;
7998
7999 msdosdjgpp*)
8000 # Just because we use GCC doesn't mean we suddenly get shared libraries
8001 # on systems that don't support them.
8002 lt_prog_compiler_can_build_shared=no
8003 enable_shared=no
8004 ;;
8005
8006 *nto* | *qnx*)
8007 # QNX uses GNU C++, but need to define -shared option too, otherwise
8008 # it will coredump.
8009 lt_prog_compiler_pic='-fPIC -shared'
8010 ;;
8011
8012 sysv4*MP*)
8013 if test -d /usr/nec; then
8014 lt_prog_compiler_pic=-Kconform_pic
8015 fi
8016 ;;
8017
8018 *)
8019 lt_prog_compiler_pic='-fPIC'
8020 ;;
8021 esac
8022 else
8023 # PORTME Check for flag to pass linker flags through the system compiler.
8024 case $host_os in
8025 aix*)
8026 lt_prog_compiler_wl='-Wl,'
8027 if test "$host_cpu" = ia64; then
8028 # AIX 5 now supports IA64 processor
8029 lt_prog_compiler_static='-Bstatic'
8030 else
8031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8032 fi
8033 ;;
8034
8035 mingw* | cygwin* | pw32* | os2* | cegcc*)
8036 # This hack is so that the source file can tell whether it is being
8037 # built for inclusion in a dll (and should export symbols for example).
8038 lt_prog_compiler_pic='-DDLL_EXPORT'
8039 ;;
8040
8041 hpux9* | hpux10* | hpux11*)
8042 lt_prog_compiler_wl='-Wl,'
8043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8044 # not for PA HP-UX.
8045 case $host_cpu in
8046 hppa*64*|ia64*)
8047 # +Z the default
8048 ;;
8049 *)
8050 lt_prog_compiler_pic='+Z'
8051 ;;
8052 esac
8053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8054 lt_prog_compiler_static='${wl}-a ${wl}archive'
8055 ;;
8056
8057 irix5* | irix6* | nonstopux*)
8058 lt_prog_compiler_wl='-Wl,'
8059 # PIC (with -KPIC) is the default.
8060 lt_prog_compiler_static='-non_shared'
8061 ;;
8062
8063 linux* | k*bsd*-gnu)
8064 case $cc_basename in
8065 # old Intel for x86_64 which still supported -KPIC.
8066 ecc*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-static'
8070 ;;
8071 # icc used to be incompatible with GCC.
8072 # ICC 10 doesn't accept -KPIC any more.
8073 icc* | ifort*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-fPIC'
8076 lt_prog_compiler_static='-static'
8077 ;;
8078 # Lahey Fortran 8.1.
8079 lf95*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='--shared'
8082 lt_prog_compiler_static='--static'
8083 ;;
8084 pgcc* | pgf77* | pgf90* | pgf95*)
8085 # Portland Group compilers (*not* the Pentium gcc compiler,
8086 # which looks to be a dead project)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fpic'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091 ccc*)
8092 lt_prog_compiler_wl='-Wl,'
8093 # All Alpha code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8095 ;;
8096 xl*)
8097 # IBM XL C 8.0/Fortran 10.1 on PPC
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-qpic'
8100 lt_prog_compiler_static='-qstaticlink'
8101 ;;
8102 *)
8103 case `$CC -V 2>&1 | sed 5q` in
8104 *Sun\ C*)
8105 # Sun C 5.9
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_wl='-Wl,'
8109 ;;
8110 *Sun\ F*)
8111 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 lt_prog_compiler_wl=''
8115 ;;
8116 esac
8117 ;;
8118 esac
8119 ;;
8120
8121 newsos6)
8122 lt_prog_compiler_pic='-KPIC'
8123 lt_prog_compiler_static='-Bstatic'
8124 ;;
8125
8126 *nto* | *qnx*)
8127 # QNX uses GNU C++, but need to define -shared option too, otherwise
8128 # it will coredump.
8129 lt_prog_compiler_pic='-fPIC -shared'
8130 ;;
8131
8132 osf3* | osf4* | osf5*)
8133 lt_prog_compiler_wl='-Wl,'
8134 # All OSF/1 code is PIC.
8135 lt_prog_compiler_static='-non_shared'
8136 ;;
8137
8138 rdos*)
8139 lt_prog_compiler_static='-non_shared'
8140 ;;
8141
8142 solaris*)
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 case $cc_basename in
8146 f77* | f90* | f95*)
8147 lt_prog_compiler_wl='-Qoption ld ';;
8148 *)
8149 lt_prog_compiler_wl='-Wl,';;
8150 esac
8151 ;;
8152
8153 sunos4*)
8154 lt_prog_compiler_wl='-Qoption ld '
8155 lt_prog_compiler_pic='-PIC'
8156 lt_prog_compiler_static='-Bstatic'
8157 ;;
8158
8159 sysv4 | sysv4.2uw2* | sysv4.3*)
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_pic='-KPIC'
8162 lt_prog_compiler_static='-Bstatic'
8163 ;;
8164
8165 sysv4*MP*)
8166 if test -d /usr/nec ;then
8167 lt_prog_compiler_pic='-Kconform_pic'
8168 lt_prog_compiler_static='-Bstatic'
8169 fi
8170 ;;
8171
8172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 ;;
8177
8178 unicos*)
8179 lt_prog_compiler_wl='-Wl,'
8180 lt_prog_compiler_can_build_shared=no
8181 ;;
8182
8183 uts4*)
8184 lt_prog_compiler_pic='-pic'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187
8188 *)
8189 lt_prog_compiler_can_build_shared=no
8190 ;;
8191 esac
8192 fi
8193
8194 case $host_os in
8195 # For platforms which do not support PIC, -DPIC is meaningless:
8196 *djgpp*)
8197 lt_prog_compiler_pic=
8198 ;;
8199 *)
8200 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8201 ;;
8202 esac
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8204 $as_echo "$lt_prog_compiler_pic" >&6; }
8205
8206
8207
8208
8209
8210
8211 #
8212 # Check to make sure the PIC flag actually works.
8213 #
8214 if test -n "$lt_prog_compiler_pic"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8216 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8217 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 lt_cv_prog_compiler_pic_works=no
8221 ac_outfile=conftest.$ac_objext
8222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8223 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8224 # Insert the option either (1) after the last *FLAGS variable, or
8225 # (2) before a word containing "conftest.", or (3) at the end.
8226 # Note that $ac_compile itself does not contain backslashes and begins
8227 # with a dollar sign (not a hyphen), so the echo should work correctly.
8228 # The option is referenced via a variable to avoid confusing sed.
8229 lt_compile=`echo "$ac_compile" | $SED \
8230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8232 -e 's:$: $lt_compiler_flag:'`
8233 (eval echo "\"\$as_me:8233: $lt_compile\"" >&5)
8234 (eval "$lt_compile" 2>conftest.err)
8235 ac_status=$?
8236 cat conftest.err >&5
8237 echo "$as_me:8237: \$? = $ac_status" >&5
8238 if (exit $ac_status) && test -s "$ac_outfile"; then
8239 # The compiler can only warn and ignore the option if not recognized
8240 # So say no if there are warnings other than the usual output.
8241 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8244 lt_cv_prog_compiler_pic_works=yes
8245 fi
8246 fi
8247 $RM conftest*
8248
8249 fi
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8251 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8252
8253 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8254 case $lt_prog_compiler_pic in
8255 "" | " "*) ;;
8256 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8257 esac
8258 else
8259 lt_prog_compiler_pic=
8260 lt_prog_compiler_can_build_shared=no
8261 fi
8262
8263 fi
8264
8265
8266
8267
8268
8269
8270 #
8271 # Check to make sure the static flag actually works.
8272 #
8273 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8275 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8276 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 lt_cv_prog_compiler_static_works=no
8280 save_LDFLAGS="$LDFLAGS"
8281 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8282 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8284 # The linker can only warn and ignore the option if not recognized
8285 # So say no if there are warnings
8286 if test -s conftest.err; then
8287 # Append any errors to the config.log.
8288 cat conftest.err 1>&5
8289 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291 if diff conftest.exp conftest.er2 >/dev/null; then
8292 lt_cv_prog_compiler_static_works=yes
8293 fi
8294 else
8295 lt_cv_prog_compiler_static_works=yes
8296 fi
8297 fi
8298 $RM -r conftest*
8299 LDFLAGS="$save_LDFLAGS"
8300
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8303 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8304
8305 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8306 :
8307 else
8308 lt_prog_compiler_static=
8309 fi
8310
8311
8312
8313
8314
8315
8316
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8319 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 lt_cv_prog_compiler_c_o=no
8323 $RM -r conftest 2>/dev/null
8324 mkdir conftest
8325 cd conftest
8326 mkdir out
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328
8329 lt_compiler_flag="-o out/conftest2.$ac_objext"
8330 # Insert the option either (1) after the last *FLAGS variable, or
8331 # (2) before a word containing "conftest.", or (3) at the end.
8332 # Note that $ac_compile itself does not contain backslashes and begins
8333 # with a dollar sign (not a hyphen), so the echo should work correctly.
8334 lt_compile=`echo "$ac_compile" | $SED \
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337 -e 's:$: $lt_compiler_flag:'`
8338 (eval echo "\"\$as_me:8338: $lt_compile\"" >&5)
8339 (eval "$lt_compile" 2>out/conftest.err)
8340 ac_status=$?
8341 cat out/conftest.err >&5
8342 echo "$as_me:8342: \$? = $ac_status" >&5
8343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8344 then
8345 # The compiler can only warn and ignore the option if not recognized
8346 # So say no if there are warnings
8347 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8350 lt_cv_prog_compiler_c_o=yes
8351 fi
8352 fi
8353 chmod u+w . 2>&5
8354 $RM conftest*
8355 # SGI C++ compiler will create directory out/ii_files/ for
8356 # template instantiation
8357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8358 $RM out/* && rmdir out
8359 cd ..
8360 $RM -r conftest
8361 $RM conftest*
8362
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8365 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8366
8367
8368
8369
8370
8371
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8373 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8374 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 lt_cv_prog_compiler_c_o=no
8378 $RM -r conftest 2>/dev/null
8379 mkdir conftest
8380 cd conftest
8381 mkdir out
8382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383
8384 lt_compiler_flag="-o out/conftest2.$ac_objext"
8385 # Insert the option either (1) after the last *FLAGS variable, or
8386 # (2) before a word containing "conftest.", or (3) at the end.
8387 # Note that $ac_compile itself does not contain backslashes and begins
8388 # with a dollar sign (not a hyphen), so the echo should work correctly.
8389 lt_compile=`echo "$ac_compile" | $SED \
8390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392 -e 's:$: $lt_compiler_flag:'`
8393 (eval echo "\"\$as_me:8393: $lt_compile\"" >&5)
8394 (eval "$lt_compile" 2>out/conftest.err)
8395 ac_status=$?
8396 cat out/conftest.err >&5
8397 echo "$as_me:8397: \$? = $ac_status" >&5
8398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8399 then
8400 # The compiler can only warn and ignore the option if not recognized
8401 # So say no if there are warnings
8402 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8405 lt_cv_prog_compiler_c_o=yes
8406 fi
8407 fi
8408 chmod u+w . 2>&5
8409 $RM conftest*
8410 # SGI C++ compiler will create directory out/ii_files/ for
8411 # template instantiation
8412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8413 $RM out/* && rmdir out
8414 cd ..
8415 $RM -r conftest
8416 $RM conftest*
8417
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8420 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421
8422
8423
8424
8425 hard_links="nottested"
8426 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8427 # do not overwrite the value of need_locks provided by the user
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8429 $as_echo_n "checking if we can lock with hard links... " >&6; }
8430 hard_links=yes
8431 $RM conftest*
8432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8433 touch conftest.a
8434 ln conftest.a conftest.b 2>&5 || hard_links=no
8435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8437 $as_echo "$hard_links" >&6; }
8438 if test "$hard_links" = no; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8440 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8441 need_locks=warn
8442 fi
8443 else
8444 need_locks=no
8445 fi
8446
8447
8448
8449
8450
8451
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8454
8455 runpath_var=
8456 allow_undefined_flag=
8457 always_export_symbols=no
8458 archive_cmds=
8459 archive_expsym_cmds=
8460 compiler_needs_object=no
8461 enable_shared_with_static_runtimes=no
8462 export_dynamic_flag_spec=
8463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8464 hardcode_automatic=no
8465 hardcode_direct=no
8466 hardcode_direct_absolute=no
8467 hardcode_libdir_flag_spec=
8468 hardcode_libdir_flag_spec_ld=
8469 hardcode_libdir_separator=
8470 hardcode_minus_L=no
8471 hardcode_shlibpath_var=unsupported
8472 inherit_rpath=no
8473 link_all_deplibs=unknown
8474 module_cmds=
8475 module_expsym_cmds=
8476 old_archive_from_new_cmds=
8477 old_archive_from_expsyms_cmds=
8478 thread_safe_flag_spec=
8479 whole_archive_flag_spec=
8480 # include_expsyms should be a list of space-separated symbols to be *always*
8481 # included in the symbol list
8482 include_expsyms=
8483 # exclude_expsyms can be an extended regexp of symbols to exclude
8484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8486 # as well as any symbol that contains `d'.
8487 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8489 # platforms (ab)use it in PIC code, but their linkers get confused if
8490 # the symbol is explicitly referenced. Since portable code cannot
8491 # rely on this symbol name, it's probably fine to never include it in
8492 # preloaded symbol tables.
8493 # Exclude shared library initialization/finalization symbols.
8494 extract_expsyms_cmds=
8495
8496 case $host_os in
8497 cygwin* | mingw* | pw32* | cegcc*)
8498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8499 # When not using gcc, we currently assume that we are using
8500 # Microsoft Visual C++.
8501 if test "$GCC" != yes; then
8502 with_gnu_ld=no
8503 fi
8504 ;;
8505 interix*)
8506 # we just hope/assume this is gcc and not c89 (= MSVC++)
8507 with_gnu_ld=yes
8508 ;;
8509 openbsd*)
8510 with_gnu_ld=no
8511 ;;
8512 esac
8513
8514 ld_shlibs=yes
8515 if test "$with_gnu_ld" = yes; then
8516 # If archive_cmds runs LD, not CC, wlarc should be empty
8517 wlarc='${wl}'
8518
8519 # Set some defaults for GNU ld with shared library support. These
8520 # are reset later if shared libraries are not supported. Putting them
8521 # here allows them to be overridden if necessary.
8522 runpath_var=LD_RUN_PATH
8523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8524 export_dynamic_flag_spec='${wl}--export-dynamic'
8525 # ancient GNU ld didn't support --whole-archive et. al.
8526 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8527 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8528 else
8529 whole_archive_flag_spec=
8530 fi
8531 supports_anon_versioning=no
8532 case `$LD -v 2>&1` in
8533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8536 *\ 2.11.*) ;; # other 2.11 versions
8537 *) supports_anon_versioning=yes ;;
8538 esac
8539
8540 # See if GNU ld supports shared libraries.
8541 case $host_os in
8542 aix[3-9]*)
8543 # On AIX/PPC, the GNU linker is very broken
8544 if test "$host_cpu" != ia64; then
8545 ld_shlibs=no
8546 cat <<_LT_EOF 1>&2
8547
8548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8549 *** to be unable to reliably create shared libraries on AIX.
8550 *** Therefore, libtool is disabling shared libraries support. If you
8551 *** really care for shared libraries, you may want to modify your PATH
8552 *** so that a non-GNU linker is found, and then restart.
8553
8554 _LT_EOF
8555 fi
8556 ;;
8557
8558 amigaos*)
8559 case $host_cpu in
8560 powerpc)
8561 # see comment about AmigaOS4 .so support
8562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563 archive_expsym_cmds=''
8564 ;;
8565 m68k)
8566 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)'
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_minus_L=yes
8569 ;;
8570 esac
8571 ;;
8572
8573 beos*)
8574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8575 allow_undefined_flag=unsupported
8576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8577 # support --undefined. This deserves some investigation. FIXME
8578 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 else
8580 ld_shlibs=no
8581 fi
8582 ;;
8583
8584 cygwin* | mingw* | pw32* | cegcc*)
8585 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8586 # as there is no search path for DLLs.
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 allow_undefined_flag=unsupported
8589 always_export_symbols=no
8590 enable_shared_with_static_runtimes=yes
8591 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8592
8593 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595 # If the export-symbols file already is a .def file (1st line
8596 # is EXPORTS), use it as is; otherwise, prepend...
8597 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8598 cp $export_symbols $output_objdir/$soname.def;
8599 else
8600 echo EXPORTS > $output_objdir/$soname.def;
8601 cat $export_symbols >> $output_objdir/$soname.def;
8602 fi~
8603 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8604 else
8605 ld_shlibs=no
8606 fi
8607 ;;
8608
8609 interix[3-9]*)
8610 hardcode_direct=no
8611 hardcode_shlibpath_var=no
8612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613 export_dynamic_flag_spec='${wl}-E'
8614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8615 # Instead, shared libraries are loaded at an image base (0x10000000 by
8616 # default) and relocated if they conflict, which is a slow very memory
8617 # consuming and fragmenting process. To avoid this, we pick a random,
8618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8621 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'
8622 ;;
8623
8624 gnu* | linux* | tpf* | k*bsd*-gnu)
8625 tmp_diet=no
8626 if test "$host_os" = linux-dietlibc; then
8627 case $cc_basename in
8628 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8629 esac
8630 fi
8631 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8632 && test "$tmp_diet" = no
8633 then
8634 tmp_addflag=
8635 tmp_sharedflag='-shared'
8636 case $cc_basename,$host_cpu in
8637 pgcc*) # Portland Group C compiler
8638 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'
8639 tmp_addflag=' $pic_flag'
8640 ;;
8641 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8642 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'
8643 tmp_addflag=' $pic_flag -Mnomain' ;;
8644 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8645 tmp_addflag=' -i_dynamic' ;;
8646 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8647 tmp_addflag=' -i_dynamic -nofor_main' ;;
8648 ifc* | ifort*) # Intel Fortran compiler
8649 tmp_addflag=' -nofor_main' ;;
8650 lf95*) # Lahey Fortran 8.1
8651 whole_archive_flag_spec=
8652 tmp_sharedflag='--shared' ;;
8653 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8654 tmp_sharedflag='-qmkshrobj'
8655 tmp_addflag= ;;
8656 esac
8657 case `$CC -V 2>&1 | sed 5q` in
8658 *Sun\ C*) # Sun C 5.9
8659 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'
8660 compiler_needs_object=yes
8661 tmp_sharedflag='-G' ;;
8662 *Sun\ F*) # Sun Fortran 8.3
8663 tmp_sharedflag='-G' ;;
8664 esac
8665 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666
8667 if test "x$supports_anon_versioning" = xyes; then
8668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8670 echo "local: *; };" >> $output_objdir/$libname.ver~
8671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8672 fi
8673
8674 case $cc_basename in
8675 xlf*)
8676 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8677 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8678 hardcode_libdir_flag_spec=
8679 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8680 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8681 if test "x$supports_anon_versioning" = xyes; then
8682 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8684 echo "local: *; };" >> $output_objdir/$libname.ver~
8685 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8686 fi
8687 ;;
8688 esac
8689 else
8690 ld_shlibs=no
8691 fi
8692 ;;
8693
8694 netbsd*)
8695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8696 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8697 wlarc=
8698 else
8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701 fi
8702 ;;
8703
8704 solaris*)
8705 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8706 ld_shlibs=no
8707 cat <<_LT_EOF 1>&2
8708
8709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8710 *** create shared libraries on Solaris systems. Therefore, libtool
8711 *** is disabling shared libraries support. We urge you to upgrade GNU
8712 *** binutils to release 2.9.1 or newer. Another option is to modify
8713 *** your PATH or compiler configuration so that the native linker is
8714 *** used, and then restart.
8715
8716 _LT_EOF
8717 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720 else
8721 ld_shlibs=no
8722 fi
8723 ;;
8724
8725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8726 case `$LD -v 2>&1` in
8727 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8728 ld_shlibs=no
8729 cat <<_LT_EOF 1>&2
8730
8731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8732 *** reliably create shared libraries on SCO systems. Therefore, libtool
8733 *** is disabling shared libraries support. We urge you to upgrade GNU
8734 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8735 *** your PATH or compiler configuration so that the native linker is
8736 *** used, and then restart.
8737
8738 _LT_EOF
8739 ;;
8740 *)
8741 # For security reasons, it is highly recommended that you always
8742 # use absolute paths for naming shared libraries, and exclude the
8743 # DT_RUNPATH tag from executables and libraries. But doing so
8744 # requires that you compile everything twice, which is a pain.
8745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 else
8750 ld_shlibs=no
8751 fi
8752 ;;
8753 esac
8754 ;;
8755
8756 sunos4*)
8757 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758 wlarc=
8759 hardcode_direct=yes
8760 hardcode_shlibpath_var=no
8761 ;;
8762
8763 *)
8764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767 else
8768 ld_shlibs=no
8769 fi
8770 ;;
8771 esac
8772
8773 if test "$ld_shlibs" = no; then
8774 runpath_var=
8775 hardcode_libdir_flag_spec=
8776 export_dynamic_flag_spec=
8777 whole_archive_flag_spec=
8778 fi
8779 else
8780 # PORTME fill in a description of your system's linker (not GNU ld)
8781 case $host_os in
8782 aix3*)
8783 allow_undefined_flag=unsupported
8784 always_export_symbols=yes
8785 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'
8786 # Note: this linker hardcodes the directories in LIBPATH if there
8787 # are no directories specified by -L.
8788 hardcode_minus_L=yes
8789 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8790 # Neither direct hardcoding nor static linking is supported with a
8791 # broken collect2.
8792 hardcode_direct=unsupported
8793 fi
8794 ;;
8795
8796 aix[4-9]*)
8797 if test "$host_cpu" = ia64; then
8798 # On IA64, the linker does run time linking by default, so we don't
8799 # have to do anything special.
8800 aix_use_runtimelinking=no
8801 exp_sym_flag='-Bexport'
8802 no_entry_flag=""
8803 else
8804 # If we're using GNU nm, then we don't want the "-C" option.
8805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8807 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'
8808 else
8809 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'
8810 fi
8811 aix_use_runtimelinking=no
8812
8813 # Test if we are trying to use run time linking or normal
8814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8815 # need to do runtime linking.
8816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8817 for ld_flag in $LDFLAGS; do
8818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8819 aix_use_runtimelinking=yes
8820 break
8821 fi
8822 done
8823 ;;
8824 esac
8825
8826 exp_sym_flag='-bexport'
8827 no_entry_flag='-bnoentry'
8828 fi
8829
8830 # When large executables or shared objects are built, AIX ld can
8831 # have problems creating the table of contents. If linking a library
8832 # or program results in "error TOC overflow" add -mminimal-toc to
8833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8835
8836 archive_cmds=''
8837 hardcode_direct=yes
8838 hardcode_direct_absolute=yes
8839 hardcode_libdir_separator=':'
8840 link_all_deplibs=yes
8841 file_list_spec='${wl}-f,'
8842
8843 if test "$GCC" = yes; then
8844 case $host_os in aix4.[012]|aix4.[012].*)
8845 # We only want to do this on AIX 4.2 and lower, the check
8846 # below for broken collect2 doesn't work under 4.3+
8847 collect2name=`${CC} -print-prog-name=collect2`
8848 if test -f "$collect2name" &&
8849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8850 then
8851 # We have reworked collect2
8852 :
8853 else
8854 # We have old collect2
8855 hardcode_direct=unsupported
8856 # It fails to find uninstalled libraries when the uninstalled
8857 # path is not listed in the libpath. Setting hardcode_minus_L
8858 # to unsupported forces relinking
8859 hardcode_minus_L=yes
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_libdir_separator=
8862 fi
8863 ;;
8864 esac
8865 shared_flag='-shared'
8866 if test "$aix_use_runtimelinking" = yes; then
8867 shared_flag="$shared_flag "'${wl}-G'
8868 fi
8869 link_all_deplibs=no
8870 else
8871 # not using gcc
8872 if test "$host_cpu" = ia64; then
8873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8874 # chokes on -Wl,-G. The following line is correct:
8875 shared_flag='-G'
8876 else
8877 if test "$aix_use_runtimelinking" = yes; then
8878 shared_flag='${wl}-G'
8879 else
8880 shared_flag='${wl}-bM:SRE'
8881 fi
8882 fi
8883 fi
8884
8885 export_dynamic_flag_spec='${wl}-bexpall'
8886 # It seems that -bexpall does not export symbols beginning with
8887 # underscore (_), so it is better to generate a list of symbols to export.
8888 always_export_symbols=yes
8889 if test "$aix_use_runtimelinking" = yes; then
8890 # Warning - without using the other runtime loading flags (-brtl),
8891 # -berok will link without error, but may produce a broken library.
8892 allow_undefined_flag='-berok'
8893 # Determine the default libpath from the value encoded in an
8894 # empty executable.
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897
8898 int
8899 main ()
8900 {
8901
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8907
8908 lt_aix_libpath_sed='
8909 /Import File Strings/,/^$/ {
8910 /^0/ {
8911 s/^0 *\(.*\)$/\1/
8912 p
8913 }
8914 }'
8915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916 # Check for a 64-bit object if we didn't find anything.
8917 if test -z "$aix_libpath"; then
8918 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919 fi
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924
8925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926 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"
8927 else
8928 if test "$host_cpu" = ia64; then
8929 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8930 allow_undefined_flag="-z nodefs"
8931 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"
8932 else
8933 # Determine the default libpath from the value encoded in an
8934 # empty executable.
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937
8938 int
8939 main ()
8940 {
8941
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947
8948 lt_aix_libpath_sed='
8949 /Import File Strings/,/^$/ {
8950 /^0/ {
8951 s/^0 *\(.*\)$/\1/
8952 p
8953 }
8954 }'
8955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8956 # Check for a 64-bit object if we didn't find anything.
8957 if test -z "$aix_libpath"; then
8958 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 fi
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8964
8965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966 # Warning - without using the other run time loading flags,
8967 # -berok will link without error, but may produce a broken library.
8968 no_undefined_flag=' ${wl}-bernotok'
8969 allow_undefined_flag=' ${wl}-berok'
8970 # Exported symbols can be pulled into shared objects from archives
8971 whole_archive_flag_spec='$convenience'
8972 archive_cmds_need_lc=yes
8973 # This is similar to how AIX traditionally builds its shared libraries.
8974 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'
8975 fi
8976 fi
8977 ;;
8978
8979 amigaos*)
8980 case $host_cpu in
8981 powerpc)
8982 # see comment about AmigaOS4 .so support
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds=''
8985 ;;
8986 m68k)
8987 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)'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_minus_L=yes
8990 ;;
8991 esac
8992 ;;
8993
8994 bsdi[45]*)
8995 export_dynamic_flag_spec=-rdynamic
8996 ;;
8997
8998 cygwin* | mingw* | pw32* | cegcc*)
8999 # When not using gcc, we currently assume that we are using
9000 # Microsoft Visual C++.
9001 # hardcode_libdir_flag_spec is actually meaningless, as there is
9002 # no search path for DLLs.
9003 hardcode_libdir_flag_spec=' '
9004 allow_undefined_flag=unsupported
9005 # Tell ltmain to make .lib files, not .a files.
9006 libext=lib
9007 # Tell ltmain to make .dll files, not .so files.
9008 shrext_cmds=".dll"
9009 # FIXME: Setting linknames here is a bad hack.
9010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9011 # The linker will automatically build a .lib file if we build a DLL.
9012 old_archive_from_new_cmds='true'
9013 # FIXME: Should let the user specify the lib program.
9014 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9015 fix_srcfile_path='`cygpath -w "$srcfile"`'
9016 enable_shared_with_static_runtimes=yes
9017 ;;
9018
9019 darwin* | rhapsody*)
9020
9021
9022 archive_cmds_need_lc=no
9023 hardcode_direct=no
9024 hardcode_automatic=yes
9025 hardcode_shlibpath_var=unsupported
9026 whole_archive_flag_spec=''
9027 link_all_deplibs=yes
9028 allow_undefined_flag="$_lt_dar_allow_undefined"
9029 case $cc_basename in
9030 ifort*) _lt_dar_can_shared=yes ;;
9031 *) _lt_dar_can_shared=$GCC ;;
9032 esac
9033 if test "$_lt_dar_can_shared" = "yes"; then
9034 output_verbose_link_cmd=echo
9035 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9036 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9037 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}"
9038 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}"
9039
9040 else
9041 ld_shlibs=no
9042 fi
9043
9044 ;;
9045
9046 dgux*)
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 hardcode_shlibpath_var=no
9050 ;;
9051
9052 freebsd1*)
9053 ld_shlibs=no
9054 ;;
9055
9056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9057 # support. Future versions do this automatically, but an explicit c++rt0.o
9058 # does not break anything, and helps significantly (at the cost of a little
9059 # extra space).
9060 freebsd2.2*)
9061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9062 hardcode_libdir_flag_spec='-R$libdir'
9063 hardcode_direct=yes
9064 hardcode_shlibpath_var=no
9065 ;;
9066
9067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9068 freebsd2*)
9069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_direct=yes
9071 hardcode_minus_L=yes
9072 hardcode_shlibpath_var=no
9073 ;;
9074
9075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9076 freebsd* | dragonfly*)
9077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9078 hardcode_libdir_flag_spec='-R$libdir'
9079 hardcode_direct=yes
9080 hardcode_shlibpath_var=no
9081 ;;
9082
9083 hpux9*)
9084 if test "$GCC" = yes; then
9085 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'
9086 else
9087 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'
9088 fi
9089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9090 hardcode_libdir_separator=:
9091 hardcode_direct=yes
9092
9093 # hardcode_minus_L: Not really in the search PATH,
9094 # but as the default location of the library.
9095 hardcode_minus_L=yes
9096 export_dynamic_flag_spec='${wl}-E'
9097 ;;
9098
9099 hpux10*)
9100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102 else
9103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9104 fi
9105 if test "$with_gnu_ld" = no; then
9106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9107 hardcode_libdir_flag_spec_ld='+b $libdir'
9108 hardcode_libdir_separator=:
9109 hardcode_direct=yes
9110 hardcode_direct_absolute=yes
9111 export_dynamic_flag_spec='${wl}-E'
9112 # hardcode_minus_L: Not really in the search PATH,
9113 # but as the default location of the library.
9114 hardcode_minus_L=yes
9115 fi
9116 ;;
9117
9118 hpux11*)
9119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9120 case $host_cpu in
9121 hppa*64*)
9122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 ;;
9124 ia64*)
9125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9126 ;;
9127 *)
9128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9129 ;;
9130 esac
9131 else
9132 case $host_cpu in
9133 hppa*64*)
9134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 ;;
9136 ia64*)
9137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9138 ;;
9139 *)
9140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 esac
9143 fi
9144 if test "$with_gnu_ld" = no; then
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_separator=:
9147
9148 case $host_cpu in
9149 hppa*64*|ia64*)
9150 hardcode_direct=no
9151 hardcode_shlibpath_var=no
9152 ;;
9153 *)
9154 hardcode_direct=yes
9155 hardcode_direct_absolute=yes
9156 export_dynamic_flag_spec='${wl}-E'
9157
9158 # hardcode_minus_L: Not really in the search PATH,
9159 # but as the default location of the library.
9160 hardcode_minus_L=yes
9161 ;;
9162 esac
9163 fi
9164 ;;
9165
9166 irix5* | irix6* | nonstopux*)
9167 if test "$GCC" = yes; then
9168 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'
9169 # Try to use the -exported_symbol ld option, if it does not
9170 # work, assume that -exports_file does not work either and
9171 # implicitly export all symbols.
9172 save_LDFLAGS="$LDFLAGS"
9173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176 int foo(void) {}
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179 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'
9180
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 LDFLAGS="$save_LDFLAGS"
9185 else
9186 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'
9187 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'
9188 fi
9189 archive_cmds_need_lc='no'
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 hardcode_libdir_separator=:
9192 inherit_rpath=yes
9193 link_all_deplibs=yes
9194 ;;
9195
9196 netbsd*)
9197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9199 else
9200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9201 fi
9202 hardcode_libdir_flag_spec='-R$libdir'
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
9206
9207 newsos6)
9208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 hardcode_shlibpath_var=no
9213 ;;
9214
9215 *nto* | *qnx*)
9216 ;;
9217
9218 openbsd*)
9219 if test -f /usr/libexec/ld.so; then
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 hardcode_direct_absolute=yes
9223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9227 export_dynamic_flag_spec='${wl}-E'
9228 else
9229 case $host_os in
9230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 ;;
9234 *)
9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9237 ;;
9238 esac
9239 fi
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244
9245 os2*)
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_minus_L=yes
9248 allow_undefined_flag=unsupported
9249 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'
9250 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9251 ;;
9252
9253 osf3*)
9254 if test "$GCC" = yes; then
9255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9256 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'
9257 else
9258 allow_undefined_flag=' -expect_unresolved \*'
9259 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'
9260 fi
9261 archive_cmds_need_lc='no'
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 hardcode_libdir_separator=:
9264 ;;
9265
9266 osf4* | osf5*) # as osf3* with the addition of -msym flag
9267 if test "$GCC" = yes; then
9268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9269 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'
9270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9271 else
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9274 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~
9275 $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'
9276
9277 # Both c and cxx compiler support -rpath directly
9278 hardcode_libdir_flag_spec='-rpath $libdir'
9279 fi
9280 archive_cmds_need_lc='no'
9281 hardcode_libdir_separator=:
9282 ;;
9283
9284 solaris*)
9285 no_undefined_flag=' -z defs'
9286 if test "$GCC" = yes; then
9287 wlarc='${wl}'
9288 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9291 else
9292 case `$CC -V 2>&1` in
9293 *"Compilers 5.0"*)
9294 wlarc=''
9295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9298 ;;
9299 *)
9300 wlarc='${wl}'
9301 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9303 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9304 ;;
9305 esac
9306 fi
9307 hardcode_libdir_flag_spec='-R$libdir'
9308 hardcode_shlibpath_var=no
9309 case $host_os in
9310 solaris2.[0-5] | solaris2.[0-5].*) ;;
9311 *)
9312 # The compiler driver will combine and reorder linker options,
9313 # but understands `-z linker_flag'. GCC discards it without `$wl',
9314 # but is careful enough not to reorder.
9315 # Supported since Solaris 2.6 (maybe 2.5.1?)
9316 if test "$GCC" = yes; then
9317 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9318 else
9319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9320 fi
9321 ;;
9322 esac
9323 link_all_deplibs=yes
9324 ;;
9325
9326 sunos4*)
9327 if test "x$host_vendor" = xsequent; then
9328 # Use $CC to link under sequent, because it throws in some extra .o
9329 # files that make .init and .fini sections work.
9330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9331 else
9332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9333 fi
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_direct=yes
9336 hardcode_minus_L=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 sysv4)
9341 case $host_vendor in
9342 sni)
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes # is this really true???
9345 ;;
9346 siemens)
9347 ## LD is ld it makes a PLAMLIB
9348 ## CC just makes a GrossModule.
9349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9350 reload_cmds='$CC -r -o $output$reload_objs'
9351 hardcode_direct=no
9352 ;;
9353 motorola)
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9356 ;;
9357 esac
9358 runpath_var='LD_RUN_PATH'
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 sysv4.3*)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_shlibpath_var=no
9365 export_dynamic_flag_spec='-Bexport'
9366 ;;
9367
9368 sysv4*MP*)
9369 if test -d /usr/nec; then
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_shlibpath_var=no
9372 runpath_var=LD_RUN_PATH
9373 hardcode_runpath_var=yes
9374 ld_shlibs=yes
9375 fi
9376 ;;
9377
9378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9379 no_undefined_flag='${wl}-z,text'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 runpath_var='LD_RUN_PATH'
9383
9384 if test "$GCC" = yes; then
9385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 else
9388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 fi
9391 ;;
9392
9393 sysv5* | sco3.2v5* | sco5v6*)
9394 # Note: We can NOT use -z defs as we might desire, because we do not
9395 # link with -lc, and that would cause any symbols used from libc to
9396 # always be unresolved, which means just about no library would
9397 # ever link correctly. If we're not using GNU ld we use -z text
9398 # though, which does catch some bad symbols but isn't as heavy-handed
9399 # as -z defs.
9400 no_undefined_flag='${wl}-z,text'
9401 allow_undefined_flag='${wl}-z,nodefs'
9402 archive_cmds_need_lc=no
9403 hardcode_shlibpath_var=no
9404 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9405 hardcode_libdir_separator=':'
9406 link_all_deplibs=yes
9407 export_dynamic_flag_spec='${wl}-Bexport'
9408 runpath_var='LD_RUN_PATH'
9409
9410 if test "$GCC" = yes; then
9411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 fi
9417 ;;
9418
9419 uts4*)
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 *)
9426 ld_shlibs=no
9427 ;;
9428 esac
9429
9430 if test x$host_vendor = xsni; then
9431 case $host in
9432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9433 export_dynamic_flag_spec='${wl}-Blargedynsym'
9434 ;;
9435 esac
9436 fi
9437 fi
9438
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9440 $as_echo "$ld_shlibs" >&6; }
9441 test "$ld_shlibs" = no && can_build_shared=no
9442
9443 with_gnu_ld=$with_gnu_ld
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 #
9460 # Do we need to explicitly link libc?
9461 #
9462 case "x$archive_cmds_need_lc" in
9463 x|xyes)
9464 # Assume -lc should be added
9465 archive_cmds_need_lc=yes
9466
9467 if test "$enable_shared" = yes && test "$GCC" = yes; then
9468 case $archive_cmds in
9469 *'~'*)
9470 # FIXME: we may have to deal with multi-command sequences.
9471 ;;
9472 '$CC '*)
9473 # Test whether the compiler implicitly links with -lc since on some
9474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9475 # to ld, don't add -lc before -lgcc.
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9478 $RM conftest*
9479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480
9481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9482 (eval $ac_compile) 2>&5
9483 ac_status=$?
9484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9485 test $ac_status = 0; } 2>conftest.err; then
9486 soname=conftest
9487 lib=conftest
9488 libobjs=conftest.$ac_objext
9489 deplibs=
9490 wl=$lt_prog_compiler_wl
9491 pic_flag=$lt_prog_compiler_pic
9492 compiler_flags=-v
9493 linker_flags=-v
9494 verstring=
9495 output_objdir=.
9496 libname=conftest
9497 lt_save_allow_undefined_flag=$allow_undefined_flag
9498 allow_undefined_flag=
9499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9500 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9501 ac_status=$?
9502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9503 test $ac_status = 0; }
9504 then
9505 archive_cmds_need_lc=no
9506 else
9507 archive_cmds_need_lc=yes
9508 fi
9509 allow_undefined_flag=$lt_save_allow_undefined_flag
9510 else
9511 cat conftest.err 1>&5
9512 fi
9513 $RM conftest*
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9515 $as_echo "$archive_cmds_need_lc" >&6; }
9516 ;;
9517 esac
9518 fi
9519 ;;
9520 esac
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
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9679 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9680
9681 if test "$GCC" = yes; then
9682 case $host_os in
9683 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9684 *) lt_awk_arg="/^libraries:/" ;;
9685 esac
9686 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9687 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9688 # if the path contains ";" then we assume it to be the separator
9689 # otherwise default to the standard path separator (i.e. ":") - it is
9690 # assumed that no part of a normal pathname contains ";" but that should
9691 # okay in the real world where ";" in dirpaths is itself problematic.
9692 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9693 else
9694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9695 fi
9696 # Ok, now we have the path, separated by spaces, we can step through it
9697 # and add multilib dir if necessary.
9698 lt_tmp_lt_search_path_spec=
9699 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9700 for lt_sys_path in $lt_search_path_spec; do
9701 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9703 else
9704 test -d "$lt_sys_path" && \
9705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9706 fi
9707 done
9708 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9709 BEGIN {RS=" "; FS="/|\n";} {
9710 lt_foo="";
9711 lt_count=0;
9712 for (lt_i = NF; lt_i > 0; lt_i--) {
9713 if ($lt_i != "" && $lt_i != ".") {
9714 if ($lt_i == "..") {
9715 lt_count++;
9716 } else {
9717 if (lt_count == 0) {
9718 lt_foo="/" $lt_i lt_foo;
9719 } else {
9720 lt_count--;
9721 }
9722 }
9723 }
9724 }
9725 if (lt_foo != "") { lt_freq[lt_foo]++; }
9726 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9727 }'`
9728 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9729 else
9730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9731 fi
9732 library_names_spec=
9733 libname_spec='lib$name'
9734 soname_spec=
9735 shrext_cmds=".so"
9736 postinstall_cmds=
9737 postuninstall_cmds=
9738 finish_cmds=
9739 finish_eval=
9740 shlibpath_var=
9741 shlibpath_overrides_runpath=unknown
9742 version_type=none
9743 dynamic_linker="$host_os ld.so"
9744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9745 need_lib_prefix=unknown
9746 hardcode_into_libs=no
9747
9748 # when you set need_version to no, make sure it does not cause -set_version
9749 # flags to be left without arguments
9750 need_version=unknown
9751
9752 case $host_os in
9753 aix3*)
9754 version_type=linux
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9756 shlibpath_var=LIBPATH
9757
9758 # AIX 3 has no versioning support, so we append a major version to the name.
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 ;;
9761
9762 aix[4-9]*)
9763 version_type=linux
9764 need_lib_prefix=no
9765 need_version=no
9766 hardcode_into_libs=yes
9767 if test "$host_cpu" = ia64; then
9768 # AIX 5 supports IA64
9769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 else
9772 # With GCC up to 2.95.x, collect2 would create an import file
9773 # for dependence libraries. The import file would start with
9774 # the line `#! .'. This would cause the generated library to
9775 # depend on `.', always an invalid library. This was fixed in
9776 # development snapshots of GCC prior to 3.0.
9777 case $host_os in
9778 aix4 | aix4.[01] | aix4.[01].*)
9779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9780 echo ' yes '
9781 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9782 :
9783 else
9784 can_build_shared=no
9785 fi
9786 ;;
9787 esac
9788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9789 # soname into executable. Probably we can add versioning support to
9790 # collect2, so additional links can be useful in future.
9791 if test "$aix_use_runtimelinking" = yes; then
9792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9793 # instead of lib<name>.a to let people know that these are not
9794 # typical AIX shared libraries.
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 else
9797 # We preserve .a as extension for shared libraries through AIX4.2
9798 # and later when we are not doing run time linking.
9799 library_names_spec='${libname}${release}.a $libname.a'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 fi
9802 shlibpath_var=LIBPATH
9803 fi
9804 ;;
9805
9806 amigaos*)
9807 case $host_cpu in
9808 powerpc)
9809 # Since July 2007 AmigaOS4 officially supports .so libraries.
9810 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 ;;
9813 m68k)
9814 library_names_spec='$libname.ixlibrary $libname.a'
9815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9816 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'
9817 ;;
9818 esac
9819 ;;
9820
9821 beos*)
9822 library_names_spec='${libname}${shared_ext}'
9823 dynamic_linker="$host_os ld.so"
9824 shlibpath_var=LIBRARY_PATH
9825 ;;
9826
9827 bsdi[45]*)
9828 version_type=linux
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9836 # the default ld.so.conf also contains /usr/contrib/lib and
9837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9838 # libtool to hard-code these into programs
9839 ;;
9840
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 version_type=windows
9843 shrext_cmds=".dll"
9844 need_version=no
9845 need_lib_prefix=no
9846
9847 case $GCC,$host_os in
9848 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9849 library_names_spec='$libname.dll.a'
9850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9851 postinstall_cmds='base_file=`basename \${file}`~
9852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9853 dldir=$destdir/`dirname \$dlpath`~
9854 test -d \$dldir || mkdir -p \$dldir~
9855 $install_prog $dir/$dlname \$dldir/$dlname~
9856 chmod a+x \$dldir/$dlname~
9857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9859 fi'
9860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9861 dlpath=$dir/\$dldll~
9862 $RM \$dlpath'
9863 shlibpath_overrides_runpath=yes
9864
9865 case $host_os in
9866 cygwin*)
9867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9870 ;;
9871 mingw* | cegcc*)
9872 # MinGW DLLs use traditional 'lib' prefix
9873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9875 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9876 # It is most probably a Windows format PATH printed by
9877 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9878 # path with ; separators, and with drive letters. We can handle the
9879 # drive letters (cygwin fileutils understands them), so leave them,
9880 # especially as we might pass files found there to a mingw objdump,
9881 # which wouldn't understand a cygwinified path. Ahh.
9882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9883 else
9884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9885 fi
9886 ;;
9887 pw32*)
9888 # pw32 DLLs use 'pw' prefix rather than 'lib'
9889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 ;;
9891 esac
9892 ;;
9893
9894 *)
9895 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9896 ;;
9897 esac
9898 dynamic_linker='Win32 ld.exe'
9899 # FIXME: first we should search . and the directory the executable is in
9900 shlibpath_var=PATH
9901 ;;
9902
9903 darwin* | rhapsody*)
9904 dynamic_linker="$host_os dyld"
9905 version_type=darwin
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9909 soname_spec='${libname}${release}${major}$shared_ext'
9910 shlibpath_overrides_runpath=yes
9911 shlibpath_var=DYLD_LIBRARY_PATH
9912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9913
9914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9916 ;;
9917
9918 dgux*)
9919 version_type=linux
9920 need_lib_prefix=no
9921 need_version=no
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 shlibpath_var=LD_LIBRARY_PATH
9925 ;;
9926
9927 freebsd1*)
9928 dynamic_linker=no
9929 ;;
9930
9931 freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9936 else
9937 case $host_os in
9938 freebsd[123]*) objformat=aout ;;
9939 *) objformat=elf ;;
9940 esac
9941 fi
9942 version_type=freebsd-$objformat
9943 case $version_type in
9944 freebsd-elf*)
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946 need_version=no
9947 need_lib_prefix=no
9948 ;;
9949 freebsd-*)
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951 need_version=yes
9952 ;;
9953 esac
9954 shlibpath_var=LD_LIBRARY_PATH
9955 case $host_os in
9956 freebsd2*)
9957 shlibpath_overrides_runpath=yes
9958 ;;
9959 freebsd3.[01]* | freebsdelf3.[01]*)
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9967 ;;
9968 *) # from 4.6 on, and DragonFly
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9971 ;;
9972 esac
9973 ;;
9974
9975 gnu*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 hardcode_into_libs=yes
9983 ;;
9984
9985 hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9988 version_type=sunos
9989 need_lib_prefix=no
9990 need_version=no
9991 case $host_cpu in
9992 ia64*)
9993 shrext_cmds='.so'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 else
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004 fi
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006 ;;
10007 hppa*64*)
10008 shrext_cmds='.sl'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017 ;;
10018 *)
10019 shrext_cmds='.sl'
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 ;;
10026 esac
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028 postinstall_cmds='chmod 555 $lib'
10029 ;;
10030
10031 interix[3-9]*)
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10041 ;;
10042
10043 irix5* | irix6* | nonstopux*)
10044 case $host_os in
10045 nonstopux*) version_type=nonstopux ;;
10046 *)
10047 if test "$lt_cv_prog_gnu_ld" = yes; then
10048 version_type=linux
10049 else
10050 version_type=irix
10051 fi ;;
10052 esac
10053 need_lib_prefix=no
10054 need_version=no
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 case $host_os in
10058 irix5* | nonstopux*)
10059 libsuff= shlibsuff=
10060 ;;
10061 *)
10062 case $LD in # libtool.m4 will add one of these switches to LD
10063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064 libsuff= shlibsuff= libmagic=32-bit;;
10065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066 libsuff=32 shlibsuff=N32 libmagic=N32;;
10067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069 *) libsuff= shlibsuff= libmagic=never-match;;
10070 esac
10071 ;;
10072 esac
10073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074 shlibpath_overrides_runpath=no
10075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077 hardcode_into_libs=yes
10078 ;;
10079
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux*oldld* | linux*aout* | linux*coff*)
10082 dynamic_linker=no
10083 ;;
10084
10085 # This must be Linux ELF.
10086 linux* | k*bsd*-gnu)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 # Some binutils ld are patched to set DT_RUNPATH
10096 save_LDFLAGS=$LDFLAGS
10097 save_libdir=$libdir
10098 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10099 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102
10103 int
10104 main ()
10105 {
10106
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10113 shlibpath_overrides_runpath=yes
10114 fi
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LDFLAGS=$save_LDFLAGS
10119 libdir=$save_libdir
10120
10121 # This implies no fast_install, which is unacceptable.
10122 # Some rework will be needed to allow for fast_install
10123 # before this can be enabled.
10124 hardcode_into_libs=yes
10125
10126 # find out which ABI we are using
10127 libsuff=
10128 case "$host_cpu" in
10129 x86_64*|s390x*|powerpc64*)
10130 echo '#line 10130 "configure"' > conftest.$ac_ext
10131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10132 (eval $ac_compile) 2>&5
10133 ac_status=$?
10134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135 test $ac_status = 0; }; then
10136 case `/usr/bin/file conftest.$ac_objext` in
10137 *64-bit*)
10138 libsuff=64
10139 ;;
10140 esac
10141 fi
10142 rm -rf conftest*
10143 ;;
10144 esac
10145
10146 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10147
10148 # Append ld.so.conf contents to the search path
10149 if test -f /etc/ld.so.conf; then
10150 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' ' '`
10151 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10152 fi
10153
10154 # We used to test for /lib/ld.so.1 and disable shared libraries on
10155 # powerpc, because MkLinux only supported shared libraries with the
10156 # GNU dynamic linker. Since this was broken with cross compilers,
10157 # most powerpc-linux boxes support dynamic linking these days and
10158 # people can always --disable-shared, the test was removed, and we
10159 # assume the GNU/Linux dynamic linker is in use.
10160 dynamic_linker='GNU/Linux ld.so'
10161 ;;
10162
10163 netbsd*)
10164 version_type=sunos
10165 need_lib_prefix=no
10166 need_version=no
10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10170 dynamic_linker='NetBSD (a.out) ld.so'
10171 else
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 dynamic_linker='NetBSD ld.elf_so'
10175 fi
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10179 ;;
10180
10181 newsos6)
10182 version_type=linux
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=yes
10186 ;;
10187
10188 *nto* | *qnx*)
10189 version_type=qnx
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=no
10196 hardcode_into_libs=yes
10197 dynamic_linker='ldqnx.so'
10198 ;;
10199
10200 openbsd*)
10201 version_type=sunos
10202 sys_lib_dlsearch_path_spec="/usr/lib"
10203 need_lib_prefix=no
10204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10205 case $host_os in
10206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10207 *) need_version=no ;;
10208 esac
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10213 case $host_os in
10214 openbsd2.[89] | openbsd2.[89].*)
10215 shlibpath_overrides_runpath=no
10216 ;;
10217 *)
10218 shlibpath_overrides_runpath=yes
10219 ;;
10220 esac
10221 else
10222 shlibpath_overrides_runpath=yes
10223 fi
10224 ;;
10225
10226 os2*)
10227 libname_spec='$name'
10228 shrext_cmds=".dll"
10229 need_lib_prefix=no
10230 library_names_spec='$libname${shared_ext} $libname.a'
10231 dynamic_linker='OS/2 ld.exe'
10232 shlibpath_var=LIBPATH
10233 ;;
10234
10235 osf3* | osf4* | osf5*)
10236 version_type=osf
10237 need_lib_prefix=no
10238 need_version=no
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244 ;;
10245
10246 rdos*)
10247 dynamic_linker=no
10248 ;;
10249
10250 solaris*)
10251 version_type=linux
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 hardcode_into_libs=yes
10259 # ldd complains unless libraries are executable
10260 postinstall_cmds='chmod +x $lib'
10261 ;;
10262
10263 sunos4*)
10264 version_type=sunos
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=yes
10269 if test "$with_gnu_ld" = yes; then
10270 need_lib_prefix=no
10271 fi
10272 need_version=yes
10273 ;;
10274
10275 sysv4 | sysv4.3*)
10276 version_type=linux
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 case $host_vendor in
10281 sni)
10282 shlibpath_overrides_runpath=no
10283 need_lib_prefix=no
10284 runpath_var=LD_RUN_PATH
10285 ;;
10286 siemens)
10287 need_lib_prefix=no
10288 ;;
10289 motorola)
10290 need_lib_prefix=no
10291 need_version=no
10292 shlibpath_overrides_runpath=no
10293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10294 ;;
10295 esac
10296 ;;
10297
10298 sysv4*MP*)
10299 if test -d /usr/nec ;then
10300 version_type=linux
10301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10302 soname_spec='$libname${shared_ext}.$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 fi
10305 ;;
10306
10307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10308 version_type=freebsd-elf
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 if test "$with_gnu_ld" = yes; then
10317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10318 else
10319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10320 case $host_os in
10321 sco3.2v5*)
10322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10323 ;;
10324 esac
10325 fi
10326 sys_lib_dlsearch_path_spec='/usr/lib'
10327 ;;
10328
10329 tpf*)
10330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=no
10337 hardcode_into_libs=yes
10338 ;;
10339
10340 uts4*)
10341 version_type=linux
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 ;;
10346
10347 *)
10348 dynamic_linker=no
10349 ;;
10350 esac
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10352 $as_echo "$dynamic_linker" >&6; }
10353 test "$dynamic_linker" = no && can_build_shared=no
10354
10355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10356 if test "$GCC" = yes; then
10357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358 fi
10359
10360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10362 fi
10363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10365 fi
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10454 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10455 hardcode_action=
10456 if test -n "$hardcode_libdir_flag_spec" ||
10457 test -n "$runpath_var" ||
10458 test "X$hardcode_automatic" = "Xyes" ; then
10459
10460 # We can hardcode non-existent directories.
10461 if test "$hardcode_direct" != no &&
10462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10463 # have to relink, otherwise we might link with an installed library
10464 # when we should be linking with a yet-to-be-installed one
10465 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10466 test "$hardcode_minus_L" != no; then
10467 # Linking always hardcodes the temporary library directory.
10468 hardcode_action=relink
10469 else
10470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10471 hardcode_action=immediate
10472 fi
10473 else
10474 # We cannot hardcode anything, or else we can only hardcode existing
10475 # directories.
10476 hardcode_action=unsupported
10477 fi
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10479 $as_echo "$hardcode_action" >&6; }
10480
10481 if test "$hardcode_action" = relink ||
10482 test "$inherit_rpath" = yes; then
10483 # Fast installation is not supported
10484 enable_fast_install=no
10485 elif test "$shlibpath_overrides_runpath" = yes ||
10486 test "$enable_shared" = no; then
10487 # Fast installation is not necessary
10488 enable_fast_install=needless
10489 fi
10490
10491
10492
10493
10494
10495
10496 if test "x$enable_dlopen" != xyes; then
10497 enable_dlopen=unknown
10498 enable_dlopen_self=unknown
10499 enable_dlopen_self_static=unknown
10500 else
10501 lt_cv_dlopen=no
10502 lt_cv_dlopen_libs=
10503
10504 case $host_os in
10505 beos*)
10506 lt_cv_dlopen="load_add_on"
10507 lt_cv_dlopen_libs=
10508 lt_cv_dlopen_self=yes
10509 ;;
10510
10511 mingw* | pw32* | cegcc*)
10512 lt_cv_dlopen="LoadLibrary"
10513 lt_cv_dlopen_libs=
10514 ;;
10515
10516 cygwin*)
10517 lt_cv_dlopen="dlopen"
10518 lt_cv_dlopen_libs=
10519 ;;
10520
10521 darwin*)
10522 # if libdl is installed we need to link against it
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10524 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-ldl $LIBS"
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char dlopen ();
10540 int
10541 main ()
10542 {
10543 return dlopen ();
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 ac_cv_lib_dl_dlopen=yes
10550 else
10551 ac_cv_lib_dl_dlopen=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10558 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10559 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561 else
10562
10563 lt_cv_dlopen="dyld"
10564 lt_cv_dlopen_libs=
10565 lt_cv_dlopen_self=yes
10566
10567 fi
10568
10569 ;;
10570
10571 *)
10572 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10573 if test "x$ac_cv_func_shl_load" = x""yes; then :
10574 lt_cv_dlopen="shl_load"
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10577 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10578 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-ldld $LIBS"
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char shl_load ();
10593 int
10594 main ()
10595 {
10596 return shl_load ();
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_lib_dld_shl_load=yes
10603 else
10604 ac_cv_lib_dld_shl_load=no
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10611 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10612 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10613 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10614 else
10615 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10616 if test "x$ac_cv_func_dlopen" = x""yes; then :
10617 lt_cv_dlopen="dlopen"
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10620 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ldl $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char dlopen ();
10636 int
10637 main ()
10638 {
10639 return dlopen ();
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_lib_dl_dlopen=yes
10646 else
10647 ac_cv_lib_dl_dlopen=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10654 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10655 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10657 else
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10659 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10660 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-lsvld $LIBS"
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char dlopen ();
10675 int
10676 main ()
10677 {
10678 return dlopen ();
10679 ;
10680 return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 ac_cv_lib_svld_dlopen=yes
10685 else
10686 ac_cv_lib_svld_dlopen=no
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10693 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10694 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10696 else
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10698 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10699 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-ldld $LIBS"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char dld_link ();
10714 int
10715 main ()
10716 {
10717 return dld_link ();
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 ac_cv_lib_dld_dld_link=yes
10724 else
10725 ac_cv_lib_dld_dld_link=no
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10732 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10733 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10734 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749
10750 fi
10751
10752 ;;
10753 esac
10754
10755 if test "x$lt_cv_dlopen" != xno; then
10756 enable_dlopen=yes
10757 else
10758 enable_dlopen=no
10759 fi
10760
10761 case $lt_cv_dlopen in
10762 dlopen)
10763 save_CPPFLAGS="$CPPFLAGS"
10764 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10765
10766 save_LDFLAGS="$LDFLAGS"
10767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10768
10769 save_LIBS="$LIBS"
10770 LIBS="$lt_cv_dlopen_libs $LIBS"
10771
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10773 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10774 if test "${lt_cv_dlopen_self+set}" = set; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test "$cross_compiling" = yes; then :
10778 lt_cv_dlopen_self=cross
10779 else
10780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781 lt_status=$lt_dlunknown
10782 cat > conftest.$ac_ext <<_LT_EOF
10783 #line 10783 "configure"
10784 #include "confdefs.h"
10785
10786 #if HAVE_DLFCN_H
10787 #include <dlfcn.h>
10788 #endif
10789
10790 #include <stdio.h>
10791
10792 #ifdef RTLD_GLOBAL
10793 # define LT_DLGLOBAL RTLD_GLOBAL
10794 #else
10795 # ifdef DL_GLOBAL
10796 # define LT_DLGLOBAL DL_GLOBAL
10797 # else
10798 # define LT_DLGLOBAL 0
10799 # endif
10800 #endif
10801
10802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803 find out it does not work in some platform. */
10804 #ifndef LT_DLLAZY_OR_NOW
10805 # ifdef RTLD_LAZY
10806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10807 # else
10808 # ifdef DL_LAZY
10809 # define LT_DLLAZY_OR_NOW DL_LAZY
10810 # else
10811 # ifdef RTLD_NOW
10812 # define LT_DLLAZY_OR_NOW RTLD_NOW
10813 # else
10814 # ifdef DL_NOW
10815 # define LT_DLLAZY_OR_NOW DL_NOW
10816 # else
10817 # define LT_DLLAZY_OR_NOW 0
10818 # endif
10819 # endif
10820 # endif
10821 # endif
10822 #endif
10823
10824 void fnord() { int i=42;}
10825 int main ()
10826 {
10827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828 int status = $lt_dlunknown;
10829
10830 if (self)
10831 {
10832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834 /* dlclose (self); */
10835 }
10836 else
10837 puts (dlerror ());
10838
10839 return status;
10840 }
10841 _LT_EOF
10842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10843 (eval $ac_link) 2>&5
10844 ac_status=$?
10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10847 (./conftest; exit; ) >&5 2>/dev/null
10848 lt_status=$?
10849 case x$lt_status in
10850 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10851 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10852 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10853 esac
10854 else :
10855 # compilation failed
10856 lt_cv_dlopen_self=no
10857 fi
10858 fi
10859 rm -fr conftest*
10860
10861
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10864 $as_echo "$lt_cv_dlopen_self" >&6; }
10865
10866 if test "x$lt_cv_dlopen_self" = xyes; then
10867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10869 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10870 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 if test "$cross_compiling" = yes; then :
10874 lt_cv_dlopen_self_static=cross
10875 else
10876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10877 lt_status=$lt_dlunknown
10878 cat > conftest.$ac_ext <<_LT_EOF
10879 #line 10879 "configure"
10880 #include "confdefs.h"
10881
10882 #if HAVE_DLFCN_H
10883 #include <dlfcn.h>
10884 #endif
10885
10886 #include <stdio.h>
10887
10888 #ifdef RTLD_GLOBAL
10889 # define LT_DLGLOBAL RTLD_GLOBAL
10890 #else
10891 # ifdef DL_GLOBAL
10892 # define LT_DLGLOBAL DL_GLOBAL
10893 # else
10894 # define LT_DLGLOBAL 0
10895 # endif
10896 #endif
10897
10898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10899 find out it does not work in some platform. */
10900 #ifndef LT_DLLAZY_OR_NOW
10901 # ifdef RTLD_LAZY
10902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10903 # else
10904 # ifdef DL_LAZY
10905 # define LT_DLLAZY_OR_NOW DL_LAZY
10906 # else
10907 # ifdef RTLD_NOW
10908 # define LT_DLLAZY_OR_NOW RTLD_NOW
10909 # else
10910 # ifdef DL_NOW
10911 # define LT_DLLAZY_OR_NOW DL_NOW
10912 # else
10913 # define LT_DLLAZY_OR_NOW 0
10914 # endif
10915 # endif
10916 # endif
10917 # endif
10918 #endif
10919
10920 void fnord() { int i=42;}
10921 int main ()
10922 {
10923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10924 int status = $lt_dlunknown;
10925
10926 if (self)
10927 {
10928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10930 /* dlclose (self); */
10931 }
10932 else
10933 puts (dlerror ());
10934
10935 return status;
10936 }
10937 _LT_EOF
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10943 (./conftest; exit; ) >&5 2>/dev/null
10944 lt_status=$?
10945 case x$lt_status in
10946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10948 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10949 esac
10950 else :
10951 # compilation failed
10952 lt_cv_dlopen_self_static=no
10953 fi
10954 fi
10955 rm -fr conftest*
10956
10957
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10960 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10961 fi
10962
10963 CPPFLAGS="$save_CPPFLAGS"
10964 LDFLAGS="$save_LDFLAGS"
10965 LIBS="$save_LIBS"
10966 ;;
10967 esac
10968
10969 case $lt_cv_dlopen_self in
10970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10971 *) enable_dlopen_self=unknown ;;
10972 esac
10973
10974 case $lt_cv_dlopen_self_static in
10975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10976 *) enable_dlopen_self_static=unknown ;;
10977 esac
10978 fi
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996 striplib=
10997 old_striplib=
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10999 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11000 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11001 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11002 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 $as_echo "yes" >&6; }
11005 else
11006 # FIXME - insert some real tests, host_os isn't really good enough
11007 case $host_os in
11008 darwin*)
11009 if test -n "$STRIP" ; then
11010 striplib="$STRIP -x"
11011 old_striplib="$STRIP -S"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11013 $as_echo "yes" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11017 fi
11018 ;;
11019 *)
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 ;;
11023 esac
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 # Report which library types will actually be built
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11039 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11041 $as_echo "$can_build_shared" >&6; }
11042
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11044 $as_echo_n "checking whether to build shared libraries... " >&6; }
11045 test "$can_build_shared" = "no" && enable_shared=no
11046
11047 # On AIX, shared libraries and static libraries use the same namespace, and
11048 # are all built from PIC.
11049 case $host_os in
11050 aix3*)
11051 test "$enable_shared" = yes && enable_static=no
11052 if test -n "$RANLIB"; then
11053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11054 postinstall_cmds='$RANLIB $lib'
11055 fi
11056 ;;
11057
11058 aix[4-9]*)
11059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11060 test "$enable_shared" = yes && enable_static=no
11061 fi
11062 ;;
11063 esac
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11065 $as_echo "$enable_shared" >&6; }
11066
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11068 $as_echo_n "checking whether to build static libraries... " >&6; }
11069 # Make sure either enable_shared or enable_static is yes.
11070 test "$enable_shared" = yes || enable_static=yes
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11072 $as_echo "$enable_static" >&6; }
11073
11074
11075
11076
11077 fi
11078 ac_ext=c
11079 ac_cpp='$CPP $CPPFLAGS'
11080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11083
11084 CC="$lt_save_CC"
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098 ac_config_commands="$ac_config_commands libtool"
11099
11100
11101
11102
11103 # Only expand once:
11104
11105
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11107 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11108 if test "${libltdl_cv_shlibext+set}" = set; then :
11109 $as_echo_n "(cached) " >&6
11110 else
11111
11112 module=yes
11113 eval libltdl_cv_shlibext=$shrext_cmds
11114
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11117 $as_echo "$libltdl_cv_shlibext" >&6; }
11118 if test -n "$libltdl_cv_shlibext"; then
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11122 _ACEOF
11123
11124 fi
11125
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11127 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11128 if test "${lt_cv_module_path_var+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 lt_cv_module_path_var="$shlibpath_var"
11132 fi
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11134 $as_echo "$lt_cv_module_path_var" >&6; }
11135 if test -n "$lt_cv_module_path_var"; then
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11139 _ACEOF
11140
11141 fi
11142
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11144 $as_echo_n "checking for the default library search path... " >&6; }
11145 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11151 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11152 if test -n "$lt_cv_sys_dlsearch_path"; then
11153 sys_dlsearch_path=
11154 for dir in $lt_cv_sys_dlsearch_path; do
11155 if test -z "$sys_dlsearch_path"; then
11156 sys_dlsearch_path="$dir"
11157 else
11158 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11159 fi
11160 done
11161
11162 cat >>confdefs.h <<_ACEOF
11163 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11164 _ACEOF
11165
11166 fi
11167
11168
11169 LT_DLLOADERS=
11170
11171
11172 ac_ext=c
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177
11178
11179 LIBADD_DLOPEN=
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11181 $as_echo_n "checking for library containing dlopen... " >&6; }
11182 if test "${ac_cv_search_dlopen+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 ac_func_search_save_LIBS=$LIBS
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dlopen ();
11196 int
11197 main ()
11198 {
11199 return dlopen ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 for ac_lib in '' dl; do
11205 if test -z "$ac_lib"; then
11206 ac_res="none required"
11207 else
11208 ac_res=-l$ac_lib
11209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11210 fi
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_search_dlopen=$ac_res
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext
11216 if test "${ac_cv_search_dlopen+set}" = set; then :
11217 break
11218 fi
11219 done
11220 if test "${ac_cv_search_dlopen+set}" = set; then :
11221
11222 else
11223 ac_cv_search_dlopen=no
11224 fi
11225 rm conftest.$ac_ext
11226 LIBS=$ac_func_search_save_LIBS
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11229 $as_echo "$ac_cv_search_dlopen" >&6; }
11230 ac_res=$ac_cv_search_dlopen
11231 if test "$ac_res" != no; then :
11232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11233
11234 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11235
11236 if test "$ac_cv_search_dlopen" != "none required" ; then
11237 LIBADD_DLOPEN="-ldl"
11238 fi
11239 libltdl_cv_lib_dl_dlopen="yes"
11240 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11241 else
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 #if HAVE_DLFCN_H
11245 # include <dlfcn.h>
11246 #endif
11247
11248 int
11249 main ()
11250 {
11251 dlopen(0, 0);
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257
11258 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11259
11260 libltdl_cv_func_dlopen="yes"
11261 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11264 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 ac_check_lib_save_LIBS=$LIBS
11269 LIBS="-lsvld $LIBS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char dlopen ();
11280 int
11281 main ()
11282 {
11283 return dlopen ();
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_lib_svld_dlopen=yes
11290 else
11291 ac_cv_lib_svld_dlopen=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11298 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11299 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11300
11301 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11302
11303 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11304 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11305 fi
11306
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 fi
11311
11312 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11313 then
11314 lt_save_LIBS="$LIBS"
11315 LIBS="$LIBS $LIBADD_DLOPEN"
11316 for ac_func in dlerror
11317 do :
11318 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11319 if test "x$ac_cv_func_dlerror" = x""yes; then :
11320 cat >>confdefs.h <<_ACEOF
11321 #define HAVE_DLERROR 1
11322 _ACEOF
11323
11324 fi
11325 done
11326
11327 LIBS="$lt_save_LIBS"
11328 fi
11329
11330
11331 LIBADD_SHL_LOAD=
11332 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11333 if test "x$ac_cv_func_shl_load" = x""yes; then :
11334
11335 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11336
11337 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11340 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-ldld $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char shl_load ();
11356 int
11357 main ()
11358 {
11359 return shl_load ();
11360 ;
11361 return 0;
11362 }
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 ac_cv_lib_dld_shl_load=yes
11366 else
11367 ac_cv_lib_dld_shl_load=no
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11372 fi
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11374 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11375 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11376
11377 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11378
11379 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11380 LIBADD_SHL_LOAD="-ldld"
11381 fi
11382
11383 fi
11384
11385
11386
11387 case $host_os in
11388 darwin[1567].*)
11389 # We only want this for pre-Mac OS X 10.4.
11390 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11391 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11392
11393 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11394
11395 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11396 fi
11397
11398 ;;
11399 beos*)
11400 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11401 ;;
11402 cygwin* | mingw* | os2* | pw32*)
11403 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11404 "
11405 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11406 ac_have_decl=1
11407 else
11408 ac_have_decl=0
11409 fi
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11413 _ACEOF
11414
11415 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11416 ;;
11417 esac
11418
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11420 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11421 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-ldld $LIBS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char dld_link ();
11436 int
11437 main ()
11438 {
11439 return dld_link ();
11440 ;
11441 return 0;
11442 }
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_lib_dld_dld_link=yes
11446 else
11447 ac_cv_lib_dld_dld_link=no
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11454 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11455 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11456
11457 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11458
11459 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11460 fi
11461
11462
11463
11464
11465 LT_DLPREOPEN=
11466 if test -n "$LT_DLLOADERS"
11467 then
11468 for lt_loader in $LT_DLLOADERS; do
11469 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11470 done
11471
11472 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11473
11474 fi
11475
11476
11477 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11478
11479
11480 ac_ext=c
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11488 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11489 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 lt_cv_sys_symbol_underscore=no
11493 cat > conftest.$ac_ext <<_LT_EOF
11494 void nm_test_func(){}
11495 int main(){nm_test_func;return 0;}
11496 _LT_EOF
11497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11498 (eval $ac_compile) 2>&5
11499 ac_status=$?
11500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501 test $ac_status = 0; }; then
11502 # Now try to grab the symbols.
11503 ac_nlist=conftest.nm
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11506 ac_status=$?
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } && test -s "$ac_nlist"; then
11509 # See whether the symbols have a leading underscore.
11510 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11511 lt_cv_sys_symbol_underscore=yes
11512 else
11513 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11514 :
11515 else
11516 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11517 fi
11518 fi
11519 else
11520 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11521 fi
11522 else
11523 echo "configure: failed program was:" >&5
11524 cat conftest.c >&5
11525 fi
11526 rm -rf conftest*
11527
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11530 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11531 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11532
11533
11534 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11535 if test x"$libltdl_cv_func_dlopen" = xyes ||
11536 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11538 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11539 if test "${libltdl_cv_need_uscore+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 libltdl_cv_need_uscore=unknown
11543 save_LIBS="$LIBS"
11544 LIBS="$LIBS $LIBADD_DLOPEN"
11545 if test "$cross_compiling" = yes; then :
11546 libltdl_cv_need_uscore=cross
11547 else
11548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11549 lt_status=$lt_dlunknown
11550 cat > conftest.$ac_ext <<_LT_EOF
11551 #line 11551 "configure"
11552 #include "confdefs.h"
11553
11554 #if HAVE_DLFCN_H
11555 #include <dlfcn.h>
11556 #endif
11557
11558 #include <stdio.h>
11559
11560 #ifdef RTLD_GLOBAL
11561 # define LT_DLGLOBAL RTLD_GLOBAL
11562 #else
11563 # ifdef DL_GLOBAL
11564 # define LT_DLGLOBAL DL_GLOBAL
11565 # else
11566 # define LT_DLGLOBAL 0
11567 # endif
11568 #endif
11569
11570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11571 find out it does not work in some platform. */
11572 #ifndef LT_DLLAZY_OR_NOW
11573 # ifdef RTLD_LAZY
11574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11575 # else
11576 # ifdef DL_LAZY
11577 # define LT_DLLAZY_OR_NOW DL_LAZY
11578 # else
11579 # ifdef RTLD_NOW
11580 # define LT_DLLAZY_OR_NOW RTLD_NOW
11581 # else
11582 # ifdef DL_NOW
11583 # define LT_DLLAZY_OR_NOW DL_NOW
11584 # else
11585 # define LT_DLLAZY_OR_NOW 0
11586 # endif
11587 # endif
11588 # endif
11589 # endif
11590 #endif
11591
11592 void fnord() { int i=42;}
11593 int main ()
11594 {
11595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596 int status = $lt_dlunknown;
11597
11598 if (self)
11599 {
11600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602 /* dlclose (self); */
11603 }
11604 else
11605 puts (dlerror ());
11606
11607 return status;
11608 }
11609 _LT_EOF
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611 (eval $ac_link) 2>&5
11612 ac_status=$?
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615 (./conftest; exit; ) >&5 2>/dev/null
11616 lt_status=$?
11617 case x$lt_status in
11618 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11619 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11620 x$lt_dlunknown|x*) ;;
11621 esac
11622 else :
11623 # compilation failed
11624
11625 fi
11626 fi
11627 rm -fr conftest*
11628
11629 LIBS="$save_LIBS"
11630
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11633 $as_echo "$libltdl_cv_need_uscore" >&6; }
11634 fi
11635 fi
11636
11637 if test x"$libltdl_cv_need_uscore" = xyes; then
11638
11639 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11640
11641 fi
11642
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11644 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11645 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 # PORTME does your system automatically load deplibs for dlopen?
11649 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11650 # For now, we just catch OSes we know something about -- in the
11651 # future, we'll try test this programmatically.
11652 lt_cv_sys_dlopen_deplibs=unknown
11653 case $host_os in
11654 aix3*|aix4.1.*|aix4.2.*)
11655 # Unknown whether this is true for these versions of AIX, but
11656 # we want this `case' here to explicitly catch those versions.
11657 lt_cv_sys_dlopen_deplibs=unknown
11658 ;;
11659 aix[4-9]*)
11660 lt_cv_sys_dlopen_deplibs=yes
11661 ;;
11662 amigaos*)
11663 case $host_cpu in
11664 powerpc)
11665 lt_cv_sys_dlopen_deplibs=no
11666 ;;
11667 esac
11668 ;;
11669 darwin*)
11670 # Assuming the user has installed a libdl from somewhere, this is true
11671 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11672 lt_cv_sys_dlopen_deplibs=yes
11673 ;;
11674 freebsd* | dragonfly*)
11675 lt_cv_sys_dlopen_deplibs=yes
11676 ;;
11677 gnu* | linux* | k*bsd*-gnu)
11678 # GNU and its variants, using gnu ld.so (Glibc)
11679 lt_cv_sys_dlopen_deplibs=yes
11680 ;;
11681 hpux10*|hpux11*)
11682 lt_cv_sys_dlopen_deplibs=yes
11683 ;;
11684 interix*)
11685 lt_cv_sys_dlopen_deplibs=yes
11686 ;;
11687 irix[12345]*|irix6.[01]*)
11688 # Catch all versions of IRIX before 6.2, and indicate that we don't
11689 # know how it worked for any of those versions.
11690 lt_cv_sys_dlopen_deplibs=unknown
11691 ;;
11692 irix*)
11693 # The case above catches anything before 6.2, and it's known that
11694 # at 6.2 and later dlopen does load deplibs.
11695 lt_cv_sys_dlopen_deplibs=yes
11696 ;;
11697 netbsd*)
11698 lt_cv_sys_dlopen_deplibs=yes
11699 ;;
11700 openbsd*)
11701 lt_cv_sys_dlopen_deplibs=yes
11702 ;;
11703 osf[1234]*)
11704 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11705 # it did *not* use an RPATH in a shared library to find objects the
11706 # library depends on, so we explicitly say `no'.
11707 lt_cv_sys_dlopen_deplibs=no
11708 ;;
11709 osf5.0|osf5.0a|osf5.1)
11710 # dlopen *does* load deplibs and with the right loader patch applied
11711 # it even uses RPATH in a shared library to search for shared objects
11712 # that the library depends on, but there's no easy way to know if that
11713 # patch is installed. Since this is the case, all we can really
11714 # say is unknown -- it depends on the patch being installed. If
11715 # it is, this changes to `yes'. Without it, it would be `no'.
11716 lt_cv_sys_dlopen_deplibs=unknown
11717 ;;
11718 osf*)
11719 # the two cases above should catch all versions of osf <= 5.1. Read
11720 # the comments above for what we know about them.
11721 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11722 # is used to find them so we can finally say `yes'.
11723 lt_cv_sys_dlopen_deplibs=yes
11724 ;;
11725 qnx*)
11726 lt_cv_sys_dlopen_deplibs=yes
11727 ;;
11728 solaris*)
11729 lt_cv_sys_dlopen_deplibs=yes
11730 ;;
11731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11732 libltdl_cv_sys_dlopen_deplibs=yes
11733 ;;
11734 esac
11735
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11738 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11739 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11740
11741 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11742
11743 fi
11744
11745 :
11746
11747 for ac_header in argz.h
11748 do :
11749 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11750 "
11751 if test "x$ac_cv_header_argz_h" = x""yes; then :
11752 cat >>confdefs.h <<_ACEOF
11753 #define HAVE_ARGZ_H 1
11754 _ACEOF
11755
11756 fi
11757
11758 done
11759
11760
11761 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11762 # include <argz.h>
11763 #endif
11764 "
11765 if test "x$ac_cv_type_error_t" = x""yes; then :
11766
11767 cat >>confdefs.h <<_ACEOF
11768 #define HAVE_ERROR_T 1
11769 _ACEOF
11770
11771
11772 else
11773
11774 $as_echo "#define error_t int" >>confdefs.h
11775
11776
11777 $as_echo "#define __error_t_defined 1" >>confdefs.h
11778
11779 fi
11780
11781
11782 ARGZ_H=
11783 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11784 argz_next argz_stringify
11785 do :
11786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11788 eval as_val=\$$as_ac_var
11789 if test "x$as_val" = x""yes; then :
11790 cat >>confdefs.h <<_ACEOF
11791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11792 _ACEOF
11793
11794 else
11795 ARGZ_H=argz.h;
11796
11797 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11798
11799 fi
11800 done
11801
11802
11803 if test -z "$ARGZ_H"; then :
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11805 $as_echo_n "checking if argz actually works... " >&6; }
11806 if test "${lt_cv_sys_argz_works+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 case $host_os in #(
11810 *cygwin*)
11811 lt_cv_sys_argz_works=no
11812 if test "$cross_compiling" != no; then
11813 lt_cv_sys_argz_works="guessing no"
11814 else
11815 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11816 save_IFS=$IFS
11817 IFS=-.
11818 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11819 IFS=$save_IFS
11820 lt_os_major=${2-0}
11821 lt_os_minor=${3-0}
11822 lt_os_micro=${4-0}
11823 if test "$lt_os_major" -gt 1 \
11824 || { test "$lt_os_major" -eq 1 \
11825 && { test "$lt_os_minor" -gt 5 \
11826 || { test "$lt_os_minor" -eq 5 \
11827 && test "$lt_os_micro" -gt 24; }; }; }; then
11828 lt_cv_sys_argz_works=yes
11829 fi
11830 fi
11831 ;; #(
11832 *) lt_cv_sys_argz_works=yes ;;
11833 esac
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11836 $as_echo "$lt_cv_sys_argz_works" >&6; }
11837 if test $lt_cv_sys_argz_works = yes; then :
11838
11839 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11840
11841 else
11842 ARGZ_H=argz.h
11843
11844
11845 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11846
11847 fi
11848 fi
11849
11850
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11853 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11854 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11858 libltdl_cv_preloaded_symbols=yes
11859 else
11860 libltdl_cv_preloaded_symbols=no
11861 fi
11862
11863 fi
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11865 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11866 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11867
11868 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11869
11870 fi
11871
11872
11873
11874 # Set options
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887 # Check whether --with-included_ltdl was given.
11888 if test "${with_included_ltdl+set}" = set; then :
11889 withval=$with_included_ltdl;
11890 fi
11891
11892
11893 if test "x$with_included_ltdl" != xyes; then
11894 # We are not being forced to use the included libltdl sources, so
11895 # decide whether there is a useful installed version we can use.
11896 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11897
11898 "
11899 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11900 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11901 #include <ltdl.h>
11902 "
11903 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11905 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11906 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lltdl $LIBS"
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11913
11914 /* Override any GCC internal prototype to avoid an error.
11915 Use char because int might match the return type of a GCC
11916 builtin and then its argument prototype would still apply. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 char lt_dladvise_preload ();
11921 int
11922 main ()
11923 {
11924 return lt_dladvise_preload ();
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11931 else
11932 ac_cv_lib_ltdl_lt_dladvise_preload=no
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11939 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11940 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11941 with_included_ltdl=no
11942 else
11943 with_included_ltdl=yes
11944 fi
11945
11946 else
11947 with_included_ltdl=yes
11948 fi
11949
11950 else
11951 with_included_ltdl=yes
11952 fi
11953
11954
11955 fi
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 # Check whether --with-ltdl_include was given.
11966 if test "${with_ltdl_include+set}" = set; then :
11967 withval=$with_ltdl_include;
11968 fi
11969
11970
11971 if test -n "$with_ltdl_include"; then
11972 if test -f "$with_ltdl_include/ltdl.h"; then :
11973 else
11974 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11975 fi
11976 else
11977 with_ltdl_include=no
11978 fi
11979
11980
11981 # Check whether --with-ltdl_lib was given.
11982 if test "${with_ltdl_lib+set}" = set; then :
11983 withval=$with_ltdl_lib;
11984 fi
11985
11986
11987 if test -n "$with_ltdl_lib"; then
11988 if test -f "$with_ltdl_lib/libltdl.la"; then :
11989 else
11990 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11991 fi
11992 else
11993 with_ltdl_lib=no
11994 fi
11995
11996 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11997 ,yes,no,no,)
11998 case $enable_ltdl_convenience in
11999 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
12000 "") enable_ltdl_convenience=yes
12001 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12002 esac
12003 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12004 LTDLDEPS=$LIBLTDL
12005 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12006
12007
12008
12009
12010
12011 # For backwards non-gettext consistent compatibility...
12012 INCLTDL="$LTDLINCL"
12013
12014
12015 ;;
12016 ,no,no,no,)
12017 # If the included ltdl is not to be used, then use the
12018 # preinstalled libltdl we found.
12019
12020 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12021
12022 LIBLTDL=-lltdl
12023 LTDLDEPS=
12024 LTDLINCL=
12025 ;;
12026 ,no*,no,*)
12027 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12028 ;;
12029 *) with_included_ltdl=no
12030 LIBLTDL="-L$with_ltdl_lib -lltdl"
12031 LTDLDEPS=
12032 LTDLINCL="-I$with_ltdl_include"
12033 ;;
12034 esac
12035 INCLTDL="$LTDLINCL"
12036
12037 # Report our decision...
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12039 $as_echo_n "checking where to find libltdl headers... " >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12041 $as_echo "$LTDLINCL" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12043 $as_echo_n "checking where to find libltdl library... " >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12045 $as_echo "$LIBLTDL" >&6; }
12046
12047
12048
12049 # Check whether --enable-ltdl-install was given.
12050 if test "${enable_ltdl_install+set}" = set; then :
12051 enableval=$enable_ltdl_install;
12052 fi
12053
12054
12055 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12056 *yes*) ;;
12057 *) enable_ltdl_convenience=yes ;;
12058 esac
12059
12060 if test x"${enable_ltdl_install-no}" != xno; then
12061 INSTALL_LTDL_TRUE=
12062 INSTALL_LTDL_FALSE='#'
12063 else
12064 INSTALL_LTDL_TRUE='#'
12065 INSTALL_LTDL_FALSE=
12066 fi
12067
12068 if test x"${enable_ltdl_convenience-no}" != xno; then
12069 CONVENIENCE_LTDL_TRUE=
12070 CONVENIENCE_LTDL_FALSE='#'
12071 else
12072 CONVENIENCE_LTDL_TRUE='#'
12073 CONVENIENCE_LTDL_FALSE=
12074 fi
12075
12076
12077
12078 subdirs="$subdirs libltdl"
12079
12080
12081
12082
12083
12084 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12085 # the user used. This is so that ltdl.h can pick up the parent projects
12086 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12087 # definitions required by ltdl.c.
12088 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12089
12090
12091
12092 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12093 do :
12094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12096 "
12097 eval as_val=\$$as_ac_Header
12098 if test "x$as_val" = x""yes; then :
12099 cat >>confdefs.h <<_ACEOF
12100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12101 _ACEOF
12102
12103 fi
12104
12105 done
12106
12107
12108 for ac_func in closedir opendir readdir
12109 do :
12110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12112 eval as_val=\$$as_ac_var
12113 if test "x$as_val" = x""yes; then :
12114 cat >>confdefs.h <<_ACEOF
12115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 _ACEOF
12117
12118 else
12119
12120
12121 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12122
12123 fi
12124 done
12125
12126 for ac_func in strlcat strlcpy
12127 do :
12128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12130 eval as_val=\$$as_ac_var
12131 if test "x$as_val" = x""yes; then :
12132 cat >>confdefs.h <<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12135
12136 else
12137
12138
12139 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12140
12141 fi
12142 done
12143
12144
12145
12146 cat >>confdefs.h <<_ACEOF
12147 #define LT_LIBEXT "$libext"
12148 _ACEOF
12149
12150
12151 name=ltdl
12152 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12153
12154
12155
12156
12157
12158
12159
12160
12161 # Only expand once:
12162
12163
12164
12165 # Checks for libraries.
12166
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12168 $as_echo_n "checking for library containing socket... " >&6; }
12169 if test "${ac_cv_search_socket+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_func_search_save_LIBS=$LIBS
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char socket ();
12183 int
12184 main ()
12185 {
12186 return socket ();
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 for ac_lib in '' socket; do
12192 if test -z "$ac_lib"; then
12193 ac_res="none required"
12194 else
12195 ac_res=-l$ac_lib
12196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12197 fi
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 ac_cv_search_socket=$ac_res
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext
12203 if test "${ac_cv_search_socket+set}" = set; then :
12204 break
12205 fi
12206 done
12207 if test "${ac_cv_search_socket+set}" = set; then :
12208
12209 else
12210 ac_cv_search_socket=no
12211 fi
12212 rm conftest.$ac_ext
12213 LIBS=$ac_func_search_save_LIBS
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12216 $as_echo "$ac_cv_search_socket" >&6; }
12217 ac_res=$ac_cv_search_socket
12218 if test "$ac_res" != no; then :
12219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12220
12221 else
12222 as_fn_error "socket library not found" "$LINENO" 5
12223 fi
12224
12225 for ac_func in inet_aton inet_ntop inet_pton
12226 do :
12227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12228 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12229 eval as_val=\$$as_ac_var
12230 if test "x$as_val" = x""yes; then :
12231 cat >>confdefs.h <<_ACEOF
12232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12233 _ACEOF
12234
12235 fi
12236 done
12237
12238 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12239 #include <sys/socket.h>
12240 #include <netdb.h>
12241
12242 "
12243 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12244
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_STRUCT_SOCKADDR_IN 1
12247 _ACEOF
12248
12249
12250 fi
12251 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12252 #include <sys/socket.h>
12253 #include <netdb.h>
12254
12255 "
12256 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12260 _ACEOF
12261
12262
12263 fi
12264 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12265 #include <sys/socket.h>
12266 #include <netdb.h>
12267
12268 "
12269 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12270
12271 cat >>confdefs.h <<_ACEOF
12272 #define HAVE_STRUCT_ADDRINFO 1
12273 _ACEOF
12274
12275
12276 fi
12277
12278 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12279 <sys/socket.h>
12280 "
12281 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12282
12283 cat >>confdefs.h <<_ACEOF
12284 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12285 _ACEOF
12286
12287
12288 fi
12289
12290
12291
12292 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12293 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12294
12295 cat >>confdefs.h <<_ACEOF
12296 #define HAVE_STRUCT_SOCKADDR_IN6 1
12297 _ACEOF
12298
12299
12300 else
12301
12302 $as_echo "#define IPV6 1" >>confdefs.h
12303
12304 fi
12305
12306
12307
12308 # Checks for typedefs, structures, and compiler characteristics.
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12310 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12311 if test "${ac_cv_c_bigendian+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 ac_cv_c_bigendian=unknown
12315 # See if we're dealing with a universal compiler.
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #ifndef __APPLE_CC__
12319 not a universal capable compiler
12320 #endif
12321 typedef int dummy;
12322
12323 _ACEOF
12324 if ac_fn_c_try_compile "$LINENO"; then :
12325
12326 # Check for potential -arch flags. It is not universal unless
12327 # there are at least two -arch flags with different values.
12328 ac_arch=
12329 ac_prev=
12330 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12331 if test -n "$ac_prev"; then
12332 case $ac_word in
12333 i?86 | x86_64 | ppc | ppc64)
12334 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12335 ac_arch=$ac_word
12336 else
12337 ac_cv_c_bigendian=universal
12338 break
12339 fi
12340 ;;
12341 esac
12342 ac_prev=
12343 elif test "x$ac_word" = "x-arch"; then
12344 ac_prev=arch
12345 fi
12346 done
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 if test $ac_cv_c_bigendian = unknown; then
12350 # See if sys/param.h defines the BYTE_ORDER macro.
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 #include <sys/types.h>
12354 #include <sys/param.h>
12355
12356 int
12357 main ()
12358 {
12359 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12360 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12361 && LITTLE_ENDIAN)
12362 bogus endian macros
12363 #endif
12364
12365 ;
12366 return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370 # It does; now see whether it defined to BIG_ENDIAN or not.
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 #include <sys/types.h>
12374 #include <sys/param.h>
12375
12376 int
12377 main ()
12378 {
12379 #if BYTE_ORDER != BIG_ENDIAN
12380 not big endian
12381 #endif
12382
12383 ;
12384 return 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388 ac_cv_c_bigendian=yes
12389 else
12390 ac_cv_c_bigendian=no
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 fi
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 fi
12396 if test $ac_cv_c_bigendian = unknown; then
12397 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #include <limits.h>
12401
12402 int
12403 main ()
12404 {
12405 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12406 bogus endian macros
12407 #endif
12408
12409 ;
12410 return 0;
12411 }
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414 # It does; now see whether it defined to _BIG_ENDIAN or not.
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #include <limits.h>
12418
12419 int
12420 main ()
12421 {
12422 #ifndef _BIG_ENDIAN
12423 not big endian
12424 #endif
12425
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_compile "$LINENO"; then :
12431 ac_cv_c_bigendian=yes
12432 else
12433 ac_cv_c_bigendian=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 fi
12439 if test $ac_cv_c_bigendian = unknown; then
12440 # Compile a test program.
12441 if test "$cross_compiling" = yes; then :
12442 # Try to guess by grepping values from an object file.
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 short int ascii_mm[] =
12446 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12447 short int ascii_ii[] =
12448 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12449 int use_ascii (int i) {
12450 return ascii_mm[i] + ascii_ii[i];
12451 }
12452 short int ebcdic_ii[] =
12453 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12454 short int ebcdic_mm[] =
12455 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12456 int use_ebcdic (int i) {
12457 return ebcdic_mm[i] + ebcdic_ii[i];
12458 }
12459 extern int foo;
12460
12461 int
12462 main ()
12463 {
12464 return use_ascii (foo) == use_ebcdic (foo);
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12471 ac_cv_c_bigendian=yes
12472 fi
12473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12474 if test "$ac_cv_c_bigendian" = unknown; then
12475 ac_cv_c_bigendian=no
12476 else
12477 # finding both strings is unlikely to happen, but who knows?
12478 ac_cv_c_bigendian=unknown
12479 fi
12480 fi
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 else
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 int
12488 main ()
12489 {
12490
12491 /* Are we little or big endian? From Harbison&Steele. */
12492 union
12493 {
12494 long int l;
12495 char c[sizeof (long int)];
12496 } u;
12497 u.l = 1;
12498 return u.c[sizeof (long int) - 1] == 1;
12499
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_run "$LINENO"; then :
12505 ac_cv_c_bigendian=no
12506 else
12507 ac_cv_c_bigendian=yes
12508 fi
12509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12510 conftest.$ac_objext conftest.beam conftest.$ac_ext
12511 fi
12512
12513 fi
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12516 $as_echo "$ac_cv_c_bigendian" >&6; }
12517 case $ac_cv_c_bigendian in #(
12518 yes)
12519 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12520 ;; #(
12521 no)
12522 ;; #(
12523 universal)
12524
12525 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12526
12527 ;; #(
12528 *)
12529 as_fn_error "unknown endianness
12530 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12531 esac
12532
12533
12534 # Checks for library functions.
12535
12536
12537
12538 for ac_func in $ac_func_list
12539 do :
12540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12542 eval as_val=\$$as_ac_var
12543 if test "x$as_val" = x""yes; then :
12544 cat >>confdefs.h <<_ACEOF
12545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12546 _ACEOF
12547
12548 fi
12549 done
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 # Checks for header files.
12564
12565
12566
12567 for ac_header in $ac_header_list
12568 do :
12569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12571 "
12572 eval as_val=\$$as_ac_Header
12573 if test "x$as_val" = x""yes; then :
12574 cat >>confdefs.h <<_ACEOF
12575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576 _ACEOF
12577
12578 fi
12579
12580 done
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 # check for /dev/null so we can use it to hold evil fd's
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12610 $as_echo_n "checking for /dev/null... " >&6; }
12611 if test -c /dev/null; then :
12612
12613
12614 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618 else
12619
12620
12621 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12622
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12624 $as_echo "no - using devnull.log" >&6; }
12625 fi
12626
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12629 $as_echo_n "checking for library containing crypt... " >&6; }
12630 if test "${ac_cv_search_crypt+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 ac_func_search_save_LIBS=$LIBS
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 char crypt ();
12644 int
12645 main ()
12646 {
12647 return crypt ();
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 for ac_lib in '' crypt; do
12653 if test -z "$ac_lib"; then
12654 ac_res="none required"
12655 else
12656 ac_res=-l$ac_lib
12657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12658 fi
12659 if ac_fn_c_try_link "$LINENO"; then :
12660 ac_cv_search_crypt=$ac_res
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext
12664 if test "${ac_cv_search_crypt+set}" = set; then :
12665 break
12666 fi
12667 done
12668 if test "${ac_cv_search_crypt+set}" = set; then :
12669
12670 else
12671 ac_cv_search_crypt=no
12672 fi
12673 rm conftest.$ac_ext
12674 LIBS=$ac_func_search_save_LIBS
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12677 $as_echo "$ac_cv_search_crypt" >&6; }
12678 ac_res=$ac_cv_search_crypt
12679 if test "$ac_res" != no; then :
12680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12681
12682 fi
12683
12684
12685
12686
12687 # Check whether --with-zlib-path was given.
12688 if test "${with_zlib_path+set}" = set; then :
12689 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12690 fi
12691
12692
12693 # Check whether --enable-zlib was given.
12694 if test "${enable_zlib+set}" = set; then :
12695 enableval=$enable_zlib; zlib=$enableval
12696 else
12697 zlib=yes
12698 fi
12699
12700
12701 if test "$zlib" = "yes"; then :
12702
12703 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12704 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12706 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12707 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 ac_check_lib_save_LIBS=$LIBS
12711 LIBS="-lz $LIBS"
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12718 #ifdef __cplusplus
12719 extern "C"
12720 #endif
12721 char zlibVersion ();
12722 int
12723 main ()
12724 {
12725 return zlibVersion ();
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 ac_cv_lib_z_zlibVersion=yes
12732 else
12733 ac_cv_lib_z_zlibVersion=no
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 LIBS=$ac_check_lib_save_LIBS
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12740 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12741 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12742
12743 LIBS="-lz $LIBS"
12744
12745 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12746
12747
12748 else
12749 zlib=no
12750 fi
12751
12752
12753 else
12754 zlib=no
12755 fi
12756
12757
12758
12759 fi
12760
12761
12762 # Check whether --with-libpcre-path was given.
12763 if test "${with_libpcre_path+set}" = set; then :
12764 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12765 fi
12766
12767
12768 # Check whether --enable-libpcre was given.
12769 if test "${enable_libpcre+set}" = set; then :
12770 enableval=$enable_libpcre; libpcre=$enableval
12771 else
12772 libpcre=yes
12773 fi
12774
12775
12776 if test "$libpcre" = "yes"; then :
12777
12778 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12779 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12781 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12782 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 ac_check_lib_save_LIBS=$LIBS
12786 LIBS="-lpcre $LIBS"
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 char pcre_study ();
12797 int
12798 main ()
12799 {
12800 return pcre_study ();
12801 ;
12802 return 0;
12803 }
12804 _ACEOF
12805 if ac_fn_c_try_link "$LINENO"; then :
12806 ac_cv_lib_pcre_pcre_study=yes
12807 else
12808 ac_cv_lib_pcre_pcre_study=no
12809 fi
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 LIBS=$ac_check_lib_save_LIBS
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12815 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12816 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12817
12818 LIBS="-lpcre $LIBS"
12819
12820 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12821
12822
12823 else
12824 libpcre=no
12825 fi
12826
12827
12828 else
12829 libpcre=no
12830 fi
12831
12832
12833
12834 fi
12835 if test "$libpcre" = yes; then
12836 ENABLE_PCRE_TRUE=
12837 ENABLE_PCRE_FALSE='#'
12838 else
12839 ENABLE_PCRE_TRUE='#'
12840 ENABLE_PCRE_FALSE=
12841 fi
12842
12843
12844
12845 # Check whether --enable-openssl was given.
12846 if test "${enable_openssl+set}" = set; then :
12847 enableval=$enable_openssl; cf_enable_openssl=$enableval
12848 else
12849 cf_enable_openssl="auto"
12850 fi
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12853 $as_echo_n "checking for OpenSSL... " >&6; }
12854 if test "$cf_enable_openssl" != "no"; then
12855 cf_openssl_basedir=""
12856 if test "$cf_enable_openssl" != "auto" &&
12857 test "$cf_enable_openssl" != "yes"; then
12858 cf_openssl_basedir="${cf_enable_openssl}"
12859 else
12860 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12861 /opt /opt/openssl /usr/local/openssl; do
12862 if test -f "${dirs}/include/openssl/opensslv.h"; then
12863 cf_openssl_basedir="${dirs}"
12864 break
12865 fi
12866 done
12867 unset dirs
12868 fi
12869
12870 if test ! -z "$cf_openssl_basedir"; then
12871 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12872 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12873 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12874 else
12875 cf_openssl_basedir=""
12876 fi
12877 else
12878 if test -f "/usr/include/openssl/opensslv.h"; then
12879 cf_openssl_basedir="/usr"
12880 fi
12881 fi
12882
12883 if test ! -z "$cf_openssl_basedir"; then
12884 LIBS="-lcrypto -lssl $LIBS"
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12886 $as_echo "$cf_openssl_basedir" >&6; }
12887 cf_enable_openssl="yes"
12888
12889 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12890
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12893 $as_echo "not found. Please check your path." >&6; }
12894 cf_enable_openssl="no"
12895 fi
12896 unset cf_openssl_basedir
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12899 $as_echo "disabled" >&6; }
12900 fi
12901
12902 if test "$cf_enable_openssl" != "no"; then :
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12904 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12905 if test "$cross_compiling" = yes; then :
12906 cf_openssl_version_ok=no
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910
12911 #include <openssl/opensslv.h>
12912 #include <stdlib.h>
12913 int
12914 main ()
12915 {
12916 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_run "$LINENO"; then :
12922 cf_openssl_version_ok=yes
12923 else
12924 cf_openssl_version_ok=no
12925 fi
12926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12927 conftest.$ac_objext conftest.beam conftest.$ac_ext
12928 fi
12929
12930
12931 if test "$cf_openssl_version_ok" = "yes"; then :
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12933 $as_echo "found" >&6; }
12934
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12936 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12937 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-lcrypto $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char RSA_free ();
12952 int
12953 main ()
12954 {
12955 return RSA_free ();
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_crypto_RSA_free=yes
12962 else
12963 ac_cv_lib_crypto_RSA_free=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12970 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12971 if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12972 cat >>confdefs.h <<_ACEOF
12973 #define HAVE_LIBCRYPTO 1
12974 _ACEOF
12975
12976 LIBS="-lcrypto $LIBS"
12977
12978 fi
12979
12980 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12981 for ac_func in EVP_bf_cfb \
12982 EVP_cast5_cfb \
12983 EVP_idea_cfb \
12984 EVP_rc5_32_12_16_cfb \
12985 EVP_des_ede3_cfb \
12986 EVP_des_cfb
12987 do :
12988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12989 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12990 eval as_val=\$$as_ac_var
12991 if test "x$as_val" = x""yes; then :
12992 cat >>confdefs.h <<_ACEOF
12993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12995
12996 fi
12997 done
12998
12999 fi
13000
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13003 $as_echo "no - OpenSSL support disabled" >&6; }
13004 cf_enable_openssl="no"
13005 fi
13006 fi
13007
13008 if test "$cf_enable_openssl" = yes; then
13009 ENABLE_SSL_TRUE=
13010 ENABLE_SSL_FALSE='#'
13011 else
13012 ENABLE_SSL_TRUE='#'
13013 ENABLE_SSL_FALSE=
13014 fi
13015
13016
13017
13018 # Check whether --enable-assert was given.
13019 if test "${enable_assert+set}" = set; then :
13020 enableval=$enable_assert; assert=$enableval
13021 else
13022 assert=no
13023 fi
13024
13025
13026 if test "$assert" = "no"; then :
13027
13028 $as_echo "#define NDEBUG 1" >>confdefs.h
13029
13030 fi
13031
13032
13033 # Check whether --enable-small-net was given.
13034 if test "${enable_small_net+set}" = set; then :
13035 enableval=$enable_small_net; small_net=$enableval
13036 else
13037 small_net=no
13038 fi
13039
13040
13041 if test "$small_net" = "yes"; then :
13042
13043
13044 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13045
13046
13047 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13048
13049
13050 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13051
13052
13053 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13054
13055
13056 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13057
13058
13059 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13060
13061
13062 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13063
13064
13065 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13066
13067
13068 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13069
13070
13071 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13072
13073 else
13074
13075
13076
13077 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13078
13079
13080 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13081
13082
13083 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13084
13085
13086 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13087
13088
13089 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13090
13091
13092 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13093
13094
13095 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13096
13097
13098 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13099
13100
13101 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13102
13103
13104 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13105
13106 fi
13107
13108
13109 # Argument processing.
13110
13111 desired_iopoll_mechanism="none"
13112 # Check whether --enable-kqueue was given.
13113 if test "${enable_kqueue+set}" = set; then :
13114 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13115 fi
13116
13117 # Check whether --enable-epoll was given.
13118 if test "${enable_epoll+set}" = set; then :
13119 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13120 fi
13121
13122 # Check whether --enable-devpoll was given.
13123 if test "${enable_devpoll+set}" = set; then :
13124 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13125 fi
13126
13127 # Check whether --enable-rtsigio was given.
13128 if test "${enable_rtsigio+set}" = set; then :
13129 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13130 fi
13131
13132 # Check whether --enable-poll was given.
13133 if test "${enable_poll+set}" = set; then :
13134 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13135 fi
13136
13137 # Check whether --enable-select was given.
13138 if test "${enable_select+set}" = set; then :
13139 enableval=$enable_select; desired_iopoll_mechanism="select"
13140 fi
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13143 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13144 iopoll_mechanism_none=0
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13148 _ACEOF
13149
13150 iopoll_mechanism_kqueue=1
13151
13152 cat >>confdefs.h <<_ACEOF
13153 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13154 _ACEOF
13155
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13160 #define kevent innocuous_kevent
13161
13162 /* System header to define __stub macros and hopefully few prototypes,
13163 which can conflict with char kevent (); below.
13164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13165 <limits.h> exists even on freestanding compilers. */
13166
13167 #ifdef __STDC__
13168 # include <limits.h>
13169 #else
13170 # include <assert.h>
13171 #endif
13172
13173 #undef kevent
13174
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13178 #ifdef __cplusplus
13179 extern "C"
13180 #endif
13181 char kevent ();
13182 /* The GNU C library defines this for functions which it implements
13183 to always fail with ENOSYS. Some functions are actually named
13184 something starting with __ and the normal name is an alias. */
13185 #if defined __stub_kevent || defined __stub___kevent
13186 choke me
13187 #endif
13188
13189 int
13190 main ()
13191 {
13192 return kevent ();
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 is_kqueue_mechanism_available="yes"
13199 else
13200 is_kqueue_mechanism_available="no"
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204 iopoll_mechanism_epoll=2
13205
13206 cat >>confdefs.h <<_ACEOF
13207 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13208 _ACEOF
13209
13210 if test "$cross_compiling" = yes; then :
13211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13213 as_fn_error "cannot run test program while cross compiling
13214 See \`config.log' for more details." "$LINENO" 5; }
13215 else
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218
13219 #include <sys/epoll.h>
13220 #include <sys/syscall.h>
13221 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13222 #if !defined(__NR_epoll_create)
13223 #if defined(__ia64__)
13224 #define __NR_epoll_create 1243
13225 #elif defined(__x86_64__)
13226 #define __NR_epoll_create 214
13227 #elif defined(__sparc64__) || defined(__sparc__)
13228 #define __NR_epoll_create 193
13229 #elif defined(__s390__) || defined(__m68k__)
13230 #define __NR_epoll_create 249
13231 #elif defined(__ppc64__) || defined(__ppc__)
13232 #define __NR_epoll_create 236
13233 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13234 #define __NR_epoll_create 224
13235 #elif defined(__alpha__)
13236 #define __NR_epoll_create 407
13237 #elif defined(__sh64__)
13238 #define __NR_epoll_create 282
13239 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13240 #define __NR_epoll_create 254
13241 #else
13242 #error No system call numbers defined for epoll family.
13243 #endif
13244 #endif
13245 _syscall1(int, epoll_create, int, size)
13246 #endif
13247 main() { return epoll_create(256) == -1 ? 1 : 0; }
13248
13249 _ACEOF
13250 if ac_fn_c_try_run "$LINENO"; then :
13251 is_epoll_mechanism_available="yes"
13252 else
13253 is_epoll_mechanism_available="no"
13254 fi
13255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13256 conftest.$ac_objext conftest.beam conftest.$ac_ext
13257 fi
13258
13259 iopoll_mechanism_devpoll=3
13260
13261 cat >>confdefs.h <<_ACEOF
13262 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13263 _ACEOF
13264
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 #include <devpoll.h>
13268 int
13269 main ()
13270 {
13271
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_c_try_compile "$LINENO"; then :
13277 is_devpoll_mechanism_available="yes"
13278 else
13279 is_devpoll_mechanism_available="no"
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 if test "$is_devpoll_mechanism_available" = "yes" ; then
13283
13284 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13285
13286 fi
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <sys/devpoll.h>
13290 int
13291 main ()
13292 {
13293
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 is_devpoll_mechanism_available="yes"
13300 else
13301 is_devpoll_mechanism_available="no"
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 if test "$is_devpoll_mechanism_available" = "yes" ; then
13305
13306 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13307
13308 fi
13309 iopoll_mechanism_rtsigio=4
13310
13311 cat >>confdefs.h <<_ACEOF
13312 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13313 _ACEOF
13314
13315 if test "$cross_compiling" = yes; then :
13316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13318 as_fn_error "cannot run test program while cross compiling
13319 See \`config.log' for more details." "$LINENO" 5; }
13320 else
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 #include <fcntl.h>
13325 #ifdef F_SETSIG
13326 main () { return 0; } /* F_SETSIG defined */
13327 #else
13328 main () { return 1; } /* F_SETSIG not defined */
13329 #endif
13330
13331 int
13332 main ()
13333 {
13334
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_run "$LINENO"; then :
13340 is_rtsigio_mechanism_available="yes"
13341 else
13342 is_rtsigio_mechanism_available="no"
13343 fi
13344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13345 conftest.$ac_objext conftest.beam conftest.$ac_ext
13346 fi
13347
13348 iopoll_mechanism_poll=5
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13352 _ACEOF
13353
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13358 #define poll innocuous_poll
13359
13360 /* System header to define __stub macros and hopefully few prototypes,
13361 which can conflict with char poll (); below.
13362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13363 <limits.h> exists even on freestanding compilers. */
13364
13365 #ifdef __STDC__
13366 # include <limits.h>
13367 #else
13368 # include <assert.h>
13369 #endif
13370
13371 #undef poll
13372
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char poll ();
13380 /* The GNU C library defines this for functions which it implements
13381 to always fail with ENOSYS. Some functions are actually named
13382 something starting with __ and the normal name is an alias. */
13383 #if defined __stub_poll || defined __stub___poll
13384 choke me
13385 #endif
13386
13387 int
13388 main ()
13389 {
13390 return poll ();
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 if ac_fn_c_try_link "$LINENO"; then :
13396 is_poll_mechanism_available="yes"
13397 else
13398 is_poll_mechanism_available="no"
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 iopoll_mechanism_select=6
13403
13404 cat >>confdefs.h <<_ACEOF
13405 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13406 _ACEOF
13407
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 /* Define select to an innocuous variant, in case <limits.h> declares select.
13411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13412 #define select innocuous_select
13413
13414 /* System header to define __stub macros and hopefully few prototypes,
13415 which can conflict with char select (); below.
13416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417 <limits.h> exists even on freestanding compilers. */
13418
13419 #ifdef __STDC__
13420 # include <limits.h>
13421 #else
13422 # include <assert.h>
13423 #endif
13424
13425 #undef select
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428 Use char because int might match the return type of a GCC
13429 builtin and then its argument prototype would still apply. */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char select ();
13434 /* The GNU C library defines this for functions which it implements
13435 to always fail with ENOSYS. Some functions are actually named
13436 something starting with __ and the normal name is an alias. */
13437 #if defined __stub_select || defined __stub___select
13438 choke me
13439 #endif
13440
13441 int
13442 main ()
13443 {
13444 return select ();
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 is_select_mechanism_available="yes"
13451 else
13452 is_select_mechanism_available="no"
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 optimal_iopoll_mechanism="none"
13457 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13458 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13459 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13460 optimal_iopoll_mechanism="$mechanism"
13461 break
13462 fi
13463 done
13464 if test "$desired_iopoll_mechanism" = "none" ; then
13465 if test "$optimal_iopoll_mechanism" = "none" ; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13467 $as_echo "none" >&6; }
13468 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13469 else
13470 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13472 $as_echo "$selected_iopoll_mechanism" >&6; }
13473 fi
13474 else
13475 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13476 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13477 selected_iopoll_mechanism=$desired_iopoll_mechanism
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13479 $as_echo "$selected_iopoll_mechanism" >&6; }
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13482 $as_echo "none" >&6; }
13483 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13484 fi
13485 fi
13486 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13487
13488 cat >>confdefs.h <<_ACEOF
13489 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13490 _ACEOF
13491
13492
13493
13494
13495 # Check whether --with-nicklen was given.
13496 if test "${with_nicklen+set}" = set; then :
13497 withval=$with_nicklen; nicklen="$withval"
13498 else
13499 nicklen="9"
13500 fi
13501
13502
13503 cat >>confdefs.h <<_ACEOF
13504 #define NICKLEN ($nicklen+1)
13505 _ACEOF
13506
13507
13508
13509
13510 # Check whether --with-topiclen was given.
13511 if test "${with_topiclen+set}" = set; then :
13512 withval=$with_topiclen; topiclen="$withval"
13513 else
13514 topiclen="160"
13515 fi
13516
13517
13518 cat >>confdefs.h <<_ACEOF
13519 #define TOPICLEN ($topiclen)
13520 _ACEOF
13521
13522
13523
13524
13525 # Check whether --with-syslog-facility was given.
13526 if test "${with_syslog_facility+set}" = set; then :
13527 withval=$with_syslog_facility; syslog_facility="$withval"
13528 else
13529 syslog_facility="LOG_LOCAL4"
13530 fi
13531
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define LOG_FACILITY $syslog_facility
13535 _ACEOF
13536
13537
13538
13539 # Check whether --enable-efnet was given.
13540 if test "${enable_efnet+set}" = set; then :
13541 enableval=$enable_efnet; efnet="$enableval"
13542 else
13543 efnet="no"
13544 fi
13545
13546 if test "$efnet" = "yes" ; then
13547 use_efnet="yes"
13548
13549 $as_echo "#define EFNET 1" >>confdefs.h
13550
13551
13552 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13553
13554 else
13555 use_efnet="no"
13556 fi
13557 if test "$use_efnet" = "yes"; then
13558 EFNET_TRUE=
13559 EFNET_FALSE='#'
13560 else
13561 EFNET_TRUE='#'
13562 EFNET_FALSE=
13563 fi
13564
13565
13566
13567 # Check whether --enable-halfops was given.
13568 if test "${enable_halfops+set}" = set; then :
13569 enableval=$enable_halfops; halfops="$enableval"
13570 else
13571 halfops="no"
13572 fi
13573
13574 if test "$halfops" = "yes" ; then
13575
13576 $as_echo "#define HALFOPS 1" >>confdefs.h
13577
13578 fi
13579
13580
13581 # Check whether --enable-debugging was given.
13582 if test "${enable_debugging+set}" = set; then :
13583 enableval=$enable_debugging; debugging="$enableval"
13584 else
13585 debugging="no"
13586 fi
13587
13588 if test "$debugging" = "yes" ; then
13589
13590 $as_echo "#define DEBUG 1" >>confdefs.h
13591
13592 CFLAGS="-Wall -g -O0"
13593 else
13594
13595 $as_echo "#define NDEBUG 1" >>confdefs.h
13596
13597 fi
13598
13599
13600 # Check whether --enable-warnings was given.
13601 if test "${enable_warnings+set}" = set; then :
13602 enableval=$enable_warnings; warnings="$enableval"
13603 else
13604 warnings="no"
13605 fi
13606
13607 if test "$warnings" = "yes" ; then
13608 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13609 fi
13610
13611
13612 for ac_header in syslog.h sys/syslog.h
13613 do :
13614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13615 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13616 eval as_val=\$$as_ac_Header
13617 if test "x$as_val" = x""yes; then :
13618 cat >>confdefs.h <<_ACEOF
13619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13620 _ACEOF
13621
13622 fi
13623
13624 done
13625
13626 # Check whether --enable-syslog was given.
13627 if test "${enable_syslog+set}" = set; then :
13628 enableval=$enable_syslog; syslog="$enableval"
13629 else
13630 syslog="no"
13631 fi
13632
13633 if test "$enableval" != "no" ; then
13634 for option in $enableval ; do
13635 case "$option" in
13636 users)
13637 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13638 ;;
13639 oper)
13640 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13641 ;;
13642 yes) : ;;
13643 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13644 esac
13645 done
13646
13647 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13648
13649 fi
13650
13651
13652
13653 prefix_NONE=
13654 exec_prefix_NONE=
13655 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13656 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13657 eval ac_define_dir="\"$prefix\""
13658 eval ac_define_dir="\"$ac_define_dir\""
13659 PREFIX="$ac_define_dir"
13660
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define PREFIX "$ac_define_dir"
13664 _ACEOF
13665
13666 test "$prefix_NONE" && prefix=NONE
13667 test "$exec_prefix_NONE" && exec_prefix=NONE
13668
13669
13670 prefix_NONE=
13671 exec_prefix_NONE=
13672 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13673 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13674 eval ac_define_dir="\"$sysconfdir\""
13675 eval ac_define_dir="\"$ac_define_dir\""
13676 SYSCONFDIR="$ac_define_dir"
13677
13678
13679 cat >>confdefs.h <<_ACEOF
13680 #define SYSCONFDIR "$ac_define_dir"
13681 _ACEOF
13682
13683 test "$prefix_NONE" && prefix=NONE
13684 test "$exec_prefix_NONE" && exec_prefix=NONE
13685
13686
13687 prefix_NONE=
13688 exec_prefix_NONE=
13689 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13690 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13691 eval ac_define_dir="\"$libdir\""
13692 eval ac_define_dir="\"$ac_define_dir\""
13693 LIBDIR="$ac_define_dir"
13694
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define LIBDIR "$ac_define_dir"
13698 _ACEOF
13699
13700 test "$prefix_NONE" && prefix=NONE
13701 test "$exec_prefix_NONE" && exec_prefix=NONE
13702
13703
13704 prefix_NONE=
13705 exec_prefix_NONE=
13706 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13707 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13708 eval ac_define_dir="\"$datadir\""
13709 eval ac_define_dir="\"$ac_define_dir\""
13710 DATADIR="$ac_define_dir"
13711
13712
13713 cat >>confdefs.h <<_ACEOF
13714 #define DATADIR "$ac_define_dir"
13715 _ACEOF
13716
13717 test "$prefix_NONE" && prefix=NONE
13718 test "$exec_prefix_NONE" && exec_prefix=NONE
13719
13720
13721 prefix_NONE=
13722 exec_prefix_NONE=
13723 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13724 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13725 eval ac_define_dir="\"$localstatedir\""
13726 eval ac_define_dir="\"$ac_define_dir\""
13727 LOCALSTATEDIR="$ac_define_dir"
13728
13729
13730 cat >>confdefs.h <<_ACEOF
13731 #define LOCALSTATEDIR "$ac_define_dir"
13732 _ACEOF
13733
13734 test "$prefix_NONE" && prefix=NONE
13735 test "$exec_prefix_NONE" && exec_prefix=NONE
13736
13737
13738 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13739
13740
13741 cat >confcache <<\_ACEOF
13742 # This file is a shell script that caches the results of configure
13743 # tests run on this system so they can be shared between configure
13744 # scripts and configure runs, see configure's option --config-cache.
13745 # It is not useful on other systems. If it contains results you don't
13746 # want to keep, you may remove or edit it.
13747 #
13748 # config.status only pays attention to the cache file if you give it
13749 # the --recheck option to rerun configure.
13750 #
13751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13753 # following values.
13754
13755 _ACEOF
13756
13757 # The following way of writing the cache mishandles newlines in values,
13758 # but we know of no workaround that is simple, portable, and efficient.
13759 # So, we kill variables containing newlines.
13760 # Ultrix sh set writes to stderr and can't be redirected directly,
13761 # and sets the high bit in the cache file unless we assign to the vars.
13762 (
13763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13764 eval ac_val=\$$ac_var
13765 case $ac_val in #(
13766 *${as_nl}*)
13767 case $ac_var in #(
13768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13770 esac
13771 case $ac_var in #(
13772 _ | IFS | as_nl) ;; #(
13773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13774 *) { eval $ac_var=; unset $ac_var;} ;;
13775 esac ;;
13776 esac
13777 done
13778
13779 (set) 2>&1 |
13780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13781 *${as_nl}ac_space=\ *)
13782 # `set' does not quote correctly, so add quotes: double-quote
13783 # substitution turns \\\\ into \\, and sed turns \\ into \.
13784 sed -n \
13785 "s/'/'\\\\''/g;
13786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13787 ;; #(
13788 *)
13789 # `set' quotes correctly as required by POSIX, so do not add quotes.
13790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13791 ;;
13792 esac |
13793 sort
13794 ) |
13795 sed '
13796 /^ac_cv_env_/b end
13797 t clear
13798 :clear
13799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13800 t end
13801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13802 :end' >>confcache
13803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13804 if test -w "$cache_file"; then
13805 test "x$cache_file" != "x/dev/null" &&
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13807 $as_echo "$as_me: updating cache $cache_file" >&6;}
13808 cat confcache >$cache_file
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13812 fi
13813 fi
13814 rm -f confcache
13815
13816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13817 # Let make expand exec_prefix.
13818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13819
13820 DEFS=-DHAVE_CONFIG_H
13821
13822 ac_libobjs=
13823 ac_ltlibobjs=
13824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13825 # 1. Remove the extension, and $U if already installed.
13826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13829 # will be set to the directory where LIBOBJS objects are built.
13830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13832 done
13833 LIBOBJS=$ac_libobjs
13834
13835 LTLIBOBJS=$ac_ltlibobjs
13836
13837
13838 if test -n "$EXEEXT"; then
13839 am__EXEEXT_TRUE=
13840 am__EXEEXT_FALSE='#'
13841 else
13842 am__EXEEXT_TRUE='#'
13843 am__EXEEXT_FALSE=
13844 fi
13845
13846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13847 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13849 fi
13850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13851 as_fn_error "conditional \"AMDEP\" was never defined.
13852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13853 fi
13854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13855 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13857 fi
13858 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13859 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13861 fi
13862 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13863 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13865 fi
13866 LT_CONFIG_H=config.h
13867
13868 _ltdl_libobjs=
13869 _ltdl_ltlibobjs=
13870 if test -n "$_LT_LIBOBJS"; then
13871 # Remove the extension.
13872 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13873 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13874 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13875 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13876 done
13877 fi
13878 ltdl_LIBOBJS=$_ltdl_libobjs
13879
13880 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13881
13882
13883
13884 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13885 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13887 fi
13888 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13889 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13891 fi
13892 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13893 as_fn_error "conditional \"EFNET\" was never defined.
13894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13895 fi
13896
13897 : ${CONFIG_STATUS=./config.status}
13898 ac_write_fail=0
13899 ac_clean_files_save=$ac_clean_files
13900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13903 as_write_fail=0
13904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13905 #! $SHELL
13906 # Generated by $as_me.
13907 # Run this file to recreate the current configuration.
13908 # Compiler output produced by configure, useful for debugging
13909 # configure, is in config.log if it exists.
13910
13911 debug=false
13912 ac_cs_recheck=false
13913 ac_cs_silent=false
13914
13915 SHELL=\${CONFIG_SHELL-$SHELL}
13916 export SHELL
13917 _ASEOF
13918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13919 ## -------------------- ##
13920 ## M4sh Initialization. ##
13921 ## -------------------- ##
13922
13923 # Be more Bourne compatible
13924 DUALCASE=1; export DUALCASE # for MKS sh
13925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13926 emulate sh
13927 NULLCMD=:
13928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13929 # is contrary to our usage. Disable this feature.
13930 alias -g '${1+"$@"}'='"$@"'
13931 setopt NO_GLOB_SUBST
13932 else
13933 case `(set -o) 2>/dev/null` in #(
13934 *posix*) :
13935 set -o posix ;; #(
13936 *) :
13937 ;;
13938 esac
13939 fi
13940
13941
13942 as_nl='
13943 '
13944 export as_nl
13945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13949 # Prefer a ksh shell builtin over an external printf program on Solaris,
13950 # but without wasting forks for bash or zsh.
13951 if test -z "$BASH_VERSION$ZSH_VERSION" \
13952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13953 as_echo='print -r --'
13954 as_echo_n='print -rn --'
13955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13956 as_echo='printf %s\n'
13957 as_echo_n='printf %s'
13958 else
13959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13961 as_echo_n='/usr/ucb/echo -n'
13962 else
13963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13964 as_echo_n_body='eval
13965 arg=$1;
13966 case $arg in #(
13967 *"$as_nl"*)
13968 expr "X$arg" : "X\\(.*\\)$as_nl";
13969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13970 esac;
13971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13972 '
13973 export as_echo_n_body
13974 as_echo_n='sh -c $as_echo_n_body as_echo'
13975 fi
13976 export as_echo_body
13977 as_echo='sh -c $as_echo_body as_echo'
13978 fi
13979
13980 # The user is always right.
13981 if test "${PATH_SEPARATOR+set}" != set; then
13982 PATH_SEPARATOR=:
13983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13985 PATH_SEPARATOR=';'
13986 }
13987 fi
13988
13989
13990 # IFS
13991 # We need space, tab and new line, in precisely that order. Quoting is
13992 # there to prevent editors from complaining about space-tab.
13993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13994 # splitting by setting IFS to empty value.)
13995 IFS=" "" $as_nl"
13996
13997 # Find who we are. Look in the path if we contain no directory separator.
13998 case $0 in #((
13999 *[\\/]* ) as_myself=$0 ;;
14000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14006 done
14007 IFS=$as_save_IFS
14008
14009 ;;
14010 esac
14011 # We did not find ourselves, most probably we were run as `sh COMMAND'
14012 # in which case we are not to be found in the path.
14013 if test "x$as_myself" = x; then
14014 as_myself=$0
14015 fi
14016 if test ! -f "$as_myself"; then
14017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14018 exit 1
14019 fi
14020
14021 # Unset variables that we do not need and which cause bugs (e.g. in
14022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14023 # suppresses any "Segmentation fault" message there. '((' could
14024 # trigger a bug in pdksh 5.2.14.
14025 for as_var in BASH_ENV ENV MAIL MAILPATH
14026 do eval test x\${$as_var+set} = xset \
14027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14028 done
14029 PS1='$ '
14030 PS2='> '
14031 PS4='+ '
14032
14033 # NLS nuisances.
14034 LC_ALL=C
14035 export LC_ALL
14036 LANGUAGE=C
14037 export LANGUAGE
14038
14039 # CDPATH.
14040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14041
14042
14043 # as_fn_error ERROR [LINENO LOG_FD]
14044 # ---------------------------------
14045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14047 # script with status $?, using 1 if that was 0.
14048 as_fn_error ()
14049 {
14050 as_status=$?; test $as_status -eq 0 && as_status=1
14051 if test "$3"; then
14052 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14054 fi
14055 $as_echo "$as_me: error: $1" >&2
14056 as_fn_exit $as_status
14057 } # as_fn_error
14058
14059
14060 # as_fn_set_status STATUS
14061 # -----------------------
14062 # Set $? to STATUS, without forking.
14063 as_fn_set_status ()
14064 {
14065 return $1
14066 } # as_fn_set_status
14067
14068 # as_fn_exit STATUS
14069 # -----------------
14070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14071 as_fn_exit ()
14072 {
14073 set +e
14074 as_fn_set_status $1
14075 exit $1
14076 } # as_fn_exit
14077
14078 # as_fn_unset VAR
14079 # ---------------
14080 # Portably unset VAR.
14081 as_fn_unset ()
14082 {
14083 { eval $1=; unset $1;}
14084 }
14085 as_unset=as_fn_unset
14086 # as_fn_append VAR VALUE
14087 # ----------------------
14088 # Append the text in VALUE to the end of the definition contained in VAR. Take
14089 # advantage of any shell optimizations that allow amortized linear growth over
14090 # repeated appends, instead of the typical quadratic growth present in naive
14091 # implementations.
14092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14093 eval 'as_fn_append ()
14094 {
14095 eval $1+=\$2
14096 }'
14097 else
14098 as_fn_append ()
14099 {
14100 eval $1=\$$1\$2
14101 }
14102 fi # as_fn_append
14103
14104 # as_fn_arith ARG...
14105 # ------------------
14106 # Perform arithmetic evaluation on the ARGs, and store the result in the
14107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14108 # must be portable across $(()) and expr.
14109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14110 eval 'as_fn_arith ()
14111 {
14112 as_val=$(( $* ))
14113 }'
14114 else
14115 as_fn_arith ()
14116 {
14117 as_val=`expr "$@" || test $? -eq 1`
14118 }
14119 fi # as_fn_arith
14120
14121
14122 if expr a : '\(a\)' >/dev/null 2>&1 &&
14123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14124 as_expr=expr
14125 else
14126 as_expr=false
14127 fi
14128
14129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14130 as_basename=basename
14131 else
14132 as_basename=false
14133 fi
14134
14135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14136 as_dirname=dirname
14137 else
14138 as_dirname=false
14139 fi
14140
14141 as_me=`$as_basename -- "$0" ||
14142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14143 X"$0" : 'X\(//\)$' \| \
14144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X/"$0" |
14146 sed '/^.*\/\([^/][^/]*\)\/*$/{
14147 s//\1/
14148 q
14149 }
14150 /^X\/\(\/\/\)$/{
14151 s//\1/
14152 q
14153 }
14154 /^X\/\(\/\).*/{
14155 s//\1/
14156 q
14157 }
14158 s/.*/./; q'`
14159
14160 # Avoid depending upon Character Ranges.
14161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14164 as_cr_digits='0123456789'
14165 as_cr_alnum=$as_cr_Letters$as_cr_digits
14166
14167 ECHO_C= ECHO_N= ECHO_T=
14168 case `echo -n x` in #(((((
14169 -n*)
14170 case `echo 'xy\c'` in
14171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14172 xy) ECHO_C='\c';;
14173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14174 ECHO_T=' ';;
14175 esac;;
14176 *)
14177 ECHO_N='-n';;
14178 esac
14179
14180 rm -f conf$$ conf$$.exe conf$$.file
14181 if test -d conf$$.dir; then
14182 rm -f conf$$.dir/conf$$.file
14183 else
14184 rm -f conf$$.dir
14185 mkdir conf$$.dir 2>/dev/null
14186 fi
14187 if (echo >conf$$.file) 2>/dev/null; then
14188 if ln -s conf$$.file conf$$ 2>/dev/null; then
14189 as_ln_s='ln -s'
14190 # ... but there are two gotchas:
14191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14193 # In both cases, we have to default to `cp -p'.
14194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14195 as_ln_s='cp -p'
14196 elif ln conf$$.file conf$$ 2>/dev/null; then
14197 as_ln_s=ln
14198 else
14199 as_ln_s='cp -p'
14200 fi
14201 else
14202 as_ln_s='cp -p'
14203 fi
14204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14205 rmdir conf$$.dir 2>/dev/null
14206
14207
14208 # as_fn_mkdir_p
14209 # -------------
14210 # Create "$as_dir" as a directory, including parents if necessary.
14211 as_fn_mkdir_p ()
14212 {
14213
14214 case $as_dir in #(
14215 -*) as_dir=./$as_dir;;
14216 esac
14217 test -d "$as_dir" || eval $as_mkdir_p || {
14218 as_dirs=
14219 while :; do
14220 case $as_dir in #(
14221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14222 *) as_qdir=$as_dir;;
14223 esac
14224 as_dirs="'$as_qdir' $as_dirs"
14225 as_dir=`$as_dirname -- "$as_dir" ||
14226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14227 X"$as_dir" : 'X\(//\)[^/]' \| \
14228 X"$as_dir" : 'X\(//\)$' \| \
14229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14230 $as_echo X"$as_dir" |
14231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14232 s//\1/
14233 q
14234 }
14235 /^X\(\/\/\)[^/].*/{
14236 s//\1/
14237 q
14238 }
14239 /^X\(\/\/\)$/{
14240 s//\1/
14241 q
14242 }
14243 /^X\(\/\).*/{
14244 s//\1/
14245 q
14246 }
14247 s/.*/./; q'`
14248 test -d "$as_dir" && break
14249 done
14250 test -z "$as_dirs" || eval "mkdir $as_dirs"
14251 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14252
14253
14254 } # as_fn_mkdir_p
14255 if mkdir -p . 2>/dev/null; then
14256 as_mkdir_p='mkdir -p "$as_dir"'
14257 else
14258 test -d ./-p && rmdir ./-p
14259 as_mkdir_p=false
14260 fi
14261
14262 if test -x / >/dev/null 2>&1; then
14263 as_test_x='test -x'
14264 else
14265 if ls -dL / >/dev/null 2>&1; then
14266 as_ls_L_option=L
14267 else
14268 as_ls_L_option=
14269 fi
14270 as_test_x='
14271 eval sh -c '\''
14272 if test -d "$1"; then
14273 test -d "$1/.";
14274 else
14275 case $1 in #(
14276 -*)set "./$1";;
14277 esac;
14278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14279 ???[sx]*):;;*)false;;esac;fi
14280 '\'' sh
14281 '
14282 fi
14283 as_executable_p=$as_test_x
14284
14285 # Sed expression to map a string onto a valid CPP name.
14286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14287
14288 # Sed expression to map a string onto a valid variable name.
14289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14290
14291
14292 exec 6>&1
14293 ## ----------------------------------- ##
14294 ## Main body of $CONFIG_STATUS script. ##
14295 ## ----------------------------------- ##
14296 _ASEOF
14297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14298
14299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14300 # Save the log message, to keep $0 and so on meaningful, and to
14301 # report actual input values of CONFIG_FILES etc. instead of their
14302 # values after options handling.
14303 ac_log="
14304 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14305 generated by GNU Autoconf 2.65. Invocation command line was
14306
14307 CONFIG_FILES = $CONFIG_FILES
14308 CONFIG_HEADERS = $CONFIG_HEADERS
14309 CONFIG_LINKS = $CONFIG_LINKS
14310 CONFIG_COMMANDS = $CONFIG_COMMANDS
14311 $ $0 $@
14312
14313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14314 "
14315
14316 _ACEOF
14317
14318 case $ac_config_files in *"
14319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14320 esac
14321
14322 case $ac_config_headers in *"
14323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14324 esac
14325
14326
14327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14328 # Files that config.status was made for.
14329 config_files="$ac_config_files"
14330 config_headers="$ac_config_headers"
14331 config_commands="$ac_config_commands"
14332
14333 _ACEOF
14334
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 ac_cs_usage="\
14337 \`$as_me' instantiates files and other configuration actions
14338 from templates according to the current configuration. Unless the files
14339 and actions are specified as TAGs, all are instantiated by default.
14340
14341 Usage: $0 [OPTION]... [TAG]...
14342
14343 -h, --help print this help, then exit
14344 -V, --version print version number and configuration settings, then exit
14345 --config print configuration, then exit
14346 -q, --quiet, --silent
14347 do not print progress messages
14348 -d, --debug don't remove temporary files
14349 --recheck update $as_me by reconfiguring in the same conditions
14350 --file=FILE[:TEMPLATE]
14351 instantiate the configuration file FILE
14352 --header=FILE[:TEMPLATE]
14353 instantiate the configuration header FILE
14354
14355 Configuration files:
14356 $config_files
14357
14358 Configuration headers:
14359 $config_headers
14360
14361 Configuration commands:
14362 $config_commands
14363
14364 Report bugs to <bugs@ircd-hybrid.org>."
14365
14366 _ACEOF
14367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14368 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14369 ac_cs_version="\\
14370 ircd-hybrid config.status 7.3-rc1
14371 configured by $0, generated by GNU Autoconf 2.65,
14372 with options \\"\$ac_cs_config\\"
14373
14374 Copyright (C) 2009 Free Software Foundation, Inc.
14375 This config.status script is free software; the Free Software Foundation
14376 gives unlimited permission to copy, distribute and modify it."
14377
14378 ac_pwd='$ac_pwd'
14379 srcdir='$srcdir'
14380 INSTALL='$INSTALL'
14381 MKDIR_P='$MKDIR_P'
14382 AWK='$AWK'
14383 test -n "\$AWK" || AWK=awk
14384 _ACEOF
14385
14386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14387 # The default lists apply if the user does not specify any file.
14388 ac_need_defaults=:
14389 while test $# != 0
14390 do
14391 case $1 in
14392 --*=*)
14393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14395 ac_shift=:
14396 ;;
14397 *)
14398 ac_option=$1
14399 ac_optarg=$2
14400 ac_shift=shift
14401 ;;
14402 esac
14403
14404 case $ac_option in
14405 # Handling of the options.
14406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14407 ac_cs_recheck=: ;;
14408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14409 $as_echo "$ac_cs_version"; exit ;;
14410 --config | --confi | --conf | --con | --co | --c )
14411 $as_echo "$ac_cs_config"; exit ;;
14412 --debug | --debu | --deb | --de | --d | -d )
14413 debug=: ;;
14414 --file | --fil | --fi | --f )
14415 $ac_shift
14416 case $ac_optarg in
14417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14418 esac
14419 as_fn_append CONFIG_FILES " '$ac_optarg'"
14420 ac_need_defaults=false;;
14421 --header | --heade | --head | --hea )
14422 $ac_shift
14423 case $ac_optarg in
14424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14425 esac
14426 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14427 ac_need_defaults=false;;
14428 --he | --h)
14429 # Conflict between --help and --header
14430 as_fn_error "ambiguous option: \`$1'
14431 Try \`$0 --help' for more information.";;
14432 --help | --hel | -h )
14433 $as_echo "$ac_cs_usage"; exit ;;
14434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14436 ac_cs_silent=: ;;
14437
14438 # This is an error.
14439 -*) as_fn_error "unrecognized option: \`$1'
14440 Try \`$0 --help' for more information." ;;
14441
14442 *) as_fn_append ac_config_targets " $1"
14443 ac_need_defaults=false ;;
14444
14445 esac
14446 shift
14447 done
14448
14449 ac_configure_extra_args=
14450
14451 if $ac_cs_silent; then
14452 exec 6>/dev/null
14453 ac_configure_extra_args="$ac_configure_extra_args --silent"
14454 fi
14455
14456 _ACEOF
14457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14458 if \$ac_cs_recheck; then
14459 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14460 shift
14461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14462 CONFIG_SHELL='$SHELL'
14463 export CONFIG_SHELL
14464 exec "\$@"
14465 fi
14466
14467 _ACEOF
14468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14469 exec 5>>config.log
14470 {
14471 echo
14472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14473 ## Running $as_me. ##
14474 _ASBOX
14475 $as_echo "$ac_log"
14476 } >&5
14477
14478 _ACEOF
14479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480 #
14481 # INIT-COMMANDS
14482 #
14483 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14484
14485
14486 # The HP-UX ksh and POSIX shell print the target directory to stdout
14487 # if CDPATH is set.
14488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14489
14490 sed_quote_subst='$sed_quote_subst'
14491 double_quote_subst='$double_quote_subst'
14492 delay_variable_subst='$delay_variable_subst'
14493 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14494 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14495 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14496 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14497 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14498 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14499 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14500 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14501 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14502 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14503 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14504 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14505 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14506 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14507 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14508 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14509 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14510 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14511 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14512 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14513 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14514 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14515 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14516 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14517 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14518 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14519 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14520 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14521 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14522 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14523 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14524 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14525 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14526 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14527 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14528 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14529 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14532 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14533 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14534 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14535 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14537 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"`'
14538 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"`'
14539 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14540 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14541 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14542 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14543 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14544 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14545 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14546 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14547 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14548 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14549 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14550 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14551 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14552 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14553 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14554 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14555 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14556 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14557 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14558 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14559 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14560 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14561 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14562 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14563 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14564 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14565 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14566 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14567 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14568 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14569 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14570 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14571 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14572 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14573 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14574 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14575 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14576 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14577 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14578 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14579 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14580 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14581 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14582 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14583 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14584 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14585 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14586 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14587 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14588 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14589 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14590 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14591 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14592 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14593 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14594 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14595 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14596 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14597 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14598 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14599 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14600 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14601 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14602 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14603 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14604 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14605 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14606 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14607 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14608 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14609 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14610 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14611
14612 LTCC='$LTCC'
14613 LTCFLAGS='$LTCFLAGS'
14614 compiler='$compiler_DEFAULT'
14615
14616 # Quote evaled strings.
14617 for var in SED \
14618 GREP \
14619 EGREP \
14620 FGREP \
14621 LD \
14622 NM \
14623 LN_S \
14624 lt_SP2NL \
14625 lt_NL2SP \
14626 reload_flag \
14627 OBJDUMP \
14628 deplibs_check_method \
14629 file_magic_cmd \
14630 AR \
14631 AR_FLAGS \
14632 STRIP \
14633 RANLIB \
14634 CC \
14635 CFLAGS \
14636 compiler \
14637 lt_cv_sys_global_symbol_pipe \
14638 lt_cv_sys_global_symbol_to_cdecl \
14639 lt_cv_sys_global_symbol_to_c_name_address \
14640 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14641 SHELL \
14642 ECHO \
14643 lt_prog_compiler_no_builtin_flag \
14644 lt_prog_compiler_wl \
14645 lt_prog_compiler_pic \
14646 lt_prog_compiler_static \
14647 lt_cv_prog_compiler_c_o \
14648 need_locks \
14649 DSYMUTIL \
14650 NMEDIT \
14651 LIPO \
14652 OTOOL \
14653 OTOOL64 \
14654 shrext_cmds \
14655 export_dynamic_flag_spec \
14656 whole_archive_flag_spec \
14657 compiler_needs_object \
14658 with_gnu_ld \
14659 allow_undefined_flag \
14660 no_undefined_flag \
14661 hardcode_libdir_flag_spec \
14662 hardcode_libdir_flag_spec_ld \
14663 hardcode_libdir_separator \
14664 fix_srcfile_path \
14665 exclude_expsyms \
14666 include_expsyms \
14667 file_list_spec \
14668 variables_saved_for_relink \
14669 libname_spec \
14670 library_names_spec \
14671 soname_spec \
14672 finish_eval \
14673 old_striplib \
14674 striplib; do
14675 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14676 *[\\\\\\\`\\"\\\$]*)
14677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14678 ;;
14679 *)
14680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14681 ;;
14682 esac
14683 done
14684
14685 # Double-quote double-evaled strings.
14686 for var in reload_cmds \
14687 old_postinstall_cmds \
14688 old_postuninstall_cmds \
14689 old_archive_cmds \
14690 extract_expsyms_cmds \
14691 old_archive_from_new_cmds \
14692 old_archive_from_expsyms_cmds \
14693 archive_cmds \
14694 archive_expsym_cmds \
14695 module_cmds \
14696 module_expsym_cmds \
14697 export_symbols_cmds \
14698 prelink_cmds \
14699 postinstall_cmds \
14700 postuninstall_cmds \
14701 finish_cmds \
14702 sys_lib_search_path_spec \
14703 sys_lib_dlsearch_path_spec; do
14704 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14705 *[\\\\\\\`\\"\\\$]*)
14706 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14707 ;;
14708 *)
14709 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14710 ;;
14711 esac
14712 done
14713
14714 # Fix-up fallback echo if it was mangled by the above quoting rules.
14715 case \$lt_ECHO in
14716 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14717 ;;
14718 esac
14719
14720 ac_aux_dir='$ac_aux_dir'
14721 xsi_shell='$xsi_shell'
14722 lt_shell_append='$lt_shell_append'
14723
14724 # See if we are running on zsh, and set the options which allow our
14725 # commands through without removal of \ escapes INIT.
14726 if test -n "\${ZSH_VERSION+set}" ; then
14727 setopt NO_GLOB_SUBST
14728 fi
14729
14730
14731 PACKAGE='$PACKAGE'
14732 VERSION='$VERSION'
14733 TIMESTAMP='$TIMESTAMP'
14734 RM='$RM'
14735 ofile='$ofile'
14736
14737
14738
14739
14740 _ACEOF
14741
14742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14743
14744 # Handling of arguments.
14745 for ac_config_target in $ac_config_targets
14746 do
14747 case $ac_config_target in
14748 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14749 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14750 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14752 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14753 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14754 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14755 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14756 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14757 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14758 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14759 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14760 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14761 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14762 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14763 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14764 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14765 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14766 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14767 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14768
14769 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14770 esac
14771 done
14772
14773
14774 # If the user did not use the arguments to specify the items to instantiate,
14775 # then the envvar interface is used. Set only those that are not.
14776 # We use the long form for the default assignment because of an extremely
14777 # bizarre bug on SunOS 4.1.3.
14778 if $ac_need_defaults; then
14779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14782 fi
14783
14784 # Have a temporary directory for convenience. Make it in the build tree
14785 # simply because there is no reason against having it here, and in addition,
14786 # creating and moving files from /tmp can sometimes cause problems.
14787 # Hook for its removal unless debugging.
14788 # Note that there is a small window in which the directory will not be cleaned:
14789 # after its creation but before its name has been assigned to `$tmp'.
14790 $debug ||
14791 {
14792 tmp=
14793 trap 'exit_status=$?
14794 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14795 ' 0
14796 trap 'as_fn_exit 1' 1 2 13 15
14797 }
14798 # Create a (secure) tmp directory for tmp files.
14799
14800 {
14801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14802 test -n "$tmp" && test -d "$tmp"
14803 } ||
14804 {
14805 tmp=./conf$$-$RANDOM
14806 (umask 077 && mkdir "$tmp")
14807 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14808
14809 # Set up the scripts for CONFIG_FILES section.
14810 # No need to generate them if there are no CONFIG_FILES.
14811 # This happens for instance with `./config.status config.h'.
14812 if test -n "$CONFIG_FILES"; then
14813
14814
14815 ac_cr=`echo X | tr X '\015'`
14816 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14817 # But we know of no other shell where ac_cr would be empty at this
14818 # point, so we can use a bashism as a fallback.
14819 if test "x$ac_cr" = x; then
14820 eval ac_cr=\$\'\\r\'
14821 fi
14822 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14823 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14824 ac_cs_awk_cr='\r'
14825 else
14826 ac_cs_awk_cr=$ac_cr
14827 fi
14828
14829 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14830 _ACEOF
14831
14832
14833 {
14834 echo "cat >conf$$subs.awk <<_ACEOF" &&
14835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14836 echo "_ACEOF"
14837 } >conf$$subs.sh ||
14838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14840 ac_delim='%!_!# '
14841 for ac_last_try in false false false false false :; do
14842 . ./conf$$subs.sh ||
14843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14844
14845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14846 if test $ac_delim_n = $ac_delim_num; then
14847 break
14848 elif $ac_last_try; then
14849 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14850 else
14851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14852 fi
14853 done
14854 rm -f conf$$subs.sh
14855
14856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14858 _ACEOF
14859 sed -n '
14860 h
14861 s/^/S["/; s/!.*/"]=/
14862 p
14863 g
14864 s/^[^!]*!//
14865 :repl
14866 t repl
14867 s/'"$ac_delim"'$//
14868 t delim
14869 :nl
14870 h
14871 s/\(.\{148\}\)..*/\1/
14872 t more1
14873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14874 p
14875 n
14876 b repl
14877 :more1
14878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14879 p
14880 g
14881 s/.\{148\}//
14882 t nl
14883 :delim
14884 h
14885 s/\(.\{148\}\)..*/\1/
14886 t more2
14887 s/["\\]/\\&/g; s/^/"/; s/$/"/
14888 p
14889 b
14890 :more2
14891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14892 p
14893 g
14894 s/.\{148\}//
14895 t delim
14896 ' <conf$$subs.awk | sed '
14897 /^[^""]/{
14898 N
14899 s/\n//
14900 }
14901 ' >>$CONFIG_STATUS || ac_write_fail=1
14902 rm -f conf$$subs.awk
14903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14904 _ACAWK
14905 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14906 for (key in S) S_is_set[key] = 1
14907 FS = ""
14908
14909 }
14910 {
14911 line = $ 0
14912 nfields = split(line, field, "@")
14913 substed = 0
14914 len = length(field[1])
14915 for (i = 2; i < nfields; i++) {
14916 key = field[i]
14917 keylen = length(key)
14918 if (S_is_set[key]) {
14919 value = S[key]
14920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14921 len += length(value) + length(field[++i])
14922 substed = 1
14923 } else
14924 len += 1 + keylen
14925 }
14926
14927 print line
14928 }
14929
14930 _ACAWK
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14933 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14935 else
14936 cat
14937 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14938 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14939 _ACEOF
14940
14941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14943 # trailing colons and then remove the whole line if VPATH becomes empty
14944 # (actually we leave an empty line to preserve line numbers).
14945 if test "x$srcdir" = x.; then
14946 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14947 s/:*\$(srcdir):*/:/
14948 s/:*\${srcdir}:*/:/
14949 s/:*@srcdir@:*/:/
14950 s/^\([^=]*=[ ]*\):*/\1/
14951 s/:*$//
14952 s/^[^=]*=[ ]*$//
14953 }'
14954 fi
14955
14956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14957 fi # test -n "$CONFIG_FILES"
14958
14959 # Set up the scripts for CONFIG_HEADERS section.
14960 # No need to generate them if there are no CONFIG_HEADERS.
14961 # This happens for instance with `./config.status Makefile'.
14962 if test -n "$CONFIG_HEADERS"; then
14963 cat >"$tmp/defines.awk" <<\_ACAWK ||
14964 BEGIN {
14965 _ACEOF
14966
14967 # Transform confdefs.h into an awk script `defines.awk', embedded as
14968 # here-document in config.status, that substitutes the proper values into
14969 # config.h.in to produce config.h.
14970
14971 # Create a delimiter string that does not exist in confdefs.h, to ease
14972 # handling of long lines.
14973 ac_delim='%!_!# '
14974 for ac_last_try in false false :; do
14975 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14976 if test -z "$ac_t"; then
14977 break
14978 elif $ac_last_try; then
14979 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14980 else
14981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14982 fi
14983 done
14984
14985 # For the awk script, D is an array of macro values keyed by name,
14986 # likewise P contains macro parameters if any. Preserve backslash
14987 # newline sequences.
14988
14989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14990 sed -n '
14991 s/.\{148\}/&'"$ac_delim"'/g
14992 t rset
14993 :rset
14994 s/^[ ]*#[ ]*define[ ][ ]*/ /
14995 t def
14996 d
14997 :def
14998 s/\\$//
14999 t bsnl
15000 s/["\\]/\\&/g
15001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15002 D["\1"]=" \3"/p
15003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15004 d
15005 :bsnl
15006 s/["\\]/\\&/g
15007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15008 D["\1"]=" \3\\\\\\n"\\/p
15009 t cont
15010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15011 t cont
15012 d
15013 :cont
15014 n
15015 s/.\{148\}/&'"$ac_delim"'/g
15016 t clear
15017 :clear
15018 s/\\$//
15019 t bsnlc
15020 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15021 d
15022 :bsnlc
15023 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15024 b cont
15025 ' <confdefs.h | sed '
15026 s/'"$ac_delim"'/"\\\
15027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15028
15029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15030 for (key in D) D_is_set[key] = 1
15031 FS = ""
15032 }
15033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15034 line = \$ 0
15035 split(line, arg, " ")
15036 if (arg[1] == "#") {
15037 defundef = arg[2]
15038 mac1 = arg[3]
15039 } else {
15040 defundef = substr(arg[1], 2)
15041 mac1 = arg[2]
15042 }
15043 split(mac1, mac2, "(") #)
15044 macro = mac2[1]
15045 prefix = substr(line, 1, index(line, defundef) - 1)
15046 if (D_is_set[macro]) {
15047 # Preserve the white space surrounding the "#".
15048 print prefix "define", macro P[macro] D[macro]
15049 next
15050 } else {
15051 # Replace #undef with comments. This is necessary, for example,
15052 # in the case of _POSIX_SOURCE, which is predefined and required
15053 # on some systems where configure will not decide to define it.
15054 if (defundef == "undef") {
15055 print "/*", prefix defundef, macro, "*/"
15056 next
15057 }
15058 }
15059 }
15060 { print }
15061 _ACAWK
15062 _ACEOF
15063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15065 fi # test -n "$CONFIG_HEADERS"
15066
15067
15068 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15069 shift
15070 for ac_tag
15071 do
15072 case $ac_tag in
15073 :[FHLC]) ac_mode=$ac_tag; continue;;
15074 esac
15075 case $ac_mode$ac_tag in
15076 :[FHL]*:*);;
15077 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15078 :[FH]-) ac_tag=-:-;;
15079 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15080 esac
15081 ac_save_IFS=$IFS
15082 IFS=:
15083 set x $ac_tag
15084 IFS=$ac_save_IFS
15085 shift
15086 ac_file=$1
15087 shift
15088
15089 case $ac_mode in
15090 :L) ac_source=$1;;
15091 :[FH])
15092 ac_file_inputs=
15093 for ac_f
15094 do
15095 case $ac_f in
15096 -) ac_f="$tmp/stdin";;
15097 *) # Look for the file first in the build tree, then in the source tree
15098 # (if the path is not absolute). The absolute path cannot be DOS-style,
15099 # because $ac_f cannot contain `:'.
15100 test -f "$ac_f" ||
15101 case $ac_f in
15102 [\\/$]*) false;;
15103 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15104 esac ||
15105 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15106 esac
15107 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15108 as_fn_append ac_file_inputs " '$ac_f'"
15109 done
15110
15111 # Let's still pretend it is `configure' which instantiates (i.e., don't
15112 # use $as_me), people would be surprised to read:
15113 # /* config.h. Generated by config.status. */
15114 configure_input='Generated from '`
15115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15116 `' by configure.'
15117 if test x"$ac_file" != x-; then
15118 configure_input="$ac_file. $configure_input"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15120 $as_echo "$as_me: creating $ac_file" >&6;}
15121 fi
15122 # Neutralize special characters interpreted by sed in replacement strings.
15123 case $configure_input in #(
15124 *\&* | *\|* | *\\* )
15125 ac_sed_conf_input=`$as_echo "$configure_input" |
15126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15127 *) ac_sed_conf_input=$configure_input;;
15128 esac
15129
15130 case $ac_tag in
15131 *:-:* | *:-) cat >"$tmp/stdin" \
15132 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15133 esac
15134 ;;
15135 esac
15136
15137 ac_dir=`$as_dirname -- "$ac_file" ||
15138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15139 X"$ac_file" : 'X\(//\)[^/]' \| \
15140 X"$ac_file" : 'X\(//\)$' \| \
15141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15142 $as_echo X"$ac_file" |
15143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15144 s//\1/
15145 q
15146 }
15147 /^X\(\/\/\)[^/].*/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\).*/{
15156 s//\1/
15157 q
15158 }
15159 s/.*/./; q'`
15160 as_dir="$ac_dir"; as_fn_mkdir_p
15161 ac_builddir=.
15162
15163 case "$ac_dir" in
15164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15165 *)
15166 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15167 # A ".." for each directory in $ac_dir_suffix.
15168 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15169 case $ac_top_builddir_sub in
15170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15172 esac ;;
15173 esac
15174 ac_abs_top_builddir=$ac_pwd
15175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15176 # for backward compatibility:
15177 ac_top_builddir=$ac_top_build_prefix
15178
15179 case $srcdir in
15180 .) # We are building in place.
15181 ac_srcdir=.
15182 ac_top_srcdir=$ac_top_builddir_sub
15183 ac_abs_top_srcdir=$ac_pwd ;;
15184 [\\/]* | ?:[\\/]* ) # Absolute name.
15185 ac_srcdir=$srcdir$ac_dir_suffix;
15186 ac_top_srcdir=$srcdir
15187 ac_abs_top_srcdir=$srcdir ;;
15188 *) # Relative name.
15189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15190 ac_top_srcdir=$ac_top_build_prefix$srcdir
15191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15192 esac
15193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15194
15195
15196 case $ac_mode in
15197 :F)
15198 #
15199 # CONFIG_FILE
15200 #
15201
15202 case $INSTALL in
15203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15204 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15205 esac
15206 ac_MKDIR_P=$MKDIR_P
15207 case $MKDIR_P in
15208 [\\/$]* | ?:[\\/]* ) ;;
15209 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15210 esac
15211 _ACEOF
15212
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214 # If the template does not know about datarootdir, expand it.
15215 # FIXME: This hack should be removed a few years after 2.60.
15216 ac_datarootdir_hack=; ac_datarootdir_seen=
15217 ac_sed_dataroot='
15218 /datarootdir/ {
15219 p
15220 q
15221 }
15222 /@datadir@/p
15223 /@docdir@/p
15224 /@infodir@/p
15225 /@localedir@/p
15226 /@mandir@/p'
15227 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15228 *datarootdir*) ac_datarootdir_seen=yes;;
15229 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15231 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15232 _ACEOF
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 ac_datarootdir_hack='
15235 s&@datadir@&$datadir&g
15236 s&@docdir@&$docdir&g
15237 s&@infodir@&$infodir&g
15238 s&@localedir@&$localedir&g
15239 s&@mandir@&$mandir&g
15240 s&\\\${datarootdir}&$datarootdir&g' ;;
15241 esac
15242 _ACEOF
15243
15244 # Neutralize VPATH when `$srcdir' = `.'.
15245 # Shell code in configure.ac might set extrasub.
15246 # FIXME: do we really want to maintain this feature?
15247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15248 ac_sed_extra="$ac_vpsub
15249 $extrasub
15250 _ACEOF
15251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 :t
15253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15254 s|@configure_input@|$ac_sed_conf_input|;t t
15255 s&@top_builddir@&$ac_top_builddir_sub&;t t
15256 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15257 s&@srcdir@&$ac_srcdir&;t t
15258 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15259 s&@top_srcdir@&$ac_top_srcdir&;t t
15260 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15261 s&@builddir@&$ac_builddir&;t t
15262 s&@abs_builddir@&$ac_abs_builddir&;t t
15263 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15264 s&@INSTALL@&$ac_INSTALL&;t t
15265 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15266 $ac_datarootdir_hack
15267 "
15268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15269 || as_fn_error "could not create $ac_file" "$LINENO" 5
15270
15271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15275 which seems to be undefined. Please make sure it is defined." >&5
15276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15277 which seems to be undefined. Please make sure it is defined." >&2;}
15278
15279 rm -f "$tmp/stdin"
15280 case $ac_file in
15281 -) cat "$tmp/out" && rm -f "$tmp/out";;
15282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15283 esac \
15284 || as_fn_error "could not create $ac_file" "$LINENO" 5
15285 ;;
15286 :H)
15287 #
15288 # CONFIG_HEADER
15289 #
15290 if test x"$ac_file" != x-; then
15291 {
15292 $as_echo "/* $configure_input */" \
15293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15294 } >"$tmp/config.h" \
15295 || as_fn_error "could not create $ac_file" "$LINENO" 5
15296 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15299 else
15300 rm -f "$ac_file"
15301 mv "$tmp/config.h" "$ac_file" \
15302 || as_fn_error "could not create $ac_file" "$LINENO" 5
15303 fi
15304 else
15305 $as_echo "/* $configure_input */" \
15306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15307 || as_fn_error "could not create -" "$LINENO" 5
15308 fi
15309 # Compute "$ac_file"'s index in $config_headers.
15310 _am_arg="$ac_file"
15311 _am_stamp_count=1
15312 for _am_header in $config_headers :; do
15313 case $_am_header in
15314 $_am_arg | $_am_arg:* )
15315 break ;;
15316 * )
15317 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15318 esac
15319 done
15320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$_am_arg" : 'X\(//\)[^/]' \| \
15323 X"$_am_arg" : 'X\(//\)$' \| \
15324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15325 $as_echo X"$_am_arg" |
15326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15327 s//\1/
15328 q
15329 }
15330 /^X\(\/\/\)[^/].*/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\/\)$/{
15335 s//\1/
15336 q
15337 }
15338 /^X\(\/\).*/{
15339 s//\1/
15340 q
15341 }
15342 s/.*/./; q'`/stamp-h$_am_stamp_count
15343 ;;
15344
15345 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15346 $as_echo "$as_me: executing $ac_file commands" >&6;}
15347 ;;
15348 esac
15349
15350
15351 case $ac_file$ac_mode in
15352 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15354 # are listed without --file. Let's play safe and only enable the eval
15355 # if we detect the quoting.
15356 case $CONFIG_FILES in
15357 *\'*) eval set x "$CONFIG_FILES" ;;
15358 *) set x $CONFIG_FILES ;;
15359 esac
15360 shift
15361 for mf
15362 do
15363 # Strip MF so we end up with the name of the file.
15364 mf=`echo "$mf" | sed -e 's/:.*$//'`
15365 # Check whether this is an Automake generated Makefile or not.
15366 # We used to match only the files named `Makefile.in', but
15367 # some people rename them; so instead we look at the file content.
15368 # Grep'ing the first line is not enough: some people post-process
15369 # each Makefile.in and add a new line on top of each file to say so.
15370 # Grep'ing the whole file is not good either: AIX grep has a line
15371 # limit of 2048, but all sed's we know have understand at least 4000.
15372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15373 dirpart=`$as_dirname -- "$mf" ||
15374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15375 X"$mf" : 'X\(//\)[^/]' \| \
15376 X"$mf" : 'X\(//\)$' \| \
15377 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15378 $as_echo X"$mf" |
15379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15380 s//\1/
15381 q
15382 }
15383 /^X\(\/\/\)[^/].*/{
15384 s//\1/
15385 q
15386 }
15387 /^X\(\/\/\)$/{
15388 s//\1/
15389 q
15390 }
15391 /^X\(\/\).*/{
15392 s//\1/
15393 q
15394 }
15395 s/.*/./; q'`
15396 else
15397 continue
15398 fi
15399 # Extract the definition of DEPDIR, am__include, and am__quote
15400 # from the Makefile without running `make'.
15401 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15402 test -z "$DEPDIR" && continue
15403 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15404 test -z "am__include" && continue
15405 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15406 # When using ansi2knr, U may be empty or an underscore; expand it
15407 U=`sed -n 's/^U = //p' < "$mf"`
15408 # Find all dependency output files, they are included files with
15409 # $(DEPDIR) in their names. We invoke sed twice because it is the
15410 # simplest approach to changing $(DEPDIR) to its actual value in the
15411 # expansion.
15412 for file in `sed -n "
15413 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15414 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15415 # Make sure the directory exists.
15416 test -f "$dirpart/$file" && continue
15417 fdir=`$as_dirname -- "$file" ||
15418 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15419 X"$file" : 'X\(//\)[^/]' \| \
15420 X"$file" : 'X\(//\)$' \| \
15421 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15422 $as_echo X"$file" |
15423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15424 s//\1/
15425 q
15426 }
15427 /^X\(\/\/\)[^/].*/{
15428 s//\1/
15429 q
15430 }
15431 /^X\(\/\/\)$/{
15432 s//\1/
15433 q
15434 }
15435 /^X\(\/\).*/{
15436 s//\1/
15437 q
15438 }
15439 s/.*/./; q'`
15440 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15441 # echo "creating $dirpart/$file"
15442 echo '# dummy' > "$dirpart/$file"
15443 done
15444 done
15445 }
15446 ;;
15447 "libtool":C)
15448
15449 # See if we are running on zsh, and set the options which allow our
15450 # commands through without removal of \ escapes.
15451 if test -n "${ZSH_VERSION+set}" ; then
15452 setopt NO_GLOB_SUBST
15453 fi
15454
15455 cfgfile="${ofile}T"
15456 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15457 $RM "$cfgfile"
15458
15459 cat <<_LT_EOF >> "$cfgfile"
15460 #! $SHELL
15461
15462 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15463 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15464 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15465 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15466 #
15467 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15468 # 2006, 2007, 2008 Free Software Foundation, Inc.
15469 # Written by Gordon Matzigkeit, 1996
15470 #
15471 # This file is part of GNU Libtool.
15472 #
15473 # GNU Libtool is free software; you can redistribute it and/or
15474 # modify it under the terms of the GNU General Public License as
15475 # published by the Free Software Foundation; either version 2 of
15476 # the License, or (at your option) any later version.
15477 #
15478 # As a special exception to the GNU General Public License,
15479 # if you distribute this file as part of a program or library that
15480 # is built using GNU Libtool, you may include this file under the
15481 # same distribution terms that you use for the rest of that program.
15482 #
15483 # GNU Libtool is distributed in the hope that it will be useful,
15484 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15486 # GNU General Public License for more details.
15487 #
15488 # You should have received a copy of the GNU General Public License
15489 # along with GNU Libtool; see the file COPYING. If not, a copy
15490 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15491 # obtained by writing to the Free Software Foundation, Inc.,
15492 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15493
15494
15495 # The names of the tagged configurations supported by this script.
15496 available_tags=""
15497
15498 # ### BEGIN LIBTOOL CONFIG
15499
15500 # Which release of libtool.m4 was used?
15501 macro_version=$macro_version
15502 macro_revision=$macro_revision
15503
15504 # Whether or not to build static libraries.
15505 build_old_libs=$enable_static
15506
15507 # Whether or not to build shared libraries.
15508 build_libtool_libs=$enable_shared
15509
15510 # What type of objects to build.
15511 pic_mode=$pic_mode
15512
15513 # Whether or not to optimize for fast installation.
15514 fast_install=$enable_fast_install
15515
15516 # The host system.
15517 host_alias=$host_alias
15518 host=$host
15519 host_os=$host_os
15520
15521 # The build system.
15522 build_alias=$build_alias
15523 build=$build
15524 build_os=$build_os
15525
15526 # A sed program that does not truncate output.
15527 SED=$lt_SED
15528
15529 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15530 Xsed="\$SED -e 1s/^X//"
15531
15532 # A grep program that handles long lines.
15533 GREP=$lt_GREP
15534
15535 # An ERE matcher.
15536 EGREP=$lt_EGREP
15537
15538 # A literal string matcher.
15539 FGREP=$lt_FGREP
15540
15541 # A BSD- or MS-compatible name lister.
15542 NM=$lt_NM
15543
15544 # Whether we need soft or hard links.
15545 LN_S=$lt_LN_S
15546
15547 # What is the maximum length of a command?
15548 max_cmd_len=$max_cmd_len
15549
15550 # Object file suffix (normally "o").
15551 objext=$ac_objext
15552
15553 # Executable file suffix (normally "").
15554 exeext=$exeext
15555
15556 # whether the shell understands "unset".
15557 lt_unset=$lt_unset
15558
15559 # turn spaces into newlines.
15560 SP2NL=$lt_lt_SP2NL
15561
15562 # turn newlines into spaces.
15563 NL2SP=$lt_lt_NL2SP
15564
15565 # How to create reloadable object files.
15566 reload_flag=$lt_reload_flag
15567 reload_cmds=$lt_reload_cmds
15568
15569 # An object symbol dumper.
15570 OBJDUMP=$lt_OBJDUMP
15571
15572 # Method to check whether dependent libraries are shared objects.
15573 deplibs_check_method=$lt_deplibs_check_method
15574
15575 # Command to use when deplibs_check_method == "file_magic".
15576 file_magic_cmd=$lt_file_magic_cmd
15577
15578 # The archiver.
15579 AR=$lt_AR
15580 AR_FLAGS=$lt_AR_FLAGS
15581
15582 # A symbol stripping program.
15583 STRIP=$lt_STRIP
15584
15585 # Commands used to install an old-style archive.
15586 RANLIB=$lt_RANLIB
15587 old_postinstall_cmds=$lt_old_postinstall_cmds
15588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15589
15590 # A C compiler.
15591 LTCC=$lt_CC
15592
15593 # LTCC compiler flags.
15594 LTCFLAGS=$lt_CFLAGS
15595
15596 # Take the output of nm and produce a listing of raw symbols and C names.
15597 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15598
15599 # Transform the output of nm in a proper C declaration.
15600 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15601
15602 # Transform the output of nm in a C name address pair.
15603 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15604
15605 # Transform the output of nm in a C name address pair when lib prefix is needed.
15606 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15607
15608 # The name of the directory that contains temporary libtool files.
15609 objdir=$objdir
15610
15611 # Shell to use when invoking shell scripts.
15612 SHELL=$lt_SHELL
15613
15614 # An echo program that does not interpret backslashes.
15615 ECHO=$lt_ECHO
15616
15617 # Used to examine libraries when file_magic_cmd begins with "file".
15618 MAGIC_CMD=$MAGIC_CMD
15619
15620 # Must we lock files when doing compilation?
15621 need_locks=$lt_need_locks
15622
15623 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15624 DSYMUTIL=$lt_DSYMUTIL
15625
15626 # Tool to change global to local symbols on Mac OS X.
15627 NMEDIT=$lt_NMEDIT
15628
15629 # Tool to manipulate fat objects and archives on Mac OS X.
15630 LIPO=$lt_LIPO
15631
15632 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15633 OTOOL=$lt_OTOOL
15634
15635 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15636 OTOOL64=$lt_OTOOL64
15637
15638 # Old archive suffix (normally "a").
15639 libext=$libext
15640
15641 # Shared library suffix (normally ".so").
15642 shrext_cmds=$lt_shrext_cmds
15643
15644 # The commands to extract the exported symbol list from a shared archive.
15645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15646
15647 # Variables whose values should be saved in libtool wrapper scripts and
15648 # restored at link time.
15649 variables_saved_for_relink=$lt_variables_saved_for_relink
15650
15651 # Do we need the "lib" prefix for modules?
15652 need_lib_prefix=$need_lib_prefix
15653
15654 # Do we need a version for libraries?
15655 need_version=$need_version
15656
15657 # Library versioning type.
15658 version_type=$version_type
15659
15660 # Shared library runtime path variable.
15661 runpath_var=$runpath_var
15662
15663 # Shared library path variable.
15664 shlibpath_var=$shlibpath_var
15665
15666 # Is shlibpath searched before the hard-coded library search path?
15667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15668
15669 # Format of library name prefix.
15670 libname_spec=$lt_libname_spec
15671
15672 # List of archive names. First name is the real one, the rest are links.
15673 # The last name is the one that the linker finds with -lNAME
15674 library_names_spec=$lt_library_names_spec
15675
15676 # The coded name of the library, if different from the real name.
15677 soname_spec=$lt_soname_spec
15678
15679 # Command to use after installation of a shared archive.
15680 postinstall_cmds=$lt_postinstall_cmds
15681
15682 # Command to use after uninstallation of a shared archive.
15683 postuninstall_cmds=$lt_postuninstall_cmds
15684
15685 # Commands used to finish a libtool library installation in a directory.
15686 finish_cmds=$lt_finish_cmds
15687
15688 # As "finish_cmds", except a single script fragment to be evaled but
15689 # not shown.
15690 finish_eval=$lt_finish_eval
15691
15692 # Whether we should hardcode library paths into libraries.
15693 hardcode_into_libs=$hardcode_into_libs
15694
15695 # Compile-time system search path for libraries.
15696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15697
15698 # Run-time system search path for libraries.
15699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15700
15701 # Whether dlopen is supported.
15702 dlopen_support=$enable_dlopen
15703
15704 # Whether dlopen of programs is supported.
15705 dlopen_self=$enable_dlopen_self
15706
15707 # Whether dlopen of statically linked programs is supported.
15708 dlopen_self_static=$enable_dlopen_self_static
15709
15710 # Commands to strip libraries.
15711 old_striplib=$lt_old_striplib
15712 striplib=$lt_striplib
15713
15714
15715 # The linker used to build libraries.
15716 LD=$lt_LD
15717
15718 # Commands used to build an old-style archive.
15719 old_archive_cmds=$lt_old_archive_cmds
15720
15721 # A language specific compiler.
15722 CC=$lt_compiler
15723
15724 # Is the compiler the GNU compiler?
15725 with_gcc=$GCC
15726
15727 # Compiler flag to turn off builtin functions.
15728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15729
15730 # How to pass a linker flag through the compiler.
15731 wl=$lt_lt_prog_compiler_wl
15732
15733 # Additional compiler flags for building library objects.
15734 pic_flag=$lt_lt_prog_compiler_pic
15735
15736 # Compiler flag to prevent dynamic linking.
15737 link_static_flag=$lt_lt_prog_compiler_static
15738
15739 # Does compiler simultaneously support -c and -o options?
15740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15741
15742 # Whether or not to add -lc for building shared libraries.
15743 build_libtool_need_lc=$archive_cmds_need_lc
15744
15745 # Whether or not to disallow shared libs when runtime libs are static.
15746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15747
15748 # Compiler flag to allow reflexive dlopens.
15749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15750
15751 # Compiler flag to generate shared objects directly from archives.
15752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15753
15754 # Whether the compiler copes with passing no objects directly.
15755 compiler_needs_object=$lt_compiler_needs_object
15756
15757 # Create an old-style archive from a shared archive.
15758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15759
15760 # Create a temporary old-style archive to link instead of a shared archive.
15761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15762
15763 # Commands used to build a shared archive.
15764 archive_cmds=$lt_archive_cmds
15765 archive_expsym_cmds=$lt_archive_expsym_cmds
15766
15767 # Commands used to build a loadable module if different from building
15768 # a shared archive.
15769 module_cmds=$lt_module_cmds
15770 module_expsym_cmds=$lt_module_expsym_cmds
15771
15772 # Whether we are building with GNU ld or not.
15773 with_gnu_ld=$lt_with_gnu_ld
15774
15775 # Flag that allows shared libraries with undefined symbols to be built.
15776 allow_undefined_flag=$lt_allow_undefined_flag
15777
15778 # Flag that enforces no undefined symbols.
15779 no_undefined_flag=$lt_no_undefined_flag
15780
15781 # Flag to hardcode \$libdir into a binary during linking.
15782 # This must work even if \$libdir does not exist
15783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15784
15785 # If ld is used when linking, flag to hardcode \$libdir into a binary
15786 # during linking. This must work even if \$libdir does not exist.
15787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15788
15789 # Whether we need a single "-rpath" flag with a separated argument.
15790 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15791
15792 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15793 # DIR into the resulting binary.
15794 hardcode_direct=$hardcode_direct
15795
15796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15797 # DIR into the resulting binary and the resulting library dependency is
15798 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15799 # library is relocated.
15800 hardcode_direct_absolute=$hardcode_direct_absolute
15801
15802 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15803 # into the resulting binary.
15804 hardcode_minus_L=$hardcode_minus_L
15805
15806 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15807 # into the resulting binary.
15808 hardcode_shlibpath_var=$hardcode_shlibpath_var
15809
15810 # Set to "yes" if building a shared library automatically hardcodes DIR
15811 # into the library and all subsequent libraries and executables linked
15812 # against it.
15813 hardcode_automatic=$hardcode_automatic
15814
15815 # Set to yes if linker adds runtime paths of dependent libraries
15816 # to runtime path list.
15817 inherit_rpath=$inherit_rpath
15818
15819 # Whether libtool must link a program against all its dependency libraries.
15820 link_all_deplibs=$link_all_deplibs
15821
15822 # Fix the shell variable \$srcfile for the compiler.
15823 fix_srcfile_path=$lt_fix_srcfile_path
15824
15825 # Set to "yes" if exported symbols are required.
15826 always_export_symbols=$always_export_symbols
15827
15828 # The commands to list exported symbols.
15829 export_symbols_cmds=$lt_export_symbols_cmds
15830
15831 # Symbols that should not be listed in the preloaded symbols.
15832 exclude_expsyms=$lt_exclude_expsyms
15833
15834 # Symbols that must always be exported.
15835 include_expsyms=$lt_include_expsyms
15836
15837 # Commands necessary for linking programs (against libraries) with templates.
15838 prelink_cmds=$lt_prelink_cmds
15839
15840 # Specify filename containing input files.
15841 file_list_spec=$lt_file_list_spec
15842
15843 # How to hardcode a shared library path into an executable.
15844 hardcode_action=$hardcode_action
15845
15846 # ### END LIBTOOL CONFIG
15847
15848 _LT_EOF
15849
15850 case $host_os in
15851 aix3*)
15852 cat <<\_LT_EOF >> "$cfgfile"
15853 # AIX sometimes has problems with the GCC collect2 program. For some
15854 # reason, if we set the COLLECT_NAMES environment variable, the problems
15855 # vanish in a puff of smoke.
15856 if test "X${COLLECT_NAMES+set}" != Xset; then
15857 COLLECT_NAMES=
15858 export COLLECT_NAMES
15859 fi
15860 _LT_EOF
15861 ;;
15862 esac
15863
15864
15865 ltmain="$ac_aux_dir/ltmain.sh"
15866
15867
15868 # We use sed instead of cat because bash on DJGPP gets confused if
15869 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15870 # text mode, it properly converts lines to CR/LF. This bash problem
15871 # is reportedly fixed, but why not run on old versions too?
15872 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15873 || (rm -f "$cfgfile"; exit 1)
15874
15875 case $xsi_shell in
15876 yes)
15877 cat << \_LT_EOF >> "$cfgfile"
15878
15879 # func_dirname file append nondir_replacement
15880 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15881 # otherwise set result to NONDIR_REPLACEMENT.
15882 func_dirname ()
15883 {
15884 case ${1} in
15885 */*) func_dirname_result="${1%/*}${2}" ;;
15886 * ) func_dirname_result="${3}" ;;
15887 esac
15888 }
15889
15890 # func_basename file
15891 func_basename ()
15892 {
15893 func_basename_result="${1##*/}"
15894 }
15895
15896 # func_dirname_and_basename file append nondir_replacement
15897 # perform func_basename and func_dirname in a single function
15898 # call:
15899 # dirname: Compute the dirname of FILE. If nonempty,
15900 # add APPEND to the result, otherwise set result
15901 # to NONDIR_REPLACEMENT.
15902 # value returned in "$func_dirname_result"
15903 # basename: Compute filename of FILE.
15904 # value retuned in "$func_basename_result"
15905 # Implementation must be kept synchronized with func_dirname
15906 # and func_basename. For efficiency, we do not delegate to
15907 # those functions but instead duplicate the functionality here.
15908 func_dirname_and_basename ()
15909 {
15910 case ${1} in
15911 */*) func_dirname_result="${1%/*}${2}" ;;
15912 * ) func_dirname_result="${3}" ;;
15913 esac
15914 func_basename_result="${1##*/}"
15915 }
15916
15917 # func_stripname prefix suffix name
15918 # strip PREFIX and SUFFIX off of NAME.
15919 # PREFIX and SUFFIX must not contain globbing or regex special
15920 # characters, hashes, percent signs, but SUFFIX may contain a leading
15921 # dot (in which case that matches only a dot).
15922 func_stripname ()
15923 {
15924 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15925 # positional parameters, so assign one to ordinary parameter first.
15926 func_stripname_result=${3}
15927 func_stripname_result=${func_stripname_result#"${1}"}
15928 func_stripname_result=${func_stripname_result%"${2}"}
15929 }
15930
15931 # func_opt_split
15932 func_opt_split ()
15933 {
15934 func_opt_split_opt=${1%%=*}
15935 func_opt_split_arg=${1#*=}
15936 }
15937
15938 # func_lo2o object
15939 func_lo2o ()
15940 {
15941 case ${1} in
15942 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15943 *) func_lo2o_result=${1} ;;
15944 esac
15945 }
15946
15947 # func_xform libobj-or-source
15948 func_xform ()
15949 {
15950 func_xform_result=${1%.*}.lo
15951 }
15952
15953 # func_arith arithmetic-term...
15954 func_arith ()
15955 {
15956 func_arith_result=$(( $* ))
15957 }
15958
15959 # func_len string
15960 # STRING may not start with a hyphen.
15961 func_len ()
15962 {
15963 func_len_result=${#1}
15964 }
15965
15966 _LT_EOF
15967 ;;
15968 *) # Bourne compatible functions.
15969 cat << \_LT_EOF >> "$cfgfile"
15970
15971 # func_dirname file append nondir_replacement
15972 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15973 # otherwise set result to NONDIR_REPLACEMENT.
15974 func_dirname ()
15975 {
15976 # Extract subdirectory from the argument.
15977 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15978 if test "X$func_dirname_result" = "X${1}"; then
15979 func_dirname_result="${3}"
15980 else
15981 func_dirname_result="$func_dirname_result${2}"
15982 fi
15983 }
15984
15985 # func_basename file
15986 func_basename ()
15987 {
15988 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15989 }
15990
15991
15992 # func_stripname prefix suffix name
15993 # strip PREFIX and SUFFIX off of NAME.
15994 # PREFIX and SUFFIX must not contain globbing or regex special
15995 # characters, hashes, percent signs, but SUFFIX may contain a leading
15996 # dot (in which case that matches only a dot).
15997 # func_strip_suffix prefix name
15998 func_stripname ()
15999 {
16000 case ${2} in
16001 .*) func_stripname_result=`$ECHO "X${3}" \
16002 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16003 *) func_stripname_result=`$ECHO "X${3}" \
16004 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16005 esac
16006 }
16007
16008 # sed scripts:
16009 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16010 my_sed_long_arg='1s/^-[^=]*=//'
16011
16012 # func_opt_split
16013 func_opt_split ()
16014 {
16015 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16016 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16017 }
16018
16019 # func_lo2o object
16020 func_lo2o ()
16021 {
16022 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16023 }
16024
16025 # func_xform libobj-or-source
16026 func_xform ()
16027 {
16028 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16029 }
16030
16031 # func_arith arithmetic-term...
16032 func_arith ()
16033 {
16034 func_arith_result=`expr "$@"`
16035 }
16036
16037 # func_len string
16038 # STRING may not start with a hyphen.
16039 func_len ()
16040 {
16041 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16042 }
16043
16044 _LT_EOF
16045 esac
16046
16047 case $lt_shell_append in
16048 yes)
16049 cat << \_LT_EOF >> "$cfgfile"
16050
16051 # func_append var value
16052 # Append VALUE to the end of shell variable VAR.
16053 func_append ()
16054 {
16055 eval "$1+=\$2"
16056 }
16057 _LT_EOF
16058 ;;
16059 *)
16060 cat << \_LT_EOF >> "$cfgfile"
16061
16062 # func_append var value
16063 # Append VALUE to the end of shell variable VAR.
16064 func_append ()
16065 {
16066 eval "$1=\$$1\$2"
16067 }
16068
16069 _LT_EOF
16070 ;;
16071 esac
16072
16073
16074 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16075 || (rm -f "$cfgfile"; exit 1)
16076
16077 mv -f "$cfgfile" "$ofile" ||
16078 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16079 chmod +x "$ofile"
16080
16081 ;;
16082
16083 esac
16084 done # for ac_tag
16085
16086
16087 as_fn_exit 0
16088 _ACEOF
16089 ac_clean_files=$ac_clean_files_save
16090
16091 test $ac_write_fail = 0 ||
16092 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16093
16094
16095 # configure is writing to config.log, and then calls config.status.
16096 # config.status does its own redirection, appending to config.log.
16097 # Unfortunately, on DOS this fails, as config.log is still kept open
16098 # by configure, so config.status won't be able to write to it; its
16099 # output is simply discarded. So we exec the FD to /dev/null,
16100 # effectively closing config.log, so it can be properly (re)opened and
16101 # appended to by config.status. When coming back to configure, we
16102 # need to make the FD available again.
16103 if test "$no_create" != yes; then
16104 ac_cs_success=:
16105 ac_config_status_args=
16106 test "$silent" = yes &&
16107 ac_config_status_args="$ac_config_status_args --quiet"
16108 exec 5>/dev/null
16109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16110 exec 5>>config.log
16111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16112 # would make configure fail if this is the last instruction.
16113 $ac_cs_success || as_fn_exit $?
16114 fi
16115
16116 #
16117 # CONFIG_SUBDIRS section.
16118 #
16119 if test "$no_recursion" != yes; then
16120
16121 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16122 # so they do not pile up.
16123 ac_sub_configure_args=
16124 ac_prev=
16125 eval "set x $ac_configure_args"
16126 shift
16127 for ac_arg
16128 do
16129 if test -n "$ac_prev"; then
16130 ac_prev=
16131 continue
16132 fi
16133 case $ac_arg in
16134 -cache-file | --cache-file | --cache-fil | --cache-fi \
16135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16136 ac_prev=cache_file ;;
16137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16139 | --c=*)
16140 ;;
16141 --config-cache | -C)
16142 ;;
16143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16144 ac_prev=srcdir ;;
16145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16146 ;;
16147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16148 ac_prev=prefix ;;
16149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16150 ;;
16151 --disable-option-checking)
16152 ;;
16153 *)
16154 case $ac_arg in
16155 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16156 esac
16157 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16158 esac
16159 done
16160
16161 # Always prepend --prefix to ensure using the same prefix
16162 # in subdir configurations.
16163 ac_arg="--prefix=$prefix"
16164 case $ac_arg in
16165 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16166 esac
16167 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16168
16169 # Pass --silent
16170 if test "$silent" = yes; then
16171 ac_sub_configure_args="--silent $ac_sub_configure_args"
16172 fi
16173
16174 # Always prepend --disable-option-checking to silence warnings, since
16175 # different subdirs can have different --enable and --with options.
16176 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16177
16178 ac_popdir=`pwd`
16179 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16180
16181 # Do not complain, so a configure script can configure whichever
16182 # parts of a large source tree are present.
16183 test -d "$srcdir/$ac_dir" || continue
16184
16185 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16187 $as_echo "$ac_msg" >&6
16188 as_dir="$ac_dir"; as_fn_mkdir_p
16189 ac_builddir=.
16190
16191 case "$ac_dir" in
16192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16193 *)
16194 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16195 # A ".." for each directory in $ac_dir_suffix.
16196 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16197 case $ac_top_builddir_sub in
16198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16200 esac ;;
16201 esac
16202 ac_abs_top_builddir=$ac_pwd
16203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16204 # for backward compatibility:
16205 ac_top_builddir=$ac_top_build_prefix
16206
16207 case $srcdir in
16208 .) # We are building in place.
16209 ac_srcdir=.
16210 ac_top_srcdir=$ac_top_builddir_sub
16211 ac_abs_top_srcdir=$ac_pwd ;;
16212 [\\/]* | ?:[\\/]* ) # Absolute name.
16213 ac_srcdir=$srcdir$ac_dir_suffix;
16214 ac_top_srcdir=$srcdir
16215 ac_abs_top_srcdir=$srcdir ;;
16216 *) # Relative name.
16217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16218 ac_top_srcdir=$ac_top_build_prefix$srcdir
16219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16220 esac
16221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16222
16223
16224 cd "$ac_dir"
16225
16226 # Check for guested configure; otherwise get Cygnus style configure.
16227 if test -f "$ac_srcdir/configure.gnu"; then
16228 ac_sub_configure=$ac_srcdir/configure.gnu
16229 elif test -f "$ac_srcdir/configure"; then
16230 ac_sub_configure=$ac_srcdir/configure
16231 elif test -f "$ac_srcdir/configure.in"; then
16232 # This should be Cygnus configure.
16233 ac_sub_configure=$ac_aux_dir/configure
16234 else
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16236 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16237 ac_sub_configure=
16238 fi
16239
16240 # The recursion is here.
16241 if test -n "$ac_sub_configure"; then
16242 # Make the cache file name correct relative to the subdirectory.
16243 case $cache_file in
16244 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16245 *) # Relative name.
16246 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16247 esac
16248
16249 { $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
16250 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16251 # The eval makes quoting arguments work.
16252 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16253 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16254 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16255 fi
16256
16257 cd "$ac_popdir"
16258 done
16259 fi
16260 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16262 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16263 fi
16264

Properties

Name Value
svn:executable *