ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/configure
Revision: 2407
Committed: Wed Jul 17 20:29:02 2013 UTC (13 years ago) by michael
File size: 502491 byte(s)
Log Message:
- ioengine changes as of 17JUL13

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 2383 2013-07-06 17:05:28Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='TRUNK'
597 PACKAGE_STRING='ircd-hybrid TRUNK'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENGINE_EPOLL_FALSE
652 ENGINE_EPOLL_TRUE
653 ENGINE_KQUEUE_FALSE
654 ENGINE_KQUEUE_TRUE
655 ENGINE_DEVPOLL_FALSE
656 ENGINE_DEVPOLL_TRUE
657 ENGINE_POLL_FALSE
658 ENGINE_POLL_TRUE
659 ENABLE_SSL_FALSE
660 ENABLE_SSL_TRUE
661 LTDLOPEN
662 LT_CONFIG_H
663 CONVENIENCE_LTDL_FALSE
664 CONVENIENCE_LTDL_TRUE
665 INSTALL_LTDL_FALSE
666 INSTALL_LTDL_TRUE
667 ARGZ_H
668 sys_symbol_underscore
669 LIBADD_DL
670 LT_DLPREOPEN
671 LIBADD_DLD_LINK
672 LIBADD_SHL_LOAD
673 LIBADD_DLOPEN
674 LT_DLLOADERS
675 INCLTDL
676 LTDLINCL
677 LTDLDEPS
678 LIBLTDL
679 CPP
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 ac_ct_AR
688 AR
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 LIBTOOL
709 LEXLIB
710 LEX_OUTPUT_ROOT
711 LEX
712 YFLAGS
713 YACC
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_maintainer_mode
804 enable_dependency_tracking
805 enable_static
806 enable_shared
807 with_pic
808 enable_fast_install
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 with_included_ltdl
813 with_ltdl_include
814 with_ltdl_lib
815 enable_ltdl_install
816 enable_libgeoip
817 enable_openssl
818 enable_poll
819 enable_devpoll
820 enable_kqueue
821 enable_epoll
822 enable_assert
823 enable_halfops
824 enable_debugging
825 enable_warnings
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 YACC
836 YFLAGS
837 CPP'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-maintainer-mode
1459 enable make rules and dependencies not useful (and
1460 sometimes confusing) to the casual installer
1461 --enable-dependency-tracking
1462 do not reject slow dependency extractors
1463 --disable-dependency-tracking
1464 speeds up one-time build
1465 --enable-static[=PKGS] build static libraries [default=no]
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-fast-install[=PKGS]
1468 optimize for fast installation [default=yes]
1469 --disable-libtool-lock avoid locking (might break parallel builds)
1470 --enable-ltdl-install install libltdl
1471 --disable-libgeoip Disable GeoIP support
1472 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1473 --disable-openssl Disable OpenSSL support.
1474 --disable-poll Disable the poll-based engine
1475 --disable-devpoll Disable the /dev/poll-based engine
1476 --disable-kqueue Disable the kqueue-based engine
1477 --disable-epoll Disable the epoll-based engine
1478 --enable-assert Enable assert() statements
1479 --enable-halfops Enable halfops support.
1480 --enable-debugging Enable debugging.
1481 --enable-warnings Enable compiler warnings.
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-sysroot=DIR Search for dependent libraries within DIR
1490 (or the compiler's sysroot if not specified).
1491 --with-included-ltdl use the GNU ltdl sources included here
1492 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1494
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 YACC The `Yet Another Compiler Compiler' implementation to use.
1504 Defaults to the first program found out of: `bison -y', `byacc',
1505 `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1509 CPP C preprocessor
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <bugs@ircd-hybrid.org>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 ircd-hybrid configure TRUNK
1578 generated by GNU Autoconf 2.69
1579
1580 Copyright (C) 2012 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_link
1674
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694 else
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_cpp
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_func
1851
1852 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1853 # ---------------------------------------------
1854 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_decl ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 as_decl_name=`echo $2|sed 's/ *(.*//'`
1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1862 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main ()
1871 {
1872 #ifndef $as_decl_name
1873 #ifdef __cplusplus
1874 (void) $as_decl_use;
1875 #else
1876 (void) $as_decl_name;
1877 #endif
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_decl
1897
1898 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1899 # -------------------------------------------
1900 # Tests whether TYPE exists after having included INCLUDES, setting cache
1901 # variable VAR accordingly.
1902 ac_fn_c_check_type ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 eval "$3=no"
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 if (sizeof ($2))
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main ()
1929 {
1930 if (sizeof (($2)))
1931 return 0;
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937
1938 else
1939 eval "$3=yes"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_type
1951
1952 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1953 # --------------------------------------------
1954 # Tries to find the compile-time value of EXPR in a program that includes
1955 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1956 # computed
1957 ac_fn_c_compute_int ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if test "$cross_compiling" = yes; then
1961 # Depending upon the size, compute the lo and hi bounds.
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) >= 0)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_lo=0 ac_mid=0
1978 while :; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_hi=$ac_mid; break
1995 else
1996 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1997 if test $ac_lo -le $ac_mid; then
1998 ac_lo= ac_hi=
1999 break
2000 fi
2001 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 static int test_array [1 - 2 * !(($2) < 0)];
2013 test_array [0] = 0;
2014 return test_array [0];
2015
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_hi=-1 ac_mid=-1
2022 while :; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2030 test_array [0] = 0;
2031 return test_array [0];
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=$ac_mid; break
2039 else
2040 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2041 if test $ac_mid -le $ac_hi; then
2042 ac_lo= ac_hi=
2043 break
2044 fi
2045 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 done
2049 else
2050 ac_lo= ac_hi=
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 # Binary search between lo and hi bounds.
2056 while test "x$ac_lo" != "x$ac_hi"; do
2057 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0;
2066 return test_array [0];
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=$ac_mid
2074 else
2075 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 case $ac_lo in #((
2080 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2081 '') ac_retval=1 ;;
2082 esac
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 static long int longval () { return $2; }
2088 static unsigned long int ulongval () { return $2; }
2089 #include <stdio.h>
2090 #include <stdlib.h>
2091 int
2092 main ()
2093 {
2094
2095 FILE *f = fopen ("conftest.val", "w");
2096 if (! f)
2097 return 1;
2098 if (($2) < 0)
2099 {
2100 long int i = longval ();
2101 if (i != ($2))
2102 return 1;
2103 fprintf (f, "%ld", i);
2104 }
2105 else
2106 {
2107 unsigned long int i = ulongval ();
2108 if (i != ($2))
2109 return 1;
2110 fprintf (f, "%lu", i);
2111 }
2112 /* Do not output a trailing newline, as this causes \r\n confusion
2113 on some platforms. */
2114 return ferror (f) || fclose (f) != 0;
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_run "$LINENO"; then :
2121 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2122 else
2123 ac_retval=1
2124 fi
2125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2126 conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 rm -f conftest.val
2128
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 as_fn_set_status $ac_retval
2132
2133 } # ac_fn_c_compute_int
2134
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2140 {
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $5
2150 int
2151 main ()
2152 {
2153 static $2 ac_aggr;
2154 if (ac_aggr.$3)
2155 return 0;
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$4=yes"
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $5
2166 int
2167 main ()
2168 {
2169 static $2 ac_aggr;
2170 if (sizeof ac_aggr.$3)
2171 return 0;
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 eval "$4=yes"
2178 else
2179 eval "$4=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 eval ac_res=\$$4
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189
2190 } # ac_fn_c_check_member
2191
2192 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2193 # -------------------------------------------------------
2194 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2195 # the include files in INCLUDES and setting the cache variable VAR
2196 # accordingly.
2197 ac_fn_c_check_header_mongrel ()
2198 {
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if eval \${$3+:} false; then :
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 fi
2206 eval ac_res=\$$3
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 else
2210 # Is the header compilable?
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2212 $as_echo_n "checking $2 usability... " >&6; }
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 #include <$2>
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_header_compiler=yes
2220 else
2221 ac_header_compiler=no
2222 fi
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2225 $as_echo "$ac_header_compiler" >&6; }
2226
2227 # Is the header present?
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2229 $as_echo_n "checking $2 presence... " >&6; }
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_c_try_cpp "$LINENO"; then :
2235 ac_header_preproc=yes
2236 else
2237 ac_header_preproc=no
2238 fi
2239 rm -f conftest.err conftest.i conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2241 $as_echo "$ac_header_preproc" >&6; }
2242
2243 # So? What about this header?
2244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2245 yes:no: )
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2247 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250 ;;
2251 no:yes:* )
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2253 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2255 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2257 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2259 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2261 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2262 ( $as_echo "## ----------------------------------- ##
2263 ## Report this to bugs@ircd-hybrid.org ##
2264 ## ----------------------------------- ##"
2265 ) | sed "s/^/$as_me: WARNING: /" >&2
2266 ;;
2267 esac
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if eval \${$3+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 eval "$3=\$ac_header_compiler"
2274 fi
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 fi
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281 } # ac_fn_c_check_header_mongrel
2282 cat >config.log <<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2285
2286 It was created by ircd-hybrid $as_me TRUNK, which was
2287 generated by GNU Autoconf 2.69. Invocation command line was
2288
2289 $ $0 $@
2290
2291 _ACEOF
2292 exec 5>>config.log
2293 {
2294 cat <<_ASUNAME
2295 ## --------- ##
2296 ## Platform. ##
2297 ## --------- ##
2298
2299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307
2308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315
2316 _ASUNAME
2317
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 $as_echo "PATH: $as_dir"
2324 done
2325 IFS=$as_save_IFS
2326
2327 } >&5
2328
2329 cat >&5 <<_ACEOF
2330
2331
2332 ## ----------- ##
2333 ## Core tests. ##
2334 ## ----------- ##
2335
2336 _ACEOF
2337
2338
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_configure_args=
2345 ac_configure_args0=
2346 ac_configure_args1=
2347 ac_must_keep_next=false
2348 for ac_pass in 1 2
2349 do
2350 for ac_arg
2351 do
2352 case $ac_arg in
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2356 continue ;;
2357 *\'*)
2358 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 esac
2360 case $ac_pass in
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 2)
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2366 else
2367 case $ac_arg in
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 esac
2375 ;;
2376 -* ) ac_must_keep_next=true ;;
2377 esac
2378 fi
2379 as_fn_append ac_configure_args " '$ac_arg'"
2380 ;;
2381 esac
2382 done
2383 done
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2386
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2394 {
2395 echo
2396
2397 $as_echo "## ---------------- ##
2398 ## Cache variables. ##
2399 ## ---------------- ##"
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2402 (
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2425 *)
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 ;;
2428 esac |
2429 sort
2430 )
2431 echo
2432
2433 $as_echo "## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##"
2436 echo
2437 for ac_var in $ac_subst_vars
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446
2447 if test -n "$ac_subst_files"; then
2448 $as_echo "## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##"
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
2464 $as_echo "## ----------- ##
2465 ## confdefs.h. ##
2466 ## ----------- ##"
2467 echo
2468 cat confdefs.h
2469 echo
2470 fi
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2474 } >&5
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 exit $exit_status
2478 ' 0
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481 done
2482 ac_signal=0
2483
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2486
2487 $as_echo "/* confdefs.h */" > confdefs.h
2488
2489 # Predefined preprocessor variables.
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2513 _ACEOF
2514
2515
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2518 ac_site_file1=NONE
2519 ac_site_file2=NONE
2520 if test -n "$CONFIG_SITE"; then
2521 # We do not want a PATH search for config.site.
2522 case $CONFIG_SITE in #((
2523 -*) ac_site_file1=./$CONFIG_SITE;;
2524 */*) ac_site_file1=$CONFIG_SITE;;
2525 *) ac_site_file1=./$CONFIG_SITE;;
2526 esac
2527 elif test "x$prefix" != xNONE; then
2528 ac_site_file1=$prefix/share/config.site
2529 ac_site_file2=$prefix/etc/config.site
2530 else
2531 ac_site_file1=$ac_default_prefix/share/config.site
2532 ac_site_file2=$ac_default_prefix/etc/config.site
2533 fi
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 do
2536 test "x$ac_site_file" = xNONE && continue
2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2541 . "$ac_site_file" \
2542 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "failed to load site script $ac_site_file
2545 See \`config.log' for more details" "$LINENO" 5; }
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 as_fn_append ac_func_list " strtok_r"
2567 as_fn_append ac_func_list " usleep"
2568 as_fn_append ac_func_list " strlcat"
2569 as_fn_append ac_func_list " strlcpy"
2570 as_fn_append ac_func_list " kqueue"
2571 as_fn_append ac_func_list " poll"
2572 as_fn_append ac_header_list " crypt.h"
2573 as_fn_append ac_header_list " sys/resource.h"
2574 as_fn_append ac_header_list " sys/param.h"
2575 as_fn_append ac_header_list " poll.h"
2576 as_fn_append ac_header_list " sys/devpoll.h"
2577 as_fn_append ac_header_list " sys/event.h"
2578 as_fn_append ac_header_list " sys/epoll.h"
2579 as_fn_append ac_header_list " types.h"
2580 as_fn_append ac_header_list " socket.h"
2581 as_fn_append ac_header_list " sys/wait.h"
2582 as_fn_append ac_header_list " wait.h"
2583 # Check that the precious variables saved in the cache have kept the same
2584 # value.
2585 ac_cache_corrupted=false
2586 for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2601 *)
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632 done
2633 if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639 fi
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651 am__api_version='1.14'
2652
2653 ac_aux_dir=
2654 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2655 if test -f "$ac_dir/install-sh"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/install-sh -c"
2658 break
2659 elif test -f "$ac_dir/install.sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install.sh -c"
2662 break
2663 elif test -f "$ac_dir/shtool"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/shtool install -c"
2666 break
2667 fi
2668 done
2669 if test -z "$ac_aux_dir"; then
2670 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2671 fi
2672
2673 # These three variables are undocumented and unsupported,
2674 # and are intended to be withdrawn in a future Autoconf release.
2675 # They can cause serious problems if a builder's source tree is in a directory
2676 # whose full name contains unusual characters.
2677 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2678 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2679 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2680
2681
2682 # Find a good install program. We prefer a C program (faster),
2683 # so one script is as good as another. But avoid the broken or
2684 # incompatible versions:
2685 # SysV /etc/install, /usr/sbin/install
2686 # SunOS /usr/etc/install
2687 # IRIX /sbin/install
2688 # AIX /bin/install
2689 # AmigaOS /C/install, which installs bootblocks on floppy discs
2690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2693 # OS/2's system install, which has a completely different semantic
2694 # ./install, which can be erroneously created by make from ./install.sh.
2695 # Reject install programs that cannot install multiple files.
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2697 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2698 if test -z "$INSTALL"; then
2699 if ${ac_cv_path_install+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 # Account for people who put trailing slashes in PATH elements.
2708 case $as_dir/ in #((
2709 ./ | .// | /[cC]/* | \
2710 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2711 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2712 /usr/ucb/* ) ;;
2713 *)
2714 # OSF1 and SCO ODT 3.0 have their own names for install.
2715 # Don't use installbsd from OSF since it installs stuff as root
2716 # by default.
2717 for ac_prog in ginstall scoinst install; do
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2720 if test $ac_prog = install &&
2721 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # AIX install. It has an incompatible calling convention.
2723 :
2724 elif test $ac_prog = install &&
2725 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2726 # program-specific install script used by HP pwplus--don't use.
2727 :
2728 else
2729 rm -rf conftest.one conftest.two conftest.dir
2730 echo one > conftest.one
2731 echo two > conftest.two
2732 mkdir conftest.dir
2733 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2734 test -s conftest.one && test -s conftest.two &&
2735 test -s conftest.dir/conftest.one &&
2736 test -s conftest.dir/conftest.two
2737 then
2738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2739 break 3
2740 fi
2741 fi
2742 fi
2743 done
2744 done
2745 ;;
2746 esac
2747
2748 done
2749 IFS=$as_save_IFS
2750
2751 rm -rf conftest.one conftest.two conftest.dir
2752
2753 fi
2754 if test "${ac_cv_path_install+set}" = set; then
2755 INSTALL=$ac_cv_path_install
2756 else
2757 # As a last resort, use the slow shell script. Don't cache a
2758 # value for INSTALL within a source directory, because that will
2759 # break other packages using the cache if that directory is
2760 # removed, or if the value is a relative name.
2761 INSTALL=$ac_install_sh
2762 fi
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2765 $as_echo "$INSTALL" >&6; }
2766
2767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2768 # It thinks the first close brace ends the variable substitution.
2769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2770
2771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2772
2773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2776 $as_echo_n "checking whether build environment is sane... " >&6; }
2777 # Reject unsafe characters in $srcdir or the absolute working directory
2778 # name. Accept space and tab only in the latter.
2779 am_lf='
2780 '
2781 case `pwd` in
2782 *[\\\"\#\$\&\'\`$am_lf]*)
2783 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2784 esac
2785 case $srcdir in
2786 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2787 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2788 esac
2789
2790 # Do 'set' in a subshell so we don't clobber the current shell's
2791 # arguments. Must try -L first in case configure is actually a
2792 # symlink; some systems play weird games with the mod time of symlinks
2793 # (eg FreeBSD returns the mod time of the symlink's containing
2794 # directory).
2795 if (
2796 am_has_slept=no
2797 for am_try in 1 2; do
2798 echo "timestamp, slept: $am_has_slept" > conftest.file
2799 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2800 if test "$*" = "X"; then
2801 # -L didn't work.
2802 set X `ls -t "$srcdir/configure" conftest.file`
2803 fi
2804 if test "$*" != "X $srcdir/configure conftest.file" \
2805 && test "$*" != "X conftest.file $srcdir/configure"; then
2806
2807 # If neither matched, then we have a broken ls. This can happen
2808 # if, for instance, CONFIG_SHELL is bash and it inherits a
2809 # broken ls alias from the environment. This has actually
2810 # happened. Such a system could not be considered "sane".
2811 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2812 alias in your environment" "$LINENO" 5
2813 fi
2814 if test "$2" = conftest.file || test $am_try -eq 2; then
2815 break
2816 fi
2817 # Just in case.
2818 sleep 1
2819 am_has_slept=yes
2820 done
2821 test "$2" = conftest.file
2822 )
2823 then
2824 # Ok.
2825 :
2826 else
2827 as_fn_error $? "newly created file is older than distributed files!
2828 Check your system clock" "$LINENO" 5
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2832 # If we didn't sleep, we still need to ensure time stamps of config.status and
2833 # generated files are strictly newer.
2834 am_sleep_pid=
2835 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2836 ( sleep 1 ) &
2837 am_sleep_pid=$!
2838 fi
2839
2840 rm -f conftest.file
2841
2842 test "$program_prefix" != NONE &&
2843 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2844 # Use a double $ so make ignores it.
2845 test "$program_suffix" != NONE &&
2846 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2847 # Double any \ or $.
2848 # By default was `s,x,x', remove it if useless.
2849 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2850 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2851
2852 # expand $ac_aux_dir to an absolute path
2853 am_aux_dir=`cd $ac_aux_dir && pwd`
2854
2855 if test x"${MISSING+set}" != xset; then
2856 case $am_aux_dir in
2857 *\ * | *\ *)
2858 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2859 *)
2860 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2861 esac
2862 fi
2863 # Use eval to expand $SHELL
2864 if eval "$MISSING --is-lightweight"; then
2865 am_missing_run="$MISSING "
2866 else
2867 am_missing_run=
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2869 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2870 fi
2871
2872 if test x"${install_sh}" != xset; then
2873 case $am_aux_dir in
2874 *\ * | *\ *)
2875 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2876 *)
2877 install_sh="\${SHELL} $am_aux_dir/install-sh"
2878 esac
2879 fi
2880
2881 # Installed binaries are usually stripped using 'strip' when the user
2882 # run "make install-strip". However 'strip' might not be the right
2883 # tool to use in cross-compilation environments, therefore Automake
2884 # will honor the 'STRIP' environment variable to overrule this program.
2885 if test "$cross_compiling" != no; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}strip; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_STRIP+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$STRIP"; then
2895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 STRIP=$ac_cv_prog_STRIP
2915 if test -n "$STRIP"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2917 $as_echo "$STRIP" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_STRIP"; then
2926 ac_ct_STRIP=$STRIP
2927 # Extract the first word of "strip", so it can be a program name with args.
2928 set dummy strip; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_STRIP"; then
2935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_STRIP="strip"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2955 if test -n "$ac_ct_STRIP"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2957 $as_echo "$ac_ct_STRIP" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_STRIP" = x; then
2964 STRIP=":"
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 STRIP=$ac_ct_STRIP
2973 fi
2974 else
2975 STRIP="$ac_cv_prog_STRIP"
2976 fi
2977
2978 fi
2979 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2980
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2982 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2983 if test -z "$MKDIR_P"; then
2984 if ${ac_cv_path_mkdir+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_prog in mkdir gmkdir; do
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2995 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2996 'mkdir (GNU coreutils) '* | \
2997 'mkdir (coreutils) '* | \
2998 'mkdir (fileutils) '4.1*)
2999 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3000 break 3;;
3001 esac
3002 done
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008
3009 test -d ./--version && rmdir ./--version
3010 if test "${ac_cv_path_mkdir+set}" = set; then
3011 MKDIR_P="$ac_cv_path_mkdir -p"
3012 else
3013 # As a last resort, use the slow shell script. Don't cache a
3014 # value for MKDIR_P within a source directory, because that will
3015 # break other packages using the cache if that directory is
3016 # removed, or if the value is a relative name.
3017 MKDIR_P="$ac_install_sh -d"
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3021 $as_echo "$MKDIR_P" >&6; }
3022
3023 for ac_prog in gawk mawk nawk awk
3024 do
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_AWK+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$AWK"; then
3033 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_AWK="$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 AWK=$ac_cv_prog_AWK
3053 if test -n "$AWK"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3055 $as_echo "$AWK" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$AWK" && break
3063 done
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3066 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3067 set x ${MAKE-make}
3068 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3069 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 cat >conftest.make <<\_ACEOF
3073 SHELL = /bin/sh
3074 all:
3075 @echo '@@@%%%=$(MAKE)=@@@%%%'
3076 _ACEOF
3077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3079 *@@@%%%=?*=@@@%%%*)
3080 eval ac_cv_prog_make_${ac_make}_set=yes;;
3081 *)
3082 eval ac_cv_prog_make_${ac_make}_set=no;;
3083 esac
3084 rm -f conftest.make
3085 fi
3086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 $as_echo "yes" >&6; }
3089 SET_MAKE=
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 SET_MAKE="MAKE=${MAKE-make}"
3094 fi
3095
3096 rm -rf .tst 2>/dev/null
3097 mkdir .tst 2>/dev/null
3098 if test -d .tst; then
3099 am__leading_dot=.
3100 else
3101 am__leading_dot=_
3102 fi
3103 rmdir .tst 2>/dev/null
3104
3105 # Check whether --enable-silent-rules was given.
3106 if test "${enable_silent_rules+set}" = set; then :
3107 enableval=$enable_silent_rules;
3108 fi
3109
3110 case $enable_silent_rules in # (((
3111 yes) AM_DEFAULT_VERBOSITY=0;;
3112 no) AM_DEFAULT_VERBOSITY=1;;
3113 *) AM_DEFAULT_VERBOSITY=1;;
3114 esac
3115 am_make=${MAKE-make}
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3117 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3118 if ${am_cv_make_support_nested_variables+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if $as_echo 'TRUE=$(BAR$(V))
3122 BAR0=false
3123 BAR1=true
3124 V=1
3125 am__doit:
3126 @$(TRUE)
3127 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3128 am_cv_make_support_nested_variables=yes
3129 else
3130 am_cv_make_support_nested_variables=no
3131 fi
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3134 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3135 if test $am_cv_make_support_nested_variables = yes; then
3136 AM_V='$(V)'
3137 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3138 else
3139 AM_V=$AM_DEFAULT_VERBOSITY
3140 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3141 fi
3142 AM_BACKSLASH='\'
3143
3144 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3145 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3146 # is not polluted with repeated "-I."
3147 am__isrc=' -I$(srcdir)'
3148 # test to see if srcdir already configured
3149 if test -f $srcdir/config.status; then
3150 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3151 fi
3152 fi
3153
3154 # test whether we have cygpath
3155 if test -z "$CYGPATH_W"; then
3156 if (cygpath --version) >/dev/null 2>/dev/null; then
3157 CYGPATH_W='cygpath -w'
3158 else
3159 CYGPATH_W=echo
3160 fi
3161 fi
3162
3163
3164 # Define the identity of the package.
3165 PACKAGE='ircd-hybrid'
3166 VERSION='TRUNK'
3167
3168
3169 cat >>confdefs.h <<_ACEOF
3170 #define PACKAGE "$PACKAGE"
3171 _ACEOF
3172
3173
3174 cat >>confdefs.h <<_ACEOF
3175 #define VERSION "$VERSION"
3176 _ACEOF
3177
3178 # Some tools Automake needs.
3179
3180 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3181
3182
3183 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3184
3185
3186 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3187
3188
3189 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3190
3191
3192 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3193
3194 # For better backward compatibility. To be removed once Automake 1.9.x
3195 # dies out for good. For more background, see:
3196 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3198 mkdir_p='$(MKDIR_P)'
3199
3200 # We need awk for the "check" target. The system "awk" is bad on
3201 # some platforms.
3202 # Always define AMTAR for backward compatibility. Yes, it's still used
3203 # in the wild :-( We should find a proper way to deprecate it ...
3204 AMTAR='$${TAR-tar}'
3205
3206
3207 # We'll loop over all known methods to create a tar archive until one works.
3208 _am_tools='gnutar pax cpio none'
3209
3210 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3211
3212
3213
3214
3215
3216
3217 # POSIX will say in a future version that running "rm -f" with no argument
3218 # is OK; and we want to be able to make that assumption in our Makefile
3219 # recipes. So use an aggressive probe to check that the usage we want is
3220 # actually supported "in the wild" to an acceptable degree.
3221 # See automake bug#10828.
3222 # To make any issue more visible, cause the running configure to be aborted
3223 # by default if the 'rm' program in use doesn't match our expectations; the
3224 # user can still override this though.
3225 if rm -f && rm -fr && rm -rf; then : OK; else
3226 cat >&2 <<'END'
3227 Oops!
3228
3229 Your 'rm' program seems unable to run without file operands specified
3230 on the command line, even when the '-f' option is present. This is contrary
3231 to the behaviour of most rm programs out there, and not conforming with
3232 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3233
3234 Please tell bug-automake@gnu.org about your system, including the value
3235 of your $PATH and any error possibly output before this message. This
3236 can help us improve future automake versions.
3237
3238 END
3239 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3240 echo 'Configuration will proceed anyway, since you have set the' >&2
3241 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3242 echo >&2
3243 else
3244 cat >&2 <<'END'
3245 Aborting the configuration process, to ensure you take notice of the issue.
3246
3247 You can download and install GNU coreutils to get an 'rm' implementation
3248 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3249
3250 If you want to complete the configuration process using your problematic
3251 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3252 to "yes", and re-run configure.
3253
3254 END
3255 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3256 fi
3257 fi
3258
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3260 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3261 # Check whether --enable-maintainer-mode was given.
3262 if test "${enable_maintainer_mode+set}" = set; then :
3263 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3264 else
3265 USE_MAINTAINER_MODE=no
3266 fi
3267
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3269 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3270 if test $USE_MAINTAINER_MODE = yes; then
3271 MAINTAINER_MODE_TRUE=
3272 MAINTAINER_MODE_FALSE='#'
3273 else
3274 MAINTAINER_MODE_TRUE='#'
3275 MAINTAINER_MODE_FALSE=
3276 fi
3277
3278 MAINT=$MAINTAINER_MODE_TRUE
3279
3280
3281 ac_config_headers="$ac_config_headers config.h"
3282
3283
3284
3285 # Checks for programs.
3286 DEPDIR="${am__leading_dot}deps"
3287
3288 ac_config_commands="$ac_config_commands depfiles"
3289
3290
3291 am_make=${MAKE-make}
3292 cat > confinc << 'END'
3293 am__doit:
3294 @echo this is the am__doit target
3295 .PHONY: am__doit
3296 END
3297 # If we don't find an include directive, just comment out the code.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3299 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3300 am__include="#"
3301 am__quote=
3302 _am_result=none
3303 # First try GNU make style include.
3304 echo "include confinc" > confmf
3305 # Ignore all kinds of additional output from 'make'.
3306 case `$am_make -s -f confmf 2> /dev/null` in #(
3307 *the\ am__doit\ target*)
3308 am__include=include
3309 am__quote=
3310 _am_result=GNU
3311 ;;
3312 esac
3313 # Now try BSD make style include.
3314 if test "$am__include" = "#"; then
3315 echo '.include "confinc"' > confmf
3316 case `$am_make -s -f confmf 2> /dev/null` in #(
3317 *the\ am__doit\ target*)
3318 am__include=.include
3319 am__quote="\""
3320 _am_result=BSD
3321 ;;
3322 esac
3323 fi
3324
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3327 $as_echo "$_am_result" >&6; }
3328 rm -f confinc confmf
3329
3330 # Check whether --enable-dependency-tracking was given.
3331 if test "${enable_dependency_tracking+set}" = set; then :
3332 enableval=$enable_dependency_tracking;
3333 fi
3334
3335 if test "x$enable_dependency_tracking" != xno; then
3336 am_depcomp="$ac_aux_dir/depcomp"
3337 AMDEPBACKSLASH='\'
3338 am__nodep='_no'
3339 fi
3340 if test "x$enable_dependency_tracking" != xno; then
3341 AMDEP_TRUE=
3342 AMDEP_FALSE='#'
3343 else
3344 AMDEP_TRUE='#'
3345 AMDEP_FALSE=
3346 fi
3347
3348
3349 ac_ext=c
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 fi
3393 if test -z "$ac_cv_prog_CC"; then
3394 ac_ct_CC=$CC
3395 # Extract the first word of "gcc", so it can be a program name with args.
3396 set dummy gcc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_ac_ct_CC="gcc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431 if test "x$ac_ct_CC" = x; then
3432 CC=""
3433 else
3434 case $cross_compiling:$ac_tool_warned in
3435 yes:)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned=yes ;;
3439 esac
3440 CC=$ac_ct_CC
3441 fi
3442 else
3443 CC="$ac_cv_prog_CC"
3444 fi
3445
3446 if test -z "$CC"; then
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_CC="${ac_tool_prefix}cc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 fi
3487 if test -z "$CC"; then
3488 # Extract the first word of "cc", so it can be a program name with args.
3489 set dummy cc; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 ac_prog_rejected=no
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3507 ac_prog_rejected=yes
3508 continue
3509 fi
3510 ac_cv_prog_CC="cc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 if test $ac_prog_rejected = yes; then
3519 # We found a bogon in the path, so make sure we never use it.
3520 set dummy $ac_cv_prog_CC
3521 shift
3522 if test $# != 0; then
3523 # We chose a different compiler from the bogus one.
3524 # However, it has the same basename, so the bogon will be chosen
3525 # first if we set CC to just the basename; use the full file name.
3526 shift
3527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3528 fi
3529 fi
3530 fi
3531 fi
3532 CC=$ac_cv_prog_CC
3533 if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 $as_echo "$CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 fi
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 for ac_prog in cl.exe
3546 do
3547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 test -n "$CC" && break
3585 done
3586 fi
3587 if test -z "$CC"; then
3588 ac_ct_CC=$CC
3589 for ac_prog in cl.exe
3590 do
3591 # Extract the first word of "$ac_prog", so it can be a program name with args.
3592 set dummy $ac_prog; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="$ac_prog"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627
3628 test -n "$ac_ct_CC" && break
3629 done
3630
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CC=$ac_ct_CC
3641 fi
3642 fi
3643
3644 fi
3645
3646
3647 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error $? "no acceptable C compiler found in \$PATH
3650 See \`config.log' for more details" "$LINENO" 5; }
3651
3652 # Provide some information about the compiler.
3653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3654 set X $ac_compile
3655 ac_compiler=$2
3656 for ac_option in --version -v -V -qversion; do
3657 { { ac_try="$ac_compiler $ac_option >&5"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3665 ac_status=$?
3666 if test -s conftest.err; then
3667 sed '10a\
3668 ... rest of stderr output deleted ...
3669 10q' conftest.err >conftest.er1
3670 cat conftest.er1 >&5
3671 fi
3672 rm -f conftest.er1 conftest.err
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675 done
3676
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 ac_clean_files_save=$ac_clean_files
3689 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3690 # Try to create an executable without -o first, disregard a.out.
3691 # It will help us diagnose broken compilers, and finding out an intuition
3692 # of exeext.
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3694 $as_echo_n "checking whether the C compiler works... " >&6; }
3695 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3696
3697 # The possible output files:
3698 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3699
3700 ac_rmfiles=
3701 for ac_file in $ac_files
3702 do
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3706 esac
3707 done
3708 rm -f $ac_rmfiles
3709
3710 if { { ac_try="$ac_link_default"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link_default") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3722 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3723 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3724 # so that the user can short-circuit this test for compilers unknown to
3725 # Autoconf.
3726 for ac_file in $ac_files ''
3727 do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3731 ;;
3732 [ab].out )
3733 # We found the default executable, but exeext='' is most
3734 # certainly right.
3735 break;;
3736 *.* )
3737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3738 then :; else
3739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740 fi
3741 # We set ac_cv_exeext here because the later test for it is not
3742 # safe: cross compilers may not add the suffix if given an `-o'
3743 # argument, so we may need to know it at that point already.
3744 # Even if this section looks crufty: it has the advantage of
3745 # actually working.
3746 break;;
3747 * )
3748 break;;
3749 esac
3750 done
3751 test "$ac_cv_exeext" = no && ac_cv_exeext=
3752
3753 else
3754 ac_file=''
3755 fi
3756 if test -z "$ac_file"; then :
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error 77 "C compiler cannot create executables
3765 See \`config.log' for more details" "$LINENO" 5; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768 $as_echo "yes" >&6; }
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3771 $as_echo_n "checking for C compiler default output file name... " >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3773 $as_echo "$ac_file" >&6; }
3774 ac_exeext=$ac_cv_exeext
3775
3776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3779 $as_echo_n "checking for suffix of executables... " >&6; }
3780 if { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3792 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3793 # work properly (i.e., refer to `conftest.exe'), while it won't with
3794 # `rm'.
3795 for ac_file in conftest.exe conftest conftest.*; do
3796 test -f "$ac_file" || continue
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3799 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 break;;
3801 * ) break;;
3802 esac
3803 done
3804 else
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3808 See \`config.log' for more details" "$LINENO" 5; }
3809 fi
3810 rm -f conftest conftest$ac_cv_exeext
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3812 $as_echo "$ac_cv_exeext" >&6; }
3813
3814 rm -f conftest.$ac_ext
3815 EXEEXT=$ac_cv_exeext
3816 ac_exeext=$EXEEXT
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <stdio.h>
3820 int
3821 main ()
3822 {
3823 FILE *f = fopen ("conftest.out", "w");
3824 return ferror (f) || fclose (f) != 0;
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 ac_clean_files="$ac_clean_files conftest.out"
3831 # Check that the compiler produces executables we can run. If not, either
3832 # the compiler is broken, or we cross compile.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3834 $as_echo_n "checking whether we are cross compiling... " >&6; }
3835 if test "$cross_compiling" != yes; then
3836 { { ac_try="$ac_link"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_link") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3847 if { ac_try='./conftest$ac_cv_exeext'
3848 { { case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_try") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; }; then
3858 cross_compiling=no
3859 else
3860 if test "$cross_compiling" = maybe; then
3861 cross_compiling=yes
3862 else
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "cannot run C compiled programs.
3866 If you meant to cross compile, use \`--host'.
3867 See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 fi
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3872 $as_echo "$cross_compiling" >&6; }
3873
3874 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3875 ac_clean_files=$ac_clean_files_save
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3877 $as_echo_n "checking for suffix of object files... " >&6; }
3878 if ${ac_cv_objext+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.o conftest.obj
3893 if { { ac_try="$ac_compile"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_compile") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 for ac_file in conftest.o conftest.obj conftest.*; do
3905 test -f "$ac_file" || continue;
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3909 break;;
3910 esac
3911 done
3912 else
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error $? "cannot compute suffix of object files: cannot compile
3919 See \`config.log' for more details" "$LINENO" 5; }
3920 fi
3921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3924 $as_echo "$ac_cv_objext" >&6; }
3925 OBJEXT=$ac_cv_objext
3926 ac_objext=$OBJEXT
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3928 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3929 if ${ac_cv_c_compiler_gnu+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938 #ifndef __GNUC__
3939 choke me
3940 #endif
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_compiler_gnu=yes
3948 else
3949 ac_compiler_gnu=no
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3956 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3957 if test $ac_compiler_gnu = yes; then
3958 GCC=yes
3959 else
3960 GCC=
3961 fi
3962 ac_test_CFLAGS=${CFLAGS+set}
3963 ac_save_CFLAGS=$CFLAGS
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3965 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3966 if ${ac_cv_prog_cc_g+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3971 ac_cv_prog_cc_g=no
3972 CFLAGS="-g"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_g=yes
3986 else
3987 CFLAGS=""
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990
3991 int
3992 main ()
3993 {
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000
4001 else
4002 ac_c_werror_flag=$ac_save_c_werror_flag
4003 CFLAGS="-g"
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_g=yes
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026 $as_echo "$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4034 fi
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4040 fi
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044 if ${ac_cv_prog_cc_c89+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <stdarg.h>
4052 #include <stdio.h>
4053 struct stat;
4054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055 struct buf { int x; };
4056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057 static char *e (p, i)
4058 char **p;
4059 int i;
4060 {
4061 return p[i];
4062 }
4063 static char *f (char * (*g) (char **, int), char **p, ...)
4064 {
4065 char *s;
4066 va_list v;
4067 va_start (v,p);
4068 s = g (p, va_arg (v,int));
4069 va_end (v);
4070 return s;
4071 }
4072
4073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081
4082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4084 #define FOO(x) 'x'
4085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086
4087 int test (int i, double x);
4088 struct s1 {int (*f) (int a);};
4089 struct s2 {int (*f) (double a);};
4090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 int argc;
4092 char **argv;
4093 int
4094 main ()
4095 {
4096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 do
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_c89=$ac_arg
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext
4109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 done
4111 rm -f conftest.$ac_ext
4112 CC=$ac_save_CC
4113
4114 fi
4115 # AC_CACHE_VAL
4116 case "x$ac_cv_prog_cc_c89" in
4117 x)
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119 $as_echo "none needed" >&6; } ;;
4120 xno)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122 $as_echo "unsupported" >&6; } ;;
4123 *)
4124 CC="$CC $ac_cv_prog_cc_c89"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4127 esac
4128 if test "x$ac_cv_prog_cc_c89" != xno; then :
4129
4130 fi
4131
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4144 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4145 if ${am_cv_prog_cc_c_o+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150
4151 int
4152 main ()
4153 {
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 # Make sure it works both with $CC and with simple cc.
4160 # Following AC_PROG_CC_C_O, we do the test twice because some
4161 # compilers refuse to overwrite an existing .o file with -o,
4162 # though they will create one.
4163 am_cv_prog_cc_c_o=yes
4164 for am_i in 1 2; do
4165 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4166 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } \
4170 && test -f conftest2.$ac_objext; then
4171 : OK
4172 else
4173 am_cv_prog_cc_c_o=no
4174 break
4175 fi
4176 done
4177 rm -f core conftest*
4178 unset am_i
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4181 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4182 if test "$am_cv_prog_cc_c_o" != yes; then
4183 # Losing compiler, so override with the script.
4184 # FIXME: It is wrong to rewrite CC.
4185 # But if we don't then we get into trouble of one sort or another.
4186 # A longer-term fix would be to have automake use am__CC in this case,
4187 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4188 CC="$am_aux_dir/compile $CC"
4189 fi
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196
4197 depcc="$CC" am_compiler_list=
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4200 $as_echo_n "checking dependency style of $depcc... " >&6; }
4201 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205 # We make a subdir and do the tests there. Otherwise we can end up
4206 # making bogus files that we don't know about and never remove. For
4207 # instance it was reported that on HP-UX the gcc test will end up
4208 # making a dummy file named 'D' -- because '-MD' means "put the output
4209 # in D".
4210 rm -rf conftest.dir
4211 mkdir conftest.dir
4212 # Copy depcomp to subdir because otherwise we won't find it if we're
4213 # using a relative directory.
4214 cp "$am_depcomp" conftest.dir
4215 cd conftest.dir
4216 # We will build objects and dependencies in a subdirectory because
4217 # it helps to detect inapplicable dependency modes. For instance
4218 # both Tru64's cc and ICC support -MD to output dependencies as a
4219 # side effect of compilation, but ICC will put the dependencies in
4220 # the current directory while Tru64 will put them in the object
4221 # directory.
4222 mkdir sub
4223
4224 am_cv_CC_dependencies_compiler_type=none
4225 if test "$am_compiler_list" = ""; then
4226 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4227 fi
4228 am__universal=false
4229 case " $depcc " in #(
4230 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4231 esac
4232
4233 for depmode in $am_compiler_list; do
4234 # Setup a source with many dependencies, because some compilers
4235 # like to wrap large dependency lists on column 80 (with \), and
4236 # we should not choose a depcomp mode which is confused by this.
4237 #
4238 # We need to recreate these files for each test, as the compiler may
4239 # overwrite some of them when testing with obscure command lines.
4240 # This happens at least with the AIX C compiler.
4241 : > sub/conftest.c
4242 for i in 1 2 3 4 5 6; do
4243 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4244 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4245 # Solaris 10 /bin/sh.
4246 echo '/* dummy */' > sub/conftst$i.h
4247 done
4248 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249
4250 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4251 # mode. It turns out that the SunPro C++ compiler does not properly
4252 # handle '-M -o', and we need to detect this. Also, some Intel
4253 # versions had trouble with output in subdirs.
4254 am__obj=sub/conftest.${OBJEXT-o}
4255 am__minus_obj="-o $am__obj"
4256 case $depmode in
4257 gcc)
4258 # This depmode causes a compiler race in universal mode.
4259 test "$am__universal" = false || continue
4260 ;;
4261 nosideeffect)
4262 # After this tag, mechanisms are not by side-effect, so they'll
4263 # only be used when explicitly requested.
4264 if test "x$enable_dependency_tracking" = xyes; then
4265 continue
4266 else
4267 break
4268 fi
4269 ;;
4270 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4271 # This compiler won't grok '-c -o', but also, the minuso test has
4272 # not run yet. These depmodes are late enough in the game, and
4273 # so weak that their functioning should not be impacted.
4274 am__obj=conftest.${OBJEXT-o}
4275 am__minus_obj=
4276 ;;
4277 none) break ;;
4278 esac
4279 if depmode=$depmode \
4280 source=sub/conftest.c object=$am__obj \
4281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4282 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4283 >/dev/null 2>conftest.err &&
4284 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4285 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4286 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4287 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4288 # icc doesn't choke on unknown options, it will just issue warnings
4289 # or remarks (even with -Werror). So we grep stderr for any message
4290 # that says an option was ignored or not supported.
4291 # When given -MP, icc 7.0 and 7.1 complain thusly:
4292 # icc: Command line warning: ignoring option '-M'; no argument required
4293 # The diagnosis changed in icc 8.0:
4294 # icc: Command line remark: option '-MP' not supported
4295 if (grep 'ignoring option' conftest.err ||
4296 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4297 am_cv_CC_dependencies_compiler_type=$depmode
4298 break
4299 fi
4300 fi
4301 done
4302
4303 cd ..
4304 rm -rf conftest.dir
4305 else
4306 am_cv_CC_dependencies_compiler_type=none
4307 fi
4308
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4311 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4312 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4313
4314 if
4315 test "x$enable_dependency_tracking" != xno \
4316 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4317 am__fastdepCC_TRUE=
4318 am__fastdepCC_FALSE='#'
4319 else
4320 am__fastdepCC_TRUE='#'
4321 am__fastdepCC_FALSE=
4322 fi
4323
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4326 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4327 if ${ac_cv_prog_cc_c99+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 ac_cv_prog_cc_c99=no
4331 ac_save_CC=$CC
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdarg.h>
4335 #include <stdbool.h>
4336 #include <stdlib.h>
4337 #include <wchar.h>
4338 #include <stdio.h>
4339
4340 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4341 #define debug(...) fprintf (stderr, __VA_ARGS__)
4342 #define showlist(...) puts (#__VA_ARGS__)
4343 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4344 static void
4345 test_varargs_macros (void)
4346 {
4347 int x = 1234;
4348 int y = 5678;
4349 debug ("Flag");
4350 debug ("X = %d\n", x);
4351 showlist (The first, second, and third items.);
4352 report (x>y, "x is %d but y is %d", x, y);
4353 }
4354
4355 // Check long long types.
4356 #define BIG64 18446744073709551615ull
4357 #define BIG32 4294967295ul
4358 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4359 #if !BIG_OK
4360 your preprocessor is broken;
4361 #endif
4362 #if BIG_OK
4363 #else
4364 your preprocessor is broken;
4365 #endif
4366 static long long int bignum = -9223372036854775807LL;
4367 static unsigned long long int ubignum = BIG64;
4368
4369 struct incomplete_array
4370 {
4371 int datasize;
4372 double data[];
4373 };
4374
4375 struct named_init {
4376 int number;
4377 const wchar_t *name;
4378 double average;
4379 };
4380
4381 typedef const char *ccp;
4382
4383 static inline int
4384 test_restrict (ccp restrict text)
4385 {
4386 // See if C++-style comments work.
4387 // Iterate through items via the restricted pointer.
4388 // Also check for declarations in for loops.
4389 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4390 continue;
4391 return 0;
4392 }
4393
4394 // Check varargs and va_copy.
4395 static void
4396 test_varargs (const char *format, ...)
4397 {
4398 va_list args;
4399 va_start (args, format);
4400 va_list args_copy;
4401 va_copy (args_copy, args);
4402
4403 const char *str;
4404 int number;
4405 float fnumber;
4406
4407 while (*format)
4408 {
4409 switch (*format++)
4410 {
4411 case 's': // string
4412 str = va_arg (args_copy, const char *);
4413 break;
4414 case 'd': // int
4415 number = va_arg (args_copy, int);
4416 break;
4417 case 'f': // float
4418 fnumber = va_arg (args_copy, double);
4419 break;
4420 default:
4421 break;
4422 }
4423 }
4424 va_end (args_copy);
4425 va_end (args);
4426 }
4427
4428 int
4429 main ()
4430 {
4431
4432 // Check bool.
4433 _Bool success = false;
4434
4435 // Check restrict.
4436 if (test_restrict ("String literal") == 0)
4437 success = true;
4438 char *restrict newvar = "Another string";
4439
4440 // Check varargs.
4441 test_varargs ("s, d' f .", "string", 65, 34.234);
4442 test_varargs_macros ();
4443
4444 // Check flexible array members.
4445 struct incomplete_array *ia =
4446 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4447 ia->datasize = 10;
4448 for (int i = 0; i < ia->datasize; ++i)
4449 ia->data[i] = i * 1.234;
4450
4451 // Check named initializers.
4452 struct named_init ni = {
4453 .number = 34,
4454 .name = L"Test wide string",
4455 .average = 543.34343,
4456 };
4457
4458 ni.number = 58;
4459
4460 int dynamic_array[ni.number];
4461 dynamic_array[ni.number - 1] = 543;
4462
4463 // work around unused variable warnings
4464 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4465 || dynamic_array[ni.number - 1] != 543);
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4472 do
4473 CC="$ac_save_CC $ac_arg"
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_prog_cc_c99=$ac_arg
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext
4478 test "x$ac_cv_prog_cc_c99" != "xno" && break
4479 done
4480 rm -f conftest.$ac_ext
4481 CC=$ac_save_CC
4482
4483 fi
4484 # AC_CACHE_VAL
4485 case "x$ac_cv_prog_cc_c99" in
4486 x)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4488 $as_echo "none needed" >&6; } ;;
4489 xno)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4491 $as_echo "unsupported" >&6; } ;;
4492 *)
4493 CC="$CC $ac_cv_prog_cc_c99"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4495 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4496 esac
4497 if test "x$ac_cv_prog_cc_c99" != xno; then :
4498
4499 fi
4500
4501
4502 if test "$ac_cv_prog_cc_c99" = "no"; then :
4503 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4504 fi
4505 for ac_prog in 'bison -y' byacc
4506 do
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_YACC+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$YACC"; then
4515 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_YACC="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 YACC=$ac_cv_prog_YACC
4535 if test -n "$YACC"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4537 $as_echo "$YACC" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$YACC" && break
4545 done
4546 test -n "$YACC" || YACC="yacc"
4547
4548
4549 for ac_prog in flex lex
4550 do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_LEX+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$LEX"; then
4559 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_LEX="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 LEX=$ac_cv_prog_LEX
4579 if test -n "$LEX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4581 $as_echo "$LEX" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$LEX" && break
4589 done
4590 test -n "$LEX" || LEX=":"
4591
4592 if test "x$LEX" != "x:"; then
4593 cat >conftest.l <<_ACEOF
4594 %%
4595 a { ECHO; }
4596 b { REJECT; }
4597 c { yymore (); }
4598 d { yyless (1); }
4599 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4600 yyless ((input () != 0)); }
4601 f { unput (yytext[0]); }
4602 . { BEGIN INITIAL; }
4603 %%
4604 #ifdef YYTEXT_POINTER
4605 extern char *yytext;
4606 #endif
4607 int
4608 main (void)
4609 {
4610 return ! yylex () + ! yywrap ();
4611 }
4612 _ACEOF
4613 { { ac_try="$LEX conftest.l"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$LEX conftest.l") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4625 $as_echo_n "checking lex output file root... " >&6; }
4626 if ${ac_cv_prog_lex_root+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629
4630 if test -f lex.yy.c; then
4631 ac_cv_prog_lex_root=lex.yy
4632 elif test -f lexyy.c; then
4633 ac_cv_prog_lex_root=lexyy
4634 else
4635 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4636 fi
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4639 $as_echo "$ac_cv_prog_lex_root" >&6; }
4640 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4641
4642 if test -z "${LEXLIB+set}"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4644 $as_echo_n "checking lex library... " >&6; }
4645 if ${ac_cv_lib_lex+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648
4649 ac_save_LIBS=$LIBS
4650 ac_cv_lib_lex='none needed'
4651 for ac_lib in '' -lfl -ll; do
4652 LIBS="$ac_lib $ac_save_LIBS"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 `cat $LEX_OUTPUT_ROOT.c`
4656 _ACEOF
4657 if ac_fn_c_try_link "$LINENO"; then :
4658 ac_cv_lib_lex=$ac_lib
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext \
4661 conftest$ac_exeext conftest.$ac_ext
4662 test "$ac_cv_lib_lex" != 'none needed' && break
4663 done
4664 LIBS=$ac_save_LIBS
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4668 $as_echo "$ac_cv_lib_lex" >&6; }
4669 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4670 fi
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4674 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4675 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 # POSIX says lex can declare yytext either as a pointer or an array; the
4679 # default is implementation-dependent. Figure out which it is, since
4680 # not all implementations provide the %pointer and %array declarations.
4681 ac_cv_prog_lex_yytext_pointer=no
4682 ac_save_LIBS=$LIBS
4683 LIBS="$LEXLIB $ac_save_LIBS"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 #define YYTEXT_POINTER 1
4688 `cat $LEX_OUTPUT_ROOT.c`
4689 _ACEOF
4690 if ac_fn_c_try_link "$LINENO"; then :
4691 ac_cv_prog_lex_yytext_pointer=yes
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext \
4694 conftest$ac_exeext conftest.$ac_ext
4695 LIBS=$ac_save_LIBS
4696
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4699 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4700 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4701
4702 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4703
4704 fi
4705 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4706
4707 fi
4708 if test "$LEX" = :; then
4709 LEX=${am_missing_run}flex
4710 fi
4711
4712
4713 # Initializing libtool.
4714
4715
4716
4717
4718
4719
4720
4721 case `pwd` in
4722 *\ * | *\ *)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4724 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4725 esac
4726
4727
4728
4729 macro_version='2.4.2'
4730 macro_revision='1.3337'
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744 ltmain="$ac_aux_dir/ltmain.sh"
4745
4746 # Make sure we can run config.sub.
4747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4751 $as_echo_n "checking build system type... " >&6; }
4752 if ${ac_cv_build+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_build_alias=$build_alias
4756 test "x$ac_build_alias" = x &&
4757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4758 test "x$ac_build_alias" = x &&
4759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4762
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4765 $as_echo "$ac_cv_build" >&6; }
4766 case $ac_cv_build in
4767 *-*-*) ;;
4768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4769 esac
4770 build=$ac_cv_build
4771 ac_save_IFS=$IFS; IFS='-'
4772 set x $ac_cv_build
4773 shift
4774 build_cpu=$1
4775 build_vendor=$2
4776 shift; shift
4777 # Remember, the first character of IFS is used to create $*,
4778 # except with old shells:
4779 build_os=$*
4780 IFS=$ac_save_IFS
4781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4785 $as_echo_n "checking host system type... " >&6; }
4786 if ${ac_cv_host+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test "x$host_alias" = x; then
4790 ac_cv_host=$ac_cv_build
4791 else
4792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4794 fi
4795
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4798 $as_echo "$ac_cv_host" >&6; }
4799 case $ac_cv_host in
4800 *-*-*) ;;
4801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4802 esac
4803 host=$ac_cv_host
4804 ac_save_IFS=$IFS; IFS='-'
4805 set x $ac_cv_host
4806 shift
4807 host_cpu=$1
4808 host_vendor=$2
4809 shift; shift
4810 # Remember, the first character of IFS is used to create $*,
4811 # except with old shells:
4812 host_os=$*
4813 IFS=$ac_save_IFS
4814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4815
4816
4817 # Backslashify metacharacters that are still active within
4818 # double-quoted strings.
4819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4820
4821 # Same as above, but do not quote variable references.
4822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4823
4824 # Sed substitution to delay expansion of an escaped shell variable in a
4825 # double_quote_subst'ed string.
4826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4827
4828 # Sed substitution to delay expansion of an escaped single quote.
4829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4830
4831 # Sed substitution to avoid accidental globbing in evaled expressions
4832 no_glob_subst='s/\*/\\\*/g'
4833
4834 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4839 $as_echo_n "checking how to print strings... " >&6; }
4840 # Test print first, because it will be a builtin if present.
4841 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4842 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4843 ECHO='print -r --'
4844 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4845 ECHO='printf %s\n'
4846 else
4847 # Use this function as a fallback that always works.
4848 func_fallback_echo ()
4849 {
4850 eval 'cat <<_LTECHO_EOF
4851 $1
4852 _LTECHO_EOF'
4853 }
4854 ECHO='func_fallback_echo'
4855 fi
4856
4857 # func_echo_all arg...
4858 # Invoke $ECHO with all args, space-separated.
4859 func_echo_all ()
4860 {
4861 $ECHO ""
4862 }
4863
4864 case "$ECHO" in
4865 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4866 $as_echo "printf" >&6; } ;;
4867 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4868 $as_echo "print -r" >&6; } ;;
4869 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4870 $as_echo "cat" >&6; } ;;
4871 esac
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4887 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4888 if ${ac_cv_path_SED+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4892 for ac_i in 1 2 3 4 5 6 7; do
4893 ac_script="$ac_script$as_nl$ac_script"
4894 done
4895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4896 { ac_script=; unset ac_script;}
4897 if test -z "$SED"; then
4898 ac_path_SED_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in sed gsed; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_SED" || continue
4909 # Check for GNU ac_path_SED and select it if it is found.
4910 # Check for GNU $ac_path_SED
4911 case `"$ac_path_SED" --version 2>&1` in
4912 *GNU*)
4913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4914 *)
4915 ac_count=0
4916 $as_echo_n 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo '' >> "conftest.nl"
4923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_SED_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_SED="$ac_path_SED"
4929 ac_path_SED_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937 $ac_path_SED_found && break 3
4938 done
4939 done
4940 done
4941 IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_SED"; then
4943 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4944 fi
4945 else
4946 ac_cv_path_SED=$SED
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951 $as_echo "$ac_cv_path_SED" >&6; }
4952 SED="$ac_cv_path_SED"
4953 rm -f conftest.sed
4954
4955 test -z "$SED" && SED=sed
4956 Xsed="$SED -e 1s/^X//"
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4969 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4970 if ${ac_cv_path_GREP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -z "$GREP"; then
4974 ac_path_GREP_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_prog in grep ggrep; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4984 as_fn_executable_p "$ac_path_GREP" || continue
4985 # Check for GNU ac_path_GREP and select it if it is found.
4986 # Check for GNU $ac_path_GREP
4987 case `"$ac_path_GREP" --version 2>&1` in
4988 *GNU*)
4989 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4990 *)
4991 ac_count=0
4992 $as_echo_n 0123456789 >"conftest.in"
4993 while :
4994 do
4995 cat "conftest.in" "conftest.in" >"conftest.tmp"
4996 mv "conftest.tmp" "conftest.in"
4997 cp "conftest.in" "conftest.nl"
4998 $as_echo 'GREP' >> "conftest.nl"
4999 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5001 as_fn_arith $ac_count + 1 && ac_count=$as_val
5002 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5003 # Best one so far, save it but keep looking for a better one
5004 ac_cv_path_GREP="$ac_path_GREP"
5005 ac_path_GREP_max=$ac_count
5006 fi
5007 # 10*(2^10) chars as input seems more than enough
5008 test $ac_count -gt 10 && break
5009 done
5010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5011 esac
5012
5013 $ac_path_GREP_found && break 3
5014 done
5015 done
5016 done
5017 IFS=$as_save_IFS
5018 if test -z "$ac_cv_path_GREP"; then
5019 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5020 fi
5021 else
5022 ac_cv_path_GREP=$GREP
5023 fi
5024
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5027 $as_echo "$ac_cv_path_GREP" >&6; }
5028 GREP="$ac_cv_path_GREP"
5029
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5032 $as_echo_n "checking for egrep... " >&6; }
5033 if ${ac_cv_path_EGREP+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5037 then ac_cv_path_EGREP="$GREP -E"
5038 else
5039 if test -z "$EGREP"; then
5040 ac_path_EGREP_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in egrep; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_EGREP" || continue
5051 # Check for GNU ac_path_EGREP and select it if it is found.
5052 # Check for GNU $ac_path_EGREP
5053 case `"$ac_path_EGREP" --version 2>&1` in
5054 *GNU*)
5055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5056 *)
5057 ac_count=0
5058 $as_echo_n 0123456789 >"conftest.in"
5059 while :
5060 do
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo 'EGREP' >> "conftest.nl"
5065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_EGREP="$ac_path_EGREP"
5071 ac_path_EGREP_max=$ac_count
5072 fi
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5075 done
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077 esac
5078
5079 $ac_path_EGREP_found && break 3
5080 done
5081 done
5082 done
5083 IFS=$as_save_IFS
5084 if test -z "$ac_cv_path_EGREP"; then
5085 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086 fi
5087 else
5088 ac_cv_path_EGREP=$EGREP
5089 fi
5090
5091 fi
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5094 $as_echo "$ac_cv_path_EGREP" >&6; }
5095 EGREP="$ac_cv_path_EGREP"
5096
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5099 $as_echo_n "checking for fgrep... " >&6; }
5100 if ${ac_cv_path_FGREP+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5104 then ac_cv_path_FGREP="$GREP -F"
5105 else
5106 if test -z "$FGREP"; then
5107 ac_path_FGREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in fgrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5117 as_fn_executable_p "$ac_path_FGREP" || continue
5118 # Check for GNU ac_path_FGREP and select it if it is found.
5119 # Check for GNU $ac_path_FGREP
5120 case `"$ac_path_FGREP" --version 2>&1` in
5121 *GNU*)
5122 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5123 *)
5124 ac_count=0
5125 $as_echo_n 0123456789 >"conftest.in"
5126 while :
5127 do
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'FGREP' >> "conftest.nl"
5132 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_FGREP="$ac_path_FGREP"
5138 ac_path_FGREP_max=$ac_count
5139 fi
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5142 done
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146 $ac_path_FGREP_found && break 3
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 if test -z "$ac_cv_path_FGREP"; then
5152 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 fi
5154 else
5155 ac_cv_path_FGREP=$FGREP
5156 fi
5157
5158 fi
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5161 $as_echo "$ac_cv_path_FGREP" >&6; }
5162 FGREP="$ac_cv_path_FGREP"
5163
5164
5165 test -z "$GREP" && GREP=grep
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 # Check whether --with-gnu-ld was given.
5186 if test "${with_gnu_ld+set}" = set; then :
5187 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5188 else
5189 with_gnu_ld=no
5190 fi
5191
5192 ac_prog=ld
5193 if test "$GCC" = yes; then
5194 # Check if gcc -print-prog-name=ld gives a path.
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5196 $as_echo_n "checking for ld used by $CC... " >&6; }
5197 case $host in
5198 *-*-mingw*)
5199 # gcc leaves a trailing carriage return which upsets mingw
5200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5201 *)
5202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5203 esac
5204 case $ac_prog in
5205 # Accept absolute paths.
5206 [\\/]* | ?:[\\/]*)
5207 re_direlt='/[^/][^/]*/\.\./'
5208 # Canonicalize the pathname of ld
5209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5212 done
5213 test -z "$LD" && LD="$ac_prog"
5214 ;;
5215 "")
5216 # If it fails, then pretend we aren't using GCC.
5217 ac_prog=ld
5218 ;;
5219 *)
5220 # If it is relative, then search for the first ld in PATH.
5221 with_gnu_ld=unknown
5222 ;;
5223 esac
5224 elif test "$with_gnu_ld" = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5226 $as_echo_n "checking for GNU ld... " >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5229 $as_echo_n "checking for non-GNU ld... " >&6; }
5230 fi
5231 if ${lt_cv_path_LD+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -z "$LD"; then
5235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5236 for ac_dir in $PATH; do
5237 IFS="$lt_save_ifs"
5238 test -z "$ac_dir" && ac_dir=.
5239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5240 lt_cv_path_LD="$ac_dir/$ac_prog"
5241 # Check to see if the program is GNU ld. I'd rather use --version,
5242 # but apparently some variants of GNU ld only accept -v.
5243 # Break only if it was the GNU/non-GNU ld that we prefer.
5244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5245 *GNU* | *'with BFD'*)
5246 test "$with_gnu_ld" != no && break
5247 ;;
5248 *)
5249 test "$with_gnu_ld" != yes && break
5250 ;;
5251 esac
5252 fi
5253 done
5254 IFS="$lt_save_ifs"
5255 else
5256 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5257 fi
5258 fi
5259
5260 LD="$lt_cv_path_LD"
5261 if test -n "$LD"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5263 $as_echo "$LD" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5270 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5271 if ${lt_cv_prog_gnu_ld+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5275 case `$LD -v 2>&1 </dev/null` in
5276 *GNU* | *'with BFD'*)
5277 lt_cv_prog_gnu_ld=yes
5278 ;;
5279 *)
5280 lt_cv_prog_gnu_ld=no
5281 ;;
5282 esac
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5285 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5286 with_gnu_ld=$lt_cv_prog_gnu_ld
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5297 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5298 if ${lt_cv_path_NM+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$NM"; then
5302 # Let the user override the test.
5303 lt_cv_path_NM="$NM"
5304 else
5305 lt_nm_to_check="${ac_tool_prefix}nm"
5306 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5307 lt_nm_to_check="$lt_nm_to_check nm"
5308 fi
5309 for lt_tmp_nm in $lt_nm_to_check; do
5310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5311 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5312 IFS="$lt_save_ifs"
5313 test -z "$ac_dir" && ac_dir=.
5314 tmp_nm="$ac_dir/$lt_tmp_nm"
5315 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5316 # Check to see if the nm accepts a BSD-compat flag.
5317 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5318 # nm: unknown option "B" ignored
5319 # Tru64's nm complains that /dev/null is an invalid object file
5320 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5321 */dev/null* | *'Invalid file or object type'*)
5322 lt_cv_path_NM="$tmp_nm -B"
5323 break
5324 ;;
5325 *)
5326 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5327 */dev/null*)
5328 lt_cv_path_NM="$tmp_nm -p"
5329 break
5330 ;;
5331 *)
5332 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5333 continue # so that we can try to find one that supports BSD flags
5334 ;;
5335 esac
5336 ;;
5337 esac
5338 fi
5339 done
5340 IFS="$lt_save_ifs"
5341 done
5342 : ${lt_cv_path_NM=no}
5343 fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5346 $as_echo "$lt_cv_path_NM" >&6; }
5347 if test "$lt_cv_path_NM" != "no"; then
5348 NM="$lt_cv_path_NM"
5349 else
5350 # Didn't find any BSD compatible name lister, look for dumpbin.
5351 if test -n "$DUMPBIN"; then :
5352 # Let the user override the test.
5353 else
5354 if test -n "$ac_tool_prefix"; then
5355 for ac_prog in dumpbin "link -dump"
5356 do
5357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_DUMPBIN+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$DUMPBIN"; then
5365 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 DUMPBIN=$ac_cv_prog_DUMPBIN
5385 if test -n "$DUMPBIN"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5387 $as_echo "$DUMPBIN" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 test -n "$DUMPBIN" && break
5395 done
5396 fi
5397 if test -z "$DUMPBIN"; then
5398 ac_ct_DUMPBIN=$DUMPBIN
5399 for ac_prog in dumpbin "link -dump"
5400 do
5401 # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$ac_ct_DUMPBIN"; then
5409 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5429 if test -n "$ac_ct_DUMPBIN"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5431 $as_echo "$ac_ct_DUMPBIN" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 test -n "$ac_ct_DUMPBIN" && break
5439 done
5440
5441 if test "x$ac_ct_DUMPBIN" = x; then
5442 DUMPBIN=":"
5443 else
5444 case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 DUMPBIN=$ac_ct_DUMPBIN
5451 fi
5452 fi
5453
5454 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5455 *COFF*)
5456 DUMPBIN="$DUMPBIN -symbols"
5457 ;;
5458 *)
5459 DUMPBIN=:
5460 ;;
5461 esac
5462 fi
5463
5464 if test "$DUMPBIN" != ":"; then
5465 NM="$DUMPBIN"
5466 fi
5467 fi
5468 test -z "$NM" && NM=nm
5469
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5476 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5477 if ${lt_cv_nm_interface+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 lt_cv_nm_interface="BSD nm"
5481 echo "int some_variable = 0;" > conftest.$ac_ext
5482 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5483 (eval "$ac_compile" 2>conftest.err)
5484 cat conftest.err >&5
5485 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5486 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5487 cat conftest.err >&5
5488 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5489 cat conftest.out >&5
5490 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5491 lt_cv_nm_interface="MS dumpbin"
5492 fi
5493 rm -f conftest*
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5496 $as_echo "$lt_cv_nm_interface" >&6; }
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5499 $as_echo_n "checking whether ln -s works... " >&6; }
5500 LN_S=$as_ln_s
5501 if test "$LN_S" = "ln -s"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 $as_echo "yes" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5506 $as_echo "no, using $LN_S" >&6; }
5507 fi
5508
5509 # find the maximum length of command line arguments
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5511 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5512 if ${lt_cv_sys_max_cmd_len+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 i=0
5516 teststring="ABCD"
5517
5518 case $build_os in
5519 msdosdjgpp*)
5520 # On DJGPP, this test can blow up pretty badly due to problems in libc
5521 # (any single argument exceeding 2000 bytes causes a buffer overrun
5522 # during glob expansion). Even if it were fixed, the result of this
5523 # check would be larger than it should be.
5524 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5525 ;;
5526
5527 gnu*)
5528 # Under GNU Hurd, this test is not required because there is
5529 # no limit to the length of command line arguments.
5530 # Libtool will interpret -1 as no limit whatsoever
5531 lt_cv_sys_max_cmd_len=-1;
5532 ;;
5533
5534 cygwin* | mingw* | cegcc*)
5535 # On Win9x/ME, this test blows up -- it succeeds, but takes
5536 # about 5 minutes as the teststring grows exponentially.
5537 # Worse, since 9x/ME are not pre-emptively multitasking,
5538 # you end up with a "frozen" computer, even though with patience
5539 # the test eventually succeeds (with a max line length of 256k).
5540 # Instead, let's just punt: use the minimum linelength reported by
5541 # all of the supported platforms: 8192 (on NT/2K/XP).
5542 lt_cv_sys_max_cmd_len=8192;
5543 ;;
5544
5545 mint*)
5546 # On MiNT this can take a long time and run out of memory.
5547 lt_cv_sys_max_cmd_len=8192;
5548 ;;
5549
5550 amigaos*)
5551 # On AmigaOS with pdksh, this test takes hours, literally.
5552 # So we just punt and use a minimum line length of 8192.
5553 lt_cv_sys_max_cmd_len=8192;
5554 ;;
5555
5556 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5557 # This has been around since 386BSD, at least. Likely further.
5558 if test -x /sbin/sysctl; then
5559 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5560 elif test -x /usr/sbin/sysctl; then
5561 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5562 else
5563 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5564 fi
5565 # And add a safety zone
5566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5568 ;;
5569
5570 interix*)
5571 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5572 lt_cv_sys_max_cmd_len=196608
5573 ;;
5574
5575 os2*)
5576 # The test takes a long time on OS/2.
5577 lt_cv_sys_max_cmd_len=8192
5578 ;;
5579
5580 osf*)
5581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5583 # nice to cause kernel panics so lets avoid the loop below.
5584 # First set a reasonable default.
5585 lt_cv_sys_max_cmd_len=16384
5586 #
5587 if test -x /sbin/sysconfig; then
5588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5589 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5590 esac
5591 fi
5592 ;;
5593 sco3.2v5*)
5594 lt_cv_sys_max_cmd_len=102400
5595 ;;
5596 sysv5* | sco5v6* | sysv4.2uw2*)
5597 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5598 if test -n "$kargmax"; then
5599 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5600 else
5601 lt_cv_sys_max_cmd_len=32768
5602 fi
5603 ;;
5604 *)
5605 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5606 if test -n "$lt_cv_sys_max_cmd_len"; then
5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5609 else
5610 # Make teststring a little bigger before we do anything with it.
5611 # a 1K string should be a reasonable start.
5612 for i in 1 2 3 4 5 6 7 8 ; do
5613 teststring=$teststring$teststring
5614 done
5615 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5616 # If test is not a shell built-in, we'll probably end up computing a
5617 # maximum length that is only half of the actual maximum length, but
5618 # we can't tell.
5619 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5620 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5621 test $i != 17 # 1/2 MB should be enough
5622 do
5623 i=`expr $i + 1`
5624 teststring=$teststring$teststring
5625 done
5626 # Only check the string length outside the loop.
5627 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5628 teststring=
5629 # Add a significant safety factor because C++ compilers can tack on
5630 # massive amounts of additional arguments before passing them to the
5631 # linker. It appears as though 1/2 is a usable value.
5632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5633 fi
5634 ;;
5635 esac
5636
5637 fi
5638
5639 if test -n $lt_cv_sys_max_cmd_len ; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5641 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5644 $as_echo "none" >&6; }
5645 fi
5646 max_cmd_len=$lt_cv_sys_max_cmd_len
5647
5648
5649
5650
5651
5652
5653 : ${CP="cp -f"}
5654 : ${MV="mv -f"}
5655 : ${RM="rm -f"}
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5658 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5659 # Try some XSI features
5660 xsi_shell=no
5661 ( _lt_dummy="a/b/c"
5662 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5663 = c,a/b,b/c, \
5664 && eval 'test $(( 1 + 1 )) -eq 2 \
5665 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5666 && xsi_shell=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5668 $as_echo "$xsi_shell" >&6; }
5669
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5672 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5673 lt_shell_append=no
5674 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5675 >/dev/null 2>&1 \
5676 && lt_shell_append=yes
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5678 $as_echo "$lt_shell_append" >&6; }
5679
5680
5681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5682 lt_unset=unset
5683 else
5684 lt_unset=false
5685 fi
5686
5687
5688
5689
5690
5691 # test EBCDIC or ASCII
5692 case `echo X|tr X '\101'` in
5693 A) # ASCII based system
5694 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5695 lt_SP2NL='tr \040 \012'
5696 lt_NL2SP='tr \015\012 \040\040'
5697 ;;
5698 *) # EBCDIC based system
5699 lt_SP2NL='tr \100 \n'
5700 lt_NL2SP='tr \r\n \100\100'
5701 ;;
5702 esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5713 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5714 if ${lt_cv_to_host_file_cmd+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 case $host in
5718 *-*-mingw* )
5719 case $build in
5720 *-*-mingw* ) # actually msys
5721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5722 ;;
5723 *-*-cygwin* )
5724 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5725 ;;
5726 * ) # otherwise, assume *nix
5727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5728 ;;
5729 esac
5730 ;;
5731 *-*-cygwin* )
5732 case $build in
5733 *-*-mingw* ) # actually msys
5734 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5735 ;;
5736 *-*-cygwin* )
5737 lt_cv_to_host_file_cmd=func_convert_file_noop
5738 ;;
5739 * ) # otherwise, assume *nix
5740 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5741 ;;
5742 esac
5743 ;;
5744 * ) # unhandled hosts (and "normal" native builds)
5745 lt_cv_to_host_file_cmd=func_convert_file_noop
5746 ;;
5747 esac
5748
5749 fi
5750
5751 to_host_file_cmd=$lt_cv_to_host_file_cmd
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5753 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5754
5755
5756
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5760 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5761 if ${lt_cv_to_tool_file_cmd+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 #assume ordinary cross tools, or native build.
5765 lt_cv_to_tool_file_cmd=func_convert_file_noop
5766 case $host in
5767 *-*-mingw* )
5768 case $build in
5769 *-*-mingw* ) # actually msys
5770 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5771 ;;
5772 esac
5773 ;;
5774 esac
5775
5776 fi
5777
5778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5780 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5781
5782
5783
5784
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5787 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5788 if ${lt_cv_ld_reload_flag+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 lt_cv_ld_reload_flag='-r'
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5794 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5795 reload_flag=$lt_cv_ld_reload_flag
5796 case $reload_flag in
5797 "" | " "*) ;;
5798 *) reload_flag=" $reload_flag" ;;
5799 esac
5800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5801 case $host_os in
5802 cygwin* | mingw* | pw32* | cegcc*)
5803 if test "$GCC" != yes; then
5804 reload_cmds=false
5805 fi
5806 ;;
5807 darwin*)
5808 if test "$GCC" = yes; then
5809 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5810 else
5811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5812 fi
5813 ;;
5814 esac
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 if test -n "$ac_tool_prefix"; then
5825 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5826 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_prog_OBJDUMP+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if test -n "$OBJDUMP"; then
5833 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5845 fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 OBJDUMP=$ac_cv_prog_OBJDUMP
5853 if test -n "$OBJDUMP"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5855 $as_echo "$OBJDUMP" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861
5862 fi
5863 if test -z "$ac_cv_prog_OBJDUMP"; then
5864 ac_ct_OBJDUMP=$OBJDUMP
5865 # Extract the first word of "objdump", so it can be a program name with args.
5866 set dummy objdump; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -n "$ac_ct_OBJDUMP"; then
5873 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5885 fi
5886 done
5887 done
5888 IFS=$as_save_IFS
5889
5890 fi
5891 fi
5892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5893 if test -n "$ac_ct_OBJDUMP"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5895 $as_echo "$ac_ct_OBJDUMP" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5899 fi
5900
5901 if test "x$ac_ct_OBJDUMP" = x; then
5902 OBJDUMP="false"
5903 else
5904 case $cross_compiling:$ac_tool_warned in
5905 yes:)
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 ac_tool_warned=yes ;;
5909 esac
5910 OBJDUMP=$ac_ct_OBJDUMP
5911 fi
5912 else
5913 OBJDUMP="$ac_cv_prog_OBJDUMP"
5914 fi
5915
5916 test -z "$OBJDUMP" && OBJDUMP=objdump
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5927 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5928 if ${lt_cv_deplibs_check_method+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 lt_cv_file_magic_cmd='$MAGIC_CMD'
5932 lt_cv_file_magic_test_file=
5933 lt_cv_deplibs_check_method='unknown'
5934 # Need to set the preceding variable on all platforms that support
5935 # interlibrary dependencies.
5936 # 'none' -- dependencies not supported.
5937 # `unknown' -- same as none, but documents that we really don't know.
5938 # 'pass_all' -- all dependencies passed with no checks.
5939 # 'test_compile' -- check by making test program.
5940 # 'file_magic [[regex]]' -- check by looking for files in library path
5941 # which responds to the $file_magic_cmd with a given extended regex.
5942 # If you have `file' or equivalent on your system and you're not sure
5943 # whether `pass_all' will *always* work, you probably want this one.
5944
5945 case $host_os in
5946 aix[4-9]*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950 beos*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954 bsdi[45]*)
5955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5956 lt_cv_file_magic_cmd='/usr/bin/file -L'
5957 lt_cv_file_magic_test_file=/shlib/libc.so
5958 ;;
5959
5960 cygwin*)
5961 # func_win32_libid is a shell function defined in ltmain.sh
5962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963 lt_cv_file_magic_cmd='func_win32_libid'
5964 ;;
5965
5966 mingw* | pw32*)
5967 # Base MSYS/MinGW do not provide the 'file' command needed by
5968 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5969 # unless we find 'file', for example because we are cross-compiling.
5970 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5971 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5973 lt_cv_file_magic_cmd='func_win32_libid'
5974 else
5975 # Keep this pattern in sync with the one in func_win32_libid.
5976 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5977 lt_cv_file_magic_cmd='$OBJDUMP -f'
5978 fi
5979 ;;
5980
5981 cegcc*)
5982 # use the weaker test based on 'objdump'. See mingw*.
5983 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5984 lt_cv_file_magic_cmd='$OBJDUMP -f'
5985 ;;
5986
5987 darwin* | rhapsody*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991 freebsd* | dragonfly*)
5992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5993 case $host_cpu in
5994 i*86 )
5995 # Not sure whether the presence of OpenBSD here was a mistake.
5996 # Let's accept both of them until this is cleared up.
5997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5998 lt_cv_file_magic_cmd=/usr/bin/file
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6000 ;;
6001 esac
6002 else
6003 lt_cv_deplibs_check_method=pass_all
6004 fi
6005 ;;
6006
6007 gnu*)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011 haiku*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 hpux10.20* | hpux11*)
6016 lt_cv_file_magic_cmd=/usr/bin/file
6017 case $host_cpu in
6018 ia64*)
6019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6021 ;;
6022 hppa*64*)
6023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6024 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6025 ;;
6026 *)
6027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6028 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6029 ;;
6030 esac
6031 ;;
6032
6033 interix[3-9]*)
6034 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6036 ;;
6037
6038 irix5* | irix6* | nonstopux*)
6039 case $LD in
6040 *-32|*"-32 ") libmagic=32-bit;;
6041 *-n32|*"-n32 ") libmagic=N32;;
6042 *-64|*"-64 ") libmagic=64-bit;;
6043 *) libmagic=never-match;;
6044 esac
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048 # This must be glibc/ELF.
6049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052
6053 netbsd*)
6054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6056 else
6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6058 fi
6059 ;;
6060
6061 newos6*)
6062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6063 lt_cv_file_magic_cmd=/usr/bin/file
6064 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6065 ;;
6066
6067 *nto* | *qnx*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 openbsd*)
6072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6074 else
6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6076 fi
6077 ;;
6078
6079 osf3* | osf4* | osf5*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 rdos*)
6084 lt_cv_deplibs_check_method=pass_all
6085 ;;
6086
6087 solaris*)
6088 lt_cv_deplibs_check_method=pass_all
6089 ;;
6090
6091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094
6095 sysv4 | sysv4.3*)
6096 case $host_vendor in
6097 motorola)
6098 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]'
6099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6100 ;;
6101 ncr)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104 sequent)
6105 lt_cv_file_magic_cmd='/bin/file'
6106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6107 ;;
6108 sni)
6109 lt_cv_file_magic_cmd='/bin/file'
6110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6111 lt_cv_file_magic_test_file=/lib/libc.so
6112 ;;
6113 siemens)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 pc)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119 esac
6120 ;;
6121
6122 tpf*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125 esac
6126
6127 fi
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6129 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6130
6131 file_magic_glob=
6132 want_nocaseglob=no
6133 if test "$build" = "$host"; then
6134 case $host_os in
6135 mingw* | pw32*)
6136 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6137 want_nocaseglob=yes
6138 else
6139 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6140 fi
6141 ;;
6142 esac
6143 fi
6144
6145 file_magic_cmd=$lt_cv_file_magic_cmd
6146 deplibs_check_method=$lt_cv_deplibs_check_method
6147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_DLLTOOL+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$DLLTOOL"; then
6179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 DLLTOOL=$ac_cv_prog_DLLTOOL
6199 if test -n "$DLLTOOL"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6201 $as_echo "$DLLTOOL" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_DLLTOOL"; then
6210 ac_ct_DLLTOOL=$DLLTOOL
6211 # Extract the first word of "dlltool", so it can be a program name with args.
6212 set dummy dlltool; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 if test -n "$ac_ct_DLLTOOL"; then
6219 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6239 if test -n "$ac_ct_DLLTOOL"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6241 $as_echo "$ac_ct_DLLTOOL" >&6; }
6242 else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247 if test "x$ac_ct_DLLTOOL" = x; then
6248 DLLTOOL="false"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256 DLLTOOL=$ac_ct_DLLTOOL
6257 fi
6258 else
6259 DLLTOOL="$ac_cv_prog_DLLTOOL"
6260 fi
6261
6262 test -z "$DLLTOOL" && DLLTOOL=dlltool
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6274 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6275 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 lt_cv_sharedlib_from_linklib_cmd='unknown'
6279
6280 case $host_os in
6281 cygwin* | mingw* | pw32* | cegcc*)
6282 # two different shell functions defined in ltmain.sh
6283 # decide which to use based on capabilities of $DLLTOOL
6284 case `$DLLTOOL --help 2>&1` in
6285 *--identify-strict*)
6286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6287 ;;
6288 *)
6289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6290 ;;
6291 esac
6292 ;;
6293 *)
6294 # fallback: assume linklib IS sharedlib
6295 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6296 ;;
6297 esac
6298
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6301 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6302 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6303 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6304
6305
6306
6307
6308
6309
6310
6311 if test -n "$ac_tool_prefix"; then
6312 for ac_prog in ar
6313 do
6314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_AR+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$AR"; then
6322 ac_cv_prog_AR="$AR" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 AR=$ac_cv_prog_AR
6342 if test -n "$AR"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6344 $as_echo "$AR" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350
6351 test -n "$AR" && break
6352 done
6353 fi
6354 if test -z "$AR"; then
6355 ac_ct_AR=$AR
6356 for ac_prog in ar
6357 do
6358 # Extract the first word of "$ac_prog", so it can be a program name with args.
6359 set dummy $ac_prog; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$ac_ct_AR"; then
6366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_ac_ct_AR="$ac_prog"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6386 if test -n "$ac_ct_AR"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6388 $as_echo "$ac_ct_AR" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 test -n "$ac_ct_AR" && break
6396 done
6397
6398 if test "x$ac_ct_AR" = x; then
6399 AR="false"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407 AR=$ac_ct_AR
6408 fi
6409 fi
6410
6411 : ${AR=ar}
6412 : ${AR_FLAGS=cru}
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6425 $as_echo_n "checking for archiver @FILE support... " >&6; }
6426 if ${lt_cv_ar_at_file+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 lt_cv_ar_at_file=no
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432
6433 int
6434 main ()
6435 {
6436
6437 ;
6438 return 0;
6439 }
6440 _ACEOF
6441 if ac_fn_c_try_compile "$LINENO"; then :
6442 echo conftest.$ac_objext > conftest.lst
6443 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6445 (eval $lt_ar_try) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; }
6449 if test "$ac_status" -eq 0; then
6450 # Ensure the archiver fails upon bogus file names.
6451 rm -f conftest.$ac_objext libconftest.a
6452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6453 (eval $lt_ar_try) 2>&5
6454 ac_status=$?
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; }
6457 if test "$ac_status" -ne 0; then
6458 lt_cv_ar_at_file=@
6459 fi
6460 fi
6461 rm -f conftest.* libconftest.a
6462
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6468 $as_echo "$lt_cv_ar_at_file" >&6; }
6469
6470 if test "x$lt_cv_ar_at_file" = xno; then
6471 archiver_list_spec=
6472 else
6473 archiver_list_spec=$lt_cv_ar_at_file
6474 fi
6475
6476
6477
6478
6479
6480
6481
6482 if test -n "$ac_tool_prefix"; then
6483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6484 set dummy ${ac_tool_prefix}strip; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_STRIP+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$STRIP"; then
6491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 STRIP=$ac_cv_prog_STRIP
6511 if test -n "$STRIP"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6513 $as_echo "$STRIP" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519
6520 fi
6521 if test -z "$ac_cv_prog_STRIP"; then
6522 ac_ct_STRIP=$STRIP
6523 # Extract the first word of "strip", so it can be a program name with args.
6524 set dummy strip; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$ac_ct_STRIP"; then
6531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 ac_cv_prog_ac_ct_STRIP="strip"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6551 if test -n "$ac_ct_STRIP"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6553 $as_echo "$ac_ct_STRIP" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559 if test "x$ac_ct_STRIP" = x; then
6560 STRIP=":"
6561 else
6562 case $cross_compiling:$ac_tool_warned in
6563 yes:)
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6566 ac_tool_warned=yes ;;
6567 esac
6568 STRIP=$ac_ct_STRIP
6569 fi
6570 else
6571 STRIP="$ac_cv_prog_STRIP"
6572 fi
6573
6574 test -z "$STRIP" && STRIP=:
6575
6576
6577
6578
6579
6580
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_RANLIB+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$RANLIB"; then
6590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 RANLIB=$ac_cv_prog_RANLIB
6610 if test -n "$RANLIB"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6612 $as_echo "$RANLIB" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618
6619 fi
6620 if test -z "$ac_cv_prog_RANLIB"; then
6621 ac_ct_RANLIB=$RANLIB
6622 # Extract the first word of "ranlib", so it can be a program name with args.
6623 set dummy ranlib; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$ac_ct_RANLIB"; then
6630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_ac_ct_RANLIB="ranlib"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6650 if test -n "$ac_ct_RANLIB"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6652 $as_echo "$ac_ct_RANLIB" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658 if test "x$ac_ct_RANLIB" = x; then
6659 RANLIB=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667 RANLIB=$ac_ct_RANLIB
6668 fi
6669 else
6670 RANLIB="$ac_cv_prog_RANLIB"
6671 fi
6672
6673 test -z "$RANLIB" && RANLIB=:
6674
6675
6676
6677
6678
6679
6680 # Determine commands to create old-style static archives.
6681 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6682 old_postinstall_cmds='chmod 644 $oldlib'
6683 old_postuninstall_cmds=
6684
6685 if test -n "$RANLIB"; then
6686 case $host_os in
6687 openbsd*)
6688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6689 ;;
6690 *)
6691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6692 ;;
6693 esac
6694 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6695 fi
6696
6697 case $host_os in
6698 darwin*)
6699 lock_old_archive_extraction=yes ;;
6700 *)
6701 lock_old_archive_extraction=no ;;
6702 esac
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 # If no C compiler was specified, use CC.
6743 LTCC=${LTCC-"$CC"}
6744
6745 # If no C compiler flags were specified, use CFLAGS.
6746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6747
6748 # Allow CC to be a program name with arguments.
6749 compiler=$CC
6750
6751
6752 # Check for command to grab the raw symbol name followed by C symbol from nm.
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6754 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6755 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758
6759 # These are sane defaults that work on at least a few old systems.
6760 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6761
6762 # Character class describing NM global symbol codes.
6763 symcode='[BCDEGRST]'
6764
6765 # Regexp to match symbols that can be accessed directly from C.
6766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6767
6768 # Define system-specific variables.
6769 case $host_os in
6770 aix*)
6771 symcode='[BCDT]'
6772 ;;
6773 cygwin* | mingw* | pw32* | cegcc*)
6774 symcode='[ABCDGISTW]'
6775 ;;
6776 hpux*)
6777 if test "$host_cpu" = ia64; then
6778 symcode='[ABCDEGRST]'
6779 fi
6780 ;;
6781 irix* | nonstopux*)
6782 symcode='[BCDEGRST]'
6783 ;;
6784 osf*)
6785 symcode='[BCDEGQRST]'
6786 ;;
6787 solaris*)
6788 symcode='[BDRT]'
6789 ;;
6790 sco3.2v5*)
6791 symcode='[DT]'
6792 ;;
6793 sysv4.2uw2*)
6794 symcode='[DT]'
6795 ;;
6796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6797 symcode='[ABDT]'
6798 ;;
6799 sysv4)
6800 symcode='[DFNSTU]'
6801 ;;
6802 esac
6803
6804 # If we're using GNU nm, then use its standard symbol codes.
6805 case `$NM -V 2>&1` in
6806 *GNU* | *'with BFD'*)
6807 symcode='[ABCDGIRSTW]' ;;
6808 esac
6809
6810 # Transform an extracted symbol line into a proper C declaration.
6811 # Some systems (esp. on ia64) link data and code symbols differently,
6812 # so use this general approach.
6813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6814
6815 # Transform an extracted symbol line into symbol name and symbol address
6816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6817 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'"
6818
6819 # Handle CRLF in mingw tool chain
6820 opt_cr=
6821 case $build_os in
6822 mingw*)
6823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6824 ;;
6825 esac
6826
6827 # Try without a prefix underscore, then with it.
6828 for ac_symprfx in "" "_"; do
6829
6830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6831 symxfrm="\\1 $ac_symprfx\\2 \\2"
6832
6833 # Write the raw and C identifiers.
6834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6835 # Fake it for dumpbin and say T for any non-static function
6836 # and D for any global variable.
6837 # Also find C++ and __fastcall symbols from MSVC++,
6838 # which start with @ or ?.
6839 lt_cv_sys_global_symbol_pipe="$AWK '"\
6840 " {last_section=section; section=\$ 3};"\
6841 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6842 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6843 " \$ 0!~/External *\|/{next};"\
6844 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6845 " {if(hide[section]) next};"\
6846 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6847 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6848 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6849 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6850 " ' prfx=^$ac_symprfx"
6851 else
6852 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6853 fi
6854 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6855
6856 # Check to see that the pipe works correctly.
6857 pipe_works=no
6858
6859 rm -f conftest*
6860 cat > conftest.$ac_ext <<_LT_EOF
6861 #ifdef __cplusplus
6862 extern "C" {
6863 #endif
6864 char nm_test_var;
6865 void nm_test_func(void);
6866 void nm_test_func(void){}
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870 int main(){nm_test_var='a';nm_test_func();return(0);}
6871 _LT_EOF
6872
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6875 ac_status=$?
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 # Now try to grab the symbols.
6879 nlist=conftest.nm
6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6882 ac_status=$?
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6884 test $ac_status = 0; } && test -s "$nlist"; then
6885 # Try sorting and uniquifying the output.
6886 if sort "$nlist" | uniq > "$nlist"T; then
6887 mv -f "$nlist"T "$nlist"
6888 else
6889 rm -f "$nlist"T
6890 fi
6891
6892 # Make sure that we snagged all the symbols we need.
6893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6895 cat <<_LT_EOF > conftest.$ac_ext
6896 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6897 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6898 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6899 relocations are performed -- see ld's documentation on pseudo-relocs. */
6900 # define LT_DLSYM_CONST
6901 #elif defined(__osf__)
6902 /* This system does not cope well with relocations in const data. */
6903 # define LT_DLSYM_CONST
6904 #else
6905 # define LT_DLSYM_CONST const
6906 #endif
6907
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911
6912 _LT_EOF
6913 # Now generate the symbol file.
6914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6915
6916 cat <<_LT_EOF >> conftest.$ac_ext
6917
6918 /* The mapping between symbol names and symbols. */
6919 LT_DLSYM_CONST struct {
6920 const char *name;
6921 void *address;
6922 }
6923 lt__PROGRAM__LTX_preloaded_symbols[] =
6924 {
6925 { "@PROGRAM@", (void *) 0 },
6926 _LT_EOF
6927 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6928 cat <<\_LT_EOF >> conftest.$ac_ext
6929 {0, (void *) 0}
6930 };
6931
6932 /* This works around a problem in FreeBSD linker */
6933 #ifdef FREEBSD_WORKAROUND
6934 static const void *lt_preloaded_setup() {
6935 return lt__PROGRAM__LTX_preloaded_symbols;
6936 }
6937 #endif
6938
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 _LT_EOF
6943 # Now try linking the two files.
6944 mv conftest.$ac_objext conftstm.$ac_objext
6945 lt_globsym_save_LIBS=$LIBS
6946 lt_globsym_save_CFLAGS=$CFLAGS
6947 LIBS="conftstm.$ac_objext"
6948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6950 (eval $ac_link) 2>&5
6951 ac_status=$?
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6954 pipe_works=yes
6955 fi
6956 LIBS=$lt_globsym_save_LIBS
6957 CFLAGS=$lt_globsym_save_CFLAGS
6958 else
6959 echo "cannot find nm_test_func in $nlist" >&5
6960 fi
6961 else
6962 echo "cannot find nm_test_var in $nlist" >&5
6963 fi
6964 else
6965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6966 fi
6967 else
6968 echo "$progname: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 fi
6971 rm -rf conftest* conftst*
6972
6973 # Do not use the global_symbol_pipe unless it works.
6974 if test "$pipe_works" = yes; then
6975 break
6976 else
6977 lt_cv_sys_global_symbol_pipe=
6978 fi
6979 done
6980
6981 fi
6982
6983 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6984 lt_cv_sys_global_symbol_to_cdecl=
6985 fi
6986 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6988 $as_echo "failed" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6991 $as_echo "ok" >&6; }
6992 fi
6993
6994 # Response file support.
6995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6996 nm_file_list_spec='@'
6997 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6998 nm_file_list_spec='@'
6999 fi
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7028 $as_echo_n "checking for sysroot... " >&6; }
7029
7030 # Check whether --with-sysroot was given.
7031 if test "${with_sysroot+set}" = set; then :
7032 withval=$with_sysroot;
7033 else
7034 with_sysroot=no
7035 fi
7036
7037
7038 lt_sysroot=
7039 case ${with_sysroot} in #(
7040 yes)
7041 if test "$GCC" = yes; then
7042 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7043 fi
7044 ;; #(
7045 /*)
7046 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7047 ;; #(
7048 no|'')
7049 ;; #(
7050 *)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7052 $as_echo "${with_sysroot}" >&6; }
7053 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7054 ;;
7055 esac
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7058 $as_echo "${lt_sysroot:-no}" >&6; }
7059
7060
7061
7062
7063
7064 # Check whether --enable-libtool-lock was given.
7065 if test "${enable_libtool_lock+set}" = set; then :
7066 enableval=$enable_libtool_lock;
7067 fi
7068
7069 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7070
7071 # Some flags need to be propagated to the compiler or linker for good
7072 # libtool support.
7073 case $host in
7074 ia64-*-hpux*)
7075 # Find out which ABI we are using.
7076 echo 'int i;' > conftest.$ac_ext
7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7078 (eval $ac_compile) 2>&5
7079 ac_status=$?
7080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7081 test $ac_status = 0; }; then
7082 case `/usr/bin/file conftest.$ac_objext` in
7083 *ELF-32*)
7084 HPUX_IA64_MODE="32"
7085 ;;
7086 *ELF-64*)
7087 HPUX_IA64_MODE="64"
7088 ;;
7089 esac
7090 fi
7091 rm -rf conftest*
7092 ;;
7093 *-*-irix6*)
7094 # Find out which ABI we are using.
7095 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097 (eval $ac_compile) 2>&5
7098 ac_status=$?
7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; then
7101 if test "$lt_cv_prog_gnu_ld" = yes; then
7102 case `/usr/bin/file conftest.$ac_objext` in
7103 *32-bit*)
7104 LD="${LD-ld} -melf32bsmip"
7105 ;;
7106 *N32*)
7107 LD="${LD-ld} -melf32bmipn32"
7108 ;;
7109 *64-bit*)
7110 LD="${LD-ld} -melf64bmip"
7111 ;;
7112 esac
7113 else
7114 case `/usr/bin/file conftest.$ac_objext` in
7115 *32-bit*)
7116 LD="${LD-ld} -32"
7117 ;;
7118 *N32*)
7119 LD="${LD-ld} -n32"
7120 ;;
7121 *64-bit*)
7122 LD="${LD-ld} -64"
7123 ;;
7124 esac
7125 fi
7126 fi
7127 rm -rf conftest*
7128 ;;
7129
7130 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7131 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7132 # Find out which ABI we are using.
7133 echo 'int i;' > conftest.$ac_ext
7134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7135 (eval $ac_compile) 2>&5
7136 ac_status=$?
7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; then
7139 case `/usr/bin/file conftest.o` in
7140 *32-bit*)
7141 case $host in
7142 x86_64-*kfreebsd*-gnu)
7143 LD="${LD-ld} -m elf_i386_fbsd"
7144 ;;
7145 x86_64-*linux*)
7146 LD="${LD-ld} -m elf_i386"
7147 ;;
7148 ppc64-*linux*|powerpc64-*linux*)
7149 LD="${LD-ld} -m elf32ppclinux"
7150 ;;
7151 s390x-*linux*)
7152 LD="${LD-ld} -m elf_s390"
7153 ;;
7154 sparc64-*linux*)
7155 LD="${LD-ld} -m elf32_sparc"
7156 ;;
7157 esac
7158 ;;
7159 *64-bit*)
7160 case $host in
7161 x86_64-*kfreebsd*-gnu)
7162 LD="${LD-ld} -m elf_x86_64_fbsd"
7163 ;;
7164 x86_64-*linux*)
7165 LD="${LD-ld} -m elf_x86_64"
7166 ;;
7167 ppc*-*linux*|powerpc*-*linux*)
7168 LD="${LD-ld} -m elf64ppc"
7169 ;;
7170 s390*-*linux*|s390*-*tpf*)
7171 LD="${LD-ld} -m elf64_s390"
7172 ;;
7173 sparc*-*linux*)
7174 LD="${LD-ld} -m elf64_sparc"
7175 ;;
7176 esac
7177 ;;
7178 esac
7179 fi
7180 rm -rf conftest*
7181 ;;
7182
7183 *-*-sco3.2v5*)
7184 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7185 SAVE_CFLAGS="$CFLAGS"
7186 CFLAGS="$CFLAGS -belf"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7188 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7189 if ${lt_cv_cc_needs_belf+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 ac_ext=c
7193 ac_cpp='$CPP $CPPFLAGS'
7194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200
7201 int
7202 main ()
7203 {
7204
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_link "$LINENO"; then :
7210 lt_cv_cc_needs_belf=yes
7211 else
7212 lt_cv_cc_needs_belf=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216 ac_ext=c
7217 ac_cpp='$CPP $CPPFLAGS'
7218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7224 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7225 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7226 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7227 CFLAGS="$SAVE_CFLAGS"
7228 fi
7229 ;;
7230 *-*solaris*)
7231 # Find out which ABI we are using.
7232 echo 'int i;' > conftest.$ac_ext
7233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }; then
7238 case `/usr/bin/file conftest.o` in
7239 *64-bit*)
7240 case $lt_cv_prog_gnu_ld in
7241 yes*)
7242 case $host in
7243 i?86-*-solaris*)
7244 LD="${LD-ld} -m elf_x86_64"
7245 ;;
7246 sparc*-*-solaris*)
7247 LD="${LD-ld} -m elf64_sparc"
7248 ;;
7249 esac
7250 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7251 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7252 LD="${LD-ld}_sol2"
7253 fi
7254 ;;
7255 *)
7256 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7257 LD="${LD-ld} -64"
7258 fi
7259 ;;
7260 esac
7261 ;;
7262 esac
7263 fi
7264 rm -rf conftest*
7265 ;;
7266 esac
7267
7268 need_locks="$enable_libtool_lock"
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}mt; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$MANIFEST_TOOL"; then
7279 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7299 if test -n "$MANIFEST_TOOL"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7301 $as_echo "$MANIFEST_TOOL" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7310 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7311 # Extract the first word of "mt", so it can be a program name with args.
7312 set dummy mt; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_MANIFEST_TOOL"; then
7319 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7339 if test -n "$ac_ct_MANIFEST_TOOL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7341 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7348 MANIFEST_TOOL=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7357 fi
7358 else
7359 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7360 fi
7361
7362 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7364 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7365 if ${lt_cv_path_mainfest_tool+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 lt_cv_path_mainfest_tool=no
7369 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7370 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7371 cat conftest.err >&5
7372 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7373 lt_cv_path_mainfest_tool=yes
7374 fi
7375 rm -f conftest*
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7378 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7379 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7380 MANIFEST_TOOL=:
7381 fi
7382
7383
7384
7385
7386
7387
7388 case $host_os in
7389 rhapsody* | darwin*)
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7392 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 if test -n "$DSYMUTIL"; then
7399 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7419 if test -n "$DSYMUTIL"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7421 $as_echo "$DSYMUTIL" >&6; }
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427
7428 fi
7429 if test -z "$ac_cv_prog_DSYMUTIL"; then
7430 ac_ct_DSYMUTIL=$DSYMUTIL
7431 # Extract the first word of "dsymutil", so it can be a program name with args.
7432 set dummy dsymutil; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$ac_ct_DSYMUTIL"; then
7439 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7459 if test -n "$ac_ct_DSYMUTIL"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7461 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467 if test "x$ac_ct_DSYMUTIL" = x; then
7468 DSYMUTIL=":"
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471 yes:)
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7474 ac_tool_warned=yes ;;
7475 esac
7476 DSYMUTIL=$ac_ct_DSYMUTIL
7477 fi
7478 else
7479 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7480 fi
7481
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_NMEDIT+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$NMEDIT"; then
7491 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 NMEDIT=$ac_cv_prog_NMEDIT
7511 if test -n "$NMEDIT"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7513 $as_echo "$NMEDIT" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519
7520 fi
7521 if test -z "$ac_cv_prog_NMEDIT"; then
7522 ac_ct_NMEDIT=$NMEDIT
7523 # Extract the first word of "nmedit", so it can be a program name with args.
7524 set dummy nmedit; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 if test -n "$ac_ct_NMEDIT"; then
7531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7543 fi
7544 done
7545 done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7551 if test -n "$ac_ct_NMEDIT"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7553 $as_echo "$ac_ct_NMEDIT" >&6; }
7554 else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559 if test "x$ac_ct_NMEDIT" = x; then
7560 NMEDIT=":"
7561 else
7562 case $cross_compiling:$ac_tool_warned in
7563 yes:)
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7567 esac
7568 NMEDIT=$ac_ct_NMEDIT
7569 fi
7570 else
7571 NMEDIT="$ac_cv_prog_NMEDIT"
7572 fi
7573
7574 if test -n "$ac_tool_prefix"; then
7575 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7576 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_LIPO+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$LIPO"; then
7583 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 LIPO=$ac_cv_prog_LIPO
7603 if test -n "$LIPO"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7605 $as_echo "$LIPO" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 fi
7613 if test -z "$ac_cv_prog_LIPO"; then
7614 ac_ct_LIPO=$LIPO
7615 # Extract the first word of "lipo", so it can be a program name with args.
7616 set dummy lipo; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test -n "$ac_ct_LIPO"; then
7623 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_ac_ct_LIPO="lipo"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7643 if test -n "$ac_ct_LIPO"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7645 $as_echo "$ac_ct_LIPO" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651 if test "x$ac_ct_LIPO" = x; then
7652 LIPO=":"
7653 else
7654 case $cross_compiling:$ac_tool_warned in
7655 yes:)
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658 ac_tool_warned=yes ;;
7659 esac
7660 LIPO=$ac_ct_LIPO
7661 fi
7662 else
7663 LIPO="$ac_cv_prog_LIPO"
7664 fi
7665
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}otool; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_OTOOL+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$OTOOL"; then
7675 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 OTOOL=$ac_cv_prog_OTOOL
7695 if test -n "$OTOOL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7697 $as_echo "$OTOOL" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704 fi
7705 if test -z "$ac_cv_prog_OTOOL"; then
7706 ac_ct_OTOOL=$OTOOL
7707 # Extract the first word of "otool", so it can be a program name with args.
7708 set dummy otool; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$ac_ct_OTOOL"; then
7715 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_OTOOL="otool"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 fi
7733 fi
7734 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7735 if test -n "$ac_ct_OTOOL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7737 $as_echo "$ac_ct_OTOOL" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7741 fi
7742
7743 if test "x$ac_ct_OTOOL" = x; then
7744 OTOOL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 OTOOL=$ac_ct_OTOOL
7753 fi
7754 else
7755 OTOOL="$ac_cv_prog_OTOOL"
7756 fi
7757
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_OTOOL64+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$OTOOL64"; then
7767 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 OTOOL64=$ac_cv_prog_OTOOL64
7787 if test -n "$OTOOL64"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7789 $as_echo "$OTOOL64" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 fi
7797 if test -z "$ac_cv_prog_OTOOL64"; then
7798 ac_ct_OTOOL64=$OTOOL64
7799 # Extract the first word of "otool64", so it can be a program name with args.
7800 set dummy otool64; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$ac_ct_OTOOL64"; then
7807 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_OTOOL64="otool64"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 fi
7825 fi
7826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7827 if test -n "$ac_ct_OTOOL64"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7829 $as_echo "$ac_ct_OTOOL64" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 fi
7834
7835 if test "x$ac_ct_OTOOL64" = x; then
7836 OTOOL64=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 OTOOL64=$ac_ct_OTOOL64
7845 fi
7846 else
7847 OTOOL64="$ac_cv_prog_OTOOL64"
7848 fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7877 $as_echo_n "checking for -single_module linker flag... " >&6; }
7878 if ${lt_cv_apple_cc_single_mod+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_apple_cc_single_mod=no
7882 if test -z "${LT_MULTI_MODULE}"; then
7883 # By default we will add the -single_module flag. You can override
7884 # by either setting the environment variable LT_MULTI_MODULE
7885 # non-empty at configure time, or by adding -multi_module to the
7886 # link flags.
7887 rm -rf libconftest.dylib*
7888 echo "int foo(void){return 1;}" > conftest.c
7889 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7890 -dynamiclib -Wl,-single_module conftest.c" >&5
7891 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7892 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7893 _lt_result=$?
7894 # If there is a non-empty error log, and "single_module"
7895 # appears in it, assume the flag caused a linker warning
7896 if test -s conftest.err && $GREP single_module conftest.err; then
7897 cat conftest.err >&5
7898 # Otherwise, if the output was created with a 0 exit code from
7899 # the compiler, it worked.
7900 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7901 lt_cv_apple_cc_single_mod=yes
7902 else
7903 cat conftest.err >&5
7904 fi
7905 rm -rf libconftest.dylib*
7906 rm -f conftest.*
7907 fi
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7910 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7913 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7914 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 lt_cv_ld_exported_symbols_list=no
7918 save_LDFLAGS=$LDFLAGS
7919 echo "_main" > conftest.sym
7920 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923
7924 int
7925 main ()
7926 {
7927
7928 ;
7929 return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_link "$LINENO"; then :
7933 lt_cv_ld_exported_symbols_list=yes
7934 else
7935 lt_cv_ld_exported_symbols_list=no
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 LDFLAGS="$save_LDFLAGS"
7940
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7943 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7946 $as_echo_n "checking for -force_load linker flag... " >&6; }
7947 if ${lt_cv_ld_force_load+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 lt_cv_ld_force_load=no
7951 cat > conftest.c << _LT_EOF
7952 int forced_loaded() { return 2;}
7953 _LT_EOF
7954 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7955 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7956 echo "$AR cru libconftest.a conftest.o" >&5
7957 $AR cru libconftest.a conftest.o 2>&5
7958 echo "$RANLIB libconftest.a" >&5
7959 $RANLIB libconftest.a 2>&5
7960 cat > conftest.c << _LT_EOF
7961 int main() { return 0;}
7962 _LT_EOF
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965 _lt_result=$?
7966 if test -s conftest.err && $GREP force_load conftest.err; then
7967 cat conftest.err >&5
7968 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7969 lt_cv_ld_force_load=yes
7970 else
7971 cat conftest.err >&5
7972 fi
7973 rm -f conftest.err libconftest.a conftest conftest.c
7974 rm -rf conftest.dSYM
7975
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7978 $as_echo "$lt_cv_ld_force_load" >&6; }
7979 case $host_os in
7980 rhapsody* | darwin1.[012])
7981 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7982 darwin1.*)
7983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7984 darwin*) # darwin 5.x on
7985 # if running on 10.5 or later, the deployment target defaults
7986 # to the OS version, if on x86, and 10.4, the deployment
7987 # target defaults to 10.4. Don't you love it?
7988 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7989 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7991 10.[012]*)
7992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7993 10.*)
7994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7995 esac
7996 ;;
7997 esac
7998 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7999 _lt_dar_single_mod='$single_module'
8000 fi
8001 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8002 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8003 else
8004 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8005 fi
8006 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8007 _lt_dsymutil='~$DSYMUTIL $lib || :'
8008 else
8009 _lt_dsymutil=
8010 fi
8011 ;;
8012 esac
8013
8014 ac_ext=c
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8021 # On Suns, sometimes $CPP names a directory.
8022 if test -n "$CPP" && test -d "$CPP"; then
8023 CPP=
8024 fi
8025 if test -z "$CPP"; then
8026 if ${ac_cv_prog_CPP+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 # Double quotes because CPP needs to be expanded
8030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8031 do
8032 ac_preproc_ok=false
8033 for ac_c_preproc_warn_flag in '' yes
8034 do
8035 # Use a header file that comes with gcc, so configuring glibc
8036 # with a fresh cross-compiler works.
8037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8038 # <limits.h> exists even on freestanding compilers.
8039 # On the NeXT, cc -E runs the code through the compiler's parser,
8040 # not just through cpp. "Syntax error" is here to catch this case.
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #ifdef __STDC__
8044 # include <limits.h>
8045 #else
8046 # include <assert.h>
8047 #endif
8048 Syntax error
8049 _ACEOF
8050 if ac_fn_c_try_cpp "$LINENO"; then :
8051
8052 else
8053 # Broken: fails on valid input.
8054 continue
8055 fi
8056 rm -f conftest.err conftest.i conftest.$ac_ext
8057
8058 # OK, works on sane cases. Now check whether nonexistent headers
8059 # can be detected and how.
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 #include <ac_nonexistent.h>
8063 _ACEOF
8064 if ac_fn_c_try_cpp "$LINENO"; then :
8065 # Broken: success on invalid input.
8066 continue
8067 else
8068 # Passes both tests.
8069 ac_preproc_ok=:
8070 break
8071 fi
8072 rm -f conftest.err conftest.i conftest.$ac_ext
8073
8074 done
8075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8076 rm -f conftest.i conftest.err conftest.$ac_ext
8077 if $ac_preproc_ok; then :
8078 break
8079 fi
8080
8081 done
8082 ac_cv_prog_CPP=$CPP
8083
8084 fi
8085 CPP=$ac_cv_prog_CPP
8086 else
8087 ac_cv_prog_CPP=$CPP
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8090 $as_echo "$CPP" >&6; }
8091 ac_preproc_ok=false
8092 for ac_c_preproc_warn_flag in '' yes
8093 do
8094 # Use a header file that comes with gcc, so configuring glibc
8095 # with a fresh cross-compiler works.
8096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097 # <limits.h> exists even on freestanding compilers.
8098 # On the NeXT, cc -E runs the code through the compiler's parser,
8099 # not just through cpp. "Syntax error" is here to catch this case.
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #ifdef __STDC__
8103 # include <limits.h>
8104 #else
8105 # include <assert.h>
8106 #endif
8107 Syntax error
8108 _ACEOF
8109 if ac_fn_c_try_cpp "$LINENO"; then :
8110
8111 else
8112 # Broken: fails on valid input.
8113 continue
8114 fi
8115 rm -f conftest.err conftest.i conftest.$ac_ext
8116
8117 # OK, works on sane cases. Now check whether nonexistent headers
8118 # can be detected and how.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <ac_nonexistent.h>
8122 _ACEOF
8123 if ac_fn_c_try_cpp "$LINENO"; then :
8124 # Broken: success on invalid input.
8125 continue
8126 else
8127 # Passes both tests.
8128 ac_preproc_ok=:
8129 break
8130 fi
8131 rm -f conftest.err conftest.i conftest.$ac_ext
8132
8133 done
8134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8135 rm -f conftest.i conftest.err conftest.$ac_ext
8136 if $ac_preproc_ok; then :
8137
8138 else
8139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8142 See \`config.log' for more details" "$LINENO" 5; }
8143 fi
8144
8145 ac_ext=c
8146 ac_cpp='$CPP $CPPFLAGS'
8147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8153 $as_echo_n "checking for ANSI C header files... " >&6; }
8154 if ${ac_cv_header_stdc+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <stdlib.h>
8160 #include <stdarg.h>
8161 #include <string.h>
8162 #include <float.h>
8163
8164 int
8165 main ()
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 ac_cv_header_stdc=yes
8174 else
8175 ac_cv_header_stdc=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178
8179 if test $ac_cv_header_stdc = yes; then
8180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <string.h>
8184
8185 _ACEOF
8186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8187 $EGREP "memchr" >/dev/null 2>&1; then :
8188
8189 else
8190 ac_cv_header_stdc=no
8191 fi
8192 rm -f conftest*
8193
8194 fi
8195
8196 if test $ac_cv_header_stdc = yes; then
8197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <stdlib.h>
8201
8202 _ACEOF
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204 $EGREP "free" >/dev/null 2>&1; then :
8205
8206 else
8207 ac_cv_header_stdc=no
8208 fi
8209 rm -f conftest*
8210
8211 fi
8212
8213 if test $ac_cv_header_stdc = yes; then
8214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8215 if test "$cross_compiling" = yes; then :
8216 :
8217 else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <ctype.h>
8221 #include <stdlib.h>
8222 #if ((' ' & 0x0FF) == 0x020)
8223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225 #else
8226 # define ISLOWER(c) \
8227 (('a' <= (c) && (c) <= 'i') \
8228 || ('j' <= (c) && (c) <= 'r') \
8229 || ('s' <= (c) && (c) <= 'z'))
8230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231 #endif
8232
8233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8234 int
8235 main ()
8236 {
8237 int i;
8238 for (i = 0; i < 256; i++)
8239 if (XOR (islower (i), ISLOWER (i))
8240 || toupper (i) != TOUPPER (i))
8241 return 2;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_run "$LINENO"; then :
8246
8247 else
8248 ac_cv_header_stdc=no
8249 fi
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8251 conftest.$ac_objext conftest.beam conftest.$ac_ext
8252 fi
8253
8254 fi
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8257 $as_echo "$ac_cv_header_stdc" >&6; }
8258 if test $ac_cv_header_stdc = yes; then
8259
8260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8261
8262 fi
8263
8264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8266 inttypes.h stdint.h unistd.h
8267 do :
8268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8270 "
8271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8272 cat >>confdefs.h <<_ACEOF
8273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 _ACEOF
8275
8276 fi
8277
8278 done
8279
8280
8281 for ac_header in dlfcn.h
8282 do :
8283 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8284 "
8285 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8286 cat >>confdefs.h <<_ACEOF
8287 #define HAVE_DLFCN_H 1
8288 _ACEOF
8289
8290 fi
8291
8292 done
8293
8294
8295
8296
8297
8298 # Set options
8299 enable_dlopen=yes
8300 # Check whether --enable-static was given.
8301 if test "${enable_static+set}" = set; then :
8302 enableval=$enable_static; p=${PACKAGE-default}
8303 case $enableval in
8304 yes) enable_static=yes ;;
8305 no) enable_static=no ;;
8306 *)
8307 enable_static=no
8308 # Look at the argument we got. We use all the common list separators.
8309 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8310 for pkg in $enableval; do
8311 IFS="$lt_save_ifs"
8312 if test "X$pkg" = "X$p"; then
8313 enable_static=yes
8314 fi
8315 done
8316 IFS="$lt_save_ifs"
8317 ;;
8318 esac
8319 else
8320 enable_static=no
8321 fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333 enable_win32_dll=no
8334
8335
8336 # Check whether --enable-shared was given.
8337 if test "${enable_shared+set}" = set; then :
8338 enableval=$enable_shared; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_shared=yes ;;
8341 no) enable_shared=no ;;
8342 *)
8343 enable_shared=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_shared=yes
8350 fi
8351 done
8352 IFS="$lt_save_ifs"
8353 ;;
8354 esac
8355 else
8356 enable_shared=yes
8357 fi
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 # Check whether --with-pic was given.
8370 if test "${with_pic+set}" = set; then :
8371 withval=$with_pic; lt_p=${PACKAGE-default}
8372 case $withval in
8373 yes|no) pic_mode=$withval ;;
8374 *)
8375 pic_mode=default
8376 # Look at the argument we got. We use all the common list separators.
8377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8378 for lt_pkg in $withval; do
8379 IFS="$lt_save_ifs"
8380 if test "X$lt_pkg" = "X$lt_p"; then
8381 pic_mode=yes
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 ;;
8386 esac
8387 else
8388 pic_mode=default
8389 fi
8390
8391
8392 test -z "$pic_mode" && pic_mode=default
8393
8394
8395
8396
8397
8398
8399
8400 # Check whether --enable-fast-install was given.
8401 if test "${enable_fast_install+set}" = set; then :
8402 enableval=$enable_fast_install; p=${PACKAGE-default}
8403 case $enableval in
8404 yes) enable_fast_install=yes ;;
8405 no) enable_fast_install=no ;;
8406 *)
8407 enable_fast_install=no
8408 # Look at the argument we got. We use all the common list separators.
8409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8410 for pkg in $enableval; do
8411 IFS="$lt_save_ifs"
8412 if test "X$pkg" = "X$p"; then
8413 enable_fast_install=yes
8414 fi
8415 done
8416 IFS="$lt_save_ifs"
8417 ;;
8418 esac
8419 else
8420 enable_fast_install=yes
8421 fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433 # This can be used to rebuild libtool when needed
8434 LIBTOOL_DEPS="$ltmain"
8435
8436 # Always use our own libtool.
8437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468 test -z "$LN_S" && LN_S="ln -s"
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 if test -n "${ZSH_VERSION+set}" ; then
8484 setopt NO_GLOB_SUBST
8485 fi
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8488 $as_echo_n "checking for objdir... " >&6; }
8489 if ${lt_cv_objdir+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 rm -f .libs 2>/dev/null
8493 mkdir .libs 2>/dev/null
8494 if test -d .libs; then
8495 lt_cv_objdir=.libs
8496 else
8497 # MS-DOS does not allow filenames that begin with a dot.
8498 lt_cv_objdir=_libs
8499 fi
8500 rmdir .libs 2>/dev/null
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8503 $as_echo "$lt_cv_objdir" >&6; }
8504 objdir=$lt_cv_objdir
8505
8506
8507
8508
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define LT_OBJDIR "$lt_cv_objdir/"
8512 _ACEOF
8513
8514
8515
8516
8517 case $host_os in
8518 aix3*)
8519 # AIX sometimes has problems with the GCC collect2 program. For some
8520 # reason, if we set the COLLECT_NAMES environment variable, the problems
8521 # vanish in a puff of smoke.
8522 if test "X${COLLECT_NAMES+set}" != Xset; then
8523 COLLECT_NAMES=
8524 export COLLECT_NAMES
8525 fi
8526 ;;
8527 esac
8528
8529 # Global variables:
8530 ofile=libtool
8531 can_build_shared=yes
8532
8533 # All known linkers require a `.a' archive for static linking (except MSVC,
8534 # which needs '.lib').
8535 libext=a
8536
8537 with_gnu_ld="$lt_cv_prog_gnu_ld"
8538
8539 old_CC="$CC"
8540 old_CFLAGS="$CFLAGS"
8541
8542 # Set sane defaults for various variables
8543 test -z "$CC" && CC=cc
8544 test -z "$LTCC" && LTCC=$CC
8545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8546 test -z "$LD" && LD=ld
8547 test -z "$ac_objext" && ac_objext=o
8548
8549 for cc_temp in $compiler""; do
8550 case $cc_temp in
8551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8553 \-*) ;;
8554 *) break;;
8555 esac
8556 done
8557 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8558
8559
8560 # Only perform the check for file, if the check method requires it
8561 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8562 case $deplibs_check_method in
8563 file_magic*)
8564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8566 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8567 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 case $MAGIC_CMD in
8571 [\\/*] | ?:[\\/]*)
8572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8573 ;;
8574 *)
8575 lt_save_MAGIC_CMD="$MAGIC_CMD"
8576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8578 for ac_dir in $ac_dummy; do
8579 IFS="$lt_save_ifs"
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/${ac_tool_prefix}file; then
8582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8583 if test -n "$file_magic_test_file"; then
8584 case $deplibs_check_method in
8585 "file_magic "*)
8586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8589 $EGREP "$file_magic_regex" > /dev/null; then
8590 :
8591 else
8592 cat <<_LT_EOF 1>&2
8593
8594 *** Warning: the command libtool uses to detect shared libraries,
8595 *** $file_magic_cmd, produces output that libtool cannot recognize.
8596 *** The result is that libtool may fail to recognize shared libraries
8597 *** as such. This will affect the creation of libtool libraries that
8598 *** depend on shared libraries, but programs linked with such libtool
8599 *** libraries will work regardless of this problem. Nevertheless, you
8600 *** may want to report the problem to your system manager and/or to
8601 *** bug-libtool@gnu.org
8602
8603 _LT_EOF
8604 fi ;;
8605 esac
8606 fi
8607 break
8608 fi
8609 done
8610 IFS="$lt_save_ifs"
8611 MAGIC_CMD="$lt_save_MAGIC_CMD"
8612 ;;
8613 esac
8614 fi
8615
8616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8617 if test -n "$MAGIC_CMD"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8619 $as_echo "$MAGIC_CMD" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625
8626
8627
8628
8629 if test -z "$lt_cv_path_MAGIC_CMD"; then
8630 if test -n "$ac_tool_prefix"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8632 $as_echo_n "checking for file... " >&6; }
8633 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 case $MAGIC_CMD in
8637 [\\/*] | ?:[\\/]*)
8638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8639 ;;
8640 *)
8641 lt_save_MAGIC_CMD="$MAGIC_CMD"
8642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8644 for ac_dir in $ac_dummy; do
8645 IFS="$lt_save_ifs"
8646 test -z "$ac_dir" && ac_dir=.
8647 if test -f $ac_dir/file; then
8648 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8649 if test -n "$file_magic_test_file"; then
8650 case $deplibs_check_method in
8651 "file_magic "*)
8652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8655 $EGREP "$file_magic_regex" > /dev/null; then
8656 :
8657 else
8658 cat <<_LT_EOF 1>&2
8659
8660 *** Warning: the command libtool uses to detect shared libraries,
8661 *** $file_magic_cmd, produces output that libtool cannot recognize.
8662 *** The result is that libtool may fail to recognize shared libraries
8663 *** as such. This will affect the creation of libtool libraries that
8664 *** depend on shared libraries, but programs linked with such libtool
8665 *** libraries will work regardless of this problem. Nevertheless, you
8666 *** may want to report the problem to your system manager and/or to
8667 *** bug-libtool@gnu.org
8668
8669 _LT_EOF
8670 fi ;;
8671 esac
8672 fi
8673 break
8674 fi
8675 done
8676 IFS="$lt_save_ifs"
8677 MAGIC_CMD="$lt_save_MAGIC_CMD"
8678 ;;
8679 esac
8680 fi
8681
8682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683 if test -n "$MAGIC_CMD"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8685 $as_echo "$MAGIC_CMD" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690
8691
8692 else
8693 MAGIC_CMD=:
8694 fi
8695 fi
8696
8697 fi
8698 ;;
8699 esac
8700
8701 # Use C for the default configuration in the libtool script
8702
8703 lt_save_CC="$CC"
8704 ac_ext=c
8705 ac_cpp='$CPP $CPPFLAGS'
8706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709
8710
8711 # Source file extension for C test sources.
8712 ac_ext=c
8713
8714 # Object file extension for compiled C test sources.
8715 objext=o
8716 objext=$objext
8717
8718 # Code to be used in simple compile tests
8719 lt_simple_compile_test_code="int some_variable = 0;"
8720
8721 # Code to be used in simple link tests
8722 lt_simple_link_test_code='int main(){return(0);}'
8723
8724
8725
8726
8727
8728
8729
8730 # If no C compiler was specified, use CC.
8731 LTCC=${LTCC-"$CC"}
8732
8733 # If no C compiler flags were specified, use CFLAGS.
8734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8735
8736 # Allow CC to be a program name with arguments.
8737 compiler=$CC
8738
8739 # Save the default compiler, since it gets overwritten when the other
8740 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8741 compiler_DEFAULT=$CC
8742
8743 # save warnings/boilerplate of simple test code
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8747 _lt_compiler_boilerplate=`cat conftest.err`
8748 $RM conftest*
8749
8750 ac_outfile=conftest.$ac_objext
8751 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8753 _lt_linker_boilerplate=`cat conftest.err`
8754 $RM -r conftest*
8755
8756
8757 if test -n "$compiler"; then
8758
8759 lt_prog_compiler_no_builtin_flag=
8760
8761 if test "$GCC" = yes; then
8762 case $cc_basename in
8763 nvcc*)
8764 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8765 *)
8766 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8767 esac
8768
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8770 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8771 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 lt_cv_prog_compiler_rtti_exceptions=no
8775 ac_outfile=conftest.$ac_objext
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777 lt_compiler_flag="-fno-rtti -fno-exceptions"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 # The option is referenced via a variable to avoid confusing sed.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>conftest.err)
8789 ac_status=$?
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s "$ac_outfile"; then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings other than the usual output.
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_rtti_exceptions=yes
8799 fi
8800 fi
8801 $RM conftest*
8802
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8805 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8806
8807 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8809 else
8810 :
8811 fi
8812
8813 fi
8814
8815
8816
8817
8818
8819
8820 lt_prog_compiler_wl=
8821 lt_prog_compiler_pic=
8822 lt_prog_compiler_static=
8823
8824
8825 if test "$GCC" = yes; then
8826 lt_prog_compiler_wl='-Wl,'
8827 lt_prog_compiler_static='-static'
8828
8829 case $host_os in
8830 aix*)
8831 # All AIX code is PIC.
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 now supports IA64 processor
8834 lt_prog_compiler_static='-Bstatic'
8835 fi
8836 ;;
8837
8838 amigaos*)
8839 case $host_cpu in
8840 powerpc)
8841 # see comment about AmigaOS4 .so support
8842 lt_prog_compiler_pic='-fPIC'
8843 ;;
8844 m68k)
8845 # FIXME: we need at least 68020 code to build shared libraries, but
8846 # adding the `-m68020' flag to GCC prevents building anything better,
8847 # like `-m68040'.
8848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8849 ;;
8850 esac
8851 ;;
8852
8853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8854 # PIC is the default for these OSes.
8855 ;;
8856
8857 mingw* | cygwin* | pw32* | os2* | cegcc*)
8858 # This hack is so that the source file can tell whether it is being
8859 # built for inclusion in a dll (and should export symbols for example).
8860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8861 # (--disable-auto-import) libraries
8862 lt_prog_compiler_pic='-DDLL_EXPORT'
8863 ;;
8864
8865 darwin* | rhapsody*)
8866 # PIC is the default on this platform
8867 # Common symbols not allowed in MH_DYLIB files
8868 lt_prog_compiler_pic='-fno-common'
8869 ;;
8870
8871 haiku*)
8872 # PIC is the default for Haiku.
8873 # The "-static" flag exists, but is broken.
8874 lt_prog_compiler_static=
8875 ;;
8876
8877 hpux*)
8878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8880 # sets the default TLS model and affects inlining.
8881 case $host_cpu in
8882 hppa*64*)
8883 # +Z the default
8884 ;;
8885 *)
8886 lt_prog_compiler_pic='-fPIC'
8887 ;;
8888 esac
8889 ;;
8890
8891 interix[3-9]*)
8892 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8893 # Instead, we relocate shared libraries at runtime.
8894 ;;
8895
8896 msdosdjgpp*)
8897 # Just because we use GCC doesn't mean we suddenly get shared libraries
8898 # on systems that don't support them.
8899 lt_prog_compiler_can_build_shared=no
8900 enable_shared=no
8901 ;;
8902
8903 *nto* | *qnx*)
8904 # QNX uses GNU C++, but need to define -shared option too, otherwise
8905 # it will coredump.
8906 lt_prog_compiler_pic='-fPIC -shared'
8907 ;;
8908
8909 sysv4*MP*)
8910 if test -d /usr/nec; then
8911 lt_prog_compiler_pic=-Kconform_pic
8912 fi
8913 ;;
8914
8915 *)
8916 lt_prog_compiler_pic='-fPIC'
8917 ;;
8918 esac
8919
8920 case $cc_basename in
8921 nvcc*) # Cuda Compiler Driver 2.2
8922 lt_prog_compiler_wl='-Xlinker '
8923 if test -n "$lt_prog_compiler_pic"; then
8924 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8925 fi
8926 ;;
8927 esac
8928 else
8929 # PORTME Check for flag to pass linker flags through the system compiler.
8930 case $host_os in
8931 aix*)
8932 lt_prog_compiler_wl='-Wl,'
8933 if test "$host_cpu" = ia64; then
8934 # AIX 5 now supports IA64 processor
8935 lt_prog_compiler_static='-Bstatic'
8936 else
8937 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8938 fi
8939 ;;
8940
8941 mingw* | cygwin* | pw32* | os2* | cegcc*)
8942 # This hack is so that the source file can tell whether it is being
8943 # built for inclusion in a dll (and should export symbols for example).
8944 lt_prog_compiler_pic='-DDLL_EXPORT'
8945 ;;
8946
8947 hpux9* | hpux10* | hpux11*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8950 # not for PA HP-UX.
8951 case $host_cpu in
8952 hppa*64*|ia64*)
8953 # +Z the default
8954 ;;
8955 *)
8956 lt_prog_compiler_pic='+Z'
8957 ;;
8958 esac
8959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8960 lt_prog_compiler_static='${wl}-a ${wl}archive'
8961 ;;
8962
8963 irix5* | irix6* | nonstopux*)
8964 lt_prog_compiler_wl='-Wl,'
8965 # PIC (with -KPIC) is the default.
8966 lt_prog_compiler_static='-non_shared'
8967 ;;
8968
8969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8970 case $cc_basename in
8971 # old Intel for x86_64 which still supported -KPIC.
8972 ecc*)
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_pic='-KPIC'
8975 lt_prog_compiler_static='-static'
8976 ;;
8977 # icc used to be incompatible with GCC.
8978 # ICC 10 doesn't accept -KPIC any more.
8979 icc* | ifort*)
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_pic='-fPIC'
8982 lt_prog_compiler_static='-static'
8983 ;;
8984 # Lahey Fortran 8.1.
8985 lf95*)
8986 lt_prog_compiler_wl='-Wl,'
8987 lt_prog_compiler_pic='--shared'
8988 lt_prog_compiler_static='--static'
8989 ;;
8990 nagfor*)
8991 # NAG Fortran compiler
8992 lt_prog_compiler_wl='-Wl,-Wl,,'
8993 lt_prog_compiler_pic='-PIC'
8994 lt_prog_compiler_static='-Bstatic'
8995 ;;
8996 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8997 # Portland Group compilers (*not* the Pentium gcc compiler,
8998 # which looks to be a dead project)
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_pic='-fpic'
9001 lt_prog_compiler_static='-Bstatic'
9002 ;;
9003 ccc*)
9004 lt_prog_compiler_wl='-Wl,'
9005 # All Alpha code is PIC.
9006 lt_prog_compiler_static='-non_shared'
9007 ;;
9008 xl* | bgxl* | bgf* | mpixl*)
9009 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-qpic'
9012 lt_prog_compiler_static='-qstaticlink'
9013 ;;
9014 *)
9015 case `$CC -V 2>&1 | sed 5q` in
9016 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9017 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9018 lt_prog_compiler_pic='-KPIC'
9019 lt_prog_compiler_static='-Bstatic'
9020 lt_prog_compiler_wl=''
9021 ;;
9022 *Sun\ F* | *Sun*Fortran*)
9023 lt_prog_compiler_pic='-KPIC'
9024 lt_prog_compiler_static='-Bstatic'
9025 lt_prog_compiler_wl='-Qoption ld '
9026 ;;
9027 *Sun\ C*)
9028 # Sun C 5.9
9029 lt_prog_compiler_pic='-KPIC'
9030 lt_prog_compiler_static='-Bstatic'
9031 lt_prog_compiler_wl='-Wl,'
9032 ;;
9033 *Intel*\ [CF]*Compiler*)
9034 lt_prog_compiler_wl='-Wl,'
9035 lt_prog_compiler_pic='-fPIC'
9036 lt_prog_compiler_static='-static'
9037 ;;
9038 *Portland\ Group*)
9039 lt_prog_compiler_wl='-Wl,'
9040 lt_prog_compiler_pic='-fpic'
9041 lt_prog_compiler_static='-Bstatic'
9042 ;;
9043 esac
9044 ;;
9045 esac
9046 ;;
9047
9048 newsos6)
9049 lt_prog_compiler_pic='-KPIC'
9050 lt_prog_compiler_static='-Bstatic'
9051 ;;
9052
9053 *nto* | *qnx*)
9054 # QNX uses GNU C++, but need to define -shared option too, otherwise
9055 # it will coredump.
9056 lt_prog_compiler_pic='-fPIC -shared'
9057 ;;
9058
9059 osf3* | osf4* | osf5*)
9060 lt_prog_compiler_wl='-Wl,'
9061 # All OSF/1 code is PIC.
9062 lt_prog_compiler_static='-non_shared'
9063 ;;
9064
9065 rdos*)
9066 lt_prog_compiler_static='-non_shared'
9067 ;;
9068
9069 solaris*)
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-Bstatic'
9072 case $cc_basename in
9073 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9074 lt_prog_compiler_wl='-Qoption ld ';;
9075 *)
9076 lt_prog_compiler_wl='-Wl,';;
9077 esac
9078 ;;
9079
9080 sunos4*)
9081 lt_prog_compiler_wl='-Qoption ld '
9082 lt_prog_compiler_pic='-PIC'
9083 lt_prog_compiler_static='-Bstatic'
9084 ;;
9085
9086 sysv4 | sysv4.2uw2* | sysv4.3*)
9087 lt_prog_compiler_wl='-Wl,'
9088 lt_prog_compiler_pic='-KPIC'
9089 lt_prog_compiler_static='-Bstatic'
9090 ;;
9091
9092 sysv4*MP*)
9093 if test -d /usr/nec ;then
9094 lt_prog_compiler_pic='-Kconform_pic'
9095 lt_prog_compiler_static='-Bstatic'
9096 fi
9097 ;;
9098
9099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9100 lt_prog_compiler_wl='-Wl,'
9101 lt_prog_compiler_pic='-KPIC'
9102 lt_prog_compiler_static='-Bstatic'
9103 ;;
9104
9105 unicos*)
9106 lt_prog_compiler_wl='-Wl,'
9107 lt_prog_compiler_can_build_shared=no
9108 ;;
9109
9110 uts4*)
9111 lt_prog_compiler_pic='-pic'
9112 lt_prog_compiler_static='-Bstatic'
9113 ;;
9114
9115 *)
9116 lt_prog_compiler_can_build_shared=no
9117 ;;
9118 esac
9119 fi
9120
9121 case $host_os in
9122 # For platforms which do not support PIC, -DPIC is meaningless:
9123 *djgpp*)
9124 lt_prog_compiler_pic=
9125 ;;
9126 *)
9127 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9128 ;;
9129 esac
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9132 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9133 if ${lt_cv_prog_compiler_pic+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9139 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9140 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9141
9142 #
9143 # Check to make sure the PIC flag actually works.
9144 #
9145 if test -n "$lt_prog_compiler_pic"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9147 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9148 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 lt_cv_prog_compiler_pic_works=no
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 # The option is referenced via a variable to avoid confusing sed.
9160 lt_compile=`echo "$ac_compile" | $SED \
9161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163 -e 's:$: $lt_compiler_flag:'`
9164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165 (eval "$lt_compile" 2>conftest.err)
9166 ac_status=$?
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 if (exit $ac_status) && test -s "$ac_outfile"; then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings other than the usual output.
9172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_pic_works=yes
9176 fi
9177 fi
9178 $RM conftest*
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9182 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9183
9184 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9185 case $lt_prog_compiler_pic in
9186 "" | " "*) ;;
9187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9188 esac
9189 else
9190 lt_prog_compiler_pic=
9191 lt_prog_compiler_can_build_shared=no
9192 fi
9193
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 #
9207 # Check to make sure the static flag actually works.
9208 #
9209 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9211 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9212 if ${lt_cv_prog_compiler_static_works+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 lt_cv_prog_compiler_static_works=no
9216 save_LDFLAGS="$LDFLAGS"
9217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9220 # The linker can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
9222 if test -s conftest.err; then
9223 # Append any errors to the config.log.
9224 cat conftest.err 1>&5
9225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9227 if diff conftest.exp conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler_static_works=yes
9229 fi
9230 else
9231 lt_cv_prog_compiler_static_works=yes
9232 fi
9233 fi
9234 $RM -r conftest*
9235 LDFLAGS="$save_LDFLAGS"
9236
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9239 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9240
9241 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9242 :
9243 else
9244 lt_prog_compiler_static=
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9255 if ${lt_cv_prog_compiler_c_o+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 lt_cv_prog_compiler_c_o=no
9259 $RM -r conftest 2>/dev/null
9260 mkdir conftest
9261 cd conftest
9262 mkdir out
9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264
9265 lt_compiler_flag="-o out/conftest2.$ac_objext"
9266 # Insert the option either (1) after the last *FLAGS variable, or
9267 # (2) before a word containing "conftest.", or (3) at the end.
9268 # Note that $ac_compile itself does not contain backslashes and begins
9269 # with a dollar sign (not a hyphen), so the echo should work correctly.
9270 lt_compile=`echo "$ac_compile" | $SED \
9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273 -e 's:$: $lt_compiler_flag:'`
9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275 (eval "$lt_compile" 2>out/conftest.err)
9276 ac_status=$?
9277 cat out/conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9280 then
9281 # The compiler can only warn and ignore the option if not recognized
9282 # So say no if there are warnings
9283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9286 lt_cv_prog_compiler_c_o=yes
9287 fi
9288 fi
9289 chmod u+w . 2>&5
9290 $RM conftest*
9291 # SGI C++ compiler will create directory out/ii_files/ for
9292 # template instantiation
9293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9294 $RM out/* && rmdir out
9295 cd ..
9296 $RM -r conftest
9297 $RM conftest*
9298
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9302
9303
9304
9305
9306
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9310 if ${lt_cv_prog_compiler_c_o+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 lt_cv_prog_compiler_c_o=no
9314 $RM -r conftest 2>/dev/null
9315 mkdir conftest
9316 cd conftest
9317 mkdir out
9318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9319
9320 lt_compiler_flag="-o out/conftest2.$ac_objext"
9321 # Insert the option either (1) after the last *FLAGS variable, or
9322 # (2) before a word containing "conftest.", or (3) at the end.
9323 # Note that $ac_compile itself does not contain backslashes and begins
9324 # with a dollar sign (not a hyphen), so the echo should work correctly.
9325 lt_compile=`echo "$ac_compile" | $SED \
9326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9328 -e 's:$: $lt_compiler_flag:'`
9329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9330 (eval "$lt_compile" 2>out/conftest.err)
9331 ac_status=$?
9332 cat out/conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9335 then
9336 # The compiler can only warn and ignore the option if not recognized
9337 # So say no if there are warnings
9338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9341 lt_cv_prog_compiler_c_o=yes
9342 fi
9343 fi
9344 chmod u+w . 2>&5
9345 $RM conftest*
9346 # SGI C++ compiler will create directory out/ii_files/ for
9347 # template instantiation
9348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9349 $RM out/* && rmdir out
9350 cd ..
9351 $RM -r conftest
9352 $RM conftest*
9353
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9357
9358
9359
9360
9361 hard_links="nottested"
9362 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9363 # do not overwrite the value of need_locks provided by the user
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9365 $as_echo_n "checking if we can lock with hard links... " >&6; }
9366 hard_links=yes
9367 $RM conftest*
9368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9369 touch conftest.a
9370 ln conftest.a conftest.b 2>&5 || hard_links=no
9371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9373 $as_echo "$hard_links" >&6; }
9374 if test "$hard_links" = no; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9377 need_locks=warn
9378 fi
9379 else
9380 need_locks=no
9381 fi
9382
9383
9384
9385
9386
9387
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9389 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9390
9391 runpath_var=
9392 allow_undefined_flag=
9393 always_export_symbols=no
9394 archive_cmds=
9395 archive_expsym_cmds=
9396 compiler_needs_object=no
9397 enable_shared_with_static_runtimes=no
9398 export_dynamic_flag_spec=
9399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9400 hardcode_automatic=no
9401 hardcode_direct=no
9402 hardcode_direct_absolute=no
9403 hardcode_libdir_flag_spec=
9404 hardcode_libdir_separator=
9405 hardcode_minus_L=no
9406 hardcode_shlibpath_var=unsupported
9407 inherit_rpath=no
9408 link_all_deplibs=unknown
9409 module_cmds=
9410 module_expsym_cmds=
9411 old_archive_from_new_cmds=
9412 old_archive_from_expsyms_cmds=
9413 thread_safe_flag_spec=
9414 whole_archive_flag_spec=
9415 # include_expsyms should be a list of space-separated symbols to be *always*
9416 # included in the symbol list
9417 include_expsyms=
9418 # exclude_expsyms can be an extended regexp of symbols to exclude
9419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9421 # as well as any symbol that contains `d'.
9422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9424 # platforms (ab)use it in PIC code, but their linkers get confused if
9425 # the symbol is explicitly referenced. Since portable code cannot
9426 # rely on this symbol name, it's probably fine to never include it in
9427 # preloaded symbol tables.
9428 # Exclude shared library initialization/finalization symbols.
9429 extract_expsyms_cmds=
9430
9431 case $host_os in
9432 cygwin* | mingw* | pw32* | cegcc*)
9433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9434 # When not using gcc, we currently assume that we are using
9435 # Microsoft Visual C++.
9436 if test "$GCC" != yes; then
9437 with_gnu_ld=no
9438 fi
9439 ;;
9440 interix*)
9441 # we just hope/assume this is gcc and not c89 (= MSVC++)
9442 with_gnu_ld=yes
9443 ;;
9444 openbsd*)
9445 with_gnu_ld=no
9446 ;;
9447 esac
9448
9449 ld_shlibs=yes
9450
9451 # On some targets, GNU ld is compatible enough with the native linker
9452 # that we're better off using the native interface for both.
9453 lt_use_gnu_ld_interface=no
9454 if test "$with_gnu_ld" = yes; then
9455 case $host_os in
9456 aix*)
9457 # The AIX port of GNU ld has always aspired to compatibility
9458 # with the native linker. However, as the warning in the GNU ld
9459 # block says, versions before 2.19.5* couldn't really create working
9460 # shared libraries, regardless of the interface used.
9461 case `$LD -v 2>&1` in
9462 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9463 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9464 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9465 *)
9466 lt_use_gnu_ld_interface=yes
9467 ;;
9468 esac
9469 ;;
9470 *)
9471 lt_use_gnu_ld_interface=yes
9472 ;;
9473 esac
9474 fi
9475
9476 if test "$lt_use_gnu_ld_interface" = yes; then
9477 # If archive_cmds runs LD, not CC, wlarc should be empty
9478 wlarc='${wl}'
9479
9480 # Set some defaults for GNU ld with shared library support. These
9481 # are reset later if shared libraries are not supported. Putting them
9482 # here allows them to be overridden if necessary.
9483 runpath_var=LD_RUN_PATH
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 export_dynamic_flag_spec='${wl}--export-dynamic'
9486 # ancient GNU ld didn't support --whole-archive et. al.
9487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9489 else
9490 whole_archive_flag_spec=
9491 fi
9492 supports_anon_versioning=no
9493 case `$LD -v 2>&1` in
9494 *GNU\ gold*) supports_anon_versioning=yes ;;
9495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9498 *\ 2.11.*) ;; # other 2.11 versions
9499 *) supports_anon_versioning=yes ;;
9500 esac
9501
9502 # See if GNU ld supports shared libraries.
9503 case $host_os in
9504 aix[3-9]*)
9505 # On AIX/PPC, the GNU linker is very broken
9506 if test "$host_cpu" != ia64; then
9507 ld_shlibs=no
9508 cat <<_LT_EOF 1>&2
9509
9510 *** Warning: the GNU linker, at least up to release 2.19, is reported
9511 *** to be unable to reliably create shared libraries on AIX.
9512 *** Therefore, libtool is disabling shared libraries support. If you
9513 *** really care for shared libraries, you may want to install binutils
9514 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9515 *** You will then need to restart the configuration process.
9516
9517 _LT_EOF
9518 fi
9519 ;;
9520
9521 amigaos*)
9522 case $host_cpu in
9523 powerpc)
9524 # see comment about AmigaOS4 .so support
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526 archive_expsym_cmds=''
9527 ;;
9528 m68k)
9529 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)'
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 hardcode_minus_L=yes
9532 ;;
9533 esac
9534 ;;
9535
9536 beos*)
9537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538 allow_undefined_flag=unsupported
9539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9540 # support --undefined. This deserves some investigation. FIXME
9541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 else
9543 ld_shlibs=no
9544 fi
9545 ;;
9546
9547 cygwin* | mingw* | pw32* | cegcc*)
9548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9549 # as there is no search path for DLLs.
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 export_dynamic_flag_spec='${wl}--export-all-symbols'
9552 allow_undefined_flag=unsupported
9553 always_export_symbols=no
9554 enable_shared_with_static_runtimes=yes
9555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9556 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9557
9558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9560 # If the export-symbols file already is a .def file (1st line
9561 # is EXPORTS), use it as is; otherwise, prepend...
9562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9563 cp $export_symbols $output_objdir/$soname.def;
9564 else
9565 echo EXPORTS > $output_objdir/$soname.def;
9566 cat $export_symbols >> $output_objdir/$soname.def;
9567 fi~
9568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9569 else
9570 ld_shlibs=no
9571 fi
9572 ;;
9573
9574 haiku*)
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 link_all_deplibs=yes
9577 ;;
9578
9579 interix[3-9]*)
9580 hardcode_direct=no
9581 hardcode_shlibpath_var=no
9582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583 export_dynamic_flag_spec='${wl}-E'
9584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9585 # Instead, shared libraries are loaded at an image base (0x10000000 by
9586 # default) and relocated if they conflict, which is a slow very memory
9587 # consuming and fragmenting process. To avoid this, we pick a random,
9588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9591 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'
9592 ;;
9593
9594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9595 tmp_diet=no
9596 if test "$host_os" = linux-dietlibc; then
9597 case $cc_basename in
9598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9599 esac
9600 fi
9601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9602 && test "$tmp_diet" = no
9603 then
9604 tmp_addflag=' $pic_flag'
9605 tmp_sharedflag='-shared'
9606 case $cc_basename,$host_cpu in
9607 pgcc*) # Portland Group C compiler
9608 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9609 tmp_addflag=' $pic_flag'
9610 ;;
9611 pgf77* | pgf90* | pgf95* | pgfortran*)
9612 # Portland Group f77 and f90 compilers
9613 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9614 tmp_addflag=' $pic_flag -Mnomain' ;;
9615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9616 tmp_addflag=' -i_dynamic' ;;
9617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9618 tmp_addflag=' -i_dynamic -nofor_main' ;;
9619 ifc* | ifort*) # Intel Fortran compiler
9620 tmp_addflag=' -nofor_main' ;;
9621 lf95*) # Lahey Fortran 8.1
9622 whole_archive_flag_spec=
9623 tmp_sharedflag='--shared' ;;
9624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9625 tmp_sharedflag='-qmkshrobj'
9626 tmp_addflag= ;;
9627 nvcc*) # Cuda Compiler Driver 2.2
9628 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9629 compiler_needs_object=yes
9630 ;;
9631 esac
9632 case `$CC -V 2>&1 | sed 5q` in
9633 *Sun\ C*) # Sun C 5.9
9634 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9635 compiler_needs_object=yes
9636 tmp_sharedflag='-G' ;;
9637 *Sun\ F*) # Sun Fortran 8.3
9638 tmp_sharedflag='-G' ;;
9639 esac
9640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641
9642 if test "x$supports_anon_versioning" = xyes; then
9643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9645 echo "local: *; };" >> $output_objdir/$libname.ver~
9646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9647 fi
9648
9649 case $cc_basename in
9650 xlf* | bgf* | bgxlf* | mpixlf*)
9651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9655 if test "x$supports_anon_versioning" = xyes; then
9656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9658 echo "local: *; };" >> $output_objdir/$libname.ver~
9659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9660 fi
9661 ;;
9662 esac
9663 else
9664 ld_shlibs=no
9665 fi
9666 ;;
9667
9668 netbsd*)
9669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9671 wlarc=
9672 else
9673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9675 fi
9676 ;;
9677
9678 solaris*)
9679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9680 ld_shlibs=no
9681 cat <<_LT_EOF 1>&2
9682
9683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9684 *** create shared libraries on Solaris systems. Therefore, libtool
9685 *** is disabling shared libraries support. We urge you to upgrade GNU
9686 *** binutils to release 2.9.1 or newer. Another option is to modify
9687 *** your PATH or compiler configuration so that the native linker is
9688 *** used, and then restart.
9689
9690 _LT_EOF
9691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9694 else
9695 ld_shlibs=no
9696 fi
9697 ;;
9698
9699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9700 case `$LD -v 2>&1` in
9701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9702 ld_shlibs=no
9703 cat <<_LT_EOF 1>&2
9704
9705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9706 *** reliably create shared libraries on SCO systems. Therefore, libtool
9707 *** is disabling shared libraries support. We urge you to upgrade GNU
9708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9709 *** your PATH or compiler configuration so that the native linker is
9710 *** used, and then restart.
9711
9712 _LT_EOF
9713 ;;
9714 *)
9715 # For security reasons, it is highly recommended that you always
9716 # use absolute paths for naming shared libraries, and exclude the
9717 # DT_RUNPATH tag from executables and libraries. But doing so
9718 # requires that you compile everything twice, which is a pain.
9719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9723 else
9724 ld_shlibs=no
9725 fi
9726 ;;
9727 esac
9728 ;;
9729
9730 sunos4*)
9731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9732 wlarc=
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 *)
9738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9741 else
9742 ld_shlibs=no
9743 fi
9744 ;;
9745 esac
9746
9747 if test "$ld_shlibs" = no; then
9748 runpath_var=
9749 hardcode_libdir_flag_spec=
9750 export_dynamic_flag_spec=
9751 whole_archive_flag_spec=
9752 fi
9753 else
9754 # PORTME fill in a description of your system's linker (not GNU ld)
9755 case $host_os in
9756 aix3*)
9757 allow_undefined_flag=unsupported
9758 always_export_symbols=yes
9759 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'
9760 # Note: this linker hardcodes the directories in LIBPATH if there
9761 # are no directories specified by -L.
9762 hardcode_minus_L=yes
9763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9764 # Neither direct hardcoding nor static linking is supported with a
9765 # broken collect2.
9766 hardcode_direct=unsupported
9767 fi
9768 ;;
9769
9770 aix[4-9]*)
9771 if test "$host_cpu" = ia64; then
9772 # On IA64, the linker does run time linking by default, so we don't
9773 # have to do anything special.
9774 aix_use_runtimelinking=no
9775 exp_sym_flag='-Bexport'
9776 no_entry_flag=""
9777 else
9778 # If we're using GNU nm, then we don't want the "-C" option.
9779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9780 # Also, AIX nm treats weak defined symbols like other global
9781 # defined symbols, whereas GNU nm marks them as "W".
9782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9783 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9784 else
9785 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'
9786 fi
9787 aix_use_runtimelinking=no
9788
9789 # Test if we are trying to use run time linking or normal
9790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9791 # need to do runtime linking.
9792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9793 for ld_flag in $LDFLAGS; do
9794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9795 aix_use_runtimelinking=yes
9796 break
9797 fi
9798 done
9799 ;;
9800 esac
9801
9802 exp_sym_flag='-bexport'
9803 no_entry_flag='-bnoentry'
9804 fi
9805
9806 # When large executables or shared objects are built, AIX ld can
9807 # have problems creating the table of contents. If linking a library
9808 # or program results in "error TOC overflow" add -mminimal-toc to
9809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9811
9812 archive_cmds=''
9813 hardcode_direct=yes
9814 hardcode_direct_absolute=yes
9815 hardcode_libdir_separator=':'
9816 link_all_deplibs=yes
9817 file_list_spec='${wl}-f,'
9818
9819 if test "$GCC" = yes; then
9820 case $host_os in aix4.[012]|aix4.[012].*)
9821 # We only want to do this on AIX 4.2 and lower, the check
9822 # below for broken collect2 doesn't work under 4.3+
9823 collect2name=`${CC} -print-prog-name=collect2`
9824 if test -f "$collect2name" &&
9825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9826 then
9827 # We have reworked collect2
9828 :
9829 else
9830 # We have old collect2
9831 hardcode_direct=unsupported
9832 # It fails to find uninstalled libraries when the uninstalled
9833 # path is not listed in the libpath. Setting hardcode_minus_L
9834 # to unsupported forces relinking
9835 hardcode_minus_L=yes
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_libdir_separator=
9838 fi
9839 ;;
9840 esac
9841 shared_flag='-shared'
9842 if test "$aix_use_runtimelinking" = yes; then
9843 shared_flag="$shared_flag "'${wl}-G'
9844 fi
9845 else
9846 # not using gcc
9847 if test "$host_cpu" = ia64; then
9848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9849 # chokes on -Wl,-G. The following line is correct:
9850 shared_flag='-G'
9851 else
9852 if test "$aix_use_runtimelinking" = yes; then
9853 shared_flag='${wl}-G'
9854 else
9855 shared_flag='${wl}-bM:SRE'
9856 fi
9857 fi
9858 fi
9859
9860 export_dynamic_flag_spec='${wl}-bexpall'
9861 # It seems that -bexpall does not export symbols beginning with
9862 # underscore (_), so it is better to generate a list of symbols to export.
9863 always_export_symbols=yes
9864 if test "$aix_use_runtimelinking" = yes; then
9865 # Warning - without using the other runtime loading flags (-brtl),
9866 # -berok will link without error, but may produce a broken library.
9867 allow_undefined_flag='-berok'
9868 # Determine the default libpath from the value encoded in an
9869 # empty executable.
9870 if test "${lt_cv_aix_libpath+set}" = set; then
9871 aix_libpath=$lt_cv_aix_libpath
9872 else
9873 if ${lt_cv_aix_libpath_+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878
9879 int
9880 main ()
9881 {
9882
9883 ;
9884 return 0;
9885 }
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888
9889 lt_aix_libpath_sed='
9890 /Import File Strings/,/^$/ {
9891 /^0/ {
9892 s/^0 *\([^ ]*\) *$/\1/
9893 p
9894 }
9895 }'
9896 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9897 # Check for a 64-bit object if we didn't find anything.
9898 if test -z "$lt_cv_aix_libpath_"; then
9899 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9900 fi
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 if test -z "$lt_cv_aix_libpath_"; then
9905 lt_cv_aix_libpath_="/usr/lib:/lib"
9906 fi
9907
9908 fi
9909
9910 aix_libpath=$lt_cv_aix_libpath_
9911 fi
9912
9913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9914 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9915 else
9916 if test "$host_cpu" = ia64; then
9917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9918 allow_undefined_flag="-z nodefs"
9919 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"
9920 else
9921 # Determine the default libpath from the value encoded in an
9922 # empty executable.
9923 if test "${lt_cv_aix_libpath+set}" = set; then
9924 aix_libpath=$lt_cv_aix_libpath
9925 else
9926 if ${lt_cv_aix_libpath_+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931
9932 int
9933 main ()
9934 {
9935
9936 ;
9937 return 0;
9938 }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941
9942 lt_aix_libpath_sed='
9943 /Import File Strings/,/^$/ {
9944 /^0/ {
9945 s/^0 *\([^ ]*\) *$/\1/
9946 p
9947 }
9948 }'
9949 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9950 # Check for a 64-bit object if we didn't find anything.
9951 if test -z "$lt_cv_aix_libpath_"; then
9952 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953 fi
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 if test -z "$lt_cv_aix_libpath_"; then
9958 lt_cv_aix_libpath_="/usr/lib:/lib"
9959 fi
9960
9961 fi
9962
9963 aix_libpath=$lt_cv_aix_libpath_
9964 fi
9965
9966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9967 # Warning - without using the other run time loading flags,
9968 # -berok will link without error, but may produce a broken library.
9969 no_undefined_flag=' ${wl}-bernotok'
9970 allow_undefined_flag=' ${wl}-berok'
9971 if test "$with_gnu_ld" = yes; then
9972 # We only use this code for GNU lds that support --whole-archive.
9973 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9974 else
9975 # Exported symbols can be pulled into shared objects from archives
9976 whole_archive_flag_spec='$convenience'
9977 fi
9978 archive_cmds_need_lc=yes
9979 # This is similar to how AIX traditionally builds its shared libraries.
9980 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'
9981 fi
9982 fi
9983 ;;
9984
9985 amigaos*)
9986 case $host_cpu in
9987 powerpc)
9988 # see comment about AmigaOS4 .so support
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990 archive_expsym_cmds=''
9991 ;;
9992 m68k)
9993 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)'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_minus_L=yes
9996 ;;
9997 esac
9998 ;;
9999
10000 bsdi[45]*)
10001 export_dynamic_flag_spec=-rdynamic
10002 ;;
10003
10004 cygwin* | mingw* | pw32* | cegcc*)
10005 # When not using gcc, we currently assume that we are using
10006 # Microsoft Visual C++.
10007 # hardcode_libdir_flag_spec is actually meaningless, as there is
10008 # no search path for DLLs.
10009 case $cc_basename in
10010 cl*)
10011 # Native MSVC
10012 hardcode_libdir_flag_spec=' '
10013 allow_undefined_flag=unsupported
10014 always_export_symbols=yes
10015 file_list_spec='@'
10016 # Tell ltmain to make .lib files, not .a files.
10017 libext=lib
10018 # Tell ltmain to make .dll files, not .so files.
10019 shrext_cmds=".dll"
10020 # FIXME: Setting linknames here is a bad hack.
10021 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10022 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10023 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10024 else
10025 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10026 fi~
10027 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10028 linknames='
10029 # The linker will not automatically build a static lib if we build a DLL.
10030 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10031 enable_shared_with_static_runtimes=yes
10032 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10034 # Don't use ranlib
10035 old_postinstall_cmds='chmod 644 $oldlib'
10036 postlink_cmds='lt_outputfile="@OUTPUT@"~
10037 lt_tool_outputfile="@TOOL_OUTPUT@"~
10038 case $lt_outputfile in
10039 *.exe|*.EXE) ;;
10040 *)
10041 lt_outputfile="$lt_outputfile.exe"
10042 lt_tool_outputfile="$lt_tool_outputfile.exe"
10043 ;;
10044 esac~
10045 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10046 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10047 $RM "$lt_outputfile.manifest";
10048 fi'
10049 ;;
10050 *)
10051 # Assume MSVC wrapper
10052 hardcode_libdir_flag_spec=' '
10053 allow_undefined_flag=unsupported
10054 # Tell ltmain to make .lib files, not .a files.
10055 libext=lib
10056 # Tell ltmain to make .dll files, not .so files.
10057 shrext_cmds=".dll"
10058 # FIXME: Setting linknames here is a bad hack.
10059 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10060 # The linker will automatically build a .lib file if we build a DLL.
10061 old_archive_from_new_cmds='true'
10062 # FIXME: Should let the user specify the lib program.
10063 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10064 enable_shared_with_static_runtimes=yes
10065 ;;
10066 esac
10067 ;;
10068
10069 darwin* | rhapsody*)
10070
10071
10072 archive_cmds_need_lc=no
10073 hardcode_direct=no
10074 hardcode_automatic=yes
10075 hardcode_shlibpath_var=unsupported
10076 if test "$lt_cv_ld_force_load" = "yes"; then
10077 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10078
10079 else
10080 whole_archive_flag_spec=''
10081 fi
10082 link_all_deplibs=yes
10083 allow_undefined_flag="$_lt_dar_allow_undefined"
10084 case $cc_basename in
10085 ifort*) _lt_dar_can_shared=yes ;;
10086 *) _lt_dar_can_shared=$GCC ;;
10087 esac
10088 if test "$_lt_dar_can_shared" = "yes"; then
10089 output_verbose_link_cmd=func_echo_all
10090 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10091 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10092 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}"
10093 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}"
10094
10095 else
10096 ld_shlibs=no
10097 fi
10098
10099 ;;
10100
10101 dgux*)
10102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10108 # support. Future versions do this automatically, but an explicit c++rt0.o
10109 # does not break anything, and helps significantly (at the cost of a little
10110 # extra space).
10111 freebsd2.2*)
10112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_direct=yes
10115 hardcode_shlibpath_var=no
10116 ;;
10117
10118 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10119 freebsd2.*)
10120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_direct=yes
10122 hardcode_minus_L=yes
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10127 freebsd* | dragonfly*)
10128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129 hardcode_libdir_flag_spec='-R$libdir'
10130 hardcode_direct=yes
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 hpux9*)
10135 if test "$GCC" = yes; then
10136 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10137 else
10138 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'
10139 fi
10140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10141 hardcode_libdir_separator=:
10142 hardcode_direct=yes
10143
10144 # hardcode_minus_L: Not really in the search PATH,
10145 # but as the default location of the library.
10146 hardcode_minus_L=yes
10147 export_dynamic_flag_spec='${wl}-E'
10148 ;;
10149
10150 hpux10*)
10151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10152 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153 else
10154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10155 fi
10156 if test "$with_gnu_ld" = no; then
10157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10158 hardcode_libdir_separator=:
10159 hardcode_direct=yes
10160 hardcode_direct_absolute=yes
10161 export_dynamic_flag_spec='${wl}-E'
10162 # hardcode_minus_L: Not really in the search PATH,
10163 # but as the default location of the library.
10164 hardcode_minus_L=yes
10165 fi
10166 ;;
10167
10168 hpux11*)
10169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10170 case $host_cpu in
10171 hppa*64*)
10172 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 ;;
10174 ia64*)
10175 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10176 ;;
10177 *)
10178 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10179 ;;
10180 esac
10181 else
10182 case $host_cpu in
10183 hppa*64*)
10184 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 ;;
10186 ia64*)
10187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10188 ;;
10189 *)
10190
10191 # Older versions of the 11.00 compiler do not understand -b yet
10192 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10194 $as_echo_n "checking if $CC understands -b... " >&6; }
10195 if ${lt_cv_prog_compiler__b+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 lt_cv_prog_compiler__b=no
10199 save_LDFLAGS="$LDFLAGS"
10200 LDFLAGS="$LDFLAGS -b"
10201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10203 # The linker can only warn and ignore the option if not recognized
10204 # So say no if there are warnings
10205 if test -s conftest.err; then
10206 # Append any errors to the config.log.
10207 cat conftest.err 1>&5
10208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10210 if diff conftest.exp conftest.er2 >/dev/null; then
10211 lt_cv_prog_compiler__b=yes
10212 fi
10213 else
10214 lt_cv_prog_compiler__b=yes
10215 fi
10216 fi
10217 $RM -r conftest*
10218 LDFLAGS="$save_LDFLAGS"
10219
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10222 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10223
10224 if test x"$lt_cv_prog_compiler__b" = xyes; then
10225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226 else
10227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10228 fi
10229
10230 ;;
10231 esac
10232 fi
10233 if test "$with_gnu_ld" = no; then
10234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator=:
10236
10237 case $host_cpu in
10238 hppa*64*|ia64*)
10239 hardcode_direct=no
10240 hardcode_shlibpath_var=no
10241 ;;
10242 *)
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 export_dynamic_flag_spec='${wl}-E'
10246
10247 # hardcode_minus_L: Not really in the search PATH,
10248 # but as the default location of the library.
10249 hardcode_minus_L=yes
10250 ;;
10251 esac
10252 fi
10253 ;;
10254
10255 irix5* | irix6* | nonstopux*)
10256 if test "$GCC" = yes; then
10257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10258 # Try to use the -exported_symbol ld option, if it does not
10259 # work, assume that -exports_file does not work either and
10260 # implicitly export all symbols.
10261 # This should be the same for all languages, so no per-tag cache variable.
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10263 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10264 if ${lt_cv_irix_exported_symbol+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 save_LDFLAGS="$LDFLAGS"
10268 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 int foo (void) { return 0; }
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274 lt_cv_irix_exported_symbol=yes
10275 else
10276 lt_cv_irix_exported_symbol=no
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LDFLAGS="$save_LDFLAGS"
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10283 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10284 if test "$lt_cv_irix_exported_symbol" = yes; then
10285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10286 fi
10287 else
10288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10290 fi
10291 archive_cmds_need_lc='no'
10292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293 hardcode_libdir_separator=:
10294 inherit_rpath=yes
10295 link_all_deplibs=yes
10296 ;;
10297
10298 netbsd*)
10299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10301 else
10302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10303 fi
10304 hardcode_libdir_flag_spec='-R$libdir'
10305 hardcode_direct=yes
10306 hardcode_shlibpath_var=no
10307 ;;
10308
10309 newsos6)
10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_direct=yes
10312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10313 hardcode_libdir_separator=:
10314 hardcode_shlibpath_var=no
10315 ;;
10316
10317 *nto* | *qnx*)
10318 ;;
10319
10320 openbsd*)
10321 if test -f /usr/libexec/ld.so; then
10322 hardcode_direct=yes
10323 hardcode_shlibpath_var=no
10324 hardcode_direct_absolute=yes
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10329 export_dynamic_flag_spec='${wl}-E'
10330 else
10331 case $host_os in
10332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_libdir_flag_spec='-R$libdir'
10335 ;;
10336 *)
10337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10339 ;;
10340 esac
10341 fi
10342 else
10343 ld_shlibs=no
10344 fi
10345 ;;
10346
10347 os2*)
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 hardcode_minus_L=yes
10350 allow_undefined_flag=unsupported
10351 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'
10352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10353 ;;
10354
10355 osf3*)
10356 if test "$GCC" = yes; then
10357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10358 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10359 else
10360 allow_undefined_flag=' -expect_unresolved \*'
10361 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10362 fi
10363 archive_cmds_need_lc='no'
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 hardcode_libdir_separator=:
10366 ;;
10367
10368 osf4* | osf5*) # as osf3* with the addition of -msym flag
10369 if test "$GCC" = yes; then
10370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373 else
10374 allow_undefined_flag=' -expect_unresolved \*'
10375 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10376 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~
10377 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10378
10379 # Both c and cxx compiler support -rpath directly
10380 hardcode_libdir_flag_spec='-rpath $libdir'
10381 fi
10382 archive_cmds_need_lc='no'
10383 hardcode_libdir_separator=:
10384 ;;
10385
10386 solaris*)
10387 no_undefined_flag=' -z defs'
10388 if test "$GCC" = yes; then
10389 wlarc='${wl}'
10390 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10393 else
10394 case `$CC -V 2>&1` in
10395 *"Compilers 5.0"*)
10396 wlarc=''
10397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10400 ;;
10401 *)
10402 wlarc='${wl}'
10403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10406 ;;
10407 esac
10408 fi
10409 hardcode_libdir_flag_spec='-R$libdir'
10410 hardcode_shlibpath_var=no
10411 case $host_os in
10412 solaris2.[0-5] | solaris2.[0-5].*) ;;
10413 *)
10414 # The compiler driver will combine and reorder linker options,
10415 # but understands `-z linker_flag'. GCC discards it without `$wl',
10416 # but is careful enough not to reorder.
10417 # Supported since Solaris 2.6 (maybe 2.5.1?)
10418 if test "$GCC" = yes; then
10419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10420 else
10421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10422 fi
10423 ;;
10424 esac
10425 link_all_deplibs=yes
10426 ;;
10427
10428 sunos4*)
10429 if test "x$host_vendor" = xsequent; then
10430 # Use $CC to link under sequent, because it throws in some extra .o
10431 # files that make .init and .fini sections work.
10432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10435 fi
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 hardcode_direct=yes
10438 hardcode_minus_L=yes
10439 hardcode_shlibpath_var=no
10440 ;;
10441
10442 sysv4)
10443 case $host_vendor in
10444 sni)
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_direct=yes # is this really true???
10447 ;;
10448 siemens)
10449 ## LD is ld it makes a PLAMLIB
10450 ## CC just makes a GrossModule.
10451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452 reload_cmds='$CC -r -o $output$reload_objs'
10453 hardcode_direct=no
10454 ;;
10455 motorola)
10456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10458 ;;
10459 esac
10460 runpath_var='LD_RUN_PATH'
10461 hardcode_shlibpath_var=no
10462 ;;
10463
10464 sysv4.3*)
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_shlibpath_var=no
10467 export_dynamic_flag_spec='-Bexport'
10468 ;;
10469
10470 sysv4*MP*)
10471 if test -d /usr/nec; then
10472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473 hardcode_shlibpath_var=no
10474 runpath_var=LD_RUN_PATH
10475 hardcode_runpath_var=yes
10476 ld_shlibs=yes
10477 fi
10478 ;;
10479
10480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10481 no_undefined_flag='${wl}-z,text'
10482 archive_cmds_need_lc=no
10483 hardcode_shlibpath_var=no
10484 runpath_var='LD_RUN_PATH'
10485
10486 if test "$GCC" = yes; then
10487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 else
10490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492 fi
10493 ;;
10494
10495 sysv5* | sco3.2v5* | sco5v6*)
10496 # Note: We can NOT use -z defs as we might desire, because we do not
10497 # link with -lc, and that would cause any symbols used from libc to
10498 # always be unresolved, which means just about no library would
10499 # ever link correctly. If we're not using GNU ld we use -z text
10500 # though, which does catch some bad symbols but isn't as heavy-handed
10501 # as -z defs.
10502 no_undefined_flag='${wl}-z,text'
10503 allow_undefined_flag='${wl}-z,nodefs'
10504 archive_cmds_need_lc=no
10505 hardcode_shlibpath_var=no
10506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10507 hardcode_libdir_separator=':'
10508 link_all_deplibs=yes
10509 export_dynamic_flag_spec='${wl}-Bexport'
10510 runpath_var='LD_RUN_PATH'
10511
10512 if test "$GCC" = yes; then
10513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515 else
10516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518 fi
10519 ;;
10520
10521 uts4*)
10522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_shlibpath_var=no
10525 ;;
10526
10527 *)
10528 ld_shlibs=no
10529 ;;
10530 esac
10531
10532 if test x$host_vendor = xsni; then
10533 case $host in
10534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10535 export_dynamic_flag_spec='${wl}-Blargedynsym'
10536 ;;
10537 esac
10538 fi
10539 fi
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10542 $as_echo "$ld_shlibs" >&6; }
10543 test "$ld_shlibs" = no && can_build_shared=no
10544
10545 with_gnu_ld=$with_gnu_ld
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561 #
10562 # Do we need to explicitly link libc?
10563 #
10564 case "x$archive_cmds_need_lc" in
10565 x|xyes)
10566 # Assume -lc should be added
10567 archive_cmds_need_lc=yes
10568
10569 if test "$enable_shared" = yes && test "$GCC" = yes; then
10570 case $archive_cmds in
10571 *'~'*)
10572 # FIXME: we may have to deal with multi-command sequences.
10573 ;;
10574 '$CC '*)
10575 # Test whether the compiler implicitly links with -lc since on some
10576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10577 # to ld, don't add -lc before -lgcc.
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10580 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 $RM conftest*
10584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10585
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10587 (eval $ac_compile) 2>&5
10588 ac_status=$?
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; } 2>conftest.err; then
10591 soname=conftest
10592 lib=conftest
10593 libobjs=conftest.$ac_objext
10594 deplibs=
10595 wl=$lt_prog_compiler_wl
10596 pic_flag=$lt_prog_compiler_pic
10597 compiler_flags=-v
10598 linker_flags=-v
10599 verstring=
10600 output_objdir=.
10601 libname=conftest
10602 lt_save_allow_undefined_flag=$allow_undefined_flag
10603 allow_undefined_flag=
10604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10606 ac_status=$?
10607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608 test $ac_status = 0; }
10609 then
10610 lt_cv_archive_cmds_need_lc=no
10611 else
10612 lt_cv_archive_cmds_need_lc=yes
10613 fi
10614 allow_undefined_flag=$lt_save_allow_undefined_flag
10615 else
10616 cat conftest.err 1>&5
10617 fi
10618 $RM conftest*
10619
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10624 ;;
10625 esac
10626 fi
10627 ;;
10628 esac
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10783
10784 if test "$GCC" = yes; then
10785 case $host_os in
10786 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10787 *) lt_awk_arg="/^libraries:/" ;;
10788 esac
10789 case $host_os in
10790 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10791 *) lt_sed_strip_eq="s,=/,/,g" ;;
10792 esac
10793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10794 case $lt_search_path_spec in
10795 *\;*)
10796 # if the path contains ";" then we assume it to be the separator
10797 # otherwise default to the standard path separator (i.e. ":") - it is
10798 # assumed that no part of a normal pathname contains ";" but that should
10799 # okay in the real world where ";" in dirpaths is itself problematic.
10800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10801 ;;
10802 *)
10803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10804 ;;
10805 esac
10806 # Ok, now we have the path, separated by spaces, we can step through it
10807 # and add multilib dir if necessary.
10808 lt_tmp_lt_search_path_spec=
10809 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10810 for lt_sys_path in $lt_search_path_spec; do
10811 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10813 else
10814 test -d "$lt_sys_path" && \
10815 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10816 fi
10817 done
10818 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10819 BEGIN {RS=" "; FS="/|\n";} {
10820 lt_foo="";
10821 lt_count=0;
10822 for (lt_i = NF; lt_i > 0; lt_i--) {
10823 if ($lt_i != "" && $lt_i != ".") {
10824 if ($lt_i == "..") {
10825 lt_count++;
10826 } else {
10827 if (lt_count == 0) {
10828 lt_foo="/" $lt_i lt_foo;
10829 } else {
10830 lt_count--;
10831 }
10832 }
10833 }
10834 }
10835 if (lt_foo != "") { lt_freq[lt_foo]++; }
10836 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10837 }'`
10838 # AWK program above erroneously prepends '/' to C:/dos/paths
10839 # for these hosts.
10840 case $host_os in
10841 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10842 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10843 esac
10844 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10845 else
10846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10847 fi
10848 library_names_spec=
10849 libname_spec='lib$name'
10850 soname_spec=
10851 shrext_cmds=".so"
10852 postinstall_cmds=
10853 postuninstall_cmds=
10854 finish_cmds=
10855 finish_eval=
10856 shlibpath_var=
10857 shlibpath_overrides_runpath=unknown
10858 version_type=none
10859 dynamic_linker="$host_os ld.so"
10860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10861 need_lib_prefix=unknown
10862 hardcode_into_libs=no
10863
10864 # when you set need_version to no, make sure it does not cause -set_version
10865 # flags to be left without arguments
10866 need_version=unknown
10867
10868 case $host_os in
10869 aix3*)
10870 version_type=linux # correct to gnu/linux during the next big refactor
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10872 shlibpath_var=LIBPATH
10873
10874 # AIX 3 has no versioning support, so we append a major version to the name.
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 ;;
10877
10878 aix[4-9]*)
10879 version_type=linux # correct to gnu/linux during the next big refactor
10880 need_lib_prefix=no
10881 need_version=no
10882 hardcode_into_libs=yes
10883 if test "$host_cpu" = ia64; then
10884 # AIX 5 supports IA64
10885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 else
10888 # With GCC up to 2.95.x, collect2 would create an import file
10889 # for dependence libraries. The import file would start with
10890 # the line `#! .'. This would cause the generated library to
10891 # depend on `.', always an invalid library. This was fixed in
10892 # development snapshots of GCC prior to 3.0.
10893 case $host_os in
10894 aix4 | aix4.[01] | aix4.[01].*)
10895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10896 echo ' yes '
10897 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10898 :
10899 else
10900 can_build_shared=no
10901 fi
10902 ;;
10903 esac
10904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10905 # soname into executable. Probably we can add versioning support to
10906 # collect2, so additional links can be useful in future.
10907 if test "$aix_use_runtimelinking" = yes; then
10908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10909 # instead of lib<name>.a to let people know that these are not
10910 # typical AIX shared libraries.
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 else
10913 # We preserve .a as extension for shared libraries through AIX4.2
10914 # and later when we are not doing run time linking.
10915 library_names_spec='${libname}${release}.a $libname.a'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 fi
10918 shlibpath_var=LIBPATH
10919 fi
10920 ;;
10921
10922 amigaos*)
10923 case $host_cpu in
10924 powerpc)
10925 # Since July 2007 AmigaOS4 officially supports .so libraries.
10926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 ;;
10929 m68k)
10930 library_names_spec='$libname.ixlibrary $libname.a'
10931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10932 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10933 ;;
10934 esac
10935 ;;
10936
10937 beos*)
10938 library_names_spec='${libname}${shared_ext}'
10939 dynamic_linker="$host_os ld.so"
10940 shlibpath_var=LIBRARY_PATH
10941 ;;
10942
10943 bsdi[45]*)
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 need_version=no
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10952 # the default ld.so.conf also contains /usr/contrib/lib and
10953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10954 # libtool to hard-code these into programs
10955 ;;
10956
10957 cygwin* | mingw* | pw32* | cegcc*)
10958 version_type=windows
10959 shrext_cmds=".dll"
10960 need_version=no
10961 need_lib_prefix=no
10962
10963 case $GCC,$cc_basename in
10964 yes,*)
10965 # gcc
10966 library_names_spec='$libname.dll.a'
10967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10968 postinstall_cmds='base_file=`basename \${file}`~
10969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10970 dldir=$destdir/`dirname \$dlpath`~
10971 test -d \$dldir || mkdir -p \$dldir~
10972 $install_prog $dir/$dlname \$dldir/$dlname~
10973 chmod a+x \$dldir/$dlname~
10974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10976 fi'
10977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10978 dlpath=$dir/\$dldll~
10979 $RM \$dlpath'
10980 shlibpath_overrides_runpath=yes
10981
10982 case $host_os in
10983 cygwin*)
10984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10986
10987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10988 ;;
10989 mingw* | cegcc*)
10990 # MinGW DLLs use traditional 'lib' prefix
10991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10992 ;;
10993 pw32*)
10994 # pw32 DLLs use 'pw' prefix rather than 'lib'
10995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10996 ;;
10997 esac
10998 dynamic_linker='Win32 ld.exe'
10999 ;;
11000
11001 *,cl*)
11002 # Native MSVC
11003 libname_spec='$name'
11004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11005 library_names_spec='${libname}.dll.lib'
11006
11007 case $build_os in
11008 mingw*)
11009 sys_lib_search_path_spec=
11010 lt_save_ifs=$IFS
11011 IFS=';'
11012 for lt_path in $LIB
11013 do
11014 IFS=$lt_save_ifs
11015 # Let DOS variable expansion print the short 8.3 style file name.
11016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11018 done
11019 IFS=$lt_save_ifs
11020 # Convert to MSYS style.
11021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11022 ;;
11023 cygwin*)
11024 # Convert to unix form, then to dos form, then back to unix form
11025 # but this time dos style (no spaces!) so that the unix form looks
11026 # like /cygdrive/c/PROGRA~1:/cygdr...
11027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11030 ;;
11031 *)
11032 sys_lib_search_path_spec="$LIB"
11033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11034 # It is most probably a Windows format PATH.
11035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11036 else
11037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11038 fi
11039 # FIXME: find the short name or the path components, as spaces are
11040 # common. (e.g. "Program Files" -> "PROGRA~1")
11041 ;;
11042 esac
11043
11044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11045 postinstall_cmds='base_file=`basename \${file}`~
11046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11047 dldir=$destdir/`dirname \$dlpath`~
11048 test -d \$dldir || mkdir -p \$dldir~
11049 $install_prog $dir/$dlname \$dldir/$dlname'
11050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11051 dlpath=$dir/\$dldll~
11052 $RM \$dlpath'
11053 shlibpath_overrides_runpath=yes
11054 dynamic_linker='Win32 link.exe'
11055 ;;
11056
11057 *)
11058 # Assume MSVC wrapper
11059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11060 dynamic_linker='Win32 ld.exe'
11061 ;;
11062 esac
11063 # FIXME: first we should search . and the directory the executable is in
11064 shlibpath_var=PATH
11065 ;;
11066
11067 darwin* | rhapsody*)
11068 dynamic_linker="$host_os dyld"
11069 version_type=darwin
11070 need_lib_prefix=no
11071 need_version=no
11072 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11073 soname_spec='${libname}${release}${major}$shared_ext'
11074 shlibpath_overrides_runpath=yes
11075 shlibpath_var=DYLD_LIBRARY_PATH
11076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11077
11078 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11080 ;;
11081
11082 dgux*)
11083 version_type=linux # correct to gnu/linux during the next big refactor
11084 need_lib_prefix=no
11085 need_version=no
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 ;;
11090
11091 freebsd* | dragonfly*)
11092 # DragonFly does not have aout. When/if they implement a new
11093 # versioning mechanism, adjust this.
11094 if test -x /usr/bin/objformat; then
11095 objformat=`/usr/bin/objformat`
11096 else
11097 case $host_os in
11098 freebsd[23].*) objformat=aout ;;
11099 *) objformat=elf ;;
11100 esac
11101 fi
11102 version_type=freebsd-$objformat
11103 case $version_type in
11104 freebsd-elf*)
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11106 need_version=no
11107 need_lib_prefix=no
11108 ;;
11109 freebsd-*)
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11111 need_version=yes
11112 ;;
11113 esac
11114 shlibpath_var=LD_LIBRARY_PATH
11115 case $host_os in
11116 freebsd2.*)
11117 shlibpath_overrides_runpath=yes
11118 ;;
11119 freebsd3.[01]* | freebsdelf3.[01]*)
11120 shlibpath_overrides_runpath=yes
11121 hardcode_into_libs=yes
11122 ;;
11123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11127 ;;
11128 *) # from 4.6 on, and DragonFly
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11131 ;;
11132 esac
11133 ;;
11134
11135 gnu*)
11136 version_type=linux # correct to gnu/linux during the next big refactor
11137 need_lib_prefix=no
11138 need_version=no
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 shlibpath_overrides_runpath=no
11143 hardcode_into_libs=yes
11144 ;;
11145
11146 haiku*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 need_lib_prefix=no
11149 need_version=no
11150 dynamic_linker="$host_os runtime_loader"
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LIBRARY_PATH
11154 shlibpath_overrides_runpath=yes
11155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11156 hardcode_into_libs=yes
11157 ;;
11158
11159 hpux9* | hpux10* | hpux11*)
11160 # Give a soname corresponding to the major version so that dld.sl refuses to
11161 # link against other versions.
11162 version_type=sunos
11163 need_lib_prefix=no
11164 need_version=no
11165 case $host_cpu in
11166 ia64*)
11167 shrext_cmds='.so'
11168 hardcode_into_libs=yes
11169 dynamic_linker="$host_os dld.so"
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 if test "X$HPUX_IA64_MODE" = X32; then
11175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11176 else
11177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11178 fi
11179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180 ;;
11181 hppa*64*)
11182 shrext_cmds='.sl'
11183 hardcode_into_libs=yes
11184 dynamic_linker="$host_os dld.sl"
11185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11191 ;;
11192 *)
11193 shrext_cmds='.sl'
11194 dynamic_linker="$host_os dld.sl"
11195 shlibpath_var=SHLIB_PATH
11196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 ;;
11200 esac
11201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11202 postinstall_cmds='chmod 555 $lib'
11203 # or fails outright, so override atomically:
11204 install_override_mode=555
11205 ;;
11206
11207 interix[3-9]*)
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 hardcode_into_libs=yes
11217 ;;
11218
11219 irix5* | irix6* | nonstopux*)
11220 case $host_os in
11221 nonstopux*) version_type=nonstopux ;;
11222 *)
11223 if test "$lt_cv_prog_gnu_ld" = yes; then
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 else
11226 version_type=irix
11227 fi ;;
11228 esac
11229 need_lib_prefix=no
11230 need_version=no
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11233 case $host_os in
11234 irix5* | nonstopux*)
11235 libsuff= shlibsuff=
11236 ;;
11237 *)
11238 case $LD in # libtool.m4 will add one of these switches to LD
11239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11240 libsuff= shlibsuff= libmagic=32-bit;;
11241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11242 libsuff=32 shlibsuff=N32 libmagic=N32;;
11243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11245 *) libsuff= shlibsuff= libmagic=never-match;;
11246 esac
11247 ;;
11248 esac
11249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11250 shlibpath_overrides_runpath=no
11251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11253 hardcode_into_libs=yes
11254 ;;
11255
11256 # No shared lib support for Linux oldld, aout, or coff.
11257 linux*oldld* | linux*aout* | linux*coff*)
11258 dynamic_linker=no
11259 ;;
11260
11261 # This must be glibc/ELF.
11262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11263 version_type=linux # correct to gnu/linux during the next big refactor
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=no
11271
11272 # Some binutils ld are patched to set DT_RUNPATH
11273 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 lt_cv_shlibpath_overrides_runpath=no
11277 save_LDFLAGS=$LDFLAGS
11278 save_libdir=$libdir
11279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283
11284 int
11285 main ()
11286 {
11287
11288 ;
11289 return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11294 lt_cv_shlibpath_overrides_runpath=yes
11295 fi
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LDFLAGS=$save_LDFLAGS
11300 libdir=$save_libdir
11301
11302 fi
11303
11304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11305
11306 # This implies no fast_install, which is unacceptable.
11307 # Some rework will be needed to allow for fast_install
11308 # before this can be enabled.
11309 hardcode_into_libs=yes
11310
11311 # Append ld.so.conf contents to the search path
11312 if test -f /etc/ld.so.conf; then
11313 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11315 fi
11316
11317 # We used to test for /lib/ld.so.1 and disable shared libraries on
11318 # powerpc, because MkLinux only supported shared libraries with the
11319 # GNU dynamic linker. Since this was broken with cross compilers,
11320 # most powerpc-linux boxes support dynamic linking these days and
11321 # people can always --disable-shared, the test was removed, and we
11322 # assume the GNU/Linux dynamic linker is in use.
11323 dynamic_linker='GNU/Linux ld.so'
11324 ;;
11325
11326 netbsd*)
11327 version_type=sunos
11328 need_lib_prefix=no
11329 need_version=no
11330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11333 dynamic_linker='NetBSD (a.out) ld.so'
11334 else
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 dynamic_linker='NetBSD ld.elf_so'
11338 fi
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 ;;
11343
11344 newsos6)
11345 version_type=linux # correct to gnu/linux during the next big refactor
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes
11349 ;;
11350
11351 *nto* | *qnx*)
11352 version_type=qnx
11353 need_lib_prefix=no
11354 need_version=no
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=no
11359 hardcode_into_libs=yes
11360 dynamic_linker='ldqnx.so'
11361 ;;
11362
11363 openbsd*)
11364 version_type=sunos
11365 sys_lib_dlsearch_path_spec="/usr/lib"
11366 need_lib_prefix=no
11367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11368 case $host_os in
11369 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11370 *) need_version=no ;;
11371 esac
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11374 shlibpath_var=LD_LIBRARY_PATH
11375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11376 case $host_os in
11377 openbsd2.[89] | openbsd2.[89].*)
11378 shlibpath_overrides_runpath=no
11379 ;;
11380 *)
11381 shlibpath_overrides_runpath=yes
11382 ;;
11383 esac
11384 else
11385 shlibpath_overrides_runpath=yes
11386 fi
11387 ;;
11388
11389 os2*)
11390 libname_spec='$name'
11391 shrext_cmds=".dll"
11392 need_lib_prefix=no
11393 library_names_spec='$libname${shared_ext} $libname.a'
11394 dynamic_linker='OS/2 ld.exe'
11395 shlibpath_var=LIBPATH
11396 ;;
11397
11398 osf3* | osf4* | osf5*)
11399 version_type=osf
11400 need_lib_prefix=no
11401 need_version=no
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11407 ;;
11408
11409 rdos*)
11410 dynamic_linker=no
11411 ;;
11412
11413 solaris*)
11414 version_type=linux # correct to gnu/linux during the next big refactor
11415 need_lib_prefix=no
11416 need_version=no
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11421 hardcode_into_libs=yes
11422 # ldd complains unless libraries are executable
11423 postinstall_cmds='chmod +x $lib'
11424 ;;
11425
11426 sunos4*)
11427 version_type=sunos
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=yes
11432 if test "$with_gnu_ld" = yes; then
11433 need_lib_prefix=no
11434 fi
11435 need_version=yes
11436 ;;
11437
11438 sysv4 | sysv4.3*)
11439 version_type=linux # correct to gnu/linux during the next big refactor
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 case $host_vendor in
11444 sni)
11445 shlibpath_overrides_runpath=no
11446 need_lib_prefix=no
11447 runpath_var=LD_RUN_PATH
11448 ;;
11449 siemens)
11450 need_lib_prefix=no
11451 ;;
11452 motorola)
11453 need_lib_prefix=no
11454 need_version=no
11455 shlibpath_overrides_runpath=no
11456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11457 ;;
11458 esac
11459 ;;
11460
11461 sysv4*MP*)
11462 if test -d /usr/nec ;then
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11465 soname_spec='$libname${shared_ext}.$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 fi
11468 ;;
11469
11470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11471 version_type=freebsd-elf
11472 need_lib_prefix=no
11473 need_version=no
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=yes
11478 hardcode_into_libs=yes
11479 if test "$with_gnu_ld" = yes; then
11480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11481 else
11482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11483 case $host_os in
11484 sco3.2v5*)
11485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11486 ;;
11487 esac
11488 fi
11489 sys_lib_dlsearch_path_spec='/usr/lib'
11490 ;;
11491
11492 tpf*)
11493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11494 version_type=linux # correct to gnu/linux during the next big refactor
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=no
11500 hardcode_into_libs=yes
11501 ;;
11502
11503 uts4*)
11504 version_type=linux # correct to gnu/linux during the next big refactor
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 ;;
11509
11510 *)
11511 dynamic_linker=no
11512 ;;
11513 esac
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11515 $as_echo "$dynamic_linker" >&6; }
11516 test "$dynamic_linker" = no && can_build_shared=no
11517
11518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11519 if test "$GCC" = yes; then
11520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11521 fi
11522
11523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11524 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11525 fi
11526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11528 fi
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11623 hardcode_action=
11624 if test -n "$hardcode_libdir_flag_spec" ||
11625 test -n "$runpath_var" ||
11626 test "X$hardcode_automatic" = "Xyes" ; then
11627
11628 # We can hardcode non-existent directories.
11629 if test "$hardcode_direct" != no &&
11630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11631 # have to relink, otherwise we might link with an installed library
11632 # when we should be linking with a yet-to-be-installed one
11633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11634 test "$hardcode_minus_L" != no; then
11635 # Linking always hardcodes the temporary library directory.
11636 hardcode_action=relink
11637 else
11638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11639 hardcode_action=immediate
11640 fi
11641 else
11642 # We cannot hardcode anything, or else we can only hardcode existing
11643 # directories.
11644 hardcode_action=unsupported
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11647 $as_echo "$hardcode_action" >&6; }
11648
11649 if test "$hardcode_action" = relink ||
11650 test "$inherit_rpath" = yes; then
11651 # Fast installation is not supported
11652 enable_fast_install=no
11653 elif test "$shlibpath_overrides_runpath" = yes ||
11654 test "$enable_shared" = no; then
11655 # Fast installation is not necessary
11656 enable_fast_install=needless
11657 fi
11658
11659
11660
11661
11662
11663
11664 if test "x$enable_dlopen" != xyes; then
11665 enable_dlopen=unknown
11666 enable_dlopen_self=unknown
11667 enable_dlopen_self_static=unknown
11668 else
11669 lt_cv_dlopen=no
11670 lt_cv_dlopen_libs=
11671
11672 case $host_os in
11673 beos*)
11674 lt_cv_dlopen="load_add_on"
11675 lt_cv_dlopen_libs=
11676 lt_cv_dlopen_self=yes
11677 ;;
11678
11679 mingw* | pw32* | cegcc*)
11680 lt_cv_dlopen="LoadLibrary"
11681 lt_cv_dlopen_libs=
11682 ;;
11683
11684 cygwin*)
11685 lt_cv_dlopen="dlopen"
11686 lt_cv_dlopen_libs=
11687 ;;
11688
11689 darwin*)
11690 # if libdl is installed we need to link against it
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11693 if ${ac_cv_lib_dl_dlopen+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-ldl $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char dlopen ();
11708 int
11709 main ()
11710 {
11711 return dlopen ();
11712 ;
11713 return 0;
11714 }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 ac_cv_lib_dl_dlopen=yes
11718 else
11719 ac_cv_lib_dl_dlopen=no
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11724 fi
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11729 else
11730
11731 lt_cv_dlopen="dyld"
11732 lt_cv_dlopen_libs=
11733 lt_cv_dlopen_self=yes
11734
11735 fi
11736
11737 ;;
11738
11739 *)
11740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11741 if test "x$ac_cv_func_shl_load" = xyes; then :
11742 lt_cv_dlopen="shl_load"
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11746 if ${ac_cv_lib_dld_shl_load+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldld $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char shl_load ();
11761 int
11762 main ()
11763 {
11764 return shl_load ();
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_dld_shl_load=yes
11771 else
11772 ac_cv_lib_dld_shl_load=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11782 else
11783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11784 if test "x$ac_cv_func_dlopen" = xyes; then :
11785 lt_cv_dlopen="dlopen"
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11789 if ${ac_cv_lib_dl_dlopen+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-ldl $LIBS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char dlopen ();
11804 int
11805 main ()
11806 {
11807 return dlopen ();
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 ac_cv_lib_dl_dlopen=yes
11814 else
11815 ac_cv_lib_dl_dlopen=no
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11828 if ${ac_cv_lib_svld_dlopen+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 ac_check_lib_save_LIBS=$LIBS
11832 LIBS="-lsvld $LIBS"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char dlopen ();
11843 int
11844 main ()
11845 {
11846 return dlopen ();
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_c_try_link "$LINENO"; then :
11852 ac_cv_lib_svld_dlopen=yes
11853 else
11854 ac_cv_lib_svld_dlopen=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_check_lib_save_LIBS
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11867 if ${ac_cv_lib_dld_dld_link+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldld $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char dld_link ();
11882 int
11883 main ()
11884 {
11885 return dld_link ();
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_dld_dld_link=yes
11892 else
11893 ac_cv_lib_dld_dld_link=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11903 fi
11904
11905
11906 fi
11907
11908
11909 fi
11910
11911
11912 fi
11913
11914
11915 fi
11916
11917
11918 fi
11919
11920 ;;
11921 esac
11922
11923 if test "x$lt_cv_dlopen" != xno; then
11924 enable_dlopen=yes
11925 else
11926 enable_dlopen=no
11927 fi
11928
11929 case $lt_cv_dlopen in
11930 dlopen)
11931 save_CPPFLAGS="$CPPFLAGS"
11932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11933
11934 save_LDFLAGS="$LDFLAGS"
11935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11936
11937 save_LIBS="$LIBS"
11938 LIBS="$lt_cv_dlopen_libs $LIBS"
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11942 if ${lt_cv_dlopen_self+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 if test "$cross_compiling" = yes; then :
11946 lt_cv_dlopen_self=cross
11947 else
11948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11949 lt_status=$lt_dlunknown
11950 cat > conftest.$ac_ext <<_LT_EOF
11951 #line $LINENO "configure"
11952 #include "confdefs.h"
11953
11954 #if HAVE_DLFCN_H
11955 #include <dlfcn.h>
11956 #endif
11957
11958 #include <stdio.h>
11959
11960 #ifdef RTLD_GLOBAL
11961 # define LT_DLGLOBAL RTLD_GLOBAL
11962 #else
11963 # ifdef DL_GLOBAL
11964 # define LT_DLGLOBAL DL_GLOBAL
11965 # else
11966 # define LT_DLGLOBAL 0
11967 # endif
11968 #endif
11969
11970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11971 find out it does not work in some platform. */
11972 #ifndef LT_DLLAZY_OR_NOW
11973 # ifdef RTLD_LAZY
11974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11975 # else
11976 # ifdef DL_LAZY
11977 # define LT_DLLAZY_OR_NOW DL_LAZY
11978 # else
11979 # ifdef RTLD_NOW
11980 # define LT_DLLAZY_OR_NOW RTLD_NOW
11981 # else
11982 # ifdef DL_NOW
11983 # define LT_DLLAZY_OR_NOW DL_NOW
11984 # else
11985 # define LT_DLLAZY_OR_NOW 0
11986 # endif
11987 # endif
11988 # endif
11989 # endif
11990 #endif
11991
11992 /* When -fvisbility=hidden is used, assume the code has been annotated
11993 correspondingly for the symbols needed. */
11994 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11995 int fnord () __attribute__((visibility("default")));
11996 #endif
11997
11998 int fnord () { return 42; }
11999 int main ()
12000 {
12001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12002 int status = $lt_dlunknown;
12003
12004 if (self)
12005 {
12006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12007 else
12008 {
12009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12010 else puts (dlerror ());
12011 }
12012 /* dlclose (self); */
12013 }
12014 else
12015 puts (dlerror ());
12016
12017 return status;
12018 }
12019 _LT_EOF
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12025 (./conftest; exit; ) >&5 2>/dev/null
12026 lt_status=$?
12027 case x$lt_status in
12028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12031 esac
12032 else :
12033 # compilation failed
12034 lt_cv_dlopen_self=no
12035 fi
12036 fi
12037 rm -fr conftest*
12038
12039
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12042 $as_echo "$lt_cv_dlopen_self" >&6; }
12043
12044 if test "x$lt_cv_dlopen_self" = xyes; then
12045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self_static+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 if test "$cross_compiling" = yes; then :
12052 lt_cv_dlopen_self_static=cross
12053 else
12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055 lt_status=$lt_dlunknown
12056 cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059
12060 #if HAVE_DLFCN_H
12061 #include <dlfcn.h>
12062 #endif
12063
12064 #include <stdio.h>
12065
12066 #ifdef RTLD_GLOBAL
12067 # define LT_DLGLOBAL RTLD_GLOBAL
12068 #else
12069 # ifdef DL_GLOBAL
12070 # define LT_DLGLOBAL DL_GLOBAL
12071 # else
12072 # define LT_DLGLOBAL 0
12073 # endif
12074 #endif
12075
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077 find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12079 # ifdef RTLD_LAZY
12080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12081 # else
12082 # ifdef DL_LAZY
12083 # define LT_DLLAZY_OR_NOW DL_LAZY
12084 # else
12085 # ifdef RTLD_NOW
12086 # define LT_DLLAZY_OR_NOW RTLD_NOW
12087 # else
12088 # ifdef DL_NOW
12089 # define LT_DLLAZY_OR_NOW DL_NOW
12090 # else
12091 # define LT_DLLAZY_OR_NOW 0
12092 # endif
12093 # endif
12094 # endif
12095 # endif
12096 #endif
12097
12098 /* When -fvisbility=hidden is used, assume the code has been annotated
12099 correspondingly for the symbols needed. */
12100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12102 #endif
12103
12104 int fnord () { return 42; }
12105 int main ()
12106 {
12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108 int status = $lt_dlunknown;
12109
12110 if (self)
12111 {
12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12113 else
12114 {
12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12116 else puts (dlerror ());
12117 }
12118 /* dlclose (self); */
12119 }
12120 else
12121 puts (dlerror ());
12122
12123 return status;
12124 }
12125 _LT_EOF
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127 (eval $ac_link) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12131 (./conftest; exit; ) >&5 2>/dev/null
12132 lt_status=$?
12133 case x$lt_status in
12134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12137 esac
12138 else :
12139 # compilation failed
12140 lt_cv_dlopen_self_static=no
12141 fi
12142 fi
12143 rm -fr conftest*
12144
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12149 fi
12150
12151 CPPFLAGS="$save_CPPFLAGS"
12152 LDFLAGS="$save_LDFLAGS"
12153 LIBS="$save_LIBS"
12154 ;;
12155 esac
12156
12157 case $lt_cv_dlopen_self in
12158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12159 *) enable_dlopen_self=unknown ;;
12160 esac
12161
12162 case $lt_cv_dlopen_self_static in
12163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12164 *) enable_dlopen_self_static=unknown ;;
12165 esac
12166 fi
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184 striplib=
12185 old_striplib=
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 $as_echo "yes" >&6; }
12193 else
12194 # FIXME - insert some real tests, host_os isn't really good enough
12195 case $host_os in
12196 darwin*)
12197 if test -n "$STRIP" ; then
12198 striplib="$STRIP -x"
12199 old_striplib="$STRIP -S"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201 $as_echo "yes" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206 ;;
12207 *)
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12210 ;;
12211 esac
12212 fi
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225 # Report which library types will actually be built
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12229 $as_echo "$can_build_shared" >&6; }
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12232 $as_echo_n "checking whether to build shared libraries... " >&6; }
12233 test "$can_build_shared" = "no" && enable_shared=no
12234
12235 # On AIX, shared libraries and static libraries use the same namespace, and
12236 # are all built from PIC.
12237 case $host_os in
12238 aix3*)
12239 test "$enable_shared" = yes && enable_static=no
12240 if test -n "$RANLIB"; then
12241 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12242 postinstall_cmds='$RANLIB $lib'
12243 fi
12244 ;;
12245
12246 aix[4-9]*)
12247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12248 test "$enable_shared" = yes && enable_static=no
12249 fi
12250 ;;
12251 esac
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12253 $as_echo "$enable_shared" >&6; }
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12256 $as_echo_n "checking whether to build static libraries... " >&6; }
12257 # Make sure either enable_shared or enable_static is yes.
12258 test "$enable_shared" = yes || enable_static=yes
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12260 $as_echo "$enable_static" >&6; }
12261
12262
12263
12264
12265 fi
12266 ac_ext=c
12267 ac_cpp='$CPP $CPPFLAGS'
12268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12271
12272 CC="$lt_save_CC"
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 ac_config_commands="$ac_config_commands libtool"
12289
12290
12291
12292
12293 # Only expand once:
12294
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12297 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12298 if ${libltdl_cv_shlibext+:} false; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301
12302 module=yes
12303 eval libltdl_cv_shlibext=$shrext_cmds
12304 module=no
12305 eval libltdl_cv_shrext=$shrext_cmds
12306
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12309 $as_echo "$libltdl_cv_shlibext" >&6; }
12310 if test -n "$libltdl_cv_shlibext"; then
12311
12312 cat >>confdefs.h <<_ACEOF
12313 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12314 _ACEOF
12315
12316 fi
12317 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12318
12319 cat >>confdefs.h <<_ACEOF
12320 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12321 _ACEOF
12322
12323 fi
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12326 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12327 if ${lt_cv_module_path_var+:} false; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 lt_cv_module_path_var="$shlibpath_var"
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12333 $as_echo "$lt_cv_module_path_var" >&6; }
12334 if test -n "$lt_cv_module_path_var"; then
12335
12336 cat >>confdefs.h <<_ACEOF
12337 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12338 _ACEOF
12339
12340 fi
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12343 $as_echo_n "checking for the default library search path... " >&6; }
12344 if ${lt_cv_sys_dlsearch_path+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12350 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12351 if test -n "$lt_cv_sys_dlsearch_path"; then
12352 sys_dlsearch_path=
12353 for dir in $lt_cv_sys_dlsearch_path; do
12354 if test -z "$sys_dlsearch_path"; then
12355 sys_dlsearch_path="$dir"
12356 else
12357 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12358 fi
12359 done
12360
12361 cat >>confdefs.h <<_ACEOF
12362 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12363 _ACEOF
12364
12365 fi
12366
12367
12368 LT_DLLOADERS=
12369
12370
12371 ac_ext=c
12372 ac_cpp='$CPP $CPPFLAGS'
12373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12376
12377
12378 LIBADD_DLOPEN=
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12380 $as_echo_n "checking for library containing dlopen... " >&6; }
12381 if ${ac_cv_search_dlopen+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_func_search_save_LIBS=$LIBS
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389 Use char because int might match the return type of a GCC
12390 builtin and then its argument prototype would still apply. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char dlopen ();
12395 int
12396 main ()
12397 {
12398 return dlopen ();
12399 ;
12400 return 0;
12401 }
12402 _ACEOF
12403 for ac_lib in '' dl; do
12404 if test -z "$ac_lib"; then
12405 ac_res="none required"
12406 else
12407 ac_res=-l$ac_lib
12408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12409 fi
12410 if ac_fn_c_try_link "$LINENO"; then :
12411 ac_cv_search_dlopen=$ac_res
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext
12415 if ${ac_cv_search_dlopen+:} false; then :
12416 break
12417 fi
12418 done
12419 if ${ac_cv_search_dlopen+:} false; then :
12420
12421 else
12422 ac_cv_search_dlopen=no
12423 fi
12424 rm conftest.$ac_ext
12425 LIBS=$ac_func_search_save_LIBS
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12428 $as_echo "$ac_cv_search_dlopen" >&6; }
12429 ac_res=$ac_cv_search_dlopen
12430 if test "$ac_res" != no; then :
12431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12432
12433 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12434
12435 if test "$ac_cv_search_dlopen" != "none required" ; then
12436 LIBADD_DLOPEN="-ldl"
12437 fi
12438 libltdl_cv_lib_dl_dlopen="yes"
12439 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 #if HAVE_DLFCN_H
12444 # include <dlfcn.h>
12445 #endif
12446
12447 int
12448 main ()
12449 {
12450 dlopen(0, 0);
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"; then :
12456
12457 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12458
12459 libltdl_cv_func_dlopen="yes"
12460 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12464 if ${ac_cv_lib_svld_dlopen+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-lsvld $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char dlopen ();
12479 int
12480 main ()
12481 {
12482 return dlopen ();
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_svld_dlopen=yes
12489 else
12490 ac_cv_lib_svld_dlopen=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12499
12500 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12501
12502 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12503 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12504 fi
12505
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 fi
12510
12511 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12512 then
12513 lt_save_LIBS="$LIBS"
12514 LIBS="$LIBS $LIBADD_DLOPEN"
12515 for ac_func in dlerror
12516 do :
12517 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12518 if test "x$ac_cv_func_dlerror" = xyes; then :
12519 cat >>confdefs.h <<_ACEOF
12520 #define HAVE_DLERROR 1
12521 _ACEOF
12522
12523 fi
12524 done
12525
12526 LIBS="$lt_save_LIBS"
12527 fi
12528
12529
12530 LIBADD_SHL_LOAD=
12531 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12532 if test "x$ac_cv_func_shl_load" = xyes; then :
12533
12534 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12535
12536 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12539 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12540 if ${ac_cv_lib_dld_shl_load+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-ldld $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char shl_load ();
12555 int
12556 main ()
12557 {
12558 return shl_load ();
12559 ;
12560 return 0;
12561 }
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_dld_shl_load=yes
12565 else
12566 ac_cv_lib_dld_shl_load=no
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12573 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12574 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12575
12576 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12577
12578 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12579 LIBADD_SHL_LOAD="-ldld"
12580 fi
12581
12582 fi
12583
12584
12585
12586 case $host_os in
12587 darwin[1567].*)
12588 # We only want this for pre-Mac OS X 10.4.
12589 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12590 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12591
12592 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12593
12594 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12595 fi
12596
12597 ;;
12598 beos*)
12599 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12600 ;;
12601 cygwin* | mingw* | os2* | pw32*)
12602 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12603 "
12604 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12605 ac_have_decl=1
12606 else
12607 ac_have_decl=0
12608 fi
12609
12610 cat >>confdefs.h <<_ACEOF
12611 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12612 _ACEOF
12613
12614 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12615 ;;
12616 esac
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12619 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12620 if ${ac_cv_lib_dld_dld_link+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-ldld $LIBS"
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 char dld_link ();
12635 int
12636 main ()
12637 {
12638 return dld_link ();
12639 ;
12640 return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_lib_dld_dld_link=yes
12645 else
12646 ac_cv_lib_dld_dld_link=no
12647 fi
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12653 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12654 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12655
12656 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12657
12658 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12659 fi
12660
12661
12662
12663
12664 LT_DLPREOPEN=
12665 if test -n "$LT_DLLOADERS"
12666 then
12667 for lt_loader in $LT_DLLOADERS; do
12668 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12669 done
12670
12671 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12672
12673 fi
12674
12675
12676 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12677
12678
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12687 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12688 if ${lt_cv_sys_symbol_underscore+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 lt_cv_sys_symbol_underscore=no
12692 cat > conftest.$ac_ext <<_LT_EOF
12693 void nm_test_func(){}
12694 int main(){nm_test_func;return 0;}
12695 _LT_EOF
12696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12697 (eval $ac_compile) 2>&5
12698 ac_status=$?
12699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700 test $ac_status = 0; }; then
12701 # Now try to grab the symbols.
12702 ac_nlist=conftest.nm
12703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12704 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12705 ac_status=$?
12706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12707 test $ac_status = 0; } && test -s "$ac_nlist"; then
12708 # See whether the symbols have a leading underscore.
12709 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12710 lt_cv_sys_symbol_underscore=yes
12711 else
12712 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12713 :
12714 else
12715 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12716 fi
12717 fi
12718 else
12719 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12720 fi
12721 else
12722 echo "configure: failed program was:" >&5
12723 cat conftest.c >&5
12724 fi
12725 rm -rf conftest*
12726
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12729 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12730 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12731
12732
12733 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12734 if test x"$libltdl_cv_func_dlopen" = xyes ||
12735 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12737 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12738 if ${libltdl_cv_need_uscore+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 libltdl_cv_need_uscore=unknown
12742 save_LIBS="$LIBS"
12743 LIBS="$LIBS $LIBADD_DLOPEN"
12744 if test "$cross_compiling" = yes; then :
12745 libltdl_cv_need_uscore=cross
12746 else
12747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12748 lt_status=$lt_dlunknown
12749 cat > conftest.$ac_ext <<_LT_EOF
12750 #line $LINENO "configure"
12751 #include "confdefs.h"
12752
12753 #if HAVE_DLFCN_H
12754 #include <dlfcn.h>
12755 #endif
12756
12757 #include <stdio.h>
12758
12759 #ifdef RTLD_GLOBAL
12760 # define LT_DLGLOBAL RTLD_GLOBAL
12761 #else
12762 # ifdef DL_GLOBAL
12763 # define LT_DLGLOBAL DL_GLOBAL
12764 # else
12765 # define LT_DLGLOBAL 0
12766 # endif
12767 #endif
12768
12769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12770 find out it does not work in some platform. */
12771 #ifndef LT_DLLAZY_OR_NOW
12772 # ifdef RTLD_LAZY
12773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12774 # else
12775 # ifdef DL_LAZY
12776 # define LT_DLLAZY_OR_NOW DL_LAZY
12777 # else
12778 # ifdef RTLD_NOW
12779 # define LT_DLLAZY_OR_NOW RTLD_NOW
12780 # else
12781 # ifdef DL_NOW
12782 # define LT_DLLAZY_OR_NOW DL_NOW
12783 # else
12784 # define LT_DLLAZY_OR_NOW 0
12785 # endif
12786 # endif
12787 # endif
12788 # endif
12789 #endif
12790
12791 /* When -fvisbility=hidden is used, assume the code has been annotated
12792 correspondingly for the symbols needed. */
12793 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12794 int fnord () __attribute__((visibility("default")));
12795 #endif
12796
12797 int fnord () { return 42; }
12798 int main ()
12799 {
12800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12801 int status = $lt_dlunknown;
12802
12803 if (self)
12804 {
12805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12806 else
12807 {
12808 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12809 else puts (dlerror ());
12810 }
12811 /* dlclose (self); */
12812 }
12813 else
12814 puts (dlerror ());
12815
12816 return status;
12817 }
12818 _LT_EOF
12819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12820 (eval $ac_link) 2>&5
12821 ac_status=$?
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12824 (./conftest; exit; ) >&5 2>/dev/null
12825 lt_status=$?
12826 case x$lt_status in
12827 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12828 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12829 x$lt_dlunknown|x*) ;;
12830 esac
12831 else :
12832 # compilation failed
12833
12834 fi
12835 fi
12836 rm -fr conftest*
12837
12838 LIBS="$save_LIBS"
12839
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12842 $as_echo "$libltdl_cv_need_uscore" >&6; }
12843 fi
12844 fi
12845
12846 if test x"$libltdl_cv_need_uscore" = xyes; then
12847
12848 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12849
12850 fi
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12853 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12854 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 # PORTME does your system automatically load deplibs for dlopen?
12858 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12859 # For now, we just catch OSes we know something about -- in the
12860 # future, we'll try test this programmatically.
12861 lt_cv_sys_dlopen_deplibs=unknown
12862 case $host_os in
12863 aix3*|aix4.1.*|aix4.2.*)
12864 # Unknown whether this is true for these versions of AIX, but
12865 # we want this `case' here to explicitly catch those versions.
12866 lt_cv_sys_dlopen_deplibs=unknown
12867 ;;
12868 aix[4-9]*)
12869 lt_cv_sys_dlopen_deplibs=yes
12870 ;;
12871 amigaos*)
12872 case $host_cpu in
12873 powerpc)
12874 lt_cv_sys_dlopen_deplibs=no
12875 ;;
12876 esac
12877 ;;
12878 darwin*)
12879 # Assuming the user has installed a libdl from somewhere, this is true
12880 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12881 lt_cv_sys_dlopen_deplibs=yes
12882 ;;
12883 freebsd* | dragonfly*)
12884 lt_cv_sys_dlopen_deplibs=yes
12885 ;;
12886 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12887 # GNU and its variants, using gnu ld.so (Glibc)
12888 lt_cv_sys_dlopen_deplibs=yes
12889 ;;
12890 hpux10*|hpux11*)
12891 lt_cv_sys_dlopen_deplibs=yes
12892 ;;
12893 interix*)
12894 lt_cv_sys_dlopen_deplibs=yes
12895 ;;
12896 irix[12345]*|irix6.[01]*)
12897 # Catch all versions of IRIX before 6.2, and indicate that we don't
12898 # know how it worked for any of those versions.
12899 lt_cv_sys_dlopen_deplibs=unknown
12900 ;;
12901 irix*)
12902 # The case above catches anything before 6.2, and it's known that
12903 # at 6.2 and later dlopen does load deplibs.
12904 lt_cv_sys_dlopen_deplibs=yes
12905 ;;
12906 netbsd*)
12907 lt_cv_sys_dlopen_deplibs=yes
12908 ;;
12909 openbsd*)
12910 lt_cv_sys_dlopen_deplibs=yes
12911 ;;
12912 osf[1234]*)
12913 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12914 # it did *not* use an RPATH in a shared library to find objects the
12915 # library depends on, so we explicitly say `no'.
12916 lt_cv_sys_dlopen_deplibs=no
12917 ;;
12918 osf5.0|osf5.0a|osf5.1)
12919 # dlopen *does* load deplibs and with the right loader patch applied
12920 # it even uses RPATH in a shared library to search for shared objects
12921 # that the library depends on, but there's no easy way to know if that
12922 # patch is installed. Since this is the case, all we can really
12923 # say is unknown -- it depends on the patch being installed. If
12924 # it is, this changes to `yes'. Without it, it would be `no'.
12925 lt_cv_sys_dlopen_deplibs=unknown
12926 ;;
12927 osf*)
12928 # the two cases above should catch all versions of osf <= 5.1. Read
12929 # the comments above for what we know about them.
12930 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12931 # is used to find them so we can finally say `yes'.
12932 lt_cv_sys_dlopen_deplibs=yes
12933 ;;
12934 qnx*)
12935 lt_cv_sys_dlopen_deplibs=yes
12936 ;;
12937 solaris*)
12938 lt_cv_sys_dlopen_deplibs=yes
12939 ;;
12940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12941 libltdl_cv_sys_dlopen_deplibs=yes
12942 ;;
12943 esac
12944
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12947 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12948 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12949
12950 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12951
12952 fi
12953
12954 :
12955
12956 for ac_header in argz.h
12957 do :
12958 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12959 "
12960 if test "x$ac_cv_header_argz_h" = xyes; then :
12961 cat >>confdefs.h <<_ACEOF
12962 #define HAVE_ARGZ_H 1
12963 _ACEOF
12964
12965 fi
12966
12967 done
12968
12969
12970 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12971 # include <argz.h>
12972 #endif
12973 "
12974 if test "x$ac_cv_type_error_t" = xyes; then :
12975
12976 cat >>confdefs.h <<_ACEOF
12977 #define HAVE_ERROR_T 1
12978 _ACEOF
12979
12980
12981 else
12982
12983 $as_echo "#define error_t int" >>confdefs.h
12984
12985
12986 $as_echo "#define __error_t_defined 1" >>confdefs.h
12987
12988 fi
12989
12990
12991 ARGZ_H=
12992 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12993 argz_next argz_stringify
12994 do :
12995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12998 cat >>confdefs.h <<_ACEOF
12999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 _ACEOF
13001
13002 else
13003 ARGZ_H=argz.h;
13004
13005 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13006
13007 fi
13008 done
13009
13010
13011 if test -z "$ARGZ_H"; then :
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13013 $as_echo_n "checking if argz actually works... " >&6; }
13014 if ${lt_cv_sys_argz_works+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 case $host_os in #(
13018 *cygwin*)
13019 lt_cv_sys_argz_works=no
13020 if test "$cross_compiling" != no; then
13021 lt_cv_sys_argz_works="guessing no"
13022 else
13023 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13024 save_IFS=$IFS
13025 IFS=-.
13026 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13027 IFS=$save_IFS
13028 lt_os_major=${2-0}
13029 lt_os_minor=${3-0}
13030 lt_os_micro=${4-0}
13031 if test "$lt_os_major" -gt 1 \
13032 || { test "$lt_os_major" -eq 1 \
13033 && { test "$lt_os_minor" -gt 5 \
13034 || { test "$lt_os_minor" -eq 5 \
13035 && test "$lt_os_micro" -gt 24; }; }; }; then
13036 lt_cv_sys_argz_works=yes
13037 fi
13038 fi
13039 ;; #(
13040 *) lt_cv_sys_argz_works=yes ;;
13041 esac
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13044 $as_echo "$lt_cv_sys_argz_works" >&6; }
13045 if test "$lt_cv_sys_argz_works" = yes; then :
13046
13047 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13048
13049 else
13050 ARGZ_H=argz.h
13051
13052
13053 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13054
13055 fi
13056 fi
13057
13058
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13061 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13062 if ${libltdl_cv_preloaded_symbols+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13066 libltdl_cv_preloaded_symbols=yes
13067 else
13068 libltdl_cv_preloaded_symbols=no
13069 fi
13070
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13073 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13074 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13075
13076 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13077
13078 fi
13079
13080 # Set options
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092 # Check whether --with-included_ltdl was given.
13093 if test "${with_included_ltdl+set}" = set; then :
13094 withval=$with_included_ltdl;
13095 fi
13096
13097
13098 if test "x$with_included_ltdl" != xyes; then
13099 # We are not being forced to use the included libltdl sources, so
13100 # decide whether there is a useful installed version we can use.
13101 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13102
13103 "
13104 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13105 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13106 #include <ltdl.h>
13107 "
13108 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13110 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13111 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lltdl $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char lt_dladvise_preload ();
13126 int
13127 main ()
13128 {
13129 return lt_dladvise_preload ();
13130 ;
13131 return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13136 else
13137 ac_cv_lib_ltdl_lt_dladvise_preload=no
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13144 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13145 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13146 with_included_ltdl=no
13147 else
13148 with_included_ltdl=yes
13149 fi
13150
13151 else
13152 with_included_ltdl=yes
13153 fi
13154
13155 else
13156 with_included_ltdl=yes
13157 fi
13158
13159
13160 fi
13161
13162
13163
13164
13165 # Check whether --with-ltdl_include was given.
13166 if test "${with_ltdl_include+set}" = set; then :
13167 withval=$with_ltdl_include;
13168 fi
13169
13170
13171 if test -n "$with_ltdl_include"; then
13172 if test -f "$with_ltdl_include/ltdl.h"; then :
13173 else
13174 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13175 fi
13176 else
13177 with_ltdl_include=no
13178 fi
13179
13180
13181 # Check whether --with-ltdl_lib was given.
13182 if test "${with_ltdl_lib+set}" = set; then :
13183 withval=$with_ltdl_lib;
13184 fi
13185
13186
13187 if test -n "$with_ltdl_lib"; then
13188 if test -f "$with_ltdl_lib/libltdl.la"; then :
13189 else
13190 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13191 fi
13192 else
13193 with_ltdl_lib=no
13194 fi
13195
13196 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13197 ,yes,no,no,)
13198 case $enable_ltdl_convenience in
13199 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13200 "") enable_ltdl_convenience=yes
13201 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13202 esac
13203 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13204 LTDLDEPS=$LIBLTDL
13205 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13206
13207
13208
13209
13210
13211 # For backwards non-gettext consistent compatibility...
13212 INCLTDL="$LTDLINCL"
13213
13214
13215 ;;
13216 ,no,no,no,)
13217 # If the included ltdl is not to be used, then use the
13218 # preinstalled libltdl we found.
13219
13220 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13221
13222 LIBLTDL=-lltdl
13223 LTDLDEPS=
13224 LTDLINCL=
13225 ;;
13226 ,no*,no,*)
13227 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13228 ;;
13229 *) with_included_ltdl=no
13230 LIBLTDL="-L$with_ltdl_lib -lltdl"
13231 LTDLDEPS=
13232 LTDLINCL="-I$with_ltdl_include"
13233 ;;
13234 esac
13235 INCLTDL="$LTDLINCL"
13236
13237 # Report our decision...
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13239 $as_echo_n "checking where to find libltdl headers... " >&6; }
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13241 $as_echo "$LTDLINCL" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13243 $as_echo_n "checking where to find libltdl library... " >&6; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13245 $as_echo "$LIBLTDL" >&6; }
13246
13247
13248
13249 # Check whether --enable-ltdl-install was given.
13250 if test "${enable_ltdl_install+set}" = set; then :
13251 enableval=$enable_ltdl_install;
13252 fi
13253
13254
13255 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13256 *yes*) ;;
13257 *) enable_ltdl_convenience=yes ;;
13258 esac
13259
13260 if test x"${enable_ltdl_install-no}" != xno; then
13261 INSTALL_LTDL_TRUE=
13262 INSTALL_LTDL_FALSE='#'
13263 else
13264 INSTALL_LTDL_TRUE='#'
13265 INSTALL_LTDL_FALSE=
13266 fi
13267
13268 if test x"${enable_ltdl_convenience-no}" != xno; then
13269 CONVENIENCE_LTDL_TRUE=
13270 CONVENIENCE_LTDL_FALSE='#'
13271 else
13272 CONVENIENCE_LTDL_TRUE='#'
13273 CONVENIENCE_LTDL_FALSE=
13274 fi
13275
13276
13277
13278
13279
13280
13281 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13282 # the user used. This is so that ltdl.h can pick up the parent projects
13283 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13284 # definitions required by ltdl.c.
13285 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13286
13287
13288
13289 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13290 do :
13291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13292 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13293 "
13294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13295 cat >>confdefs.h <<_ACEOF
13296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13297 _ACEOF
13298
13299 fi
13300
13301 done
13302
13303
13304 for ac_func in closedir opendir readdir
13305 do :
13306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13309 cat >>confdefs.h <<_ACEOF
13310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13311 _ACEOF
13312
13313 else
13314
13315
13316 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13317
13318 fi
13319 done
13320
13321 for ac_func in strlcat strlcpy
13322 do :
13323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13325 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13326 cat >>confdefs.h <<_ACEOF
13327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13328 _ACEOF
13329
13330 else
13331
13332
13333 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13334
13335 fi
13336 done
13337
13338
13339
13340 cat >>confdefs.h <<_ACEOF
13341 #define LT_LIBEXT "$libext"
13342 _ACEOF
13343
13344
13345 name=
13346 eval "lt_libprefix=\"$libname_spec\""
13347
13348 cat >>confdefs.h <<_ACEOF
13349 #define LT_LIBPREFIX "$lt_libprefix"
13350 _ACEOF
13351
13352
13353 name=ltdl
13354 eval "LTDLOPEN=\"$libname_spec\""
13355
13356
13357
13358
13359
13360
13361
13362
13363 # Only expand once:
13364
13365
13366 LIBTOOL="$LIBTOOL --silent"
13367
13368 # The cast to long int works around a bug in the HP C Compiler
13369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13371 # This bug is HP SR number 8606223364.
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13373 $as_echo_n "checking size of short... " >&6; }
13374 if ${ac_cv_sizeof_short+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13378
13379 else
13380 if test "$ac_cv_type_short" = yes; then
13381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13383 as_fn_error 77 "cannot compute sizeof (short)
13384 See \`config.log' for more details" "$LINENO" 5; }
13385 else
13386 ac_cv_sizeof_short=0
13387 fi
13388 fi
13389
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13392 $as_echo "$ac_cv_sizeof_short" >&6; }
13393
13394
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define SIZEOF_SHORT $ac_cv_sizeof_short
13398 _ACEOF
13399
13400
13401 # The cast to long int works around a bug in the HP C Compiler
13402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13404 # This bug is HP SR number 8606223364.
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13406 $as_echo_n "checking size of int... " >&6; }
13407 if ${ac_cv_sizeof_int+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13411
13412 else
13413 if test "$ac_cv_type_int" = yes; then
13414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13416 as_fn_error 77 "cannot compute sizeof (int)
13417 See \`config.log' for more details" "$LINENO" 5; }
13418 else
13419 ac_cv_sizeof_int=0
13420 fi
13421 fi
13422
13423 fi
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13425 $as_echo "$ac_cv_sizeof_int" >&6; }
13426
13427
13428
13429 cat >>confdefs.h <<_ACEOF
13430 #define SIZEOF_INT $ac_cv_sizeof_int
13431 _ACEOF
13432
13433
13434 # The cast to long int works around a bug in the HP C Compiler
13435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13437 # This bug is HP SR number 8606223364.
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13439 $as_echo_n "checking size of long... " >&6; }
13440 if ${ac_cv_sizeof_long+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13444
13445 else
13446 if test "$ac_cv_type_long" = yes; then
13447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13449 as_fn_error 77 "cannot compute sizeof (long)
13450 See \`config.log' for more details" "$LINENO" 5; }
13451 else
13452 ac_cv_sizeof_long=0
13453 fi
13454 fi
13455
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13458 $as_echo "$ac_cv_sizeof_long" >&6; }
13459
13460
13461
13462 cat >>confdefs.h <<_ACEOF
13463 #define SIZEOF_LONG $ac_cv_sizeof_long
13464 _ACEOF
13465
13466
13467 # The cast to long int works around a bug in the HP C Compiler
13468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13470 # This bug is HP SR number 8606223364.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13472 $as_echo_n "checking size of void *... " >&6; }
13473 if ${ac_cv_sizeof_void_p+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13477
13478 else
13479 if test "$ac_cv_type_void_p" = yes; then
13480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13482 as_fn_error 77 "cannot compute sizeof (void *)
13483 See \`config.log' for more details" "$LINENO" 5; }
13484 else
13485 ac_cv_sizeof_void_p=0
13486 fi
13487 fi
13488
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13491 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13492
13493
13494
13495 cat >>confdefs.h <<_ACEOF
13496 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13497 _ACEOF
13498
13499
13500 # The cast to long int works around a bug in the HP C Compiler
13501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13503 # This bug is HP SR number 8606223364.
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13505 $as_echo_n "checking size of int64_t... " >&6; }
13506 if ${ac_cv_sizeof_int64_t+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
13510
13511 else
13512 if test "$ac_cv_type_int64_t" = yes; then
13513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13515 as_fn_error 77 "cannot compute sizeof (int64_t)
13516 See \`config.log' for more details" "$LINENO" 5; }
13517 else
13518 ac_cv_sizeof_int64_t=0
13519 fi
13520 fi
13521
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13524 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13525
13526
13527
13528 cat >>confdefs.h <<_ACEOF
13529 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13530 _ACEOF
13531
13532
13533 # The cast to long int works around a bug in the HP C Compiler
13534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13536 # This bug is HP SR number 8606223364.
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13538 $as_echo_n "checking size of long long... " >&6; }
13539 if ${ac_cv_sizeof_long_long+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13543
13544 else
13545 if test "$ac_cv_type_long_long" = yes; then
13546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13548 as_fn_error 77 "cannot compute sizeof (long long)
13549 See \`config.log' for more details" "$LINENO" 5; }
13550 else
13551 ac_cv_sizeof_long_long=0
13552 fi
13553 fi
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13557 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13558
13559
13560
13561 cat >>confdefs.h <<_ACEOF
13562 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13563 _ACEOF
13564
13565
13566
13567 if test "$ac_cv_sizeof_int" = 2 ; then
13568 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13569 if test "x$ac_cv_type_int16_t" = xyes; then :
13570
13571 else
13572
13573 cat >>confdefs.h <<_ACEOF
13574 #define int16_t int
13575 _ACEOF
13576
13577 fi
13578
13579 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13580 if test "x$ac_cv_type_uint16_t" = xyes; then :
13581
13582 else
13583
13584 cat >>confdefs.h <<_ACEOF
13585 #define uint16_t unsigned int
13586 _ACEOF
13587
13588 fi
13589
13590 elif test "$ac_cv_sizeof_short" = 2 ; then
13591 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13592 if test "x$ac_cv_type_int16_t" = xyes; then :
13593
13594 else
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define int16_t short
13598 _ACEOF
13599
13600 fi
13601
13602 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13603 if test "x$ac_cv_type_uint16_t" = xyes; then :
13604
13605 else
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define uint16_t unsigned short
13609 _ACEOF
13610
13611 fi
13612
13613 else
13614 as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
13615 fi
13616 if test "$ac_cv_sizeof_int" = 4 ; then
13617 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13618 if test "x$ac_cv_type_int32_t" = xyes; then :
13619
13620 else
13621
13622 cat >>confdefs.h <<_ACEOF
13623 #define int32_t int
13624 _ACEOF
13625
13626 fi
13627
13628 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13629 if test "x$ac_cv_type_uint32_t" = xyes; then :
13630
13631 else
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define uint32_t unsigned int
13635 _ACEOF
13636
13637 fi
13638
13639 elif test "$ac_cv_sizeof_short" = 4 ; then
13640 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13641 if test "x$ac_cv_type_int32_t" = xyes; then :
13642
13643 else
13644
13645 cat >>confdefs.h <<_ACEOF
13646 #define int32_t short
13647 _ACEOF
13648
13649 fi
13650
13651 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13652 if test "x$ac_cv_type_uint32_t" = xyes; then :
13653
13654 else
13655
13656 cat >>confdefs.h <<_ACEOF
13657 #define uint32_t unsigned short
13658 _ACEOF
13659
13660 fi
13661
13662 elif test "$ac_cv_sizeof_long" = 4 ; then
13663 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13664 if test "x$ac_cv_type_int32_t" = xyes; then :
13665
13666 else
13667
13668 cat >>confdefs.h <<_ACEOF
13669 #define int32_t long
13670 _ACEOF
13671
13672 fi
13673
13674 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13675 if test "x$ac_cv_type_uint32_t" = xyes; then :
13676
13677 else
13678
13679 cat >>confdefs.h <<_ACEOF
13680 #define uint32_t unsigned long
13681 _ACEOF
13682
13683 fi
13684
13685 else
13686 as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
13687 fi
13688 if test "$ac_cv_sizeof_int64_t" = 8 ; then
13689 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13690 if test "x$ac_cv_type_int64_t" = xyes; then :
13691
13692 fi
13693
13694 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13695 if test "x$ac_cv_type_uint64_t" = xyes; then :
13696
13697 fi
13698
13699 elif test "$ac_cv_sizeof_long_long" = 8 ; then
13700 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13701 if test "x$ac_cv_type_int64_t" = xyes; then :
13702
13703 else
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define int64_t long long
13707 _ACEOF
13708
13709 fi
13710
13711 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13712 if test "x$ac_cv_type_uint64_t" = xyes; then :
13713
13714 else
13715
13716 cat >>confdefs.h <<_ACEOF
13717 #define uint64_t unsigned long long
13718 _ACEOF
13719
13720 fi
13721
13722 else
13723 as_fn_error $? "Cannot find a type with size of 64 bits" "$LINENO" 5
13724 fi
13725
13726
13727 # Checks for libraries.
13728
13729 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13730 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13731
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13734 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13735 if ${ac_cv_search_getaddrinfo+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_func_search_save_LIBS=$LIBS
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char getaddrinfo ();
13749 int
13750 main ()
13751 {
13752 return getaddrinfo ();
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 for ac_lib in '' nsl; do
13758 if test -z "$ac_lib"; then
13759 ac_res="none required"
13760 else
13761 ac_res=-l$ac_lib
13762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13763 fi
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 ac_cv_search_getaddrinfo=$ac_res
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext
13769 if ${ac_cv_search_getaddrinfo+:} false; then :
13770 break
13771 fi
13772 done
13773 if ${ac_cv_search_getaddrinfo+:} false; then :
13774
13775 else
13776 ac_cv_search_getaddrinfo=no
13777 fi
13778 rm conftest.$ac_ext
13779 LIBS=$ac_func_search_save_LIBS
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13782 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13783 ac_res=$ac_cv_search_getaddrinfo
13784 if test "$ac_res" != no; then :
13785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13786
13787 fi
13788
13789 fi
13790
13791 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13792 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13793
13794 else
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13796 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13797 if ${ac_cv_search_getnameinfo+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_func_search_save_LIBS=$LIBS
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803
13804 /* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13807 #ifdef __cplusplus
13808 extern "C"
13809 #endif
13810 char getnameinfo ();
13811 int
13812 main ()
13813 {
13814 return getnameinfo ();
13815 ;
13816 return 0;
13817 }
13818 _ACEOF
13819 for ac_lib in '' nsl; do
13820 if test -z "$ac_lib"; then
13821 ac_res="none required"
13822 else
13823 ac_res=-l$ac_lib
13824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13825 fi
13826 if ac_fn_c_try_link "$LINENO"; then :
13827 ac_cv_search_getnameinfo=$ac_res
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext
13831 if ${ac_cv_search_getnameinfo+:} false; then :
13832 break
13833 fi
13834 done
13835 if ${ac_cv_search_getnameinfo+:} false; then :
13836
13837 else
13838 ac_cv_search_getnameinfo=no
13839 fi
13840 rm conftest.$ac_ext
13841 LIBS=$ac_func_search_save_LIBS
13842 fi
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13844 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13845 ac_res=$ac_cv_search_getnameinfo
13846 if test "$ac_res" != no; then :
13847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13848
13849 fi
13850
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13854 $as_echo_n "checking for library containing socket... " >&6; }
13855 if ${ac_cv_search_socket+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 ac_func_search_save_LIBS=$LIBS
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char socket ();
13869 int
13870 main ()
13871 {
13872 return socket ();
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 for ac_lib in '' socket; do
13878 if test -z "$ac_lib"; then
13879 ac_res="none required"
13880 else
13881 ac_res=-l$ac_lib
13882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13883 fi
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 ac_cv_search_socket=$ac_res
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext
13889 if ${ac_cv_search_socket+:} false; then :
13890 break
13891 fi
13892 done
13893 if ${ac_cv_search_socket+:} false; then :
13894
13895 else
13896 ac_cv_search_socket=no
13897 fi
13898 rm conftest.$ac_ext
13899 LIBS=$ac_func_search_save_LIBS
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13902 $as_echo "$ac_cv_search_socket" >&6; }
13903 ac_res=$ac_cv_search_socket
13904 if test "$ac_res" != no; then :
13905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13906
13907 else
13908 as_fn_error $? "socket library not found" "$LINENO" 5
13909 fi
13910
13911 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13912 #include <sys/socket.h>
13913 #include <netdb.h>
13914
13915 "
13916 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_STRUCT_SOCKADDR_IN 1
13920 _ACEOF
13921
13922
13923 fi
13924 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13925 #include <sys/socket.h>
13926 #include <netdb.h>
13927
13928 "
13929 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13933 _ACEOF
13934
13935
13936 fi
13937 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13938 #include <sys/socket.h>
13939 #include <netdb.h>
13940
13941 "
13942 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13943
13944 cat >>confdefs.h <<_ACEOF
13945 #define HAVE_STRUCT_ADDRINFO 1
13946 _ACEOF
13947
13948
13949 fi
13950
13951 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13952 <sys/socket.h>
13953 "
13954 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13955
13956 cat >>confdefs.h <<_ACEOF
13957 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13958 _ACEOF
13959
13960
13961 fi
13962
13963
13964
13965 # Checks for typedefs, structures, and compiler characteristics.
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13967 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13968 if ${ac_cv_c_bigendian+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 ac_cv_c_bigendian=unknown
13972 # See if we're dealing with a universal compiler.
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #ifndef __APPLE_CC__
13976 not a universal capable compiler
13977 #endif
13978 typedef int dummy;
13979
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982
13983 # Check for potential -arch flags. It is not universal unless
13984 # there are at least two -arch flags with different values.
13985 ac_arch=
13986 ac_prev=
13987 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13988 if test -n "$ac_prev"; then
13989 case $ac_word in
13990 i?86 | x86_64 | ppc | ppc64)
13991 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13992 ac_arch=$ac_word
13993 else
13994 ac_cv_c_bigendian=universal
13995 break
13996 fi
13997 ;;
13998 esac
13999 ac_prev=
14000 elif test "x$ac_word" = "x-arch"; then
14001 ac_prev=arch
14002 fi
14003 done
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 if test $ac_cv_c_bigendian = unknown; then
14007 # See if sys/param.h defines the BYTE_ORDER macro.
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14012
14013 int
14014 main ()
14015 {
14016 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14017 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14018 && LITTLE_ENDIAN)
14019 bogus endian macros
14020 #endif
14021
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 # It does; now see whether it defined to BIG_ENDIAN or not.
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 #include <sys/types.h>
14031 #include <sys/param.h>
14032
14033 int
14034 main ()
14035 {
14036 #if BYTE_ORDER != BIG_ENDIAN
14037 not big endian
14038 #endif
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 ac_cv_c_bigendian=yes
14046 else
14047 ac_cv_c_bigendian=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 fi
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 if test $ac_cv_c_bigendian = unknown; then
14054 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 #include <limits.h>
14058
14059 int
14060 main ()
14061 {
14062 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14063 bogus endian macros
14064 #endif
14065
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071 # It does; now see whether it defined to _BIG_ENDIAN or not.
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 #include <limits.h>
14075
14076 int
14077 main ()
14078 {
14079 #ifndef _BIG_ENDIAN
14080 not big endian
14081 #endif
14082
14083 ;
14084 return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 ac_cv_c_bigendian=yes
14089 else
14090 ac_cv_c_bigendian=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 fi
14096 if test $ac_cv_c_bigendian = unknown; then
14097 # Compile a test program.
14098 if test "$cross_compiling" = yes; then :
14099 # Try to guess by grepping values from an object file.
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 short int ascii_mm[] =
14103 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14104 short int ascii_ii[] =
14105 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14106 int use_ascii (int i) {
14107 return ascii_mm[i] + ascii_ii[i];
14108 }
14109 short int ebcdic_ii[] =
14110 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14111 short int ebcdic_mm[] =
14112 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14113 int use_ebcdic (int i) {
14114 return ebcdic_mm[i] + ebcdic_ii[i];
14115 }
14116 extern int foo;
14117
14118 int
14119 main ()
14120 {
14121 return use_ascii (foo) == use_ebcdic (foo);
14122 ;
14123 return 0;
14124 }
14125 _ACEOF
14126 if ac_fn_c_try_compile "$LINENO"; then :
14127 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14128 ac_cv_c_bigendian=yes
14129 fi
14130 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14131 if test "$ac_cv_c_bigendian" = unknown; then
14132 ac_cv_c_bigendian=no
14133 else
14134 # finding both strings is unlikely to happen, but who knows?
14135 ac_cv_c_bigendian=unknown
14136 fi
14137 fi
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 int
14145 main ()
14146 {
14147
14148 /* Are we little or big endian? From Harbison&Steele. */
14149 union
14150 {
14151 long int l;
14152 char c[sizeof (long int)];
14153 } u;
14154 u.l = 1;
14155 return u.c[sizeof (long int) - 1] == 1;
14156
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_run "$LINENO"; then :
14162 ac_cv_c_bigendian=no
14163 else
14164 ac_cv_c_bigendian=yes
14165 fi
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14167 conftest.$ac_objext conftest.beam conftest.$ac_ext
14168 fi
14169
14170 fi
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14173 $as_echo "$ac_cv_c_bigendian" >&6; }
14174 case $ac_cv_c_bigendian in #(
14175 yes)
14176 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14177 ;; #(
14178 no)
14179 ;; #(
14180 universal)
14181
14182 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14183
14184 ;; #(
14185 *)
14186 as_fn_error $? "unknown endianness
14187 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14188 esac
14189
14190
14191 # Checks for library functions.
14192
14193
14194
14195 for ac_func in $ac_func_list
14196 do :
14197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14200 cat >>confdefs.h <<_ACEOF
14201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14202 _ACEOF
14203
14204 fi
14205 done
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221 # Checks for header files.
14222
14223
14224
14225 for ac_header in $ac_header_list
14226 do :
14227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14229 "
14230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 fi
14236
14237 done
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14264 $as_echo_n "checking for library containing crypt... " >&6; }
14265 if ${ac_cv_search_crypt+:} false; then :
14266 $as_echo_n "(cached) " >&6
14267 else
14268 ac_func_search_save_LIBS=$LIBS
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 /* Override any GCC internal prototype to avoid an error.
14273 Use char because int might match the return type of a GCC
14274 builtin and then its argument prototype would still apply. */
14275 #ifdef __cplusplus
14276 extern "C"
14277 #endif
14278 char crypt ();
14279 int
14280 main ()
14281 {
14282 return crypt ();
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 for ac_lib in '' crypt; do
14288 if test -z "$ac_lib"; then
14289 ac_res="none required"
14290 else
14291 ac_res=-l$ac_lib
14292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14293 fi
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 ac_cv_search_crypt=$ac_res
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext
14299 if ${ac_cv_search_crypt+:} false; then :
14300 break
14301 fi
14302 done
14303 if ${ac_cv_search_crypt+:} false; then :
14304
14305 else
14306 ac_cv_search_crypt=no
14307 fi
14308 rm conftest.$ac_ext
14309 LIBS=$ac_func_search_save_LIBS
14310 fi
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14312 $as_echo "$ac_cv_search_crypt" >&6; }
14313 ac_res=$ac_cv_search_crypt
14314 if test "$ac_res" != no; then :
14315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14316
14317 fi
14318
14319
14320 # Check whether --enable-libgeoip was given.
14321 if test "${enable_libgeoip+set}" = set; then :
14322 enableval=$enable_libgeoip;
14323 else
14324 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14325 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14327 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14328 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 ac_func_search_save_LIBS=$LIBS
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334
14335 /* Override any GCC internal prototype to avoid an error.
14336 Use char because int might match the return type of a GCC
14337 builtin and then its argument prototype would still apply. */
14338 #ifdef __cplusplus
14339 extern "C"
14340 #endif
14341 char GeoIP_id_by_ipnum_v6_gl ();
14342 int
14343 main ()
14344 {
14345 return GeoIP_id_by_ipnum_v6_gl ();
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 for ac_lib in '' GeoIP; do
14351 if test -z "$ac_lib"; then
14352 ac_res="none required"
14353 else
14354 ac_res=-l$ac_lib
14355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14356 fi
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext \
14361 conftest$ac_exeext
14362 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14363 break
14364 fi
14365 done
14366 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14367
14368 else
14369 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14370 fi
14371 rm conftest.$ac_ext
14372 LIBS=$ac_func_search_save_LIBS
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
14375 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
14376 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
14377 if test "$ac_res" != no; then :
14378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14379
14380 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14381
14382 fi
14383
14384 fi
14385
14386
14387 fi
14388
14389
14390 # Check whether --enable-openssl was given.
14391 if test "${enable_openssl+set}" = set; then :
14392 enableval=$enable_openssl; cf_enable_openssl=$enableval
14393 else
14394 cf_enable_openssl="auto"
14395 fi
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14398 $as_echo_n "checking for OpenSSL... " >&6; }
14399 if test "$cf_enable_openssl" != "no"; then
14400 cf_openssl_basedir=""
14401 if test "$cf_enable_openssl" != "auto" &&
14402 test "$cf_enable_openssl" != "yes"; then
14403 cf_openssl_basedir="${cf_enable_openssl}"
14404 else
14405 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14406 /opt /opt/openssl /usr/local/openssl; do
14407 if test -f "${dirs}/include/openssl/opensslv.h"; then
14408 cf_openssl_basedir="${dirs}"
14409 break
14410 fi
14411 done
14412 unset dirs
14413 fi
14414
14415 if test ! -z "$cf_openssl_basedir"; then
14416 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14417 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14418 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14419 else
14420 cf_openssl_basedir=""
14421 fi
14422 else
14423 if test -f "/usr/include/openssl/opensslv.h"; then
14424 cf_openssl_basedir="/usr"
14425 fi
14426 fi
14427
14428 if test ! -z "$cf_openssl_basedir"; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14430 $as_echo "$cf_openssl_basedir" >&6; }
14431 cf_enable_openssl="yes"
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14434 $as_echo "not found. Please check your path." >&6; }
14435 cf_enable_openssl="no"
14436 fi
14437 unset cf_openssl_basedir
14438 else
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14440 $as_echo "disabled" >&6; }
14441 fi
14442
14443 if test "$cf_enable_openssl" != "no"; then :
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14445 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14446 if test "$cross_compiling" = yes; then :
14447 cf_openssl_version_ok=no
14448 else
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451
14452
14453 #include <openssl/opensslv.h>
14454 #include <stdlib.h>
14455 int
14456 main ()
14457 {
14458 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_run "$LINENO"; then :
14464 cf_openssl_version_ok=yes
14465 else
14466 cf_openssl_version_ok=no
14467 fi
14468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14469 conftest.$ac_objext conftest.beam conftest.$ac_ext
14470 fi
14471
14472
14473 if test "$cf_openssl_version_ok" = "yes"; then :
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14475 $as_echo "found" >&6; }
14476
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14478 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14479 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 ac_check_lib_save_LIBS=$LIBS
14483 LIBS="-lcrypto $LIBS"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486
14487 /* Override any GCC internal prototype to avoid an error.
14488 Use char because int might match the return type of a GCC
14489 builtin and then its argument prototype would still apply. */
14490 #ifdef __cplusplus
14491 extern "C"
14492 #endif
14493 char RSA_free ();
14494 int
14495 main ()
14496 {
14497 return RSA_free ();
14498 ;
14499 return 0;
14500 }
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 ac_cv_lib_crypto_RSA_free=yes
14504 else
14505 ac_cv_lib_crypto_RSA_free=no
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14512 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14513 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14514 cat >>confdefs.h <<_ACEOF
14515 #define HAVE_LIBCRYPTO 1
14516 _ACEOF
14517
14518 LIBS="-lcrypto $LIBS"
14519
14520 fi
14521
14522 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14524 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14525 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 ac_check_lib_save_LIBS=$LIBS
14529 LIBS="-lssl $LIBS"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char SSL_connect ();
14540 int
14541 main ()
14542 {
14543 return SSL_connect ();
14544 ;
14545 return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_link "$LINENO"; then :
14549 ac_cv_lib_ssl_SSL_connect=yes
14550 else
14551 ac_cv_lib_ssl_SSL_connect=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14555 LIBS=$ac_check_lib_save_LIBS
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14558 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14559 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14560 cat >>confdefs.h <<_ACEOF
14561 #define HAVE_LIBSSL 1
14562 _ACEOF
14563
14564 LIBS="-lssl $LIBS"
14565
14566 fi
14567
14568 fi
14569
14570 else
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14572 $as_echo "no - OpenSSL support disabled" >&6; }
14573 cf_enable_openssl="no"
14574 fi
14575 fi
14576
14577 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14578 ENABLE_SSL_TRUE=
14579 ENABLE_SSL_FALSE='#'
14580 else
14581 ENABLE_SSL_TRUE='#'
14582 ENABLE_SSL_FALSE=
14583 fi
14584
14585
14586
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the poll() event engine" >&5
14588 $as_echo_n "checking whether to enable the poll() event engine... " >&6; }
14589 # Check whether --enable-poll was given.
14590 if test "${enable_poll+set}" = set; then :
14591 enableval=$enable_poll; hyb_cv_enable_poll=$enable_poll
14592 else
14593 if ${hyb_cv_enable_poll+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595 else
14596 hyb_cv_enable_poll=yes
14597 fi
14598
14599 fi
14600
14601
14602 if test "$ac_cv_func_poll" = no; then
14603 hyb_cv_enable_poll=no
14604 fi
14605
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_poll" >&5
14607 $as_echo "$hyb_cv_enable_poll" >&6; }
14608
14609 if test "$hyb_cv_enable_poll" = yes; then
14610 ircd_event_engine="poll()"
14611
14612 $as_echo "#define USE_POLL /**/" >>confdefs.h
14613
14614 fi
14615 if test "$hyb_cv_enable_poll" = yes; then
14616 ENGINE_POLL_TRUE=
14617 ENGINE_POLL_FALSE='#'
14618 else
14619 ENGINE_POLL_TRUE='#'
14620 ENGINE_POLL_FALSE=
14621 fi
14622
14623
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the /dev/poll event engine" >&5
14625 $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
14626 # Check whether --enable-devpoll was given.
14627 if test "${enable_devpoll+set}" = set; then :
14628 enableval=$enable_devpoll; hyb_cv_enable_devpoll=$enable_devpoll
14629 else
14630 if ${hyb_cv_enable_devpoll+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 hyb_cv_enable_devpoll=yes
14634 fi
14635
14636 fi
14637
14638
14639 if test "$ac_cv_header_sys_devpoll_h" = no; then
14640 hyb_cv_enable_devpoll=no
14641 fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_devpoll" >&5
14644 $as_echo "$hyb_cv_enable_devpoll" >&6; }
14645
14646 if test "$hyb_cv_enable_devpoll" != no; then
14647 ircd_event_engine="/dev/poll/ $ircd_event_engine"
14648
14649 $as_echo "#define USE_DEVPOLL /**/" >>confdefs.h
14650
14651 fi
14652
14653 if test "$hyb_cv_enable_devpoll" = yes; then
14654 ENGINE_DEVPOLL_TRUE=
14655 ENGINE_DEVPOLL_FALSE='#'
14656 else
14657 ENGINE_DEVPOLL_TRUE='#'
14658 ENGINE_DEVPOLL_FALSE=
14659 fi
14660
14661
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the kqueue event engine" >&5
14664 $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
14665 # Check whether --enable-kqueue was given.
14666 if test "${enable_kqueue+set}" = set; then :
14667 enableval=$enable_kqueue; hyb_cv_enable_kqueue=$enable_kqueue
14668 else
14669 if ${hyb_cv_enable_kqueue+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 hyb_cv_enable_kqueue=yes
14673 fi
14674
14675 fi
14676
14677
14678 if test "$ac_cv_header_sys_event_h" = no -o "$ac_cv_func_kqueue" = no; then
14679 hyb_cv_enable_kqueue=no
14680 fi
14681
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_kqueue" >&5
14683 $as_echo "$hyb_cv_enable_kqueue" >&6; }
14684
14685 if test "$hyb_cv_enable_kqueue" != no; then
14686 ircd_event_engine="kqueue() $ircd_event_engine"
14687
14688 $as_echo "#define USE_KQUEUE /**/" >>confdefs.h
14689
14690 fi
14691
14692 if test "$hyb_cv_enable_kqueue" = yes; then
14693 ENGINE_KQUEUE_TRUE=
14694 ENGINE_KQUEUE_FALSE='#'
14695 else
14696 ENGINE_KQUEUE_TRUE='#'
14697 ENGINE_KQUEUE_FALSE=
14698 fi
14699
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the epoll event engine" >&5
14702 $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
14703 # Check whether --enable-epoll was given.
14704 if test "${enable_epoll+set}" = set; then :
14705 enableval=$enable_epoll; hyb_cv_enable_epoll=$enable_epoll
14706 else
14707 if ${hyb_cv_enable_epoll+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 hyb_cv_enable_epoll=yes
14711 fi
14712
14713 fi
14714
14715
14716 if test "$ac_cv_header_sys_epoll_h" = no -o "$ac_cv_func_epoll" = no; then
14717 hyb_cv_enable_epoll=no
14718 fi
14719
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hyb_cv_enable_epoll" >&5
14721 $as_echo "$hyb_cv_enable_epoll" >&6; }
14722
14723 # Set up the conditionals
14724 if test x"$hyb_cv_enable_epoll" = xyes; then
14725 ircd_event_engine="epoll() $ircd_event_engine"
14726
14727 $as_echo "#define USE_EPOLL 1" >>confdefs.h
14728
14729
14730 # Must also check to see if we need to provide the function bodies
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epoll functions are properly defined" >&5
14732 $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 #include <sys/epoll.h>
14736 int
14737 main ()
14738 {
14739 epoll_create(10);
14740 ;
14741 return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_link "$LINENO"; then :
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14746 $as_echo "yes" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14750
14751 $as_echo "#define EPOLL_NEED_BODY 1" >>confdefs.h
14752
14753 fi
14754 rm -f core conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
14756 fi
14757
14758 if test "$hyb_cv_enable_epoll" = yes; then
14759 ENGINE_EPOLL_TRUE=
14760 ENGINE_EPOLL_FALSE='#'
14761 else
14762 ENGINE_EPOLL_TRUE='#'
14763 ENGINE_EPOLL_FALSE=
14764 fi
14765
14766
14767
14768 # Check whether --enable-assert was given.
14769 if test "${enable_assert+set}" = set; then :
14770 enableval=$enable_assert; assert=$enableval
14771 else
14772 assert=no
14773 fi
14774
14775
14776 if test "$assert" = "no"; then :
14777
14778 $as_echo "#define NDEBUG 1" >>confdefs.h
14779
14780 fi
14781
14782
14783 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14784
14785
14786 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14787
14788
14789 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14790
14791
14792 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14793
14794
14795 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14796
14797
14798 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14799
14800
14801 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14802
14803
14804 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14805
14806
14807 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14808
14809
14810 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14811
14812
14813 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14814
14815
14816 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14817
14818
14819 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14820
14821
14822 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14823
14824
14825 # Argument processing.
14826
14827 # Check whether --enable-halfops was given.
14828 if test "${enable_halfops+set}" = set; then :
14829 enableval=$enable_halfops; halfops="$enableval"
14830 else
14831 halfops="no"
14832 fi
14833
14834 if test "$halfops" = "yes" ; then
14835
14836 $as_echo "#define HALFOPS 1" >>confdefs.h
14837
14838 fi
14839
14840
14841 # Check whether --enable-debugging was given.
14842 if test "${enable_debugging+set}" = set; then :
14843 enableval=$enable_debugging; debugging="$enableval"
14844 else
14845 debugging="no"
14846 fi
14847
14848 if test "$debugging" = "yes" ; then
14849 CFLAGS="-Wall -g -O0"
14850 fi
14851
14852
14853 # Check whether --enable-warnings was given.
14854 if test "${enable_warnings+set}" = set; then :
14855 enableval=$enable_warnings; warnings="$enableval"
14856 else
14857 warnings="no"
14858 fi
14859
14860 if test "$warnings" = "yes" ; then
14861 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14862 fi
14863
14864
14865
14866 prefix_NONE=
14867 exec_prefix_NONE=
14868 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14869 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14870 eval ac_define_dir="\"$prefix\""
14871 eval ac_define_dir="\"$ac_define_dir\""
14872 PREFIX="$ac_define_dir"
14873
14874
14875 cat >>confdefs.h <<_ACEOF
14876 #define PREFIX "$ac_define_dir"
14877 _ACEOF
14878
14879 test "$prefix_NONE" && prefix=NONE
14880 test "$exec_prefix_NONE" && exec_prefix=NONE
14881
14882
14883 prefix_NONE=
14884 exec_prefix_NONE=
14885 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14886 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14887 eval ac_define_dir="\"$sysconfdir\""
14888 eval ac_define_dir="\"$ac_define_dir\""
14889 SYSCONFDIR="$ac_define_dir"
14890
14891
14892 cat >>confdefs.h <<_ACEOF
14893 #define SYSCONFDIR "$ac_define_dir"
14894 _ACEOF
14895
14896 test "$prefix_NONE" && prefix=NONE
14897 test "$exec_prefix_NONE" && exec_prefix=NONE
14898
14899
14900 prefix_NONE=
14901 exec_prefix_NONE=
14902 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14903 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14904 eval ac_define_dir="\"$libdir\""
14905 eval ac_define_dir="\"$ac_define_dir\""
14906 LIBDIR="$ac_define_dir"
14907
14908
14909 cat >>confdefs.h <<_ACEOF
14910 #define LIBDIR "$ac_define_dir"
14911 _ACEOF
14912
14913 test "$prefix_NONE" && prefix=NONE
14914 test "$exec_prefix_NONE" && exec_prefix=NONE
14915
14916
14917 prefix_NONE=
14918 exec_prefix_NONE=
14919 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14920 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14921 eval ac_define_dir="\"$datadir\""
14922 eval ac_define_dir="\"$ac_define_dir\""
14923 DATADIR="$ac_define_dir"
14924
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define DATADIR "$ac_define_dir"
14928 _ACEOF
14929
14930 test "$prefix_NONE" && prefix=NONE
14931 test "$exec_prefix_NONE" && exec_prefix=NONE
14932
14933
14934 prefix_NONE=
14935 exec_prefix_NONE=
14936 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14937 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14938 eval ac_define_dir="\"$localstatedir\""
14939 eval ac_define_dir="\"$ac_define_dir\""
14940 LOCALSTATEDIR="$ac_define_dir"
14941
14942
14943 cat >>confdefs.h <<_ACEOF
14944 #define LOCALSTATEDIR "$ac_define_dir"
14945 _ACEOF
14946
14947 test "$prefix_NONE" && prefix=NONE
14948 test "$exec_prefix_NONE" && exec_prefix=NONE
14949
14950
14951 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
14952
14953
14954 cat >confcache <<\_ACEOF
14955 # This file is a shell script that caches the results of configure
14956 # tests run on this system so they can be shared between configure
14957 # scripts and configure runs, see configure's option --config-cache.
14958 # It is not useful on other systems. If it contains results you don't
14959 # want to keep, you may remove or edit it.
14960 #
14961 # config.status only pays attention to the cache file if you give it
14962 # the --recheck option to rerun configure.
14963 #
14964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14966 # following values.
14967
14968 _ACEOF
14969
14970 # The following way of writing the cache mishandles newlines in values,
14971 # but we know of no workaround that is simple, portable, and efficient.
14972 # So, we kill variables containing newlines.
14973 # Ultrix sh set writes to stderr and can't be redirected directly,
14974 # and sets the high bit in the cache file unless we assign to the vars.
14975 (
14976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14977 eval ac_val=\$$ac_var
14978 case $ac_val in #(
14979 *${as_nl}*)
14980 case $ac_var in #(
14981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14983 esac
14984 case $ac_var in #(
14985 _ | IFS | as_nl) ;; #(
14986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14987 *) { eval $ac_var=; unset $ac_var;} ;;
14988 esac ;;
14989 esac
14990 done
14991
14992 (set) 2>&1 |
14993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14994 *${as_nl}ac_space=\ *)
14995 # `set' does not quote correctly, so add quotes: double-quote
14996 # substitution turns \\\\ into \\, and sed turns \\ into \.
14997 sed -n \
14998 "s/'/'\\\\''/g;
14999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15000 ;; #(
15001 *)
15002 # `set' quotes correctly as required by POSIX, so do not add quotes.
15003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15004 ;;
15005 esac |
15006 sort
15007 ) |
15008 sed '
15009 /^ac_cv_env_/b end
15010 t clear
15011 :clear
15012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15013 t end
15014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15015 :end' >>confcache
15016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15017 if test -w "$cache_file"; then
15018 if test "x$cache_file" != "x/dev/null"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15020 $as_echo "$as_me: updating cache $cache_file" >&6;}
15021 if test ! -f "$cache_file" || test -h "$cache_file"; then
15022 cat confcache >"$cache_file"
15023 else
15024 case $cache_file in #(
15025 */* | ?:*)
15026 mv -f confcache "$cache_file"$$ &&
15027 mv -f "$cache_file"$$ "$cache_file" ;; #(
15028 *)
15029 mv -f confcache "$cache_file" ;;
15030 esac
15031 fi
15032 fi
15033 else
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15036 fi
15037 fi
15038 rm -f confcache
15039
15040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15041 # Let make expand exec_prefix.
15042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15043
15044 DEFS=-DHAVE_CONFIG_H
15045
15046 ac_libobjs=
15047 ac_ltlibobjs=
15048 U=
15049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15050 # 1. Remove the extension, and $U if already installed.
15051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15054 # will be set to the directory where LIBOBJS objects are built.
15055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15057 done
15058 LIBOBJS=$ac_libobjs
15059
15060 LTLIBOBJS=$ac_ltlibobjs
15061
15062
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15064 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15065 if test -n "$am_sleep_pid"; then
15066 # Hide warnings about reused PIDs.
15067 wait $am_sleep_pid 2>/dev/null
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15070 $as_echo "done" >&6; }
15071 if test -n "$EXEEXT"; then
15072 am__EXEEXT_TRUE=
15073 am__EXEEXT_FALSE='#'
15074 else
15075 am__EXEEXT_TRUE='#'
15076 am__EXEEXT_FALSE=
15077 fi
15078
15079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15080 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 fi
15083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15084 as_fn_error $? "conditional \"AMDEP\" was never defined.
15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 fi
15087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 fi
15091 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15092 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 fi
15095 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15096 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 fi
15099 LT_CONFIG_H=config.h
15100
15101 _ltdl_libobjs=
15102 _ltdl_ltlibobjs=
15103 if test -n "$_LT_LIBOBJS"; then
15104 # Remove the extension.
15105 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15106 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15107 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15108 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15109 done
15110 fi
15111 ltdl_LIBOBJS=$_ltdl_libobjs
15112
15113 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15114
15115
15116
15117 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15118 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 fi
15121 if test -z "${ENGINE_POLL_TRUE}" && test -z "${ENGINE_POLL_FALSE}"; then
15122 as_fn_error $? "conditional \"ENGINE_POLL\" was never defined.
15123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 fi
15125 if test -z "${ENGINE_DEVPOLL_TRUE}" && test -z "${ENGINE_DEVPOLL_FALSE}"; then
15126 as_fn_error $? "conditional \"ENGINE_DEVPOLL\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 fi
15129 if test -z "${ENGINE_KQUEUE_TRUE}" && test -z "${ENGINE_KQUEUE_FALSE}"; then
15130 as_fn_error $? "conditional \"ENGINE_KQUEUE\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${ENGINE_EPOLL_TRUE}" && test -z "${ENGINE_EPOLL_FALSE}"; then
15134 as_fn_error $? "conditional \"ENGINE_EPOLL\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137
15138 : "${CONFIG_STATUS=./config.status}"
15139 ac_write_fail=0
15140 ac_clean_files_save=$ac_clean_files
15141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15143 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15144 as_write_fail=0
15145 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15146 #! $SHELL
15147 # Generated by $as_me.
15148 # Run this file to recreate the current configuration.
15149 # Compiler output produced by configure, useful for debugging
15150 # configure, is in config.log if it exists.
15151
15152 debug=false
15153 ac_cs_recheck=false
15154 ac_cs_silent=false
15155
15156 SHELL=\${CONFIG_SHELL-$SHELL}
15157 export SHELL
15158 _ASEOF
15159 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15160 ## -------------------- ##
15161 ## M4sh Initialization. ##
15162 ## -------------------- ##
15163
15164 # Be more Bourne compatible
15165 DUALCASE=1; export DUALCASE # for MKS sh
15166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15167 emulate sh
15168 NULLCMD=:
15169 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15170 # is contrary to our usage. Disable this feature.
15171 alias -g '${1+"$@"}'='"$@"'
15172 setopt NO_GLOB_SUBST
15173 else
15174 case `(set -o) 2>/dev/null` in #(
15175 *posix*) :
15176 set -o posix ;; #(
15177 *) :
15178 ;;
15179 esac
15180 fi
15181
15182
15183 as_nl='
15184 '
15185 export as_nl
15186 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15187 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15190 # Prefer a ksh shell builtin over an external printf program on Solaris,
15191 # but without wasting forks for bash or zsh.
15192 if test -z "$BASH_VERSION$ZSH_VERSION" \
15193 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15194 as_echo='print -r --'
15195 as_echo_n='print -rn --'
15196 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15197 as_echo='printf %s\n'
15198 as_echo_n='printf %s'
15199 else
15200 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15201 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15202 as_echo_n='/usr/ucb/echo -n'
15203 else
15204 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15205 as_echo_n_body='eval
15206 arg=$1;
15207 case $arg in #(
15208 *"$as_nl"*)
15209 expr "X$arg" : "X\\(.*\\)$as_nl";
15210 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15211 esac;
15212 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15213 '
15214 export as_echo_n_body
15215 as_echo_n='sh -c $as_echo_n_body as_echo'
15216 fi
15217 export as_echo_body
15218 as_echo='sh -c $as_echo_body as_echo'
15219 fi
15220
15221 # The user is always right.
15222 if test "${PATH_SEPARATOR+set}" != set; then
15223 PATH_SEPARATOR=:
15224 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15225 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15226 PATH_SEPARATOR=';'
15227 }
15228 fi
15229
15230
15231 # IFS
15232 # We need space, tab and new line, in precisely that order. Quoting is
15233 # there to prevent editors from complaining about space-tab.
15234 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15235 # splitting by setting IFS to empty value.)
15236 IFS=" "" $as_nl"
15237
15238 # Find who we are. Look in the path if we contain no directory separator.
15239 as_myself=
15240 case $0 in #((
15241 *[\\/]* ) as_myself=$0 ;;
15242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243 for as_dir in $PATH
15244 do
15245 IFS=$as_save_IFS
15246 test -z "$as_dir" && as_dir=.
15247 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15248 done
15249 IFS=$as_save_IFS
15250
15251 ;;
15252 esac
15253 # We did not find ourselves, most probably we were run as `sh COMMAND'
15254 # in which case we are not to be found in the path.
15255 if test "x$as_myself" = x; then
15256 as_myself=$0
15257 fi
15258 if test ! -f "$as_myself"; then
15259 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15260 exit 1
15261 fi
15262
15263 # Unset variables that we do not need and which cause bugs (e.g. in
15264 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15265 # suppresses any "Segmentation fault" message there. '((' could
15266 # trigger a bug in pdksh 5.2.14.
15267 for as_var in BASH_ENV ENV MAIL MAILPATH
15268 do eval test x\${$as_var+set} = xset \
15269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15270 done
15271 PS1='$ '
15272 PS2='> '
15273 PS4='+ '
15274
15275 # NLS nuisances.
15276 LC_ALL=C
15277 export LC_ALL
15278 LANGUAGE=C
15279 export LANGUAGE
15280
15281 # CDPATH.
15282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15283
15284
15285 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15286 # ----------------------------------------
15287 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15288 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15289 # script with STATUS, using 1 if that was 0.
15290 as_fn_error ()
15291 {
15292 as_status=$1; test $as_status -eq 0 && as_status=1
15293 if test "$4"; then
15294 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15295 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15296 fi
15297 $as_echo "$as_me: error: $2" >&2
15298 as_fn_exit $as_status
15299 } # as_fn_error
15300
15301
15302 # as_fn_set_status STATUS
15303 # -----------------------
15304 # Set $? to STATUS, without forking.
15305 as_fn_set_status ()
15306 {
15307 return $1
15308 } # as_fn_set_status
15309
15310 # as_fn_exit STATUS
15311 # -----------------
15312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15313 as_fn_exit ()
15314 {
15315 set +e
15316 as_fn_set_status $1
15317 exit $1
15318 } # as_fn_exit
15319
15320 # as_fn_unset VAR
15321 # ---------------
15322 # Portably unset VAR.
15323 as_fn_unset ()
15324 {
15325 { eval $1=; unset $1;}
15326 }
15327 as_unset=as_fn_unset
15328 # as_fn_append VAR VALUE
15329 # ----------------------
15330 # Append the text in VALUE to the end of the definition contained in VAR. Take
15331 # advantage of any shell optimizations that allow amortized linear growth over
15332 # repeated appends, instead of the typical quadratic growth present in naive
15333 # implementations.
15334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15335 eval 'as_fn_append ()
15336 {
15337 eval $1+=\$2
15338 }'
15339 else
15340 as_fn_append ()
15341 {
15342 eval $1=\$$1\$2
15343 }
15344 fi # as_fn_append
15345
15346 # as_fn_arith ARG...
15347 # ------------------
15348 # Perform arithmetic evaluation on the ARGs, and store the result in the
15349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15350 # must be portable across $(()) and expr.
15351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15352 eval 'as_fn_arith ()
15353 {
15354 as_val=$(( $* ))
15355 }'
15356 else
15357 as_fn_arith ()
15358 {
15359 as_val=`expr "$@" || test $? -eq 1`
15360 }
15361 fi # as_fn_arith
15362
15363
15364 if expr a : '\(a\)' >/dev/null 2>&1 &&
15365 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15366 as_expr=expr
15367 else
15368 as_expr=false
15369 fi
15370
15371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15372 as_basename=basename
15373 else
15374 as_basename=false
15375 fi
15376
15377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15378 as_dirname=dirname
15379 else
15380 as_dirname=false
15381 fi
15382
15383 as_me=`$as_basename -- "$0" ||
15384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15385 X"$0" : 'X\(//\)$' \| \
15386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15387 $as_echo X/"$0" |
15388 sed '/^.*\/\([^/][^/]*\)\/*$/{
15389 s//\1/
15390 q
15391 }
15392 /^X\/\(\/\/\)$/{
15393 s//\1/
15394 q
15395 }
15396 /^X\/\(\/\).*/{
15397 s//\1/
15398 q
15399 }
15400 s/.*/./; q'`
15401
15402 # Avoid depending upon Character Ranges.
15403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15406 as_cr_digits='0123456789'
15407 as_cr_alnum=$as_cr_Letters$as_cr_digits
15408
15409 ECHO_C= ECHO_N= ECHO_T=
15410 case `echo -n x` in #(((((
15411 -n*)
15412 case `echo 'xy\c'` in
15413 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15414 xy) ECHO_C='\c';;
15415 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15416 ECHO_T=' ';;
15417 esac;;
15418 *)
15419 ECHO_N='-n';;
15420 esac
15421
15422 rm -f conf$$ conf$$.exe conf$$.file
15423 if test -d conf$$.dir; then
15424 rm -f conf$$.dir/conf$$.file
15425 else
15426 rm -f conf$$.dir
15427 mkdir conf$$.dir 2>/dev/null
15428 fi
15429 if (echo >conf$$.file) 2>/dev/null; then
15430 if ln -s conf$$.file conf$$ 2>/dev/null; then
15431 as_ln_s='ln -s'
15432 # ... but there are two gotchas:
15433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15435 # In both cases, we have to default to `cp -pR'.
15436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15437 as_ln_s='cp -pR'
15438 elif ln conf$$.file conf$$ 2>/dev/null; then
15439 as_ln_s=ln
15440 else
15441 as_ln_s='cp -pR'
15442 fi
15443 else
15444 as_ln_s='cp -pR'
15445 fi
15446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15447 rmdir conf$$.dir 2>/dev/null
15448
15449
15450 # as_fn_mkdir_p
15451 # -------------
15452 # Create "$as_dir" as a directory, including parents if necessary.
15453 as_fn_mkdir_p ()
15454 {
15455
15456 case $as_dir in #(
15457 -*) as_dir=./$as_dir;;
15458 esac
15459 test -d "$as_dir" || eval $as_mkdir_p || {
15460 as_dirs=
15461 while :; do
15462 case $as_dir in #(
15463 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15464 *) as_qdir=$as_dir;;
15465 esac
15466 as_dirs="'$as_qdir' $as_dirs"
15467 as_dir=`$as_dirname -- "$as_dir" ||
15468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15469 X"$as_dir" : 'X\(//\)[^/]' \| \
15470 X"$as_dir" : 'X\(//\)$' \| \
15471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15472 $as_echo X"$as_dir" |
15473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15474 s//\1/
15475 q
15476 }
15477 /^X\(\/\/\)[^/].*/{
15478 s//\1/
15479 q
15480 }
15481 /^X\(\/\/\)$/{
15482 s//\1/
15483 q
15484 }
15485 /^X\(\/\).*/{
15486 s//\1/
15487 q
15488 }
15489 s/.*/./; q'`
15490 test -d "$as_dir" && break
15491 done
15492 test -z "$as_dirs" || eval "mkdir $as_dirs"
15493 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15494
15495
15496 } # as_fn_mkdir_p
15497 if mkdir -p . 2>/dev/null; then
15498 as_mkdir_p='mkdir -p "$as_dir"'
15499 else
15500 test -d ./-p && rmdir ./-p
15501 as_mkdir_p=false
15502 fi
15503
15504
15505 # as_fn_executable_p FILE
15506 # -----------------------
15507 # Test if FILE is an executable regular file.
15508 as_fn_executable_p ()
15509 {
15510 test -f "$1" && test -x "$1"
15511 } # as_fn_executable_p
15512 as_test_x='test -x'
15513 as_executable_p=as_fn_executable_p
15514
15515 # Sed expression to map a string onto a valid CPP name.
15516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15517
15518 # Sed expression to map a string onto a valid variable name.
15519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15520
15521
15522 exec 6>&1
15523 ## ----------------------------------- ##
15524 ## Main body of $CONFIG_STATUS script. ##
15525 ## ----------------------------------- ##
15526 _ASEOF
15527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15528
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 # Save the log message, to keep $0 and so on meaningful, and to
15531 # report actual input values of CONFIG_FILES etc. instead of their
15532 # values after options handling.
15533 ac_log="
15534 This file was extended by ircd-hybrid $as_me TRUNK, which was
15535 generated by GNU Autoconf 2.69. Invocation command line was
15536
15537 CONFIG_FILES = $CONFIG_FILES
15538 CONFIG_HEADERS = $CONFIG_HEADERS
15539 CONFIG_LINKS = $CONFIG_LINKS
15540 CONFIG_COMMANDS = $CONFIG_COMMANDS
15541 $ $0 $@
15542
15543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15544 "
15545
15546 _ACEOF
15547
15548 case $ac_config_files in *"
15549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15550 esac
15551
15552 case $ac_config_headers in *"
15553 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15554 esac
15555
15556
15557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558 # Files that config.status was made for.
15559 config_files="$ac_config_files"
15560 config_headers="$ac_config_headers"
15561 config_commands="$ac_config_commands"
15562
15563 _ACEOF
15564
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 ac_cs_usage="\
15567 \`$as_me' instantiates files and other configuration actions
15568 from templates according to the current configuration. Unless the files
15569 and actions are specified as TAGs, all are instantiated by default.
15570
15571 Usage: $0 [OPTION]... [TAG]...
15572
15573 -h, --help print this help, then exit
15574 -V, --version print version number and configuration settings, then exit
15575 --config print configuration, then exit
15576 -q, --quiet, --silent
15577 do not print progress messages
15578 -d, --debug don't remove temporary files
15579 --recheck update $as_me by reconfiguring in the same conditions
15580 --file=FILE[:TEMPLATE]
15581 instantiate the configuration file FILE
15582 --header=FILE[:TEMPLATE]
15583 instantiate the configuration header FILE
15584
15585 Configuration files:
15586 $config_files
15587
15588 Configuration headers:
15589 $config_headers
15590
15591 Configuration commands:
15592 $config_commands
15593
15594 Report bugs to <bugs@ircd-hybrid.org>."
15595
15596 _ACEOF
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15599 ac_cs_version="\\
15600 ircd-hybrid config.status TRUNK
15601 configured by $0, generated by GNU Autoconf 2.69,
15602 with options \\"\$ac_cs_config\\"
15603
15604 Copyright (C) 2012 Free Software Foundation, Inc.
15605 This config.status script is free software; the Free Software Foundation
15606 gives unlimited permission to copy, distribute and modify it."
15607
15608 ac_pwd='$ac_pwd'
15609 srcdir='$srcdir'
15610 INSTALL='$INSTALL'
15611 MKDIR_P='$MKDIR_P'
15612 AWK='$AWK'
15613 test -n "\$AWK" || AWK=awk
15614 _ACEOF
15615
15616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15617 # The default lists apply if the user does not specify any file.
15618 ac_need_defaults=:
15619 while test $# != 0
15620 do
15621 case $1 in
15622 --*=?*)
15623 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15624 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15625 ac_shift=:
15626 ;;
15627 --*=)
15628 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15629 ac_optarg=
15630 ac_shift=:
15631 ;;
15632 *)
15633 ac_option=$1
15634 ac_optarg=$2
15635 ac_shift=shift
15636 ;;
15637 esac
15638
15639 case $ac_option in
15640 # Handling of the options.
15641 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15642 ac_cs_recheck=: ;;
15643 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15644 $as_echo "$ac_cs_version"; exit ;;
15645 --config | --confi | --conf | --con | --co | --c )
15646 $as_echo "$ac_cs_config"; exit ;;
15647 --debug | --debu | --deb | --de | --d | -d )
15648 debug=: ;;
15649 --file | --fil | --fi | --f )
15650 $ac_shift
15651 case $ac_optarg in
15652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15653 '') as_fn_error $? "missing file argument" ;;
15654 esac
15655 as_fn_append CONFIG_FILES " '$ac_optarg'"
15656 ac_need_defaults=false;;
15657 --header | --heade | --head | --hea )
15658 $ac_shift
15659 case $ac_optarg in
15660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15661 esac
15662 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15663 ac_need_defaults=false;;
15664 --he | --h)
15665 # Conflict between --help and --header
15666 as_fn_error $? "ambiguous option: \`$1'
15667 Try \`$0 --help' for more information.";;
15668 --help | --hel | -h )
15669 $as_echo "$ac_cs_usage"; exit ;;
15670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15672 ac_cs_silent=: ;;
15673
15674 # This is an error.
15675 -*) as_fn_error $? "unrecognized option: \`$1'
15676 Try \`$0 --help' for more information." ;;
15677
15678 *) as_fn_append ac_config_targets " $1"
15679 ac_need_defaults=false ;;
15680
15681 esac
15682 shift
15683 done
15684
15685 ac_configure_extra_args=
15686
15687 if $ac_cs_silent; then
15688 exec 6>/dev/null
15689 ac_configure_extra_args="$ac_configure_extra_args --silent"
15690 fi
15691
15692 _ACEOF
15693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15694 if \$ac_cs_recheck; then
15695 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15696 shift
15697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15698 CONFIG_SHELL='$SHELL'
15699 export CONFIG_SHELL
15700 exec "\$@"
15701 fi
15702
15703 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 exec 5>>config.log
15706 {
15707 echo
15708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15709 ## Running $as_me. ##
15710 _ASBOX
15711 $as_echo "$ac_log"
15712 } >&5
15713
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15716 #
15717 # INIT-COMMANDS
15718 #
15719 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15720
15721
15722 # The HP-UX ksh and POSIX shell print the target directory to stdout
15723 # if CDPATH is set.
15724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15725
15726 sed_quote_subst='$sed_quote_subst'
15727 double_quote_subst='$double_quote_subst'
15728 delay_variable_subst='$delay_variable_subst'
15729 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15730 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15731 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15732 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15733 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15734 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15735 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15736 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15737 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15738 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15739 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15740 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15741 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15742 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15743 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15744 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15745 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15746 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15747 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15748 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15749 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15750 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15751 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15752 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15753 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15754 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15755 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15756 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15757 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15758 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15759 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15760 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15761 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15762 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15763 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15764 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15765 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15766 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15767 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15768 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15769 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15770 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15771 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15772 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15773 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15774 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15775 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15776 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15777 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15778 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15779 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15780 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15781 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15782 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15783 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15784 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15785 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15786 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15787 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15788 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15789 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15790 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15791 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15792 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15793 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15794 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15795 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15796 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15797 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15798 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15799 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15800 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15801 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15802 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15803 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15804 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15805 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15806 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15807 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15808 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15809 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15810 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15811 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15812 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15813 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15814 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15815 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15816 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15817 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15818 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15819 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15820 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15821 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15822 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15823 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15824 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15825 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15826 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15827 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15828 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15829 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15830 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15831 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15832 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15833 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15834 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15835 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15836 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15837 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15838 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15839 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15840 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15841 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15842 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15843 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15844 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15845 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15846 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15847 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15848 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15849 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15850 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15851 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15852 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15853 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15854 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15855 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15856 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15857 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15858 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15859
15860 LTCC='$LTCC'
15861 LTCFLAGS='$LTCFLAGS'
15862 compiler='$compiler_DEFAULT'
15863
15864 # A function that is used when there is no print builtin or printf.
15865 func_fallback_echo ()
15866 {
15867 eval 'cat <<_LTECHO_EOF
15868 \$1
15869 _LTECHO_EOF'
15870 }
15871
15872 # Quote evaled strings.
15873 for var in SHELL \
15874 ECHO \
15875 PATH_SEPARATOR \
15876 SED \
15877 GREP \
15878 EGREP \
15879 FGREP \
15880 LD \
15881 NM \
15882 LN_S \
15883 lt_SP2NL \
15884 lt_NL2SP \
15885 reload_flag \
15886 OBJDUMP \
15887 deplibs_check_method \
15888 file_magic_cmd \
15889 file_magic_glob \
15890 want_nocaseglob \
15891 DLLTOOL \
15892 sharedlib_from_linklib_cmd \
15893 AR \
15894 AR_FLAGS \
15895 archiver_list_spec \
15896 STRIP \
15897 RANLIB \
15898 CC \
15899 CFLAGS \
15900 compiler \
15901 lt_cv_sys_global_symbol_pipe \
15902 lt_cv_sys_global_symbol_to_cdecl \
15903 lt_cv_sys_global_symbol_to_c_name_address \
15904 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15905 nm_file_list_spec \
15906 lt_prog_compiler_no_builtin_flag \
15907 lt_prog_compiler_pic \
15908 lt_prog_compiler_wl \
15909 lt_prog_compiler_static \
15910 lt_cv_prog_compiler_c_o \
15911 need_locks \
15912 MANIFEST_TOOL \
15913 DSYMUTIL \
15914 NMEDIT \
15915 LIPO \
15916 OTOOL \
15917 OTOOL64 \
15918 shrext_cmds \
15919 export_dynamic_flag_spec \
15920 whole_archive_flag_spec \
15921 compiler_needs_object \
15922 with_gnu_ld \
15923 allow_undefined_flag \
15924 no_undefined_flag \
15925 hardcode_libdir_flag_spec \
15926 hardcode_libdir_separator \
15927 exclude_expsyms \
15928 include_expsyms \
15929 file_list_spec \
15930 variables_saved_for_relink \
15931 libname_spec \
15932 library_names_spec \
15933 soname_spec \
15934 install_override_mode \
15935 finish_eval \
15936 old_striplib \
15937 striplib; do
15938 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15939 *[\\\\\\\`\\"\\\$]*)
15940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15941 ;;
15942 *)
15943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15944 ;;
15945 esac
15946 done
15947
15948 # Double-quote double-evaled strings.
15949 for var in reload_cmds \
15950 old_postinstall_cmds \
15951 old_postuninstall_cmds \
15952 old_archive_cmds \
15953 extract_expsyms_cmds \
15954 old_archive_from_new_cmds \
15955 old_archive_from_expsyms_cmds \
15956 archive_cmds \
15957 archive_expsym_cmds \
15958 module_cmds \
15959 module_expsym_cmds \
15960 export_symbols_cmds \
15961 prelink_cmds \
15962 postlink_cmds \
15963 postinstall_cmds \
15964 postuninstall_cmds \
15965 finish_cmds \
15966 sys_lib_search_path_spec \
15967 sys_lib_dlsearch_path_spec; do
15968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15969 *[\\\\\\\`\\"\\\$]*)
15970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15971 ;;
15972 *)
15973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15974 ;;
15975 esac
15976 done
15977
15978 ac_aux_dir='$ac_aux_dir'
15979 xsi_shell='$xsi_shell'
15980 lt_shell_append='$lt_shell_append'
15981
15982 # See if we are running on zsh, and set the options which allow our
15983 # commands through without removal of \ escapes INIT.
15984 if test -n "\${ZSH_VERSION+set}" ; then
15985 setopt NO_GLOB_SUBST
15986 fi
15987
15988
15989 PACKAGE='$PACKAGE'
15990 VERSION='$VERSION'
15991 TIMESTAMP='$TIMESTAMP'
15992 RM='$RM'
15993 ofile='$ofile'
15994
15995
15996
15997
15998 _ACEOF
15999
16000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001
16002 # Handling of arguments.
16003 for ac_config_target in $ac_config_targets
16004 do
16005 case $ac_config_target in
16006 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16007 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16008 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16010 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16011 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16012 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16013 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16014 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16015 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16016 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16017
16018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16019 esac
16020 done
16021
16022
16023 # If the user did not use the arguments to specify the items to instantiate,
16024 # then the envvar interface is used. Set only those that are not.
16025 # We use the long form for the default assignment because of an extremely
16026 # bizarre bug on SunOS 4.1.3.
16027 if $ac_need_defaults; then
16028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16031 fi
16032
16033 # Have a temporary directory for convenience. Make it in the build tree
16034 # simply because there is no reason against having it here, and in addition,
16035 # creating and moving files from /tmp can sometimes cause problems.
16036 # Hook for its removal unless debugging.
16037 # Note that there is a small window in which the directory will not be cleaned:
16038 # after its creation but before its name has been assigned to `$tmp'.
16039 $debug ||
16040 {
16041 tmp= ac_tmp=
16042 trap 'exit_status=$?
16043 : "${ac_tmp:=$tmp}"
16044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16045 ' 0
16046 trap 'as_fn_exit 1' 1 2 13 15
16047 }
16048 # Create a (secure) tmp directory for tmp files.
16049
16050 {
16051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16052 test -d "$tmp"
16053 } ||
16054 {
16055 tmp=./conf$$-$RANDOM
16056 (umask 077 && mkdir "$tmp")
16057 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16058 ac_tmp=$tmp
16059
16060 # Set up the scripts for CONFIG_FILES section.
16061 # No need to generate them if there are no CONFIG_FILES.
16062 # This happens for instance with `./config.status config.h'.
16063 if test -n "$CONFIG_FILES"; then
16064
16065
16066 ac_cr=`echo X | tr X '\015'`
16067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16068 # But we know of no other shell where ac_cr would be empty at this
16069 # point, so we can use a bashism as a fallback.
16070 if test "x$ac_cr" = x; then
16071 eval ac_cr=\$\'\\r\'
16072 fi
16073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16075 ac_cs_awk_cr='\\r'
16076 else
16077 ac_cs_awk_cr=$ac_cr
16078 fi
16079
16080 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16081 _ACEOF
16082
16083
16084 {
16085 echo "cat >conf$$subs.awk <<_ACEOF" &&
16086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16087 echo "_ACEOF"
16088 } >conf$$subs.sh ||
16089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16091 ac_delim='%!_!# '
16092 for ac_last_try in false false false false false :; do
16093 . ./conf$$subs.sh ||
16094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16095
16096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16097 if test $ac_delim_n = $ac_delim_num; then
16098 break
16099 elif $ac_last_try; then
16100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16101 else
16102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16103 fi
16104 done
16105 rm -f conf$$subs.sh
16106
16107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16108 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16109 _ACEOF
16110 sed -n '
16111 h
16112 s/^/S["/; s/!.*/"]=/
16113 p
16114 g
16115 s/^[^!]*!//
16116 :repl
16117 t repl
16118 s/'"$ac_delim"'$//
16119 t delim
16120 :nl
16121 h
16122 s/\(.\{148\}\)..*/\1/
16123 t more1
16124 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16125 p
16126 n
16127 b repl
16128 :more1
16129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16130 p
16131 g
16132 s/.\{148\}//
16133 t nl
16134 :delim
16135 h
16136 s/\(.\{148\}\)..*/\1/
16137 t more2
16138 s/["\\]/\\&/g; s/^/"/; s/$/"/
16139 p
16140 b
16141 :more2
16142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16143 p
16144 g
16145 s/.\{148\}//
16146 t delim
16147 ' <conf$$subs.awk | sed '
16148 /^[^""]/{
16149 N
16150 s/\n//
16151 }
16152 ' >>$CONFIG_STATUS || ac_write_fail=1
16153 rm -f conf$$subs.awk
16154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 _ACAWK
16156 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16157 for (key in S) S_is_set[key] = 1
16158 FS = ""
16159
16160 }
16161 {
16162 line = $ 0
16163 nfields = split(line, field, "@")
16164 substed = 0
16165 len = length(field[1])
16166 for (i = 2; i < nfields; i++) {
16167 key = field[i]
16168 keylen = length(key)
16169 if (S_is_set[key]) {
16170 value = S[key]
16171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16172 len += length(value) + length(field[++i])
16173 substed = 1
16174 } else
16175 len += 1 + keylen
16176 }
16177
16178 print line
16179 }
16180
16181 _ACAWK
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16186 else
16187 cat
16188 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16190 _ACEOF
16191
16192 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16193 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16194 # trailing colons and then remove the whole line if VPATH becomes empty
16195 # (actually we leave an empty line to preserve line numbers).
16196 if test "x$srcdir" = x.; then
16197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16198 h
16199 s///
16200 s/^/:/
16201 s/[ ]*$/:/
16202 s/:\$(srcdir):/:/g
16203 s/:\${srcdir}:/:/g
16204 s/:@srcdir@:/:/g
16205 s/^:*//
16206 s/:*$//
16207 x
16208 s/\(=[ ]*\).*/\1/
16209 G
16210 s/\n//
16211 s/^[^=]*=[ ]*$//
16212 }'
16213 fi
16214
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 fi # test -n "$CONFIG_FILES"
16217
16218 # Set up the scripts for CONFIG_HEADERS section.
16219 # No need to generate them if there are no CONFIG_HEADERS.
16220 # This happens for instance with `./config.status Makefile'.
16221 if test -n "$CONFIG_HEADERS"; then
16222 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16223 BEGIN {
16224 _ACEOF
16225
16226 # Transform confdefs.h into an awk script `defines.awk', embedded as
16227 # here-document in config.status, that substitutes the proper values into
16228 # config.h.in to produce config.h.
16229
16230 # Create a delimiter string that does not exist in confdefs.h, to ease
16231 # handling of long lines.
16232 ac_delim='%!_!# '
16233 for ac_last_try in false false :; do
16234 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16235 if test -z "$ac_tt"; then
16236 break
16237 elif $ac_last_try; then
16238 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16239 else
16240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16241 fi
16242 done
16243
16244 # For the awk script, D is an array of macro values keyed by name,
16245 # likewise P contains macro parameters if any. Preserve backslash
16246 # newline sequences.
16247
16248 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16249 sed -n '
16250 s/.\{148\}/&'"$ac_delim"'/g
16251 t rset
16252 :rset
16253 s/^[ ]*#[ ]*define[ ][ ]*/ /
16254 t def
16255 d
16256 :def
16257 s/\\$//
16258 t bsnl
16259 s/["\\]/\\&/g
16260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16261 D["\1"]=" \3"/p
16262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16263 d
16264 :bsnl
16265 s/["\\]/\\&/g
16266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16267 D["\1"]=" \3\\\\\\n"\\/p
16268 t cont
16269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16270 t cont
16271 d
16272 :cont
16273 n
16274 s/.\{148\}/&'"$ac_delim"'/g
16275 t clear
16276 :clear
16277 s/\\$//
16278 t bsnlc
16279 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16280 d
16281 :bsnlc
16282 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16283 b cont
16284 ' <confdefs.h | sed '
16285 s/'"$ac_delim"'/"\\\
16286 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16287
16288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16289 for (key in D) D_is_set[key] = 1
16290 FS = ""
16291 }
16292 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16293 line = \$ 0
16294 split(line, arg, " ")
16295 if (arg[1] == "#") {
16296 defundef = arg[2]
16297 mac1 = arg[3]
16298 } else {
16299 defundef = substr(arg[1], 2)
16300 mac1 = arg[2]
16301 }
16302 split(mac1, mac2, "(") #)
16303 macro = mac2[1]
16304 prefix = substr(line, 1, index(line, defundef) - 1)
16305 if (D_is_set[macro]) {
16306 # Preserve the white space surrounding the "#".
16307 print prefix "define", macro P[macro] D[macro]
16308 next
16309 } else {
16310 # Replace #undef with comments. This is necessary, for example,
16311 # in the case of _POSIX_SOURCE, which is predefined and required
16312 # on some systems where configure will not decide to define it.
16313 if (defundef == "undef") {
16314 print "/*", prefix defundef, macro, "*/"
16315 next
16316 }
16317 }
16318 }
16319 { print }
16320 _ACAWK
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16324 fi # test -n "$CONFIG_HEADERS"
16325
16326
16327 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16328 shift
16329 for ac_tag
16330 do
16331 case $ac_tag in
16332 :[FHLC]) ac_mode=$ac_tag; continue;;
16333 esac
16334 case $ac_mode$ac_tag in
16335 :[FHL]*:*);;
16336 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16337 :[FH]-) ac_tag=-:-;;
16338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16339 esac
16340 ac_save_IFS=$IFS
16341 IFS=:
16342 set x $ac_tag
16343 IFS=$ac_save_IFS
16344 shift
16345 ac_file=$1
16346 shift
16347
16348 case $ac_mode in
16349 :L) ac_source=$1;;
16350 :[FH])
16351 ac_file_inputs=
16352 for ac_f
16353 do
16354 case $ac_f in
16355 -) ac_f="$ac_tmp/stdin";;
16356 *) # Look for the file first in the build tree, then in the source tree
16357 # (if the path is not absolute). The absolute path cannot be DOS-style,
16358 # because $ac_f cannot contain `:'.
16359 test -f "$ac_f" ||
16360 case $ac_f in
16361 [\\/$]*) false;;
16362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16363 esac ||
16364 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16365 esac
16366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16367 as_fn_append ac_file_inputs " '$ac_f'"
16368 done
16369
16370 # Let's still pretend it is `configure' which instantiates (i.e., don't
16371 # use $as_me), people would be surprised to read:
16372 # /* config.h. Generated by config.status. */
16373 configure_input='Generated from '`
16374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16375 `' by configure.'
16376 if test x"$ac_file" != x-; then
16377 configure_input="$ac_file. $configure_input"
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16379 $as_echo "$as_me: creating $ac_file" >&6;}
16380 fi
16381 # Neutralize special characters interpreted by sed in replacement strings.
16382 case $configure_input in #(
16383 *\&* | *\|* | *\\* )
16384 ac_sed_conf_input=`$as_echo "$configure_input" |
16385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16386 *) ac_sed_conf_input=$configure_input;;
16387 esac
16388
16389 case $ac_tag in
16390 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16392 esac
16393 ;;
16394 esac
16395
16396 ac_dir=`$as_dirname -- "$ac_file" ||
16397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$ac_file" : 'X\(//\)[^/]' \| \
16399 X"$ac_file" : 'X\(//\)$' \| \
16400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16401 $as_echo X"$ac_file" |
16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\/\)[^/].*/{
16407 s//\1/
16408 q
16409 }
16410 /^X\(\/\/\)$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\).*/{
16415 s//\1/
16416 q
16417 }
16418 s/.*/./; q'`
16419 as_dir="$ac_dir"; as_fn_mkdir_p
16420 ac_builddir=.
16421
16422 case "$ac_dir" in
16423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16424 *)
16425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16426 # A ".." for each directory in $ac_dir_suffix.
16427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16428 case $ac_top_builddir_sub in
16429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16431 esac ;;
16432 esac
16433 ac_abs_top_builddir=$ac_pwd
16434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16435 # for backward compatibility:
16436 ac_top_builddir=$ac_top_build_prefix
16437
16438 case $srcdir in
16439 .) # We are building in place.
16440 ac_srcdir=.
16441 ac_top_srcdir=$ac_top_builddir_sub
16442 ac_abs_top_srcdir=$ac_pwd ;;
16443 [\\/]* | ?:[\\/]* ) # Absolute name.
16444 ac_srcdir=$srcdir$ac_dir_suffix;
16445 ac_top_srcdir=$srcdir
16446 ac_abs_top_srcdir=$srcdir ;;
16447 *) # Relative name.
16448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16449 ac_top_srcdir=$ac_top_build_prefix$srcdir
16450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16451 esac
16452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16453
16454
16455 case $ac_mode in
16456 :F)
16457 #
16458 # CONFIG_FILE
16459 #
16460
16461 case $INSTALL in
16462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16464 esac
16465 ac_MKDIR_P=$MKDIR_P
16466 case $MKDIR_P in
16467 [\\/$]* | ?:[\\/]* ) ;;
16468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16469 esac
16470 _ACEOF
16471
16472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16473 # If the template does not know about datarootdir, expand it.
16474 # FIXME: This hack should be removed a few years after 2.60.
16475 ac_datarootdir_hack=; ac_datarootdir_seen=
16476 ac_sed_dataroot='
16477 /datarootdir/ {
16478 p
16479 q
16480 }
16481 /@datadir@/p
16482 /@docdir@/p
16483 /@infodir@/p
16484 /@localedir@/p
16485 /@mandir@/p'
16486 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16487 *datarootdir*) ac_datarootdir_seen=yes;;
16488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16490 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16491 _ACEOF
16492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493 ac_datarootdir_hack='
16494 s&@datadir@&$datadir&g
16495 s&@docdir@&$docdir&g
16496 s&@infodir@&$infodir&g
16497 s&@localedir@&$localedir&g
16498 s&@mandir@&$mandir&g
16499 s&\\\${datarootdir}&$datarootdir&g' ;;
16500 esac
16501 _ACEOF
16502
16503 # Neutralize VPATH when `$srcdir' = `.'.
16504 # Shell code in configure.ac might set extrasub.
16505 # FIXME: do we really want to maintain this feature?
16506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16507 ac_sed_extra="$ac_vpsub
16508 $extrasub
16509 _ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 :t
16512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16513 s|@configure_input@|$ac_sed_conf_input|;t t
16514 s&@top_builddir@&$ac_top_builddir_sub&;t t
16515 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16516 s&@srcdir@&$ac_srcdir&;t t
16517 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16518 s&@top_srcdir@&$ac_top_srcdir&;t t
16519 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16520 s&@builddir@&$ac_builddir&;t t
16521 s&@abs_builddir@&$ac_abs_builddir&;t t
16522 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16523 s&@INSTALL@&$ac_INSTALL&;t t
16524 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16525 $ac_datarootdir_hack
16526 "
16527 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16528 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16529
16530 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16531 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16533 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16535 which seems to be undefined. Please make sure it is defined" >&5
16536 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16537 which seems to be undefined. Please make sure it is defined" >&2;}
16538
16539 rm -f "$ac_tmp/stdin"
16540 case $ac_file in
16541 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16542 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16543 esac \
16544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16545 ;;
16546 :H)
16547 #
16548 # CONFIG_HEADER
16549 #
16550 if test x"$ac_file" != x-; then
16551 {
16552 $as_echo "/* $configure_input */" \
16553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16554 } >"$ac_tmp/config.h" \
16555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16556 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16558 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16559 else
16560 rm -f "$ac_file"
16561 mv "$ac_tmp/config.h" "$ac_file" \
16562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16563 fi
16564 else
16565 $as_echo "/* $configure_input */" \
16566 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16567 || as_fn_error $? "could not create -" "$LINENO" 5
16568 fi
16569 # Compute "$ac_file"'s index in $config_headers.
16570 _am_arg="$ac_file"
16571 _am_stamp_count=1
16572 for _am_header in $config_headers :; do
16573 case $_am_header in
16574 $_am_arg | $_am_arg:* )
16575 break ;;
16576 * )
16577 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16578 esac
16579 done
16580 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16581 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16582 X"$_am_arg" : 'X\(//\)[^/]' \| \
16583 X"$_am_arg" : 'X\(//\)$' \| \
16584 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16585 $as_echo X"$_am_arg" |
16586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16587 s//\1/
16588 q
16589 }
16590 /^X\(\/\/\)[^/].*/{
16591 s//\1/
16592 q
16593 }
16594 /^X\(\/\/\)$/{
16595 s//\1/
16596 q
16597 }
16598 /^X\(\/\).*/{
16599 s//\1/
16600 q
16601 }
16602 s/.*/./; q'`/stamp-h$_am_stamp_count
16603 ;;
16604
16605 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16606 $as_echo "$as_me: executing $ac_file commands" >&6;}
16607 ;;
16608 esac
16609
16610
16611 case $ac_file$ac_mode in
16612 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16613 # Older Autoconf quotes --file arguments for eval, but not when files
16614 # are listed without --file. Let's play safe and only enable the eval
16615 # if we detect the quoting.
16616 case $CONFIG_FILES in
16617 *\'*) eval set x "$CONFIG_FILES" ;;
16618 *) set x $CONFIG_FILES ;;
16619 esac
16620 shift
16621 for mf
16622 do
16623 # Strip MF so we end up with the name of the file.
16624 mf=`echo "$mf" | sed -e 's/:.*$//'`
16625 # Check whether this is an Automake generated Makefile or not.
16626 # We used to match only the files named 'Makefile.in', but
16627 # some people rename them; so instead we look at the file content.
16628 # Grep'ing the first line is not enough: some people post-process
16629 # each Makefile.in and add a new line on top of each file to say so.
16630 # Grep'ing the whole file is not good either: AIX grep has a line
16631 # limit of 2048, but all sed's we know have understand at least 4000.
16632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16633 dirpart=`$as_dirname -- "$mf" ||
16634 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16635 X"$mf" : 'X\(//\)[^/]' \| \
16636 X"$mf" : 'X\(//\)$' \| \
16637 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16638 $as_echo X"$mf" |
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16640 s//\1/
16641 q
16642 }
16643 /^X\(\/\/\)[^/].*/{
16644 s//\1/
16645 q
16646 }
16647 /^X\(\/\/\)$/{
16648 s//\1/
16649 q
16650 }
16651 /^X\(\/\).*/{
16652 s//\1/
16653 q
16654 }
16655 s/.*/./; q'`
16656 else
16657 continue
16658 fi
16659 # Extract the definition of DEPDIR, am__include, and am__quote
16660 # from the Makefile without running 'make'.
16661 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16662 test -z "$DEPDIR" && continue
16663 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16664 test -z "$am__include" && continue
16665 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16666 # Find all dependency output files, they are included files with
16667 # $(DEPDIR) in their names. We invoke sed twice because it is the
16668 # simplest approach to changing $(DEPDIR) to its actual value in the
16669 # expansion.
16670 for file in `sed -n "
16671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16673 # Make sure the directory exists.
16674 test -f "$dirpart/$file" && continue
16675 fdir=`$as_dirname -- "$file" ||
16676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$file" : 'X\(//\)[^/]' \| \
16678 X"$file" : 'X\(//\)$' \| \
16679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16680 $as_echo X"$file" |
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\/\)$/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\).*/{
16694 s//\1/
16695 q
16696 }
16697 s/.*/./; q'`
16698 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16699 # echo "creating $dirpart/$file"
16700 echo '# dummy' > "$dirpart/$file"
16701 done
16702 done
16703 }
16704 ;;
16705 "libtool":C)
16706
16707 # See if we are running on zsh, and set the options which allow our
16708 # commands through without removal of \ escapes.
16709 if test -n "${ZSH_VERSION+set}" ; then
16710 setopt NO_GLOB_SUBST
16711 fi
16712
16713 cfgfile="${ofile}T"
16714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16715 $RM "$cfgfile"
16716
16717 cat <<_LT_EOF >> "$cfgfile"
16718 #! $SHELL
16719
16720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16724 #
16725 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16726 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16727 # Foundation, Inc.
16728 # Written by Gordon Matzigkeit, 1996
16729 #
16730 # This file is part of GNU Libtool.
16731 #
16732 # GNU Libtool is free software; you can redistribute it and/or
16733 # modify it under the terms of the GNU General Public License as
16734 # published by the Free Software Foundation; either version 2 of
16735 # the License, or (at your option) any later version.
16736 #
16737 # As a special exception to the GNU General Public License,
16738 # if you distribute this file as part of a program or library that
16739 # is built using GNU Libtool, you may include this file under the
16740 # same distribution terms that you use for the rest of that program.
16741 #
16742 # GNU Libtool is distributed in the hope that it will be useful,
16743 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16745 # GNU General Public License for more details.
16746 #
16747 # You should have received a copy of the GNU General Public License
16748 # along with GNU Libtool; see the file COPYING. If not, a copy
16749 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16750 # obtained by writing to the Free Software Foundation, Inc.,
16751 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16752
16753
16754 # The names of the tagged configurations supported by this script.
16755 available_tags=""
16756
16757 # ### BEGIN LIBTOOL CONFIG
16758
16759 # Which release of libtool.m4 was used?
16760 macro_version=$macro_version
16761 macro_revision=$macro_revision
16762
16763 # Whether or not to build static libraries.
16764 build_old_libs=$enable_static
16765
16766 # Whether or not to build shared libraries.
16767 build_libtool_libs=$enable_shared
16768
16769 # What type of objects to build.
16770 pic_mode=$pic_mode
16771
16772 # Whether or not to optimize for fast installation.
16773 fast_install=$enable_fast_install
16774
16775 # Shell to use when invoking shell scripts.
16776 SHELL=$lt_SHELL
16777
16778 # An echo program that protects backslashes.
16779 ECHO=$lt_ECHO
16780
16781 # The PATH separator for the build system.
16782 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16783
16784 # The host system.
16785 host_alias=$host_alias
16786 host=$host
16787 host_os=$host_os
16788
16789 # The build system.
16790 build_alias=$build_alias
16791 build=$build
16792 build_os=$build_os
16793
16794 # A sed program that does not truncate output.
16795 SED=$lt_SED
16796
16797 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16798 Xsed="\$SED -e 1s/^X//"
16799
16800 # A grep program that handles long lines.
16801 GREP=$lt_GREP
16802
16803 # An ERE matcher.
16804 EGREP=$lt_EGREP
16805
16806 # A literal string matcher.
16807 FGREP=$lt_FGREP
16808
16809 # A BSD- or MS-compatible name lister.
16810 NM=$lt_NM
16811
16812 # Whether we need soft or hard links.
16813 LN_S=$lt_LN_S
16814
16815 # What is the maximum length of a command?
16816 max_cmd_len=$max_cmd_len
16817
16818 # Object file suffix (normally "o").
16819 objext=$ac_objext
16820
16821 # Executable file suffix (normally "").
16822 exeext=$exeext
16823
16824 # whether the shell understands "unset".
16825 lt_unset=$lt_unset
16826
16827 # turn spaces into newlines.
16828 SP2NL=$lt_lt_SP2NL
16829
16830 # turn newlines into spaces.
16831 NL2SP=$lt_lt_NL2SP
16832
16833 # convert \$build file names to \$host format.
16834 to_host_file_cmd=$lt_cv_to_host_file_cmd
16835
16836 # convert \$build files to toolchain format.
16837 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16838
16839 # An object symbol dumper.
16840 OBJDUMP=$lt_OBJDUMP
16841
16842 # Method to check whether dependent libraries are shared objects.
16843 deplibs_check_method=$lt_deplibs_check_method
16844
16845 # Command to use when deplibs_check_method = "file_magic".
16846 file_magic_cmd=$lt_file_magic_cmd
16847
16848 # How to find potential files when deplibs_check_method = "file_magic".
16849 file_magic_glob=$lt_file_magic_glob
16850
16851 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16852 want_nocaseglob=$lt_want_nocaseglob
16853
16854 # DLL creation program.
16855 DLLTOOL=$lt_DLLTOOL
16856
16857 # Command to associate shared and link libraries.
16858 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16859
16860 # The archiver.
16861 AR=$lt_AR
16862
16863 # Flags to create an archive.
16864 AR_FLAGS=$lt_AR_FLAGS
16865
16866 # How to feed a file listing to the archiver.
16867 archiver_list_spec=$lt_archiver_list_spec
16868
16869 # A symbol stripping program.
16870 STRIP=$lt_STRIP
16871
16872 # Commands used to install an old-style archive.
16873 RANLIB=$lt_RANLIB
16874 old_postinstall_cmds=$lt_old_postinstall_cmds
16875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16876
16877 # Whether to use a lock for old archive extraction.
16878 lock_old_archive_extraction=$lock_old_archive_extraction
16879
16880 # A C compiler.
16881 LTCC=$lt_CC
16882
16883 # LTCC compiler flags.
16884 LTCFLAGS=$lt_CFLAGS
16885
16886 # Take the output of nm and produce a listing of raw symbols and C names.
16887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16888
16889 # Transform the output of nm in a proper C declaration.
16890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16891
16892 # Transform the output of nm in a C name address pair.
16893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16894
16895 # Transform the output of nm in a C name address pair when lib prefix is needed.
16896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16897
16898 # Specify filename containing input files for \$NM.
16899 nm_file_list_spec=$lt_nm_file_list_spec
16900
16901 # The root where to search for dependent libraries,and in which our libraries should be installed.
16902 lt_sysroot=$lt_sysroot
16903
16904 # The name of the directory that contains temporary libtool files.
16905 objdir=$objdir
16906
16907 # Used to examine libraries when file_magic_cmd begins with "file".
16908 MAGIC_CMD=$MAGIC_CMD
16909
16910 # Must we lock files when doing compilation?
16911 need_locks=$lt_need_locks
16912
16913 # Manifest tool.
16914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16915
16916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16917 DSYMUTIL=$lt_DSYMUTIL
16918
16919 # Tool to change global to local symbols on Mac OS X.
16920 NMEDIT=$lt_NMEDIT
16921
16922 # Tool to manipulate fat objects and archives on Mac OS X.
16923 LIPO=$lt_LIPO
16924
16925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16926 OTOOL=$lt_OTOOL
16927
16928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16929 OTOOL64=$lt_OTOOL64
16930
16931 # Old archive suffix (normally "a").
16932 libext=$libext
16933
16934 # Shared library suffix (normally ".so").
16935 shrext_cmds=$lt_shrext_cmds
16936
16937 # The commands to extract the exported symbol list from a shared archive.
16938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16939
16940 # Variables whose values should be saved in libtool wrapper scripts and
16941 # restored at link time.
16942 variables_saved_for_relink=$lt_variables_saved_for_relink
16943
16944 # Do we need the "lib" prefix for modules?
16945 need_lib_prefix=$need_lib_prefix
16946
16947 # Do we need a version for libraries?
16948 need_version=$need_version
16949
16950 # Library versioning type.
16951 version_type=$version_type
16952
16953 # Shared library runtime path variable.
16954 runpath_var=$runpath_var
16955
16956 # Shared library path variable.
16957 shlibpath_var=$shlibpath_var
16958
16959 # Is shlibpath searched before the hard-coded library search path?
16960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16961
16962 # Format of library name prefix.
16963 libname_spec=$lt_libname_spec
16964
16965 # List of archive names. First name is the real one, the rest are links.
16966 # The last name is the one that the linker finds with -lNAME
16967 library_names_spec=$lt_library_names_spec
16968
16969 # The coded name of the library, if different from the real name.
16970 soname_spec=$lt_soname_spec
16971
16972 # Permission mode override for installation of shared libraries.
16973 install_override_mode=$lt_install_override_mode
16974
16975 # Command to use after installation of a shared archive.
16976 postinstall_cmds=$lt_postinstall_cmds
16977
16978 # Command to use after uninstallation of a shared archive.
16979 postuninstall_cmds=$lt_postuninstall_cmds
16980
16981 # Commands used to finish a libtool library installation in a directory.
16982 finish_cmds=$lt_finish_cmds
16983
16984 # As "finish_cmds", except a single script fragment to be evaled but
16985 # not shown.
16986 finish_eval=$lt_finish_eval
16987
16988 # Whether we should hardcode library paths into libraries.
16989 hardcode_into_libs=$hardcode_into_libs
16990
16991 # Compile-time system search path for libraries.
16992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16993
16994 # Run-time system search path for libraries.
16995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16996
16997 # Whether dlopen is supported.
16998 dlopen_support=$enable_dlopen
16999
17000 # Whether dlopen of programs is supported.
17001 dlopen_self=$enable_dlopen_self
17002
17003 # Whether dlopen of statically linked programs is supported.
17004 dlopen_self_static=$enable_dlopen_self_static
17005
17006 # Commands to strip libraries.
17007 old_striplib=$lt_old_striplib
17008 striplib=$lt_striplib
17009
17010
17011 # The linker used to build libraries.
17012 LD=$lt_LD
17013
17014 # How to create reloadable object files.
17015 reload_flag=$lt_reload_flag
17016 reload_cmds=$lt_reload_cmds
17017
17018 # Commands used to build an old-style archive.
17019 old_archive_cmds=$lt_old_archive_cmds
17020
17021 # A language specific compiler.
17022 CC=$lt_compiler
17023
17024 # Is the compiler the GNU compiler?
17025 with_gcc=$GCC
17026
17027 # Compiler flag to turn off builtin functions.
17028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17029
17030 # Additional compiler flags for building library objects.
17031 pic_flag=$lt_lt_prog_compiler_pic
17032
17033 # How to pass a linker flag through the compiler.
17034 wl=$lt_lt_prog_compiler_wl
17035
17036 # Compiler flag to prevent dynamic linking.
17037 link_static_flag=$lt_lt_prog_compiler_static
17038
17039 # Does compiler simultaneously support -c and -o options?
17040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17041
17042 # Whether or not to add -lc for building shared libraries.
17043 build_libtool_need_lc=$archive_cmds_need_lc
17044
17045 # Whether or not to disallow shared libs when runtime libs are static.
17046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17047
17048 # Compiler flag to allow reflexive dlopens.
17049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17050
17051 # Compiler flag to generate shared objects directly from archives.
17052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17053
17054 # Whether the compiler copes with passing no objects directly.
17055 compiler_needs_object=$lt_compiler_needs_object
17056
17057 # Create an old-style archive from a shared archive.
17058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17059
17060 # Create a temporary old-style archive to link instead of a shared archive.
17061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17062
17063 # Commands used to build a shared archive.
17064 archive_cmds=$lt_archive_cmds
17065 archive_expsym_cmds=$lt_archive_expsym_cmds
17066
17067 # Commands used to build a loadable module if different from building
17068 # a shared archive.
17069 module_cmds=$lt_module_cmds
17070 module_expsym_cmds=$lt_module_expsym_cmds
17071
17072 # Whether we are building with GNU ld or not.
17073 with_gnu_ld=$lt_with_gnu_ld
17074
17075 # Flag that allows shared libraries with undefined symbols to be built.
17076 allow_undefined_flag=$lt_allow_undefined_flag
17077
17078 # Flag that enforces no undefined symbols.
17079 no_undefined_flag=$lt_no_undefined_flag
17080
17081 # Flag to hardcode \$libdir into a binary during linking.
17082 # This must work even if \$libdir does not exist
17083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17084
17085 # Whether we need a single "-rpath" flag with a separated argument.
17086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17087
17088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17089 # DIR into the resulting binary.
17090 hardcode_direct=$hardcode_direct
17091
17092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17093 # DIR into the resulting binary and the resulting library dependency is
17094 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17095 # library is relocated.
17096 hardcode_direct_absolute=$hardcode_direct_absolute
17097
17098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17099 # into the resulting binary.
17100 hardcode_minus_L=$hardcode_minus_L
17101
17102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17103 # into the resulting binary.
17104 hardcode_shlibpath_var=$hardcode_shlibpath_var
17105
17106 # Set to "yes" if building a shared library automatically hardcodes DIR
17107 # into the library and all subsequent libraries and executables linked
17108 # against it.
17109 hardcode_automatic=$hardcode_automatic
17110
17111 # Set to yes if linker adds runtime paths of dependent libraries
17112 # to runtime path list.
17113 inherit_rpath=$inherit_rpath
17114
17115 # Whether libtool must link a program against all its dependency libraries.
17116 link_all_deplibs=$link_all_deplibs
17117
17118 # Set to "yes" if exported symbols are required.
17119 always_export_symbols=$always_export_symbols
17120
17121 # The commands to list exported symbols.
17122 export_symbols_cmds=$lt_export_symbols_cmds
17123
17124 # Symbols that should not be listed in the preloaded symbols.
17125 exclude_expsyms=$lt_exclude_expsyms
17126
17127 # Symbols that must always be exported.
17128 include_expsyms=$lt_include_expsyms
17129
17130 # Commands necessary for linking programs (against libraries) with templates.
17131 prelink_cmds=$lt_prelink_cmds
17132
17133 # Commands necessary for finishing linking programs.
17134 postlink_cmds=$lt_postlink_cmds
17135
17136 # Specify filename containing input files.
17137 file_list_spec=$lt_file_list_spec
17138
17139 # How to hardcode a shared library path into an executable.
17140 hardcode_action=$hardcode_action
17141
17142 # ### END LIBTOOL CONFIG
17143
17144 _LT_EOF
17145
17146 case $host_os in
17147 aix3*)
17148 cat <<\_LT_EOF >> "$cfgfile"
17149 # AIX sometimes has problems with the GCC collect2 program. For some
17150 # reason, if we set the COLLECT_NAMES environment variable, the problems
17151 # vanish in a puff of smoke.
17152 if test "X${COLLECT_NAMES+set}" != Xset; then
17153 COLLECT_NAMES=
17154 export COLLECT_NAMES
17155 fi
17156 _LT_EOF
17157 ;;
17158 esac
17159
17160
17161 ltmain="$ac_aux_dir/ltmain.sh"
17162
17163
17164 # We use sed instead of cat because bash on DJGPP gets confused if
17165 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17166 # text mode, it properly converts lines to CR/LF. This bash problem
17167 # is reportedly fixed, but why not run on old versions too?
17168 sed '$q' "$ltmain" >> "$cfgfile" \
17169 || (rm -f "$cfgfile"; exit 1)
17170
17171 if test x"$xsi_shell" = xyes; then
17172 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17173 func_dirname ()\
17174 {\
17175 \ case ${1} in\
17176 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17177 \ * ) func_dirname_result="${3}" ;;\
17178 \ esac\
17179 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17180 && mv -f "$cfgfile.tmp" "$cfgfile" \
17181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17182 test 0 -eq $? || _lt_function_replace_fail=:
17183
17184
17185 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17186 func_basename ()\
17187 {\
17188 \ func_basename_result="${1##*/}"\
17189 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17190 && mv -f "$cfgfile.tmp" "$cfgfile" \
17191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17192 test 0 -eq $? || _lt_function_replace_fail=:
17193
17194
17195 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17196 func_dirname_and_basename ()\
17197 {\
17198 \ case ${1} in\
17199 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17200 \ * ) func_dirname_result="${3}" ;;\
17201 \ esac\
17202 \ func_basename_result="${1##*/}"\
17203 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17204 && mv -f "$cfgfile.tmp" "$cfgfile" \
17205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17206 test 0 -eq $? || _lt_function_replace_fail=:
17207
17208
17209 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17210 func_stripname ()\
17211 {\
17212 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17213 \ # positional parameters, so assign one to ordinary parameter first.\
17214 \ func_stripname_result=${3}\
17215 \ func_stripname_result=${func_stripname_result#"${1}"}\
17216 \ func_stripname_result=${func_stripname_result%"${2}"}\
17217 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17218 && mv -f "$cfgfile.tmp" "$cfgfile" \
17219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17220 test 0 -eq $? || _lt_function_replace_fail=:
17221
17222
17223 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17224 func_split_long_opt ()\
17225 {\
17226 \ func_split_long_opt_name=${1%%=*}\
17227 \ func_split_long_opt_arg=${1#*=}\
17228 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17229 && mv -f "$cfgfile.tmp" "$cfgfile" \
17230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17231 test 0 -eq $? || _lt_function_replace_fail=:
17232
17233
17234 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17235 func_split_short_opt ()\
17236 {\
17237 \ func_split_short_opt_arg=${1#??}\
17238 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17239 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17240 && mv -f "$cfgfile.tmp" "$cfgfile" \
17241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17242 test 0 -eq $? || _lt_function_replace_fail=:
17243
17244
17245 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17246 func_lo2o ()\
17247 {\
17248 \ case ${1} in\
17249 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17250 \ *) func_lo2o_result=${1} ;;\
17251 \ esac\
17252 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17253 && mv -f "$cfgfile.tmp" "$cfgfile" \
17254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17255 test 0 -eq $? || _lt_function_replace_fail=:
17256
17257
17258 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17259 func_xform ()\
17260 {\
17261 func_xform_result=${1%.*}.lo\
17262 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17263 && mv -f "$cfgfile.tmp" "$cfgfile" \
17264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17265 test 0 -eq $? || _lt_function_replace_fail=:
17266
17267
17268 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17269 func_arith ()\
17270 {\
17271 func_arith_result=$(( $* ))\
17272 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17273 && mv -f "$cfgfile.tmp" "$cfgfile" \
17274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17275 test 0 -eq $? || _lt_function_replace_fail=:
17276
17277
17278 sed -e '/^func_len ()$/,/^} # func_len /c\
17279 func_len ()\
17280 {\
17281 func_len_result=${#1}\
17282 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17283 && mv -f "$cfgfile.tmp" "$cfgfile" \
17284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17285 test 0 -eq $? || _lt_function_replace_fail=:
17286
17287 fi
17288
17289 if test x"$lt_shell_append" = xyes; then
17290 sed -e '/^func_append ()$/,/^} # func_append /c\
17291 func_append ()\
17292 {\
17293 eval "${1}+=\\${2}"\
17294 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17295 && mv -f "$cfgfile.tmp" "$cfgfile" \
17296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17297 test 0 -eq $? || _lt_function_replace_fail=:
17298
17299
17300 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17301 func_append_quoted ()\
17302 {\
17303 \ func_quote_for_eval "${2}"\
17304 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17305 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17306 && mv -f "$cfgfile.tmp" "$cfgfile" \
17307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17308 test 0 -eq $? || _lt_function_replace_fail=:
17309
17310
17311 # Save a `func_append' function call where possible by direct use of '+='
17312 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17313 && mv -f "$cfgfile.tmp" "$cfgfile" \
17314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17315 test 0 -eq $? || _lt_function_replace_fail=:
17316 else
17317 # Save a `func_append' function call even when '+=' is not available
17318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17319 && mv -f "$cfgfile.tmp" "$cfgfile" \
17320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17321 test 0 -eq $? || _lt_function_replace_fail=:
17322 fi
17323
17324 if test x"$_lt_function_replace_fail" = x":"; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17326 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17327 fi
17328
17329
17330 mv -f "$cfgfile" "$ofile" ||
17331 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17332 chmod +x "$ofile"
17333
17334 ;;
17335
17336 esac
17337 done # for ac_tag
17338
17339
17340 as_fn_exit 0
17341 _ACEOF
17342 ac_clean_files=$ac_clean_files_save
17343
17344 test $ac_write_fail = 0 ||
17345 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17346
17347
17348 # configure is writing to config.log, and then calls config.status.
17349 # config.status does its own redirection, appending to config.log.
17350 # Unfortunately, on DOS this fails, as config.log is still kept open
17351 # by configure, so config.status won't be able to write to it; its
17352 # output is simply discarded. So we exec the FD to /dev/null,
17353 # effectively closing config.log, so it can be properly (re)opened and
17354 # appended to by config.status. When coming back to configure, we
17355 # need to make the FD available again.
17356 if test "$no_create" != yes; then
17357 ac_cs_success=:
17358 ac_config_status_args=
17359 test "$silent" = yes &&
17360 ac_config_status_args="$ac_config_status_args --quiet"
17361 exec 5>/dev/null
17362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17363 exec 5>>config.log
17364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17365 # would make configure fail if this is the last instruction.
17366 $ac_cs_success || as_fn_exit 1
17367 fi
17368 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17370 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17371 fi
17372

Properties

Name Value
svn:eol-style native
svn:executable *