ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 2064
Committed: Thu May 16 09:56:02 2013 UTC (12 years, 3 months ago) by michael
File size: 489531 byte(s)
Log Message:
- automake 1.13.2

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 2030 2013-05-14 18:24:55Z 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 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libGeoIP
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 enable_halfops
817 enable_debugging
818 enable_warnings
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 YACC
829 YFLAGS
830 CPP'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-static[=PKGS] build static libraries [default=no]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-ltdl-install install libltdl
1464 --disable-libgeoip Disable GeoIP support
1465 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1466 --disable-openssl Disable OpenSSL support.
1467 --enable-assert Enable assert() statements
1468 --enable-kqueue Force kqueue usage.
1469 --enable-epoll Force epoll usage.
1470 --enable-devpoll Force devpoll usage.
1471 --enable-poll Force poll usage.
1472 --enable-select Force select usage.
1473 --enable-halfops Enable halfops support.
1474 --enable-debugging Enable debugging.
1475 --enable-warnings Enable compiler warnings.
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1485 --with-included-ltdl use the GNU ltdl sources included here
1486 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1487 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure TRUNK
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------- ##
2074 ## Report this to bugs@ircd-hybrid.org ##
2075 ## ----------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by ircd-hybrid $as_me TRUNK, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2379 as_fn_append ac_func_list " strlcat"
2380 as_fn_append ac_func_list " strlcpy"
2381 as_fn_append ac_header_list " crypt.h"
2382 as_fn_append ac_header_list " sys/resource.h"
2383 as_fn_append ac_header_list " sys/param.h"
2384 as_fn_append ac_header_list " types.h"
2385 as_fn_append ac_header_list " socket.h"
2386 as_fn_append ac_header_list " sys/wait.h"
2387 as_fn_append ac_header_list " wait.h"
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
2394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
2396 case $ac_old_set,$ac_new_set in
2397 set,)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,set)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,);;
2406 *)
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
2408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2421 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 fi;;
2425 esac
2426 # Pass precious variables to config.status.
2427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
2429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435 esac
2436 fi
2437 done
2438 if $ac_cache_corrupted; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 fi
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2448
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
2455
2456 am__api_version='1.13'
2457
2458 ac_aux_dir=
2459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 if test -f "$ac_dir/install-sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 break
2464 elif test -f "$ac_dir/install.sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 break
2468 elif test -f "$ac_dir/shtool"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/shtool install -c"
2471 break
2472 fi
2473 done
2474 if test -z "$ac_aux_dir"; then
2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 fi
2477
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
2486
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if ${ac_cv_path_install+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
2546 fi
2547 fi
2548 done
2549 done
2550 ;;
2551 esac
2552
2553 done
2554 IFS=$as_save_IFS
2555
2556 rm -rf conftest.one conftest.two conftest.dir
2557
2558 fi
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2567 fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2571
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do 'set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601 am_has_slept=no
2602 for am_try in 1 2; do
2603 echo "timestamp, slept: $am_has_slept" > conftest.file
2604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2605 if test "$*" = "X"; then
2606 # -L didn't work.
2607 set X `ls -t "$srcdir/configure" conftest.file`
2608 fi
2609 if test "$*" != "X $srcdir/configure conftest.file" \
2610 && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612 # If neither matched, then we have a broken ls. This can happen
2613 # if, for instance, CONFIG_SHELL is bash and it inherits a
2614 # broken ls alias from the environment. This has actually
2615 # happened. Such a system could not be considered "sane".
2616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618 fi
2619 if test "$2" = conftest.file || test $am_try -eq 2; then
2620 break
2621 fi
2622 # Just in case.
2623 sleep 1
2624 am_has_slept=yes
2625 done
2626 test "$2" = conftest.file
2627 )
2628 then
2629 # Ok.
2630 :
2631 else
2632 as_fn_error $? "newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 # If we didn't sleep, we still need to ensure time stamps of config.status and
2638 # generated files are strictly newer.
2639 am_sleep_pid=
2640 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2641 ( sleep 1 ) &
2642 am_sleep_pid=$!
2643 fi
2644
2645 rm -f conftest.file
2646
2647 test "$program_prefix" != NONE &&
2648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656
2657 # expand $ac_aux_dir to an absolute path
2658 am_aux_dir=`cd $ac_aux_dir && pwd`
2659
2660 if test x"${MISSING+set}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664 *)
2665 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2666 esac
2667 fi
2668 # Use eval to expand $SHELL
2669 if eval "$MISSING --is-lightweight"; then
2670 am_missing_run="$MISSING "
2671 else
2672 am_missing_run=
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2674 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2675 fi
2676
2677 if test x"${install_sh}" != xset; then
2678 case $am_aux_dir in
2679 *\ * | *\ *)
2680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681 *)
2682 install_sh="\${SHELL} $am_aux_dir/install-sh"
2683 esac
2684 fi
2685
2686 # Installed binaries are usually stripped using 'strip' when the user
2687 # run "make install-strip". However 'strip' might not be the right
2688 # tool to use in cross-compilation environments, therefore Automake
2689 # will honor the 'STRIP' environment variable to overrule this program.
2690 if test "$cross_compiling" != no; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}strip; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_STRIP+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$STRIP"; then
2700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
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 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 STRIP=$ac_cv_prog_STRIP
2720 if test -n "$STRIP"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2722 $as_echo "$STRIP" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$ac_cv_prog_STRIP"; then
2731 ac_ct_STRIP=$STRIP
2732 # Extract the first word of "strip", so it can be a program name with args.
2733 set dummy strip; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_STRIP"; then
2740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_STRIP="strip"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2760 if test -n "$ac_ct_STRIP"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2762 $as_echo "$ac_ct_STRIP" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768 if test "x$ac_ct_STRIP" = x; then
2769 STRIP=":"
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 STRIP=$ac_ct_STRIP
2778 fi
2779 else
2780 STRIP="$ac_cv_prog_STRIP"
2781 fi
2782
2783 fi
2784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2788 if test -z "$MKDIR_P"; then
2789 if ${ac_cv_path_mkdir+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_prog in mkdir gmkdir; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2801 'mkdir (GNU coreutils) '* | \
2802 'mkdir (coreutils) '* | \
2803 'mkdir (fileutils) '4.1*)
2804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2805 break 3;;
2806 esac
2807 done
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813
2814 test -d ./--version && rmdir ./--version
2815 if test "${ac_cv_path_mkdir+set}" = set; then
2816 MKDIR_P="$ac_cv_path_mkdir -p"
2817 else
2818 # As a last resort, use the slow shell script. Don't cache a
2819 # value for MKDIR_P within a source directory, because that will
2820 # break other packages using the cache if that directory is
2821 # removed, or if the value is a relative name.
2822 MKDIR_P="$ac_install_sh -d"
2823 fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2826 $as_echo "$MKDIR_P" >&6; }
2827
2828 for ac_prog in gawk mawk nawk awk
2829 do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_AWK+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$AWK"; then
2838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_AWK="$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 AWK=$ac_cv_prog_AWK
2858 if test -n "$AWK"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860 $as_echo "$AWK" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 test -n "$AWK" && break
2868 done
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 set x ${MAKE-make}
2873 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2874 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 cat >conftest.make <<\_ACEOF
2878 SHELL = /bin/sh
2879 all:
2880 @echo '@@@%%%=$(MAKE)=@@@%%%'
2881 _ACEOF
2882 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884 *@@@%%%=?*=@@@%%%*)
2885 eval ac_cv_prog_make_${ac_make}_set=yes;;
2886 *)
2887 eval ac_cv_prog_make_${ac_make}_set=no;;
2888 esac
2889 rm -f conftest.make
2890 fi
2891 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894 SET_MAKE=
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 SET_MAKE="MAKE=${MAKE-make}"
2899 fi
2900
2901 rm -rf .tst 2>/dev/null
2902 mkdir .tst 2>/dev/null
2903 if test -d .tst; then
2904 am__leading_dot=.
2905 else
2906 am__leading_dot=_
2907 fi
2908 rmdir .tst 2>/dev/null
2909
2910 # Check whether --enable-silent-rules was given.
2911 if test "${enable_silent_rules+set}" = set; then :
2912 enableval=$enable_silent_rules;
2913 fi
2914
2915 case $enable_silent_rules in # (((
2916 yes) AM_DEFAULT_VERBOSITY=0;;
2917 no) AM_DEFAULT_VERBOSITY=1;;
2918 *) AM_DEFAULT_VERBOSITY=1;;
2919 esac
2920 am_make=${MAKE-make}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2922 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2923 if ${am_cv_make_support_nested_variables+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if $as_echo 'TRUE=$(BAR$(V))
2927 BAR0=false
2928 BAR1=true
2929 V=1
2930 am__doit:
2931 @$(TRUE)
2932 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2933 am_cv_make_support_nested_variables=yes
2934 else
2935 am_cv_make_support_nested_variables=no
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2939 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2940 if test $am_cv_make_support_nested_variables = yes; then
2941 AM_V='$(V)'
2942 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2943 else
2944 AM_V=$AM_DEFAULT_VERBOSITY
2945 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2946 fi
2947 AM_BACKSLASH='\'
2948
2949 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2950 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2951 # is not polluted with repeated "-I."
2952 am__isrc=' -I$(srcdir)'
2953 # test to see if srcdir already configured
2954 if test -f $srcdir/config.status; then
2955 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2956 fi
2957 fi
2958
2959 # test whether we have cygpath
2960 if test -z "$CYGPATH_W"; then
2961 if (cygpath --version) >/dev/null 2>/dev/null; then
2962 CYGPATH_W='cygpath -w'
2963 else
2964 CYGPATH_W=echo
2965 fi
2966 fi
2967
2968
2969 # Define the identity of the package.
2970 PACKAGE='ircd-hybrid'
2971 VERSION='TRUNK'
2972
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE "$PACKAGE"
2976 _ACEOF
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define VERSION "$VERSION"
2981 _ACEOF
2982
2983 # Some tools Automake needs.
2984
2985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2986
2987
2988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2989
2990
2991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2992
2993
2994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2995
2996
2997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998
2999 # For better backward compatibility. To be removed once Automake 1.9.x
3000 # dies out for good. For more background, see:
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3003 mkdir_p='$(MKDIR_P)'
3004
3005 # We need awk for the "check" target. The system "awk" is bad on
3006 # some platforms.
3007 # Always define AMTAR for backward compatibility. Yes, it's still used
3008 # in the wild :-( We should find a proper way to deprecate it ...
3009 AMTAR='$${TAR-tar}'
3010
3011
3012 # We'll loop over all known methods to create a tar archive until one works.
3013 _am_tools='gnutar pax cpio none'
3014
3015 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3016
3017
3018
3019
3020
3021
3022
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3024 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3025 # Check whether --enable-maintainer-mode was given.
3026 if test "${enable_maintainer_mode+set}" = set; then :
3027 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3028 else
3029 USE_MAINTAINER_MODE=no
3030 fi
3031
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3033 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3034 if test $USE_MAINTAINER_MODE = yes; then
3035 MAINTAINER_MODE_TRUE=
3036 MAINTAINER_MODE_FALSE='#'
3037 else
3038 MAINTAINER_MODE_TRUE='#'
3039 MAINTAINER_MODE_FALSE=
3040 fi
3041
3042 MAINT=$MAINTAINER_MODE_TRUE
3043
3044
3045 ac_config_headers="$ac_config_headers config.h"
3046
3047
3048
3049 # Checks for programs.
3050 DEPDIR="${am__leading_dot}deps"
3051
3052 ac_config_commands="$ac_config_commands depfiles"
3053
3054
3055 am_make=${MAKE-make}
3056 cat > confinc << 'END'
3057 am__doit:
3058 @echo this is the am__doit target
3059 .PHONY: am__doit
3060 END
3061 # If we don't find an include directive, just comment out the code.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3063 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3064 am__include="#"
3065 am__quote=
3066 _am_result=none
3067 # First try GNU make style include.
3068 echo "include confinc" > confmf
3069 # Ignore all kinds of additional output from 'make'.
3070 case `$am_make -s -f confmf 2> /dev/null` in #(
3071 *the\ am__doit\ target*)
3072 am__include=include
3073 am__quote=
3074 _am_result=GNU
3075 ;;
3076 esac
3077 # Now try BSD make style include.
3078 if test "$am__include" = "#"; then
3079 echo '.include "confinc"' > confmf
3080 case `$am_make -s -f confmf 2> /dev/null` in #(
3081 *the\ am__doit\ target*)
3082 am__include=.include
3083 am__quote="\""
3084 _am_result=BSD
3085 ;;
3086 esac
3087 fi
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3091 $as_echo "$_am_result" >&6; }
3092 rm -f confinc confmf
3093
3094 # Check whether --enable-dependency-tracking was given.
3095 if test "${enable_dependency_tracking+set}" = set; then :
3096 enableval=$enable_dependency_tracking;
3097 fi
3098
3099 if test "x$enable_dependency_tracking" != xno; then
3100 am_depcomp="$ac_aux_dir/depcomp"
3101 AMDEPBACKSLASH='\'
3102 am__nodep='_no'
3103 fi
3104 if test "x$enable_dependency_tracking" != xno; then
3105 AMDEP_TRUE=
3106 AMDEP_FALSE='#'
3107 else
3108 AMDEP_TRUE='#'
3109 AMDEP_FALSE=
3110 fi
3111
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 fi
3145 fi
3146 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 fi
3154
3155
3156 fi
3157 if test -z "$ac_cv_prog_CC"; then
3158 ac_ct_CC=$CC
3159 # Extract the first word of "gcc", so it can be a program name with args.
3160 set dummy gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CC="gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204 CC=$ac_ct_CC
3205 fi
3206 else
3207 CC="$ac_cv_prog_CC"
3208 fi
3209
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="${ac_tool_prefix}cc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248
3249 fi
3250 fi
3251 if test -z "$CC"; then
3252 # Extract the first word of "cc", so it can be a program name with args.
3253 set dummy cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 ac_prog_rejected=no
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271 ac_prog_rejected=yes
3272 continue
3273 fi
3274 ac_cv_prog_CC="cc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 if test $ac_prog_rejected = yes; then
3283 # We found a bogon in the path, so make sure we never use it.
3284 set dummy $ac_cv_prog_CC
3285 shift
3286 if test $# != 0; then
3287 # We chose a different compiler from the bogus one.
3288 # However, it has the same basename, so the bogon will be chosen
3289 # first if we set CC to just the basename; use the full file name.
3290 shift
3291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3292 fi
3293 fi
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 for ac_prog in cl.exe
3310 do
3311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 test -n "$CC" && break
3349 done
3350 fi
3351 if test -z "$CC"; then
3352 ac_ct_CC=$CC
3353 for ac_prog in cl.exe
3354 do
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_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 test -n "$ac_ct_CC" && break
3393 done
3394
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 CC=$ac_ct_CC
3405 fi
3406 fi
3407
3408 fi
3409
3410
3411 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "no acceptable C compiler found in \$PATH
3414 See \`config.log' for more details" "$LINENO" 5; }
3415
3416 # Provide some information about the compiler.
3417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3418 set X $ac_compile
3419 ac_compiler=$2
3420 for ac_option in --version -v -V -qversion; do
3421 { { ac_try="$ac_compiler $ac_option >&5"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3429 ac_status=$?
3430 if test -s conftest.err; then
3431 sed '10a\
3432 ... rest of stderr output deleted ...
3433 10q' conftest.err >conftest.er1
3434 cat conftest.er1 >&5
3435 fi
3436 rm -f conftest.er1 conftest.err
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 done
3440
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main ()
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 ac_clean_files_save=$ac_clean_files
3453 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454 # Try to create an executable without -o first, disregard a.out.
3455 # It will help us diagnose broken compilers, and finding out an intuition
3456 # of exeext.
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458 $as_echo_n "checking whether the C compiler works... " >&6; }
3459 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3460
3461 # The possible output files:
3462 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3463
3464 ac_rmfiles=
3465 for ac_file in $ac_files
3466 do
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3470 esac
3471 done
3472 rm -f $ac_rmfiles
3473
3474 if { { ac_try="$ac_link_default"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link_default") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3488 # so that the user can short-circuit this test for compilers unknown to
3489 # Autoconf.
3490 for ac_file in $ac_files ''
3491 do
3492 test -f "$ac_file" || continue
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3495 ;;
3496 [ab].out )
3497 # We found the default executable, but exeext='' is most
3498 # certainly right.
3499 break;;
3500 *.* )
3501 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3502 then :; else
3503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504 fi
3505 # We set ac_cv_exeext here because the later test for it is not
3506 # safe: cross compilers may not add the suffix if given an `-o'
3507 # argument, so we may need to know it at that point already.
3508 # Even if this section looks crufty: it has the advantage of
3509 # actually working.
3510 break;;
3511 * )
3512 break;;
3513 esac
3514 done
3515 test "$ac_cv_exeext" = no && ac_cv_exeext=
3516
3517 else
3518 ac_file=''
3519 fi
3520 if test -z "$ac_file"; then :
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error 77 "C compiler cannot create executables
3529 See \`config.log' for more details" "$LINENO" 5; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3535 $as_echo_n "checking for C compiler default output file name... " >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3537 $as_echo "$ac_file" >&6; }
3538 ac_exeext=$ac_cv_exeext
3539
3540 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543 $as_echo_n "checking for suffix of executables... " >&6; }
3544 if { { ac_try="$ac_link"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3552 ac_status=$?
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; then :
3555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3556 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3557 # work properly (i.e., refer to `conftest.exe'), while it won't with
3558 # `rm'.
3559 for ac_file in conftest.exe conftest conftest.*; do
3560 test -f "$ac_file" || continue
3561 case $ac_file in
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 break;;
3565 * ) break;;
3566 esac
3567 done
3568 else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3572 See \`config.log' for more details" "$LINENO" 5; }
3573 fi
3574 rm -f conftest conftest$ac_cv_exeext
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3577
3578 rm -f conftest.$ac_ext
3579 EXEEXT=$ac_cv_exeext
3580 ac_exeext=$EXEEXT
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdio.h>
3584 int
3585 main ()
3586 {
3587 FILE *f = fopen ("conftest.out", "w");
3588 return ferror (f) || fclose (f) != 0;
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 ac_clean_files="$ac_clean_files conftest.out"
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3598 $as_echo_n "checking whether we are cross compiling... " >&6; }
3599 if test "$cross_compiling" != yes; then
3600 { { ac_try="$ac_link"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }
3611 if { ac_try='./conftest$ac_cv_exeext'
3612 { { case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_try") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; }; then
3622 cross_compiling=no
3623 else
3624 if test "$cross_compiling" = maybe; then
3625 cross_compiling=yes
3626 else
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "cannot run C compiled programs.
3630 If you meant to cross compile, use \`--host'.
3631 See \`config.log' for more details" "$LINENO" 5; }
3632 fi
3633 fi
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636 $as_echo "$cross_compiling" >&6; }
3637
3638 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3639 ac_clean_files=$ac_clean_files_save
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641 $as_echo_n "checking for suffix of object files... " >&6; }
3642 if ${ac_cv_objext+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main ()
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.o conftest.obj
3657 if { { ac_try="$ac_compile"
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_compile") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673 break;;
3674 esac
3675 done
3676 else
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot compute suffix of object files: cannot compile
3683 See \`config.log' for more details" "$LINENO" 5; }
3684 fi
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3690 ac_objext=$OBJEXT
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693 if ${ac_cv_c_compiler_gnu+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702 #ifndef __GNUC__
3703 choke me
3704 #endif
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_compiler_gnu=yes
3712 else
3713 ac_compiler_gnu=no
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3717
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721 if test $ac_compiler_gnu = yes; then
3722 GCC=yes
3723 else
3724 GCC=
3725 fi
3726 ac_test_CFLAGS=${CFLAGS+set}
3727 ac_save_CFLAGS=$CFLAGS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3730 if ${ac_cv_prog_cc_g+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 ac_save_c_werror_flag=$ac_c_werror_flag
3734 ac_c_werror_flag=yes
3735 ac_cv_prog_cc_g=no
3736 CFLAGS="-g"
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743
3744 ;
3745 return 0;
3746 }
3747 _ACEOF
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749 ac_cv_prog_cc_g=yes
3750 else
3751 CFLAGS=""
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764
3765 else
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3767 CFLAGS="-g"
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main ()
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"; then :
3780 ac_cv_prog_cc_g=yes
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 fi
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790 $as_echo "$ac_cv_prog_cc_g" >&6; }
3791 if test "$ac_test_CFLAGS" = set; then
3792 CFLAGS=$ac_save_CFLAGS
3793 elif test $ac_cv_prog_cc_g = yes; then
3794 if test "$GCC" = yes; then
3795 CFLAGS="-g -O2"
3796 else
3797 CFLAGS="-g"
3798 fi
3799 else
3800 if test "$GCC" = yes; then
3801 CFLAGS="-O2"
3802 else
3803 CFLAGS=
3804 fi
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808 if ${ac_cv_prog_cc_c89+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 ac_cv_prog_cc_c89=no
3812 ac_save_CC=$CC
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #include <stdarg.h>
3816 #include <stdio.h>
3817 struct stat;
3818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3819 struct buf { int x; };
3820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821 static char *e (p, i)
3822 char **p;
3823 int i;
3824 {
3825 return p[i];
3826 }
3827 static char *f (char * (*g) (char **, int), char **p, ...)
3828 {
3829 char *s;
3830 va_list v;
3831 va_start (v,p);
3832 s = g (p, va_arg (v,int));
3833 va_end (v);
3834 return s;
3835 }
3836
3837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3838 function prototypes and stuff, but not '\xHH' hex character constants.
3839 These don't provoke an error unfortunately, instead are silently treated
3840 as 'x'. The following induces an error, until -std is added to get
3841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3842 array size at least. It's necessary to write '\x00'==0 to get something
3843 that's true only with -std. */
3844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3845
3846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847 inside strings and character constants. */
3848 #define FOO(x) 'x'
3849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3850
3851 int test (int i, double x);
3852 struct s1 {int (*f) (int a);};
3853 struct s2 {int (*f) (double a);};
3854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3855 int argc;
3856 char **argv;
3857 int
3858 main ()
3859 {
3860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3867 do
3868 CC="$ac_save_CC $ac_arg"
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_prog_cc_c89=$ac_arg
3871 fi
3872 rm -f core conftest.err conftest.$ac_objext
3873 test "x$ac_cv_prog_cc_c89" != "xno" && break
3874 done
3875 rm -f conftest.$ac_ext
3876 CC=$ac_save_CC
3877
3878 fi
3879 # AC_CACHE_VAL
3880 case "x$ac_cv_prog_cc_c89" in
3881 x)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883 $as_echo "none needed" >&6; } ;;
3884 xno)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886 $as_echo "unsupported" >&6; } ;;
3887 *)
3888 CC="$CC $ac_cv_prog_cc_c89"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3891 esac
3892 if test "x$ac_cv_prog_cc_c89" != xno; then :
3893
3894 fi
3895
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902 depcc="$CC" am_compiler_list=
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3905 $as_echo_n "checking dependency style of $depcc... " >&6; }
3906 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3910 # We make a subdir and do the tests there. Otherwise we can end up
3911 # making bogus files that we don't know about and never remove. For
3912 # instance it was reported that on HP-UX the gcc test will end up
3913 # making a dummy file named 'D' -- because '-MD' means "put the output
3914 # in D".
3915 rm -rf conftest.dir
3916 mkdir conftest.dir
3917 # Copy depcomp to subdir because otherwise we won't find it if we're
3918 # using a relative directory.
3919 cp "$am_depcomp" conftest.dir
3920 cd conftest.dir
3921 # We will build objects and dependencies in a subdirectory because
3922 # it helps to detect inapplicable dependency modes. For instance
3923 # both Tru64's cc and ICC support -MD to output dependencies as a
3924 # side effect of compilation, but ICC will put the dependencies in
3925 # the current directory while Tru64 will put them in the object
3926 # directory.
3927 mkdir sub
3928
3929 am_cv_CC_dependencies_compiler_type=none
3930 if test "$am_compiler_list" = ""; then
3931 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3932 fi
3933 am__universal=false
3934 case " $depcc " in #(
3935 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3936 esac
3937
3938 for depmode in $am_compiler_list; do
3939 # Setup a source with many dependencies, because some compilers
3940 # like to wrap large dependency lists on column 80 (with \), and
3941 # we should not choose a depcomp mode which is confused by this.
3942 #
3943 # We need to recreate these files for each test, as the compiler may
3944 # overwrite some of them when testing with obscure command lines.
3945 # This happens at least with the AIX C compiler.
3946 : > sub/conftest.c
3947 for i in 1 2 3 4 5 6; do
3948 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3949 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3950 # Solaris 10 /bin/sh.
3951 echo '/* dummy */' > sub/conftst$i.h
3952 done
3953 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3954
3955 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3956 # mode. It turns out that the SunPro C++ compiler does not properly
3957 # handle '-M -o', and we need to detect this. Also, some Intel
3958 # versions had trouble with output in subdirs.
3959 am__obj=sub/conftest.${OBJEXT-o}
3960 am__minus_obj="-o $am__obj"
3961 case $depmode in
3962 gcc)
3963 # This depmode causes a compiler race in universal mode.
3964 test "$am__universal" = false || continue
3965 ;;
3966 nosideeffect)
3967 # After this tag, mechanisms are not by side-effect, so they'll
3968 # only be used when explicitly requested.
3969 if test "x$enable_dependency_tracking" = xyes; then
3970 continue
3971 else
3972 break
3973 fi
3974 ;;
3975 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3976 # This compiler won't grok '-c -o', but also, the minuso test has
3977 # not run yet. These depmodes are late enough in the game, and
3978 # so weak that their functioning should not be impacted.
3979 am__obj=conftest.${OBJEXT-o}
3980 am__minus_obj=
3981 ;;
3982 none) break ;;
3983 esac
3984 if depmode=$depmode \
3985 source=sub/conftest.c object=$am__obj \
3986 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3987 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3988 >/dev/null 2>conftest.err &&
3989 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3990 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3991 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3992 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3993 # icc doesn't choke on unknown options, it will just issue warnings
3994 # or remarks (even with -Werror). So we grep stderr for any message
3995 # that says an option was ignored or not supported.
3996 # When given -MP, icc 7.0 and 7.1 complain thusly:
3997 # icc: Command line warning: ignoring option '-M'; no argument required
3998 # The diagnosis changed in icc 8.0:
3999 # icc: Command line remark: option '-MP' not supported
4000 if (grep 'ignoring option' conftest.err ||
4001 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4002 am_cv_CC_dependencies_compiler_type=$depmode
4003 break
4004 fi
4005 fi
4006 done
4007
4008 cd ..
4009 rm -rf conftest.dir
4010 else
4011 am_cv_CC_dependencies_compiler_type=none
4012 fi
4013
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4016 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4017 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4018
4019 if
4020 test "x$enable_dependency_tracking" != xno \
4021 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4022 am__fastdepCC_TRUE=
4023 am__fastdepCC_FALSE='#'
4024 else
4025 am__fastdepCC_TRUE='#'
4026 am__fastdepCC_FALSE=
4027 fi
4028
4029
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4031 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4032 if ${ac_cv_prog_cc_c99+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 ac_cv_prog_cc_c99=no
4036 ac_save_CC=$CC
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <stdarg.h>
4040 #include <stdbool.h>
4041 #include <stdlib.h>
4042 #include <wchar.h>
4043 #include <stdio.h>
4044
4045 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4046 #define debug(...) fprintf (stderr, __VA_ARGS__)
4047 #define showlist(...) puts (#__VA_ARGS__)
4048 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4049 static void
4050 test_varargs_macros (void)
4051 {
4052 int x = 1234;
4053 int y = 5678;
4054 debug ("Flag");
4055 debug ("X = %d\n", x);
4056 showlist (The first, second, and third items.);
4057 report (x>y, "x is %d but y is %d", x, y);
4058 }
4059
4060 // Check long long types.
4061 #define BIG64 18446744073709551615ull
4062 #define BIG32 4294967295ul
4063 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4064 #if !BIG_OK
4065 your preprocessor is broken;
4066 #endif
4067 #if BIG_OK
4068 #else
4069 your preprocessor is broken;
4070 #endif
4071 static long long int bignum = -9223372036854775807LL;
4072 static unsigned long long int ubignum = BIG64;
4073
4074 struct incomplete_array
4075 {
4076 int datasize;
4077 double data[];
4078 };
4079
4080 struct named_init {
4081 int number;
4082 const wchar_t *name;
4083 double average;
4084 };
4085
4086 typedef const char *ccp;
4087
4088 static inline int
4089 test_restrict (ccp restrict text)
4090 {
4091 // See if C++-style comments work.
4092 // Iterate through items via the restricted pointer.
4093 // Also check for declarations in for loops.
4094 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4095 continue;
4096 return 0;
4097 }
4098
4099 // Check varargs and va_copy.
4100 static void
4101 test_varargs (const char *format, ...)
4102 {
4103 va_list args;
4104 va_start (args, format);
4105 va_list args_copy;
4106 va_copy (args_copy, args);
4107
4108 const char *str;
4109 int number;
4110 float fnumber;
4111
4112 while (*format)
4113 {
4114 switch (*format++)
4115 {
4116 case 's': // string
4117 str = va_arg (args_copy, const char *);
4118 break;
4119 case 'd': // int
4120 number = va_arg (args_copy, int);
4121 break;
4122 case 'f': // float
4123 fnumber = va_arg (args_copy, double);
4124 break;
4125 default:
4126 break;
4127 }
4128 }
4129 va_end (args_copy);
4130 va_end (args);
4131 }
4132
4133 int
4134 main ()
4135 {
4136
4137 // Check bool.
4138 _Bool success = false;
4139
4140 // Check restrict.
4141 if (test_restrict ("String literal") == 0)
4142 success = true;
4143 char *restrict newvar = "Another string";
4144
4145 // Check varargs.
4146 test_varargs ("s, d' f .", "string", 65, 34.234);
4147 test_varargs_macros ();
4148
4149 // Check flexible array members.
4150 struct incomplete_array *ia =
4151 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4152 ia->datasize = 10;
4153 for (int i = 0; i < ia->datasize; ++i)
4154 ia->data[i] = i * 1.234;
4155
4156 // Check named initializers.
4157 struct named_init ni = {
4158 .number = 34,
4159 .name = L"Test wide string",
4160 .average = 543.34343,
4161 };
4162
4163 ni.number = 58;
4164
4165 int dynamic_array[ni.number];
4166 dynamic_array[ni.number - 1] = 543;
4167
4168 // work around unused variable warnings
4169 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4170 || dynamic_array[ni.number - 1] != 543);
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4177 do
4178 CC="$ac_save_CC $ac_arg"
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_c99=$ac_arg
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext
4183 test "x$ac_cv_prog_cc_c99" != "xno" && break
4184 done
4185 rm -f conftest.$ac_ext
4186 CC=$ac_save_CC
4187
4188 fi
4189 # AC_CACHE_VAL
4190 case "x$ac_cv_prog_cc_c99" in
4191 x)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4193 $as_echo "none needed" >&6; } ;;
4194 xno)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4196 $as_echo "unsupported" >&6; } ;;
4197 *)
4198 CC="$CC $ac_cv_prog_cc_c99"
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4200 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4201 esac
4202 if test "x$ac_cv_prog_cc_c99" != xno; then :
4203
4204 fi
4205
4206
4207 if test "$ac_cv_prog_cc_c99" = "no"; then :
4208 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4209 fi
4210 for ac_prog in 'bison -y' byacc
4211 do
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_YACC+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$YACC"; then
4220 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_YACC="$ac_prog"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238 fi
4239 YACC=$ac_cv_prog_YACC
4240 if test -n "$YACC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4242 $as_echo "$YACC" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248
4249 test -n "$YACC" && break
4250 done
4251 test -n "$YACC" || YACC="yacc"
4252
4253
4254 for ac_prog in flex lex
4255 do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_LEX+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$LEX"; then
4264 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_LEX="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 LEX=$ac_cv_prog_LEX
4284 if test -n "$LEX"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4286 $as_echo "$LEX" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293 test -n "$LEX" && break
4294 done
4295 test -n "$LEX" || LEX=":"
4296
4297 if test "x$LEX" != "x:"; then
4298 cat >conftest.l <<_ACEOF
4299 %%
4300 a { ECHO; }
4301 b { REJECT; }
4302 c { yymore (); }
4303 d { yyless (1); }
4304 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4305 yyless ((input () != 0)); }
4306 f { unput (yytext[0]); }
4307 . { BEGIN INITIAL; }
4308 %%
4309 #ifdef YYTEXT_POINTER
4310 extern char *yytext;
4311 #endif
4312 int
4313 main (void)
4314 {
4315 return ! yylex () + ! yywrap ();
4316 }
4317 _ACEOF
4318 { { ac_try="$LEX conftest.l"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$LEX conftest.l") 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4330 $as_echo_n "checking lex output file root... " >&6; }
4331 if ${ac_cv_prog_lex_root+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334
4335 if test -f lex.yy.c; then
4336 ac_cv_prog_lex_root=lex.yy
4337 elif test -f lexyy.c; then
4338 ac_cv_prog_lex_root=lexyy
4339 else
4340 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4341 fi
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4344 $as_echo "$ac_cv_prog_lex_root" >&6; }
4345 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4346
4347 if test -z "${LEXLIB+set}"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4349 $as_echo_n "checking lex library... " >&6; }
4350 if ${ac_cv_lib_lex+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353
4354 ac_save_LIBS=$LIBS
4355 ac_cv_lib_lex='none needed'
4356 for ac_lib in '' -lfl -ll; do
4357 LIBS="$ac_lib $ac_save_LIBS"
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 `cat $LEX_OUTPUT_ROOT.c`
4361 _ACEOF
4362 if ac_fn_c_try_link "$LINENO"; then :
4363 ac_cv_lib_lex=$ac_lib
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
4367 test "$ac_cv_lib_lex" != 'none needed' && break
4368 done
4369 LIBS=$ac_save_LIBS
4370
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4373 $as_echo "$ac_cv_lib_lex" >&6; }
4374 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4375 fi
4376
4377
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4379 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4380 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 # POSIX says lex can declare yytext either as a pointer or an array; the
4384 # default is implementation-dependent. Figure out which it is, since
4385 # not all implementations provide the %pointer and %array declarations.
4386 ac_cv_prog_lex_yytext_pointer=no
4387 ac_save_LIBS=$LIBS
4388 LIBS="$LEXLIB $ac_save_LIBS"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 #define YYTEXT_POINTER 1
4393 `cat $LEX_OUTPUT_ROOT.c`
4394 _ACEOF
4395 if ac_fn_c_try_link "$LINENO"; then :
4396 ac_cv_prog_lex_yytext_pointer=yes
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext \
4399 conftest$ac_exeext conftest.$ac_ext
4400 LIBS=$ac_save_LIBS
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4404 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4405 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4406
4407 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4408
4409 fi
4410 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4411
4412 fi
4413 if test "$LEX" = :; then
4414 LEX=${am_missing_run}flex
4415 fi
4416
4417
4418 # Initializing libtool.
4419
4420
4421
4422
4423
4424
4425
4426 case `pwd` in
4427 *\ * | *\ *)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4429 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4430 esac
4431
4432
4433
4434 macro_version='2.4.2'
4435 macro_revision='1.3337'
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 ltmain="$ac_aux_dir/ltmain.sh"
4450
4451 # Make sure we can run config.sub.
4452 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4453 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4456 $as_echo_n "checking build system type... " >&6; }
4457 if ${ac_cv_build+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 ac_build_alias=$build_alias
4461 test "x$ac_build_alias" = x &&
4462 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4463 test "x$ac_build_alias" = x &&
4464 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4465 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4467
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4470 $as_echo "$ac_cv_build" >&6; }
4471 case $ac_cv_build in
4472 *-*-*) ;;
4473 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4474 esac
4475 build=$ac_cv_build
4476 ac_save_IFS=$IFS; IFS='-'
4477 set x $ac_cv_build
4478 shift
4479 build_cpu=$1
4480 build_vendor=$2
4481 shift; shift
4482 # Remember, the first character of IFS is used to create $*,
4483 # except with old shells:
4484 build_os=$*
4485 IFS=$ac_save_IFS
4486 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4490 $as_echo_n "checking host system type... " >&6; }
4491 if ${ac_cv_host+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test "x$host_alias" = x; then
4495 ac_cv_host=$ac_cv_build
4496 else
4497 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4499 fi
4500
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4503 $as_echo "$ac_cv_host" >&6; }
4504 case $ac_cv_host in
4505 *-*-*) ;;
4506 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4507 esac
4508 host=$ac_cv_host
4509 ac_save_IFS=$IFS; IFS='-'
4510 set x $ac_cv_host
4511 shift
4512 host_cpu=$1
4513 host_vendor=$2
4514 shift; shift
4515 # Remember, the first character of IFS is used to create $*,
4516 # except with old shells:
4517 host_os=$*
4518 IFS=$ac_save_IFS
4519 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4520
4521
4522 # Backslashify metacharacters that are still active within
4523 # double-quoted strings.
4524 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4525
4526 # Same as above, but do not quote variable references.
4527 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4528
4529 # Sed substitution to delay expansion of an escaped shell variable in a
4530 # double_quote_subst'ed string.
4531 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4532
4533 # Sed substitution to delay expansion of an escaped single quote.
4534 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4535
4536 # Sed substitution to avoid accidental globbing in evaled expressions
4537 no_glob_subst='s/\*/\\\*/g'
4538
4539 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4544 $as_echo_n "checking how to print strings... " >&6; }
4545 # Test print first, because it will be a builtin if present.
4546 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4548 ECHO='print -r --'
4549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4550 ECHO='printf %s\n'
4551 else
4552 # Use this function as a fallback that always works.
4553 func_fallback_echo ()
4554 {
4555 eval 'cat <<_LTECHO_EOF
4556 $1
4557 _LTECHO_EOF'
4558 }
4559 ECHO='func_fallback_echo'
4560 fi
4561
4562 # func_echo_all arg...
4563 # Invoke $ECHO with all args, space-separated.
4564 func_echo_all ()
4565 {
4566 $ECHO ""
4567 }
4568
4569 case "$ECHO" in
4570 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4571 $as_echo "printf" >&6; } ;;
4572 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4573 $as_echo "print -r" >&6; } ;;
4574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4575 $as_echo "cat" >&6; } ;;
4576 esac
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4592 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4593 if ${ac_cv_path_SED+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4597 for ac_i in 1 2 3 4 5 6 7; do
4598 ac_script="$ac_script$as_nl$ac_script"
4599 done
4600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4601 { ac_script=; unset ac_script;}
4602 if test -z "$SED"; then
4603 ac_path_SED_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in sed gsed; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4613 as_fn_executable_p "$ac_path_SED" || continue
4614 # Check for GNU ac_path_SED and select it if it is found.
4615 # Check for GNU $ac_path_SED
4616 case `"$ac_path_SED" --version 2>&1` in
4617 *GNU*)
4618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4619 *)
4620 ac_count=0
4621 $as_echo_n 0123456789 >"conftest.in"
4622 while :
4623 do
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo '' >> "conftest.nl"
4628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_SED_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_SED="$ac_path_SED"
4634 ac_path_SED_max=$ac_count
4635 fi
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4641
4642 $ac_path_SED_found && break 3
4643 done
4644 done
4645 done
4646 IFS=$as_save_IFS
4647 if test -z "$ac_cv_path_SED"; then
4648 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4649 fi
4650 else
4651 ac_cv_path_SED=$SED
4652 fi
4653
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4656 $as_echo "$ac_cv_path_SED" >&6; }
4657 SED="$ac_cv_path_SED"
4658 rm -f conftest.sed
4659
4660 test -z "$SED" && SED=sed
4661 Xsed="$SED -e 1s/^X//"
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4674 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4675 if ${ac_cv_path_GREP+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -z "$GREP"; then
4679 ac_path_GREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in grep ggrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4689 as_fn_executable_p "$ac_path_GREP" || continue
4690 # Check for GNU ac_path_GREP and select it if it is found.
4691 # Check for GNU $ac_path_GREP
4692 case `"$ac_path_GREP" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4695 *)
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'GREP' >> "conftest.nl"
4704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_GREP="$ac_path_GREP"
4710 ac_path_GREP_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718 $ac_path_GREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_GREP"; then
4724 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 fi
4726 else
4727 ac_cv_path_GREP=$GREP
4728 fi
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4732 $as_echo "$ac_cv_path_GREP" >&6; }
4733 GREP="$ac_cv_path_GREP"
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4737 $as_echo_n "checking for egrep... " >&6; }
4738 if ${ac_cv_path_EGREP+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4742 then ac_cv_path_EGREP="$GREP -E"
4743 else
4744 if test -z "$EGREP"; then
4745 ac_path_EGREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_prog in egrep; do
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4755 as_fn_executable_p "$ac_path_EGREP" || continue
4756 # Check for GNU ac_path_EGREP and select it if it is found.
4757 # Check for GNU $ac_path_EGREP
4758 case `"$ac_path_EGREP" --version 2>&1` in
4759 *GNU*)
4760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4761 *)
4762 ac_count=0
4763 $as_echo_n 0123456789 >"conftest.in"
4764 while :
4765 do
4766 cat "conftest.in" "conftest.in" >"conftest.tmp"
4767 mv "conftest.tmp" "conftest.in"
4768 cp "conftest.in" "conftest.nl"
4769 $as_echo 'EGREP' >> "conftest.nl"
4770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772 as_fn_arith $ac_count + 1 && ac_count=$as_val
4773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4774 # Best one so far, save it but keep looking for a better one
4775 ac_cv_path_EGREP="$ac_path_EGREP"
4776 ac_path_EGREP_max=$ac_count
4777 fi
4778 # 10*(2^10) chars as input seems more than enough
4779 test $ac_count -gt 10 && break
4780 done
4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782 esac
4783
4784 $ac_path_EGREP_found && break 3
4785 done
4786 done
4787 done
4788 IFS=$as_save_IFS
4789 if test -z "$ac_cv_path_EGREP"; then
4790 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4791 fi
4792 else
4793 ac_cv_path_EGREP=$EGREP
4794 fi
4795
4796 fi
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4799 $as_echo "$ac_cv_path_EGREP" >&6; }
4800 EGREP="$ac_cv_path_EGREP"
4801
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4804 $as_echo_n "checking for fgrep... " >&6; }
4805 if ${ac_cv_path_FGREP+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4809 then ac_cv_path_FGREP="$GREP -F"
4810 else
4811 if test -z "$FGREP"; then
4812 ac_path_FGREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in fgrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_FGREP" || continue
4823 # Check for GNU ac_path_FGREP and select it if it is found.
4824 # Check for GNU $ac_path_FGREP
4825 case `"$ac_path_FGREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4828 *)
4829 ac_count=0
4830 $as_echo_n 0123456789 >"conftest.in"
4831 while :
4832 do
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'FGREP' >> "conftest.nl"
4837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_FGREP="$ac_path_FGREP"
4843 ac_path_FGREP_max=$ac_count
4844 fi
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4850
4851 $ac_path_FGREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_FGREP"; then
4857 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 fi
4859 else
4860 ac_cv_path_FGREP=$FGREP
4861 fi
4862
4863 fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4866 $as_echo "$ac_cv_path_FGREP" >&6; }
4867 FGREP="$ac_cv_path_FGREP"
4868
4869
4870 test -z "$GREP" && GREP=grep
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 # Check whether --with-gnu-ld was given.
4891 if test "${with_gnu_ld+set}" = set; then :
4892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4893 else
4894 with_gnu_ld=no
4895 fi
4896
4897 ac_prog=ld
4898 if test "$GCC" = yes; then
4899 # Check if gcc -print-prog-name=ld gives a path.
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4901 $as_echo_n "checking for ld used by $CC... " >&6; }
4902 case $host in
4903 *-*-mingw*)
4904 # gcc leaves a trailing carriage return which upsets mingw
4905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4906 *)
4907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4908 esac
4909 case $ac_prog in
4910 # Accept absolute paths.
4911 [\\/]* | ?:[\\/]*)
4912 re_direlt='/[^/][^/]*/\.\./'
4913 # Canonicalize the pathname of ld
4914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4917 done
4918 test -z "$LD" && LD="$ac_prog"
4919 ;;
4920 "")
4921 # If it fails, then pretend we aren't using GCC.
4922 ac_prog=ld
4923 ;;
4924 *)
4925 # If it is relative, then search for the first ld in PATH.
4926 with_gnu_ld=unknown
4927 ;;
4928 esac
4929 elif test "$with_gnu_ld" = yes; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4931 $as_echo_n "checking for GNU ld... " >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4934 $as_echo_n "checking for non-GNU ld... " >&6; }
4935 fi
4936 if ${lt_cv_path_LD+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -z "$LD"; then
4940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941 for ac_dir in $PATH; do
4942 IFS="$lt_save_ifs"
4943 test -z "$ac_dir" && ac_dir=.
4944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4945 lt_cv_path_LD="$ac_dir/$ac_prog"
4946 # Check to see if the program is GNU ld. I'd rather use --version,
4947 # but apparently some variants of GNU ld only accept -v.
4948 # Break only if it was the GNU/non-GNU ld that we prefer.
4949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4950 *GNU* | *'with BFD'*)
4951 test "$with_gnu_ld" != no && break
4952 ;;
4953 *)
4954 test "$with_gnu_ld" != yes && break
4955 ;;
4956 esac
4957 fi
4958 done
4959 IFS="$lt_save_ifs"
4960 else
4961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4962 fi
4963 fi
4964
4965 LD="$lt_cv_path_LD"
4966 if test -n "$LD"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4968 $as_echo "$LD" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4972 fi
4973 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4976 if ${lt_cv_prog_gnu_ld+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4980 case `$LD -v 2>&1 </dev/null` in
4981 *GNU* | *'with BFD'*)
4982 lt_cv_prog_gnu_ld=yes
4983 ;;
4984 *)
4985 lt_cv_prog_gnu_ld=no
4986 ;;
4987 esac
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4990 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4991 with_gnu_ld=$lt_cv_prog_gnu_ld
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5002 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5003 if ${lt_cv_path_NM+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$NM"; then
5007 # Let the user override the test.
5008 lt_cv_path_NM="$NM"
5009 else
5010 lt_nm_to_check="${ac_tool_prefix}nm"
5011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5012 lt_nm_to_check="$lt_nm_to_check nm"
5013 fi
5014 for lt_tmp_nm in $lt_nm_to_check; do
5015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5017 IFS="$lt_save_ifs"
5018 test -z "$ac_dir" && ac_dir=.
5019 tmp_nm="$ac_dir/$lt_tmp_nm"
5020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5021 # Check to see if the nm accepts a BSD-compat flag.
5022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5023 # nm: unknown option "B" ignored
5024 # Tru64's nm complains that /dev/null is an invalid object file
5025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5026 */dev/null* | *'Invalid file or object type'*)
5027 lt_cv_path_NM="$tmp_nm -B"
5028 break
5029 ;;
5030 *)
5031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5032 */dev/null*)
5033 lt_cv_path_NM="$tmp_nm -p"
5034 break
5035 ;;
5036 *)
5037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5038 continue # so that we can try to find one that supports BSD flags
5039 ;;
5040 esac
5041 ;;
5042 esac
5043 fi
5044 done
5045 IFS="$lt_save_ifs"
5046 done
5047 : ${lt_cv_path_NM=no}
5048 fi
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5051 $as_echo "$lt_cv_path_NM" >&6; }
5052 if test "$lt_cv_path_NM" != "no"; then
5053 NM="$lt_cv_path_NM"
5054 else
5055 # Didn't find any BSD compatible name lister, look for dumpbin.
5056 if test -n "$DUMPBIN"; then :
5057 # Let the user override the test.
5058 else
5059 if test -n "$ac_tool_prefix"; then
5060 for ac_prog in dumpbin "link -dump"
5061 do
5062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_DUMPBIN+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$DUMPBIN"; then
5070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 DUMPBIN=$ac_cv_prog_DUMPBIN
5090 if test -n "$DUMPBIN"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5092 $as_echo "$DUMPBIN" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099 test -n "$DUMPBIN" && break
5100 done
5101 fi
5102 if test -z "$DUMPBIN"; then
5103 ac_ct_DUMPBIN=$DUMPBIN
5104 for ac_prog in dumpbin "link -dump"
5105 do
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_DUMPBIN"; then
5114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5134 if test -n "$ac_ct_DUMPBIN"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5136 $as_echo "$ac_ct_DUMPBIN" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143 test -n "$ac_ct_DUMPBIN" && break
5144 done
5145
5146 if test "x$ac_ct_DUMPBIN" = x; then
5147 DUMPBIN=":"
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150 yes:)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5154 esac
5155 DUMPBIN=$ac_ct_DUMPBIN
5156 fi
5157 fi
5158
5159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5160 *COFF*)
5161 DUMPBIN="$DUMPBIN -symbols"
5162 ;;
5163 *)
5164 DUMPBIN=:
5165 ;;
5166 esac
5167 fi
5168
5169 if test "$DUMPBIN" != ":"; then
5170 NM="$DUMPBIN"
5171 fi
5172 fi
5173 test -z "$NM" && NM=nm
5174
5175
5176
5177
5178
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5182 if ${lt_cv_nm_interface+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 lt_cv_nm_interface="BSD nm"
5186 echo "int some_variable = 0;" > conftest.$ac_ext
5187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5188 (eval "$ac_compile" 2>conftest.err)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5192 cat conftest.err >&5
5193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5194 cat conftest.out >&5
5195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5196 lt_cv_nm_interface="MS dumpbin"
5197 fi
5198 rm -f conftest*
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5201 $as_echo "$lt_cv_nm_interface" >&6; }
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5204 $as_echo_n "checking whether ln -s works... " >&6; }
5205 LN_S=$as_ln_s
5206 if test "$LN_S" = "ln -s"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5211 $as_echo "no, using $LN_S" >&6; }
5212 fi
5213
5214 # find the maximum length of command line arguments
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5217 if ${lt_cv_sys_max_cmd_len+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 i=0
5221 teststring="ABCD"
5222
5223 case $build_os in
5224 msdosdjgpp*)
5225 # On DJGPP, this test can blow up pretty badly due to problems in libc
5226 # (any single argument exceeding 2000 bytes causes a buffer overrun
5227 # during glob expansion). Even if it were fixed, the result of this
5228 # check would be larger than it should be.
5229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5230 ;;
5231
5232 gnu*)
5233 # Under GNU Hurd, this test is not required because there is
5234 # no limit to the length of command line arguments.
5235 # Libtool will interpret -1 as no limit whatsoever
5236 lt_cv_sys_max_cmd_len=-1;
5237 ;;
5238
5239 cygwin* | mingw* | cegcc*)
5240 # On Win9x/ME, this test blows up -- it succeeds, but takes
5241 # about 5 minutes as the teststring grows exponentially.
5242 # Worse, since 9x/ME are not pre-emptively multitasking,
5243 # you end up with a "frozen" computer, even though with patience
5244 # the test eventually succeeds (with a max line length of 256k).
5245 # Instead, let's just punt: use the minimum linelength reported by
5246 # all of the supported platforms: 8192 (on NT/2K/XP).
5247 lt_cv_sys_max_cmd_len=8192;
5248 ;;
5249
5250 mint*)
5251 # On MiNT this can take a long time and run out of memory.
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 amigaos*)
5256 # On AmigaOS with pdksh, this test takes hours, literally.
5257 # So we just punt and use a minimum line length of 8192.
5258 lt_cv_sys_max_cmd_len=8192;
5259 ;;
5260
5261 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5262 # This has been around since 386BSD, at least. Likely further.
5263 if test -x /sbin/sysctl; then
5264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5265 elif test -x /usr/sbin/sysctl; then
5266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5267 else
5268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5269 fi
5270 # And add a safety zone
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5273 ;;
5274
5275 interix*)
5276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5277 lt_cv_sys_max_cmd_len=196608
5278 ;;
5279
5280 os2*)
5281 # The test takes a long time on OS/2.
5282 lt_cv_sys_max_cmd_len=8192
5283 ;;
5284
5285 osf*)
5286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5288 # nice to cause kernel panics so lets avoid the loop below.
5289 # First set a reasonable default.
5290 lt_cv_sys_max_cmd_len=16384
5291 #
5292 if test -x /sbin/sysconfig; then
5293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5295 esac
5296 fi
5297 ;;
5298 sco3.2v5*)
5299 lt_cv_sys_max_cmd_len=102400
5300 ;;
5301 sysv5* | sco5v6* | sysv4.2uw2*)
5302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5303 if test -n "$kargmax"; then
5304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5305 else
5306 lt_cv_sys_max_cmd_len=32768
5307 fi
5308 ;;
5309 *)
5310 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5311 if test -n "$lt_cv_sys_max_cmd_len"; then
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5314 else
5315 # Make teststring a little bigger before we do anything with it.
5316 # a 1K string should be a reasonable start.
5317 for i in 1 2 3 4 5 6 7 8 ; do
5318 teststring=$teststring$teststring
5319 done
5320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5321 # If test is not a shell built-in, we'll probably end up computing a
5322 # maximum length that is only half of the actual maximum length, but
5323 # we can't tell.
5324 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5325 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5326 test $i != 17 # 1/2 MB should be enough
5327 do
5328 i=`expr $i + 1`
5329 teststring=$teststring$teststring
5330 done
5331 # Only check the string length outside the loop.
5332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5333 teststring=
5334 # Add a significant safety factor because C++ compilers can tack on
5335 # massive amounts of additional arguments before passing them to the
5336 # linker. It appears as though 1/2 is a usable value.
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5338 fi
5339 ;;
5340 esac
5341
5342 fi
5343
5344 if test -n $lt_cv_sys_max_cmd_len ; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5346 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5349 $as_echo "none" >&6; }
5350 fi
5351 max_cmd_len=$lt_cv_sys_max_cmd_len
5352
5353
5354
5355
5356
5357
5358 : ${CP="cp -f"}
5359 : ${MV="mv -f"}
5360 : ${RM="rm -f"}
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5363 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5364 # Try some XSI features
5365 xsi_shell=no
5366 ( _lt_dummy="a/b/c"
5367 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5368 = c,a/b,b/c, \
5369 && eval 'test $(( 1 + 1 )) -eq 2 \
5370 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5371 && xsi_shell=yes
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5373 $as_echo "$xsi_shell" >&6; }
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5377 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5378 lt_shell_append=no
5379 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5380 >/dev/null 2>&1 \
5381 && lt_shell_append=yes
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5383 $as_echo "$lt_shell_append" >&6; }
5384
5385
5386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5387 lt_unset=unset
5388 else
5389 lt_unset=false
5390 fi
5391
5392
5393
5394
5395
5396 # test EBCDIC or ASCII
5397 case `echo X|tr X '\101'` in
5398 A) # ASCII based system
5399 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5400 lt_SP2NL='tr \040 \012'
5401 lt_NL2SP='tr \015\012 \040\040'
5402 ;;
5403 *) # EBCDIC based system
5404 lt_SP2NL='tr \100 \n'
5405 lt_NL2SP='tr \r\n \100\100'
5406 ;;
5407 esac
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5418 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5419 if ${lt_cv_to_host_file_cmd+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 case $host in
5423 *-*-mingw* )
5424 case $build in
5425 *-*-mingw* ) # actually msys
5426 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5427 ;;
5428 *-*-cygwin* )
5429 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5430 ;;
5431 * ) # otherwise, assume *nix
5432 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5433 ;;
5434 esac
5435 ;;
5436 *-*-cygwin* )
5437 case $build in
5438 *-*-mingw* ) # actually msys
5439 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5440 ;;
5441 *-*-cygwin* )
5442 lt_cv_to_host_file_cmd=func_convert_file_noop
5443 ;;
5444 * ) # otherwise, assume *nix
5445 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5446 ;;
5447 esac
5448 ;;
5449 * ) # unhandled hosts (and "normal" native builds)
5450 lt_cv_to_host_file_cmd=func_convert_file_noop
5451 ;;
5452 esac
5453
5454 fi
5455
5456 to_host_file_cmd=$lt_cv_to_host_file_cmd
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5458 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5465 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5466 if ${lt_cv_to_tool_file_cmd+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 #assume ordinary cross tools, or native build.
5470 lt_cv_to_tool_file_cmd=func_convert_file_noop
5471 case $host in
5472 *-*-mingw* )
5473 case $build in
5474 *-*-mingw* ) # actually msys
5475 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5476 ;;
5477 esac
5478 ;;
5479 esac
5480
5481 fi
5482
5483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5485 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5486
5487
5488
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5492 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5493 if ${lt_cv_ld_reload_flag+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 lt_cv_ld_reload_flag='-r'
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5499 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5500 reload_flag=$lt_cv_ld_reload_flag
5501 case $reload_flag in
5502 "" | " "*) ;;
5503 *) reload_flag=" $reload_flag" ;;
5504 esac
5505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5506 case $host_os in
5507 cygwin* | mingw* | pw32* | cegcc*)
5508 if test "$GCC" != yes; then
5509 reload_cmds=false
5510 fi
5511 ;;
5512 darwin*)
5513 if test "$GCC" = yes; then
5514 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5515 else
5516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5517 fi
5518 ;;
5519 esac
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5531 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_OBJDUMP+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$OBJDUMP"; then
5538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 OBJDUMP=$ac_cv_prog_OBJDUMP
5558 if test -n "$OBJDUMP"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5560 $as_echo "$OBJDUMP" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if test -z "$ac_cv_prog_OBJDUMP"; then
5569 ac_ct_OBJDUMP=$OBJDUMP
5570 # Extract the first word of "objdump", so it can be a program name with args.
5571 set dummy objdump; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$ac_ct_OBJDUMP"; then
5578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5598 if test -n "$ac_ct_OBJDUMP"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5600 $as_echo "$ac_ct_OBJDUMP" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606 if test "x$ac_ct_OBJDUMP" = x; then
5607 OBJDUMP="false"
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615 OBJDUMP=$ac_ct_OBJDUMP
5616 fi
5617 else
5618 OBJDUMP="$ac_cv_prog_OBJDUMP"
5619 fi
5620
5621 test -z "$OBJDUMP" && OBJDUMP=objdump
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5632 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5633 if ${lt_cv_deplibs_check_method+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 lt_cv_file_magic_cmd='$MAGIC_CMD'
5637 lt_cv_file_magic_test_file=
5638 lt_cv_deplibs_check_method='unknown'
5639 # Need to set the preceding variable on all platforms that support
5640 # interlibrary dependencies.
5641 # 'none' -- dependencies not supported.
5642 # `unknown' -- same as none, but documents that we really don't know.
5643 # 'pass_all' -- all dependencies passed with no checks.
5644 # 'test_compile' -- check by making test program.
5645 # 'file_magic [[regex]]' -- check by looking for files in library path
5646 # which responds to the $file_magic_cmd with a given extended regex.
5647 # If you have `file' or equivalent on your system and you're not sure
5648 # whether `pass_all' will *always* work, you probably want this one.
5649
5650 case $host_os in
5651 aix[4-9]*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 beos*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 bsdi[45]*)
5660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5661 lt_cv_file_magic_cmd='/usr/bin/file -L'
5662 lt_cv_file_magic_test_file=/shlib/libc.so
5663 ;;
5664
5665 cygwin*)
5666 # func_win32_libid is a shell function defined in ltmain.sh
5667 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5668 lt_cv_file_magic_cmd='func_win32_libid'
5669 ;;
5670
5671 mingw* | pw32*)
5672 # Base MSYS/MinGW do not provide the 'file' command needed by
5673 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5674 # unless we find 'file', for example because we are cross-compiling.
5675 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5676 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5677 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678 lt_cv_file_magic_cmd='func_win32_libid'
5679 else
5680 # Keep this pattern in sync with the one in func_win32_libid.
5681 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5683 fi
5684 ;;
5685
5686 cegcc*)
5687 # use the weaker test based on 'objdump'. See mingw*.
5688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
5690 ;;
5691
5692 darwin* | rhapsody*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
5696 freebsd* | dragonfly*)
5697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5698 case $host_cpu in
5699 i*86 )
5700 # Not sure whether the presence of OpenBSD here was a mistake.
5701 # Let's accept both of them until this is cleared up.
5702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5703 lt_cv_file_magic_cmd=/usr/bin/file
5704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5705 ;;
5706 esac
5707 else
5708 lt_cv_deplibs_check_method=pass_all
5709 fi
5710 ;;
5711
5712 gnu*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 haiku*)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720 hpux10.20* | hpux11*)
5721 lt_cv_file_magic_cmd=/usr/bin/file
5722 case $host_cpu in
5723 ia64*)
5724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5726 ;;
5727 hppa*64*)
5728 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]'
5729 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5730 ;;
5731 *)
5732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5733 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5734 ;;
5735 esac
5736 ;;
5737
5738 interix[3-9]*)
5739 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5741 ;;
5742
5743 irix5* | irix6* | nonstopux*)
5744 case $LD in
5745 *-32|*"-32 ") libmagic=32-bit;;
5746 *-n32|*"-n32 ") libmagic=N32;;
5747 *-64|*"-64 ") libmagic=64-bit;;
5748 *) libmagic=never-match;;
5749 esac
5750 lt_cv_deplibs_check_method=pass_all
5751 ;;
5752
5753 # This must be glibc/ELF.
5754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 netbsd*)
5759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 else
5762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763 fi
5764 ;;
5765
5766 newos6*)
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770 ;;
5771
5772 *nto* | *qnx*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776 openbsd*)
5777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779 else
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781 fi
5782 ;;
5783
5784 osf3* | osf4* | osf5*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 rdos*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 solaris*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5797 lt_cv_deplibs_check_method=pass_all
5798 ;;
5799
5800 sysv4 | sysv4.3*)
5801 case $host_vendor in
5802 motorola)
5803 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]'
5804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5805 ;;
5806 ncr)
5807 lt_cv_deplibs_check_method=pass_all
5808 ;;
5809 sequent)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5812 ;;
5813 sni)
5814 lt_cv_file_magic_cmd='/bin/file'
5815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5816 lt_cv_file_magic_test_file=/lib/libc.so
5817 ;;
5818 siemens)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821 pc)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824 esac
5825 ;;
5826
5827 tpf*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830 esac
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5834 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5835
5836 file_magic_glob=
5837 want_nocaseglob=no
5838 if test "$build" = "$host"; then
5839 case $host_os in
5840 mingw* | pw32*)
5841 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5842 want_nocaseglob=yes
5843 else
5844 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5845 fi
5846 ;;
5847 esac
5848 fi
5849
5850 file_magic_cmd=$lt_cv_file_magic_cmd
5851 deplibs_check_method=$lt_cv_deplibs_check_method
5852 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_prog_DLLTOOL+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$DLLTOOL"; then
5884 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 DLLTOOL=$ac_cv_prog_DLLTOOL
5904 if test -n "$DLLTOOL"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5906 $as_echo "$DLLTOOL" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912
5913 fi
5914 if test -z "$ac_cv_prog_DLLTOOL"; then
5915 ac_ct_DLLTOOL=$DLLTOOL
5916 # Extract the first word of "dlltool", so it can be a program name with args.
5917 set dummy dlltool; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_DLLTOOL"; then
5924 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5944 if test -n "$ac_ct_DLLTOOL"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5946 $as_echo "$ac_ct_DLLTOOL" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952 if test "x$ac_ct_DLLTOOL" = x; then
5953 DLLTOOL="false"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 DLLTOOL=$ac_ct_DLLTOOL
5962 fi
5963 else
5964 DLLTOOL="$ac_cv_prog_DLLTOOL"
5965 fi
5966
5967 test -z "$DLLTOOL" && DLLTOOL=dlltool
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5979 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5980 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 lt_cv_sharedlib_from_linklib_cmd='unknown'
5984
5985 case $host_os in
5986 cygwin* | mingw* | pw32* | cegcc*)
5987 # two different shell functions defined in ltmain.sh
5988 # decide which to use based on capabilities of $DLLTOOL
5989 case `$DLLTOOL --help 2>&1` in
5990 *--identify-strict*)
5991 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5992 ;;
5993 *)
5994 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5995 ;;
5996 esac
5997 ;;
5998 *)
5999 # fallback: assume linklib IS sharedlib
6000 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6001 ;;
6002 esac
6003
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6006 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6007 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6008 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6009
6010
6011
6012
6013
6014
6015
6016 if test -n "$ac_tool_prefix"; then
6017 for ac_prog in ar
6018 do
6019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if ${ac_cv_prog_AR+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -n "$AR"; then
6027 ac_cv_prog_AR="$AR" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 AR=$ac_cv_prog_AR
6047 if test -n "$AR"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6049 $as_echo "$AR" >&6; }
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055
6056 test -n "$AR" && break
6057 done
6058 fi
6059 if test -z "$AR"; then
6060 ac_ct_AR=$AR
6061 for ac_prog in ar
6062 do
6063 # Extract the first word of "$ac_prog", so it can be a program name with args.
6064 set dummy $ac_prog; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$ac_ct_AR"; then
6071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_ac_ct_AR="$ac_prog"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6091 if test -n "$ac_ct_AR"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6093 $as_echo "$ac_ct_AR" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 test -n "$ac_ct_AR" && break
6101 done
6102
6103 if test "x$ac_ct_AR" = x; then
6104 AR="false"
6105 else
6106 case $cross_compiling:$ac_tool_warned in
6107 yes:)
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6111 esac
6112 AR=$ac_ct_AR
6113 fi
6114 fi
6115
6116 : ${AR=ar}
6117 : ${AR_FLAGS=cru}
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6130 $as_echo_n "checking for archiver @FILE support... " >&6; }
6131 if ${lt_cv_ar_at_file+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 lt_cv_ar_at_file=no
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137
6138 int
6139 main ()
6140 {
6141
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 echo conftest.$ac_objext > conftest.lst
6148 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6150 (eval $lt_ar_try) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }
6154 if test "$ac_status" -eq 0; then
6155 # Ensure the archiver fails upon bogus file names.
6156 rm -f conftest.$ac_objext libconftest.a
6157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6158 (eval $lt_ar_try) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }
6162 if test "$ac_status" -ne 0; then
6163 lt_cv_ar_at_file=@
6164 fi
6165 fi
6166 rm -f conftest.* libconftest.a
6167
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170
6171 fi
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6173 $as_echo "$lt_cv_ar_at_file" >&6; }
6174
6175 if test "x$lt_cv_ar_at_file" = xno; then
6176 archiver_list_spec=
6177 else
6178 archiver_list_spec=$lt_cv_ar_at_file
6179 fi
6180
6181
6182
6183
6184
6185
6186
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}strip; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_STRIP+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$STRIP"; then
6196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 STRIP=$ac_cv_prog_STRIP
6216 if test -n "$STRIP"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6218 $as_echo "$STRIP" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_STRIP"; then
6227 ac_ct_STRIP=$STRIP
6228 # Extract the first word of "strip", so it can be a program name with args.
6229 set dummy strip; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$ac_ct_STRIP"; then
6236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_STRIP="strip"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6256 if test -n "$ac_ct_STRIP"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6258 $as_echo "$ac_ct_STRIP" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264 if test "x$ac_ct_STRIP" = x; then
6265 STRIP=":"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271 ac_tool_warned=yes ;;
6272 esac
6273 STRIP=$ac_ct_STRIP
6274 fi
6275 else
6276 STRIP="$ac_cv_prog_STRIP"
6277 fi
6278
6279 test -z "$STRIP" && STRIP=:
6280
6281
6282
6283
6284
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_RANLIB+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$RANLIB"; then
6295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 RANLIB=$ac_cv_prog_RANLIB
6315 if test -n "$RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6317 $as_echo "$RANLIB" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_RANLIB"; then
6326 ac_ct_RANLIB=$RANLIB
6327 # Extract the first word of "ranlib", so it can be a program name with args.
6328 set dummy ranlib; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_RANLIB"; then
6335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_RANLIB="ranlib"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6355 if test -n "$ac_ct_RANLIB"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6357 $as_echo "$ac_ct_RANLIB" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_RANLIB" = x; then
6364 RANLIB=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 RANLIB=$ac_ct_RANLIB
6373 fi
6374 else
6375 RANLIB="$ac_cv_prog_RANLIB"
6376 fi
6377
6378 test -z "$RANLIB" && RANLIB=:
6379
6380
6381
6382
6383
6384
6385 # Determine commands to create old-style static archives.
6386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6387 old_postinstall_cmds='chmod 644 $oldlib'
6388 old_postuninstall_cmds=
6389
6390 if test -n "$RANLIB"; then
6391 case $host_os in
6392 openbsd*)
6393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6394 ;;
6395 *)
6396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6397 ;;
6398 esac
6399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6400 fi
6401
6402 case $host_os in
6403 darwin*)
6404 lock_old_archive_extraction=yes ;;
6405 *)
6406 lock_old_archive_extraction=no ;;
6407 esac
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447 # If no C compiler was specified, use CC.
6448 LTCC=${LTCC-"$CC"}
6449
6450 # If no C compiler flags were specified, use CFLAGS.
6451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6452
6453 # Allow CC to be a program name with arguments.
6454 compiler=$CC
6455
6456
6457 # Check for command to grab the raw symbol name followed by C symbol from nm.
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6460 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463
6464 # These are sane defaults that work on at least a few old systems.
6465 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6466
6467 # Character class describing NM global symbol codes.
6468 symcode='[BCDEGRST]'
6469
6470 # Regexp to match symbols that can be accessed directly from C.
6471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6472
6473 # Define system-specific variables.
6474 case $host_os in
6475 aix*)
6476 symcode='[BCDT]'
6477 ;;
6478 cygwin* | mingw* | pw32* | cegcc*)
6479 symcode='[ABCDGISTW]'
6480 ;;
6481 hpux*)
6482 if test "$host_cpu" = ia64; then
6483 symcode='[ABCDEGRST]'
6484 fi
6485 ;;
6486 irix* | nonstopux*)
6487 symcode='[BCDEGRST]'
6488 ;;
6489 osf*)
6490 symcode='[BCDEGQRST]'
6491 ;;
6492 solaris*)
6493 symcode='[BDRT]'
6494 ;;
6495 sco3.2v5*)
6496 symcode='[DT]'
6497 ;;
6498 sysv4.2uw2*)
6499 symcode='[DT]'
6500 ;;
6501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6502 symcode='[ABDT]'
6503 ;;
6504 sysv4)
6505 symcode='[DFNSTU]'
6506 ;;
6507 esac
6508
6509 # If we're using GNU nm, then use its standard symbol codes.
6510 case `$NM -V 2>&1` in
6511 *GNU* | *'with BFD'*)
6512 symcode='[ABCDGIRSTW]' ;;
6513 esac
6514
6515 # Transform an extracted symbol line into a proper C declaration.
6516 # Some systems (esp. on ia64) link data and code symbols differently,
6517 # so use this general approach.
6518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519
6520 # Transform an extracted symbol line into symbol name and symbol address
6521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6522 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'"
6523
6524 # Handle CRLF in mingw tool chain
6525 opt_cr=
6526 case $build_os in
6527 mingw*)
6528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6529 ;;
6530 esac
6531
6532 # Try without a prefix underscore, then with it.
6533 for ac_symprfx in "" "_"; do
6534
6535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6536 symxfrm="\\1 $ac_symprfx\\2 \\2"
6537
6538 # Write the raw and C identifiers.
6539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6540 # Fake it for dumpbin and say T for any non-static function
6541 # and D for any global variable.
6542 # Also find C++ and __fastcall symbols from MSVC++,
6543 # which start with @ or ?.
6544 lt_cv_sys_global_symbol_pipe="$AWK '"\
6545 " {last_section=section; section=\$ 3};"\
6546 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6547 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6548 " \$ 0!~/External *\|/{next};"\
6549 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6550 " {if(hide[section]) next};"\
6551 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6552 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6553 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6554 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6555 " ' prfx=^$ac_symprfx"
6556 else
6557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6558 fi
6559 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6560
6561 # Check to see that the pipe works correctly.
6562 pipe_works=no
6563
6564 rm -f conftest*
6565 cat > conftest.$ac_ext <<_LT_EOF
6566 #ifdef __cplusplus
6567 extern "C" {
6568 #endif
6569 char nm_test_var;
6570 void nm_test_func(void);
6571 void nm_test_func(void){}
6572 #ifdef __cplusplus
6573 }
6574 #endif
6575 int main(){nm_test_var='a';nm_test_func();return(0);}
6576 _LT_EOF
6577
6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582 test $ac_status = 0; }; then
6583 # Now try to grab the symbols.
6584 nlist=conftest.nm
6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6586 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6587 ac_status=$?
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; } && test -s "$nlist"; then
6590 # Try sorting and uniquifying the output.
6591 if sort "$nlist" | uniq > "$nlist"T; then
6592 mv -f "$nlist"T "$nlist"
6593 else
6594 rm -f "$nlist"T
6595 fi
6596
6597 # Make sure that we snagged all the symbols we need.
6598 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6599 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6600 cat <<_LT_EOF > conftest.$ac_ext
6601 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6602 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6603 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6604 relocations are performed -- see ld's documentation on pseudo-relocs. */
6605 # define LT_DLSYM_CONST
6606 #elif defined(__osf__)
6607 /* This system does not cope well with relocations in const data. */
6608 # define LT_DLSYM_CONST
6609 #else
6610 # define LT_DLSYM_CONST const
6611 #endif
6612
6613 #ifdef __cplusplus
6614 extern "C" {
6615 #endif
6616
6617 _LT_EOF
6618 # Now generate the symbol file.
6619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6620
6621 cat <<_LT_EOF >> conftest.$ac_ext
6622
6623 /* The mapping between symbol names and symbols. */
6624 LT_DLSYM_CONST struct {
6625 const char *name;
6626 void *address;
6627 }
6628 lt__PROGRAM__LTX_preloaded_symbols[] =
6629 {
6630 { "@PROGRAM@", (void *) 0 },
6631 _LT_EOF
6632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6633 cat <<\_LT_EOF >> conftest.$ac_ext
6634 {0, (void *) 0}
6635 };
6636
6637 /* This works around a problem in FreeBSD linker */
6638 #ifdef FREEBSD_WORKAROUND
6639 static const void *lt_preloaded_setup() {
6640 return lt__PROGRAM__LTX_preloaded_symbols;
6641 }
6642 #endif
6643
6644 #ifdef __cplusplus
6645 }
6646 #endif
6647 _LT_EOF
6648 # Now try linking the two files.
6649 mv conftest.$ac_objext conftstm.$ac_objext
6650 lt_globsym_save_LIBS=$LIBS
6651 lt_globsym_save_CFLAGS=$CFLAGS
6652 LIBS="conftstm.$ac_objext"
6653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6655 (eval $ac_link) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6659 pipe_works=yes
6660 fi
6661 LIBS=$lt_globsym_save_LIBS
6662 CFLAGS=$lt_globsym_save_CFLAGS
6663 else
6664 echo "cannot find nm_test_func in $nlist" >&5
6665 fi
6666 else
6667 echo "cannot find nm_test_var in $nlist" >&5
6668 fi
6669 else
6670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6671 fi
6672 else
6673 echo "$progname: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 fi
6676 rm -rf conftest* conftst*
6677
6678 # Do not use the global_symbol_pipe unless it works.
6679 if test "$pipe_works" = yes; then
6680 break
6681 else
6682 lt_cv_sys_global_symbol_pipe=
6683 fi
6684 done
6685
6686 fi
6687
6688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6689 lt_cv_sys_global_symbol_to_cdecl=
6690 fi
6691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6693 $as_echo "failed" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6696 $as_echo "ok" >&6; }
6697 fi
6698
6699 # Response file support.
6700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6701 nm_file_list_spec='@'
6702 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6703 nm_file_list_spec='@'
6704 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6733 $as_echo_n "checking for sysroot... " >&6; }
6734
6735 # Check whether --with-sysroot was given.
6736 if test "${with_sysroot+set}" = set; then :
6737 withval=$with_sysroot;
6738 else
6739 with_sysroot=no
6740 fi
6741
6742
6743 lt_sysroot=
6744 case ${with_sysroot} in #(
6745 yes)
6746 if test "$GCC" = yes; then
6747 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6748 fi
6749 ;; #(
6750 /*)
6751 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6752 ;; #(
6753 no|'')
6754 ;; #(
6755 *)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6757 $as_echo "${with_sysroot}" >&6; }
6758 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6759 ;;
6760 esac
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6763 $as_echo "${lt_sysroot:-no}" >&6; }
6764
6765
6766
6767
6768
6769 # Check whether --enable-libtool-lock was given.
6770 if test "${enable_libtool_lock+set}" = set; then :
6771 enableval=$enable_libtool_lock;
6772 fi
6773
6774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6775
6776 # Some flags need to be propagated to the compiler or linker for good
6777 # libtool support.
6778 case $host in
6779 ia64-*-hpux*)
6780 # Find out which ABI we are using.
6781 echo 'int i;' > conftest.$ac_ext
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783 (eval $ac_compile) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }; then
6787 case `/usr/bin/file conftest.$ac_objext` in
6788 *ELF-32*)
6789 HPUX_IA64_MODE="32"
6790 ;;
6791 *ELF-64*)
6792 HPUX_IA64_MODE="64"
6793 ;;
6794 esac
6795 fi
6796 rm -rf conftest*
6797 ;;
6798 *-*-irix6*)
6799 # Find out which ABI we are using.
6800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802 (eval $ac_compile) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; }; then
6806 if test "$lt_cv_prog_gnu_ld" = yes; then
6807 case `/usr/bin/file conftest.$ac_objext` in
6808 *32-bit*)
6809 LD="${LD-ld} -melf32bsmip"
6810 ;;
6811 *N32*)
6812 LD="${LD-ld} -melf32bmipn32"
6813 ;;
6814 *64-bit*)
6815 LD="${LD-ld} -melf64bmip"
6816 ;;
6817 esac
6818 else
6819 case `/usr/bin/file conftest.$ac_objext` in
6820 *32-bit*)
6821 LD="${LD-ld} -32"
6822 ;;
6823 *N32*)
6824 LD="${LD-ld} -n32"
6825 ;;
6826 *64-bit*)
6827 LD="${LD-ld} -64"
6828 ;;
6829 esac
6830 fi
6831 fi
6832 rm -rf conftest*
6833 ;;
6834
6835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6837 # Find out which ABI we are using.
6838 echo 'int i;' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 case `/usr/bin/file conftest.o` in
6845 *32-bit*)
6846 case $host in
6847 x86_64-*kfreebsd*-gnu)
6848 LD="${LD-ld} -m elf_i386_fbsd"
6849 ;;
6850 x86_64-*linux*)
6851 LD="${LD-ld} -m elf_i386"
6852 ;;
6853 ppc64-*linux*|powerpc64-*linux*)
6854 LD="${LD-ld} -m elf32ppclinux"
6855 ;;
6856 s390x-*linux*)
6857 LD="${LD-ld} -m elf_s390"
6858 ;;
6859 sparc64-*linux*)
6860 LD="${LD-ld} -m elf32_sparc"
6861 ;;
6862 esac
6863 ;;
6864 *64-bit*)
6865 case $host in
6866 x86_64-*kfreebsd*-gnu)
6867 LD="${LD-ld} -m elf_x86_64_fbsd"
6868 ;;
6869 x86_64-*linux*)
6870 LD="${LD-ld} -m elf_x86_64"
6871 ;;
6872 ppc*-*linux*|powerpc*-*linux*)
6873 LD="${LD-ld} -m elf64ppc"
6874 ;;
6875 s390*-*linux*|s390*-*tpf*)
6876 LD="${LD-ld} -m elf64_s390"
6877 ;;
6878 sparc*-*linux*)
6879 LD="${LD-ld} -m elf64_sparc"
6880 ;;
6881 esac
6882 ;;
6883 esac
6884 fi
6885 rm -rf conftest*
6886 ;;
6887
6888 *-*-sco3.2v5*)
6889 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6890 SAVE_CFLAGS="$CFLAGS"
6891 CFLAGS="$CFLAGS -belf"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6893 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6894 if ${lt_cv_cc_needs_belf+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_ext=c
6898 ac_cpp='$CPP $CPPFLAGS'
6899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 int
6907 main ()
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"; then :
6915 lt_cv_cc_needs_belf=yes
6916 else
6917 lt_cv_cc_needs_belf=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6929 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6932 CFLAGS="$SAVE_CFLAGS"
6933 fi
6934 ;;
6935 *-*solaris*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *64-bit*)
6945 case $lt_cv_prog_gnu_ld in
6946 yes*)
6947 case $host in
6948 i?86-*-solaris*)
6949 LD="${LD-ld} -m elf_x86_64"
6950 ;;
6951 sparc*-*-solaris*)
6952 LD="${LD-ld} -m elf64_sparc"
6953 ;;
6954 esac
6955 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6956 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6957 LD="${LD-ld}_sol2"
6958 fi
6959 ;;
6960 *)
6961 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6962 LD="${LD-ld} -64"
6963 fi
6964 ;;
6965 esac
6966 ;;
6967 esac
6968 fi
6969 rm -rf conftest*
6970 ;;
6971 esac
6972
6973 need_locks="$enable_libtool_lock"
6974
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}mt; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$MANIFEST_TOOL"; then
6984 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7004 if test -n "$MANIFEST_TOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7006 $as_echo "$MANIFEST_TOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7015 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7016 # Extract the first word of "mt", so it can be a program name with args.
7017 set dummy mt; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$ac_ct_MANIFEST_TOOL"; then
7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7044 if test -n "$ac_ct_MANIFEST_TOOL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7046 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7053 MANIFEST_TOOL=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056 yes:)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7060 esac
7061 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7062 fi
7063 else
7064 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7065 fi
7066
7067 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7069 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7070 if ${lt_cv_path_mainfest_tool+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 lt_cv_path_mainfest_tool=no
7074 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7075 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7076 cat conftest.err >&5
7077 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7078 lt_cv_path_mainfest_tool=yes
7079 fi
7080 rm -f conftest*
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7083 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7084 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7085 MANIFEST_TOOL=:
7086 fi
7087
7088
7089
7090
7091
7092
7093 case $host_os in
7094 rhapsody* | darwin*)
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$DSYMUTIL"; then
7104 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7124 if test -n "$DSYMUTIL"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7126 $as_echo "$DSYMUTIL" >&6; }
7127 else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132
7133 fi
7134 if test -z "$ac_cv_prog_DSYMUTIL"; then
7135 ac_ct_DSYMUTIL=$DSYMUTIL
7136 # Extract the first word of "dsymutil", so it can be a program name with args.
7137 set dummy dsymutil; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$ac_ct_DSYMUTIL"; then
7144 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7164 if test -n "$ac_ct_DSYMUTIL"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7166 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172 if test "x$ac_ct_DSYMUTIL" = x; then
7173 DSYMUTIL=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181 DSYMUTIL=$ac_ct_DSYMUTIL
7182 fi
7183 else
7184 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7185 fi
7186
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_NMEDIT+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$NMEDIT"; then
7196 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 NMEDIT=$ac_cv_prog_NMEDIT
7216 if test -n "$NMEDIT"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7218 $as_echo "$NMEDIT" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_NMEDIT"; then
7227 ac_ct_NMEDIT=$NMEDIT
7228 # Extract the first word of "nmedit", so it can be a program name with args.
7229 set dummy nmedit; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$ac_ct_NMEDIT"; then
7236 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7256 if test -n "$ac_ct_NMEDIT"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7258 $as_echo "$ac_ct_NMEDIT" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264 if test "x$ac_ct_NMEDIT" = x; then
7265 NMEDIT=":"
7266 else
7267 case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273 NMEDIT=$ac_ct_NMEDIT
7274 fi
7275 else
7276 NMEDIT="$ac_cv_prog_NMEDIT"
7277 fi
7278
7279 if test -n "$ac_tool_prefix"; then
7280 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_LIPO+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$LIPO"; then
7288 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 LIPO=$ac_cv_prog_LIPO
7308 if test -n "$LIPO"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7310 $as_echo "$LIPO" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_LIPO"; then
7319 ac_ct_LIPO=$LIPO
7320 # Extract the first word of "lipo", so it can be a program name with args.
7321 set dummy lipo; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$ac_ct_LIPO"; then
7328 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_ac_ct_LIPO="lipo"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7348 if test -n "$ac_ct_LIPO"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7350 $as_echo "$ac_ct_LIPO" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356 if test "x$ac_ct_LIPO" = x; then
7357 LIPO=":"
7358 else
7359 case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365 LIPO=$ac_ct_LIPO
7366 fi
7367 else
7368 LIPO="$ac_cv_prog_LIPO"
7369 fi
7370
7371 if test -n "$ac_tool_prefix"; then
7372 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}otool; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_OTOOL+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$OTOOL"; then
7380 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 OTOOL=$ac_cv_prog_OTOOL
7400 if test -n "$OTOOL"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7402 $as_echo "$OTOOL" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_OTOOL"; then
7411 ac_ct_OTOOL=$OTOOL
7412 # Extract the first word of "otool", so it can be a program name with args.
7413 set dummy otool; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$ac_ct_OTOOL"; then
7420 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_ac_ct_OTOOL="otool"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7440 if test -n "$ac_ct_OTOOL"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7442 $as_echo "$ac_ct_OTOOL" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448 if test "x$ac_ct_OTOOL" = x; then
7449 OTOOL=":"
7450 else
7451 case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457 OTOOL=$ac_ct_OTOOL
7458 fi
7459 else
7460 OTOOL="$ac_cv_prog_OTOOL"
7461 fi
7462
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_OTOOL64+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$OTOOL64"; then
7472 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 OTOOL64=$ac_cv_prog_OTOOL64
7492 if test -n "$OTOOL64"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7494 $as_echo "$OTOOL64" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_OTOOL64"; then
7503 ac_ct_OTOOL64=$OTOOL64
7504 # Extract the first word of "otool64", so it can be a program name with args.
7505 set dummy otool64; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$ac_ct_OTOOL64"; then
7512 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_ac_ct_OTOOL64="otool64"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7532 if test -n "$ac_ct_OTOOL64"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7534 $as_echo "$ac_ct_OTOOL64" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540 if test "x$ac_ct_OTOOL64" = x; then
7541 OTOOL64=":"
7542 else
7543 case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549 OTOOL64=$ac_ct_OTOOL64
7550 fi
7551 else
7552 OTOOL64="$ac_cv_prog_OTOOL64"
7553 fi
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7582 $as_echo_n "checking for -single_module linker flag... " >&6; }
7583 if ${lt_cv_apple_cc_single_mod+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 lt_cv_apple_cc_single_mod=no
7587 if test -z "${LT_MULTI_MODULE}"; then
7588 # By default we will add the -single_module flag. You can override
7589 # by either setting the environment variable LT_MULTI_MODULE
7590 # non-empty at configure time, or by adding -multi_module to the
7591 # link flags.
7592 rm -rf libconftest.dylib*
7593 echo "int foo(void){return 1;}" > conftest.c
7594 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c" >&5
7596 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7597 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7598 _lt_result=$?
7599 # If there is a non-empty error log, and "single_module"
7600 # appears in it, assume the flag caused a linker warning
7601 if test -s conftest.err && $GREP single_module conftest.err; then
7602 cat conftest.err >&5
7603 # Otherwise, if the output was created with a 0 exit code from
7604 # the compiler, it worked.
7605 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7606 lt_cv_apple_cc_single_mod=yes
7607 else
7608 cat conftest.err >&5
7609 fi
7610 rm -rf libconftest.dylib*
7611 rm -f conftest.*
7612 fi
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7615 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7616
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7618 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7619 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 lt_cv_ld_exported_symbols_list=no
7623 save_LDFLAGS=$LDFLAGS
7624 echo "_main" > conftest.sym
7625 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 lt_cv_ld_exported_symbols_list=yes
7639 else
7640 lt_cv_ld_exported_symbols_list=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7644 LDFLAGS="$save_LDFLAGS"
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7648 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7651 $as_echo_n "checking for -force_load linker flag... " >&6; }
7652 if ${lt_cv_ld_force_load+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 lt_cv_ld_force_load=no
7656 cat > conftest.c << _LT_EOF
7657 int forced_loaded() { return 2;}
7658 _LT_EOF
7659 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7660 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7661 echo "$AR cru libconftest.a conftest.o" >&5
7662 $AR cru libconftest.a conftest.o 2>&5
7663 echo "$RANLIB libconftest.a" >&5
7664 $RANLIB libconftest.a 2>&5
7665 cat > conftest.c << _LT_EOF
7666 int main() { return 0;}
7667 _LT_EOF
7668 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7669 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7670 _lt_result=$?
7671 if test -s conftest.err && $GREP force_load conftest.err; then
7672 cat conftest.err >&5
7673 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7674 lt_cv_ld_force_load=yes
7675 else
7676 cat conftest.err >&5
7677 fi
7678 rm -f conftest.err libconftest.a conftest conftest.c
7679 rm -rf conftest.dSYM
7680
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7683 $as_echo "$lt_cv_ld_force_load" >&6; }
7684 case $host_os in
7685 rhapsody* | darwin1.[012])
7686 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7687 darwin1.*)
7688 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7689 darwin*) # darwin 5.x on
7690 # if running on 10.5 or later, the deployment target defaults
7691 # to the OS version, if on x86, and 10.4, the deployment
7692 # target defaults to 10.4. Don't you love it?
7693 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7694 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7695 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7696 10.[012]*)
7697 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7698 10.*)
7699 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7700 esac
7701 ;;
7702 esac
7703 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7704 _lt_dar_single_mod='$single_module'
7705 fi
7706 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7707 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7708 else
7709 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7710 fi
7711 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7712 _lt_dsymutil='~$DSYMUTIL $lib || :'
7713 else
7714 _lt_dsymutil=
7715 fi
7716 ;;
7717 esac
7718
7719 ac_ext=c
7720 ac_cpp='$CPP $CPPFLAGS'
7721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7725 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7726 # On Suns, sometimes $CPP names a directory.
7727 if test -n "$CPP" && test -d "$CPP"; then
7728 CPP=
7729 fi
7730 if test -z "$CPP"; then
7731 if ${ac_cv_prog_CPP+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 # Double quotes because CPP needs to be expanded
7735 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7736 do
7737 ac_preproc_ok=false
7738 for ac_c_preproc_warn_flag in '' yes
7739 do
7740 # Use a header file that comes with gcc, so configuring glibc
7741 # with a fresh cross-compiler works.
7742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 # <limits.h> exists even on freestanding compilers.
7744 # On the NeXT, cc -E runs the code through the compiler's parser,
7745 # not just through cpp. "Syntax error" is here to catch this case.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #ifdef __STDC__
7749 # include <limits.h>
7750 #else
7751 # include <assert.h>
7752 #endif
7753 Syntax error
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756
7757 else
7758 # Broken: fails on valid input.
7759 continue
7760 fi
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763 # OK, works on sane cases. Now check whether nonexistent headers
7764 # can be detected and how.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <ac_nonexistent.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # Broken: success on invalid input.
7771 continue
7772 else
7773 # Passes both tests.
7774 ac_preproc_ok=:
7775 break
7776 fi
7777 rm -f conftest.err conftest.i conftest.$ac_ext
7778
7779 done
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.$ac_ext
7782 if $ac_preproc_ok; then :
7783 break
7784 fi
7785
7786 done
7787 ac_cv_prog_CPP=$CPP
7788
7789 fi
7790 CPP=$ac_cv_prog_CPP
7791 else
7792 ac_cv_prog_CPP=$CPP
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7795 $as_echo "$CPP" >&6; }
7796 ac_preproc_ok=false
7797 for ac_c_preproc_warn_flag in '' yes
7798 do
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812 Syntax error
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816 else
7817 # Broken: fails on valid input.
7818 continue
7819 fi
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: success on invalid input.
7830 continue
7831 else
7832 # Passes both tests.
7833 ac_preproc_ok=:
7834 break
7835 fi
7836 rm -f conftest.err conftest.i conftest.$ac_ext
7837
7838 done
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7842
7843 else
7844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7847 See \`config.log' for more details" "$LINENO" 5; }
7848 fi
7849
7850 ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7858 $as_echo_n "checking for ANSI C header files... " >&6; }
7859 if ${ac_cv_header_stdc+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <stdlib.h>
7865 #include <stdarg.h>
7866 #include <string.h>
7867 #include <float.h>
7868
7869 int
7870 main ()
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878 ac_cv_header_stdc=yes
7879 else
7880 ac_cv_header_stdc=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883
7884 if test $ac_cv_header_stdc = yes; then
7885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <string.h>
7889
7890 _ACEOF
7891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7892 $EGREP "memchr" >/dev/null 2>&1; then :
7893
7894 else
7895 ac_cv_header_stdc=no
7896 fi
7897 rm -f conftest*
7898
7899 fi
7900
7901 if test $ac_cv_header_stdc = yes; then
7902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <stdlib.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "free" >/dev/null 2>&1; then :
7910
7911 else
7912 ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920 if test "$cross_compiling" = yes; then :
7921 :
7922 else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <ctype.h>
7926 #include <stdlib.h>
7927 #if ((' ' & 0x0FF) == 0x020)
7928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7930 #else
7931 # define ISLOWER(c) \
7932 (('a' <= (c) && (c) <= 'i') \
7933 || ('j' <= (c) && (c) <= 'r') \
7934 || ('s' <= (c) && (c) <= 'z'))
7935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7936 #endif
7937
7938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939 int
7940 main ()
7941 {
7942 int i;
7943 for (i = 0; i < 256; i++)
7944 if (XOR (islower (i), ISLOWER (i))
7945 || toupper (i) != TOUPPER (i))
7946 return 2;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_run "$LINENO"; then :
7951
7952 else
7953 ac_cv_header_stdc=no
7954 fi
7955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7956 conftest.$ac_objext conftest.beam conftest.$ac_ext
7957 fi
7958
7959 fi
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7962 $as_echo "$ac_cv_header_stdc" >&6; }
7963 if test $ac_cv_header_stdc = yes; then
7964
7965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7966
7967 fi
7968
7969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7971 inttypes.h stdint.h unistd.h
7972 do :
7973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7975 "
7976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986 for ac_header in dlfcn.h
7987 do :
7988 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7989 "
7990 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_DLFCN_H 1
7993 _ACEOF
7994
7995 fi
7996
7997 done
7998
7999
8000
8001
8002
8003 # Set options
8004 enable_dlopen=yes
8005 # Check whether --enable-static was given.
8006 if test "${enable_static+set}" = set; then :
8007 enableval=$enable_static; p=${PACKAGE-default}
8008 case $enableval in
8009 yes) enable_static=yes ;;
8010 no) enable_static=no ;;
8011 *)
8012 enable_static=no
8013 # Look at the argument we got. We use all the common list separators.
8014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015 for pkg in $enableval; do
8016 IFS="$lt_save_ifs"
8017 if test "X$pkg" = "X$p"; then
8018 enable_static=yes
8019 fi
8020 done
8021 IFS="$lt_save_ifs"
8022 ;;
8023 esac
8024 else
8025 enable_static=no
8026 fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 enable_win32_dll=no
8039
8040
8041 # Check whether --enable-shared was given.
8042 if test "${enable_shared+set}" = set; then :
8043 enableval=$enable_shared; p=${PACKAGE-default}
8044 case $enableval in
8045 yes) enable_shared=yes ;;
8046 no) enable_shared=no ;;
8047 *)
8048 enable_shared=no
8049 # Look at the argument we got. We use all the common list separators.
8050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8051 for pkg in $enableval; do
8052 IFS="$lt_save_ifs"
8053 if test "X$pkg" = "X$p"; then
8054 enable_shared=yes
8055 fi
8056 done
8057 IFS="$lt_save_ifs"
8058 ;;
8059 esac
8060 else
8061 enable_shared=yes
8062 fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 # Check whether --with-pic was given.
8075 if test "${with_pic+set}" = set; then :
8076 withval=$with_pic; lt_p=${PACKAGE-default}
8077 case $withval in
8078 yes|no) pic_mode=$withval ;;
8079 *)
8080 pic_mode=default
8081 # Look at the argument we got. We use all the common list separators.
8082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8083 for lt_pkg in $withval; do
8084 IFS="$lt_save_ifs"
8085 if test "X$lt_pkg" = "X$lt_p"; then
8086 pic_mode=yes
8087 fi
8088 done
8089 IFS="$lt_save_ifs"
8090 ;;
8091 esac
8092 else
8093 pic_mode=default
8094 fi
8095
8096
8097 test -z "$pic_mode" && pic_mode=default
8098
8099
8100
8101
8102
8103
8104
8105 # Check whether --enable-fast-install was given.
8106 if test "${enable_fast_install+set}" = set; then :
8107 enableval=$enable_fast_install; p=${PACKAGE-default}
8108 case $enableval in
8109 yes) enable_fast_install=yes ;;
8110 no) enable_fast_install=no ;;
8111 *)
8112 enable_fast_install=no
8113 # Look at the argument we got. We use all the common list separators.
8114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115 for pkg in $enableval; do
8116 IFS="$lt_save_ifs"
8117 if test "X$pkg" = "X$p"; then
8118 enable_fast_install=yes
8119 fi
8120 done
8121 IFS="$lt_save_ifs"
8122 ;;
8123 esac
8124 else
8125 enable_fast_install=yes
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 # This can be used to rebuild libtool when needed
8139 LIBTOOL_DEPS="$ltmain"
8140
8141 # Always use our own libtool.
8142 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 test -z "$LN_S" && LN_S="ln -s"
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 if test -n "${ZSH_VERSION+set}" ; then
8189 setopt NO_GLOB_SUBST
8190 fi
8191
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8193 $as_echo_n "checking for objdir... " >&6; }
8194 if ${lt_cv_objdir+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 rm -f .libs 2>/dev/null
8198 mkdir .libs 2>/dev/null
8199 if test -d .libs; then
8200 lt_cv_objdir=.libs
8201 else
8202 # MS-DOS does not allow filenames that begin with a dot.
8203 lt_cv_objdir=_libs
8204 fi
8205 rmdir .libs 2>/dev/null
8206 fi
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8208 $as_echo "$lt_cv_objdir" >&6; }
8209 objdir=$lt_cv_objdir
8210
8211
8212
8213
8214
8215 cat >>confdefs.h <<_ACEOF
8216 #define LT_OBJDIR "$lt_cv_objdir/"
8217 _ACEOF
8218
8219
8220
8221
8222 case $host_os in
8223 aix3*)
8224 # AIX sometimes has problems with the GCC collect2 program. For some
8225 # reason, if we set the COLLECT_NAMES environment variable, the problems
8226 # vanish in a puff of smoke.
8227 if test "X${COLLECT_NAMES+set}" != Xset; then
8228 COLLECT_NAMES=
8229 export COLLECT_NAMES
8230 fi
8231 ;;
8232 esac
8233
8234 # Global variables:
8235 ofile=libtool
8236 can_build_shared=yes
8237
8238 # All known linkers require a `.a' archive for static linking (except MSVC,
8239 # which needs '.lib').
8240 libext=a
8241
8242 with_gnu_ld="$lt_cv_prog_gnu_ld"
8243
8244 old_CC="$CC"
8245 old_CFLAGS="$CFLAGS"
8246
8247 # Set sane defaults for various variables
8248 test -z "$CC" && CC=cc
8249 test -z "$LTCC" && LTCC=$CC
8250 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8251 test -z "$LD" && LD=ld
8252 test -z "$ac_objext" && ac_objext=o
8253
8254 for cc_temp in $compiler""; do
8255 case $cc_temp in
8256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258 \-*) ;;
8259 *) break;;
8260 esac
8261 done
8262 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8263
8264
8265 # Only perform the check for file, if the check method requires it
8266 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8267 case $deplibs_check_method in
8268 file_magic*)
8269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8271 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 case $MAGIC_CMD in
8276 [\\/*] | ?:[\\/]*)
8277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8278 ;;
8279 *)
8280 lt_save_MAGIC_CMD="$MAGIC_CMD"
8281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8283 for ac_dir in $ac_dummy; do
8284 IFS="$lt_save_ifs"
8285 test -z "$ac_dir" && ac_dir=.
8286 if test -f $ac_dir/${ac_tool_prefix}file; then
8287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8288 if test -n "$file_magic_test_file"; then
8289 case $deplibs_check_method in
8290 "file_magic "*)
8291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8294 $EGREP "$file_magic_regex" > /dev/null; then
8295 :
8296 else
8297 cat <<_LT_EOF 1>&2
8298
8299 *** Warning: the command libtool uses to detect shared libraries,
8300 *** $file_magic_cmd, produces output that libtool cannot recognize.
8301 *** The result is that libtool may fail to recognize shared libraries
8302 *** as such. This will affect the creation of libtool libraries that
8303 *** depend on shared libraries, but programs linked with such libtool
8304 *** libraries will work regardless of this problem. Nevertheless, you
8305 *** may want to report the problem to your system manager and/or to
8306 *** bug-libtool@gnu.org
8307
8308 _LT_EOF
8309 fi ;;
8310 esac
8311 fi
8312 break
8313 fi
8314 done
8315 IFS="$lt_save_ifs"
8316 MAGIC_CMD="$lt_save_MAGIC_CMD"
8317 ;;
8318 esac
8319 fi
8320
8321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8322 if test -n "$MAGIC_CMD"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8324 $as_echo "$MAGIC_CMD" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331
8332
8333
8334 if test -z "$lt_cv_path_MAGIC_CMD"; then
8335 if test -n "$ac_tool_prefix"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8337 $as_echo_n "checking for file... " >&6; }
8338 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 case $MAGIC_CMD in
8342 [\\/*] | ?:[\\/]*)
8343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8344 ;;
8345 *)
8346 lt_save_MAGIC_CMD="$MAGIC_CMD"
8347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8349 for ac_dir in $ac_dummy; do
8350 IFS="$lt_save_ifs"
8351 test -z "$ac_dir" && ac_dir=.
8352 if test -f $ac_dir/file; then
8353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8354 if test -n "$file_magic_test_file"; then
8355 case $deplibs_check_method in
8356 "file_magic "*)
8357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8360 $EGREP "$file_magic_regex" > /dev/null; then
8361 :
8362 else
8363 cat <<_LT_EOF 1>&2
8364
8365 *** Warning: the command libtool uses to detect shared libraries,
8366 *** $file_magic_cmd, produces output that libtool cannot recognize.
8367 *** The result is that libtool may fail to recognize shared libraries
8368 *** as such. This will affect the creation of libtool libraries that
8369 *** depend on shared libraries, but programs linked with such libtool
8370 *** libraries will work regardless of this problem. Nevertheless, you
8371 *** may want to report the problem to your system manager and/or to
8372 *** bug-libtool@gnu.org
8373
8374 _LT_EOF
8375 fi ;;
8376 esac
8377 fi
8378 break
8379 fi
8380 done
8381 IFS="$lt_save_ifs"
8382 MAGIC_CMD="$lt_save_MAGIC_CMD"
8383 ;;
8384 esac
8385 fi
8386
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388 if test -n "$MAGIC_CMD"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8390 $as_echo "$MAGIC_CMD" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397 else
8398 MAGIC_CMD=:
8399 fi
8400 fi
8401
8402 fi
8403 ;;
8404 esac
8405
8406 # Use C for the default configuration in the libtool script
8407
8408 lt_save_CC="$CC"
8409 ac_ext=c
8410 ac_cpp='$CPP $CPPFLAGS'
8411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414
8415
8416 # Source file extension for C test sources.
8417 ac_ext=c
8418
8419 # Object file extension for compiled C test sources.
8420 objext=o
8421 objext=$objext
8422
8423 # Code to be used in simple compile tests
8424 lt_simple_compile_test_code="int some_variable = 0;"
8425
8426 # Code to be used in simple link tests
8427 lt_simple_link_test_code='int main(){return(0);}'
8428
8429
8430
8431
8432
8433
8434
8435 # If no C compiler was specified, use CC.
8436 LTCC=${LTCC-"$CC"}
8437
8438 # If no C compiler flags were specified, use CFLAGS.
8439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8440
8441 # Allow CC to be a program name with arguments.
8442 compiler=$CC
8443
8444 # Save the default compiler, since it gets overwritten when the other
8445 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8446 compiler_DEFAULT=$CC
8447
8448 # save warnings/boilerplate of simple test code
8449 ac_outfile=conftest.$ac_objext
8450 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8452 _lt_compiler_boilerplate=`cat conftest.err`
8453 $RM conftest*
8454
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8458 _lt_linker_boilerplate=`cat conftest.err`
8459 $RM -r conftest*
8460
8461
8462 if test -n "$compiler"; then
8463
8464 lt_prog_compiler_no_builtin_flag=
8465
8466 if test "$GCC" = yes; then
8467 case $cc_basename in
8468 nvcc*)
8469 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8470 *)
8471 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8472 esac
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8475 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8476 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 lt_cv_prog_compiler_rtti_exceptions=no
8480 ac_outfile=conftest.$ac_objext
8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8482 lt_compiler_flag="-fno-rtti -fno-exceptions"
8483 # Insert the option either (1) after the last *FLAGS variable, or
8484 # (2) before a word containing "conftest.", or (3) at the end.
8485 # Note that $ac_compile itself does not contain backslashes and begins
8486 # with a dollar sign (not a hyphen), so the echo should work correctly.
8487 # The option is referenced via a variable to avoid confusing sed.
8488 lt_compile=`echo "$ac_compile" | $SED \
8489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8491 -e 's:$: $lt_compiler_flag:'`
8492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8493 (eval "$lt_compile" 2>conftest.err)
8494 ac_status=$?
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 if (exit $ac_status) && test -s "$ac_outfile"; then
8498 # The compiler can only warn and ignore the option if not recognized
8499 # So say no if there are warnings other than the usual output.
8500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8503 lt_cv_prog_compiler_rtti_exceptions=yes
8504 fi
8505 fi
8506 $RM conftest*
8507
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8510 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511
8512 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8513 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8514 else
8515 :
8516 fi
8517
8518 fi
8519
8520
8521
8522
8523
8524
8525 lt_prog_compiler_wl=
8526 lt_prog_compiler_pic=
8527 lt_prog_compiler_static=
8528
8529
8530 if test "$GCC" = yes; then
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_static='-static'
8533
8534 case $host_os in
8535 aix*)
8536 # All AIX code is PIC.
8537 if test "$host_cpu" = ia64; then
8538 # AIX 5 now supports IA64 processor
8539 lt_prog_compiler_static='-Bstatic'
8540 fi
8541 ;;
8542
8543 amigaos*)
8544 case $host_cpu in
8545 powerpc)
8546 # see comment about AmigaOS4 .so support
8547 lt_prog_compiler_pic='-fPIC'
8548 ;;
8549 m68k)
8550 # FIXME: we need at least 68020 code to build shared libraries, but
8551 # adding the `-m68020' flag to GCC prevents building anything better,
8552 # like `-m68040'.
8553 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8554 ;;
8555 esac
8556 ;;
8557
8558 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8559 # PIC is the default for these OSes.
8560 ;;
8561
8562 mingw* | cygwin* | pw32* | os2* | cegcc*)
8563 # This hack is so that the source file can tell whether it is being
8564 # built for inclusion in a dll (and should export symbols for example).
8565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8566 # (--disable-auto-import) libraries
8567 lt_prog_compiler_pic='-DDLL_EXPORT'
8568 ;;
8569
8570 darwin* | rhapsody*)
8571 # PIC is the default on this platform
8572 # Common symbols not allowed in MH_DYLIB files
8573 lt_prog_compiler_pic='-fno-common'
8574 ;;
8575
8576 haiku*)
8577 # PIC is the default for Haiku.
8578 # The "-static" flag exists, but is broken.
8579 lt_prog_compiler_static=
8580 ;;
8581
8582 hpux*)
8583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8585 # sets the default TLS model and affects inlining.
8586 case $host_cpu in
8587 hppa*64*)
8588 # +Z the default
8589 ;;
8590 *)
8591 lt_prog_compiler_pic='-fPIC'
8592 ;;
8593 esac
8594 ;;
8595
8596 interix[3-9]*)
8597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8598 # Instead, we relocate shared libraries at runtime.
8599 ;;
8600
8601 msdosdjgpp*)
8602 # Just because we use GCC doesn't mean we suddenly get shared libraries
8603 # on systems that don't support them.
8604 lt_prog_compiler_can_build_shared=no
8605 enable_shared=no
8606 ;;
8607
8608 *nto* | *qnx*)
8609 # QNX uses GNU C++, but need to define -shared option too, otherwise
8610 # it will coredump.
8611 lt_prog_compiler_pic='-fPIC -shared'
8612 ;;
8613
8614 sysv4*MP*)
8615 if test -d /usr/nec; then
8616 lt_prog_compiler_pic=-Kconform_pic
8617 fi
8618 ;;
8619
8620 *)
8621 lt_prog_compiler_pic='-fPIC'
8622 ;;
8623 esac
8624
8625 case $cc_basename in
8626 nvcc*) # Cuda Compiler Driver 2.2
8627 lt_prog_compiler_wl='-Xlinker '
8628 if test -n "$lt_prog_compiler_pic"; then
8629 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8630 fi
8631 ;;
8632 esac
8633 else
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8635 case $host_os in
8636 aix*)
8637 lt_prog_compiler_wl='-Wl,'
8638 if test "$host_cpu" = ia64; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8641 else
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8643 fi
8644 ;;
8645
8646 mingw* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic='-DDLL_EXPORT'
8650 ;;
8651
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655 # not for PA HP-UX.
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 # +Z the default
8659 ;;
8660 *)
8661 lt_prog_compiler_pic='+Z'
8662 ;;
8663 esac
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='${wl}-a ${wl}archive'
8666 ;;
8667
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8672 ;;
8673
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8677 ecc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8681 ;;
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8684 icc* | ifort*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8688 ;;
8689 # Lahey Fortran 8.1.
8690 lf95*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8694 ;;
8695 nagfor*)
8696 # NAG Fortran compiler
8697 lt_prog_compiler_wl='-Wl,-Wl,,'
8698 lt_prog_compiler_pic='-PIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 ;;
8701 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8702 # Portland Group compilers (*not* the Pentium gcc compiler,
8703 # which looks to be a dead project)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fpic'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708 ccc*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # All Alpha code is PIC.
8711 lt_prog_compiler_static='-non_shared'
8712 ;;
8713 xl* | bgxl* | bgf* | mpixl*)
8714 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-qpic'
8717 lt_prog_compiler_static='-qstaticlink'
8718 ;;
8719 *)
8720 case `$CC -V 2>&1 | sed 5q` in
8721 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8722 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl=''
8726 ;;
8727 *Sun\ F* | *Sun*Fortran*)
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 lt_prog_compiler_wl='-Qoption ld '
8731 ;;
8732 *Sun\ C*)
8733 # Sun C 5.9
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_wl='-Wl,'
8737 ;;
8738 *Intel*\ [CF]*Compiler*)
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-fPIC'
8741 lt_prog_compiler_static='-static'
8742 ;;
8743 *Portland\ Group*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-fpic'
8746 lt_prog_compiler_static='-Bstatic'
8747 ;;
8748 esac
8749 ;;
8750 esac
8751 ;;
8752
8753 newsos6)
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 ;;
8757
8758 *nto* | *qnx*)
8759 # QNX uses GNU C++, but need to define -shared option too, otherwise
8760 # it will coredump.
8761 lt_prog_compiler_pic='-fPIC -shared'
8762 ;;
8763
8764 osf3* | osf4* | osf5*)
8765 lt_prog_compiler_wl='-Wl,'
8766 # All OSF/1 code is PIC.
8767 lt_prog_compiler_static='-non_shared'
8768 ;;
8769
8770 rdos*)
8771 lt_prog_compiler_static='-non_shared'
8772 ;;
8773
8774 solaris*)
8775 lt_prog_compiler_pic='-KPIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 case $cc_basename in
8778 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8779 lt_prog_compiler_wl='-Qoption ld ';;
8780 *)
8781 lt_prog_compiler_wl='-Wl,';;
8782 esac
8783 ;;
8784
8785 sunos4*)
8786 lt_prog_compiler_wl='-Qoption ld '
8787 lt_prog_compiler_pic='-PIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 ;;
8790
8791 sysv4 | sysv4.2uw2* | sysv4.3*)
8792 lt_prog_compiler_wl='-Wl,'
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 ;;
8796
8797 sysv4*MP*)
8798 if test -d /usr/nec ;then
8799 lt_prog_compiler_pic='-Kconform_pic'
8800 lt_prog_compiler_static='-Bstatic'
8801 fi
8802 ;;
8803
8804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 unicos*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_can_build_shared=no
8813 ;;
8814
8815 uts4*)
8816 lt_prog_compiler_pic='-pic'
8817 lt_prog_compiler_static='-Bstatic'
8818 ;;
8819
8820 *)
8821 lt_prog_compiler_can_build_shared=no
8822 ;;
8823 esac
8824 fi
8825
8826 case $host_os in
8827 # For platforms which do not support PIC, -DPIC is meaningless:
8828 *djgpp*)
8829 lt_prog_compiler_pic=
8830 ;;
8831 *)
8832 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8833 ;;
8834 esac
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8838 if ${lt_cv_prog_compiler_pic+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8844 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8845 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8846
8847 #
8848 # Check to make sure the PIC flag actually works.
8849 #
8850 if test -n "$lt_prog_compiler_pic"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8852 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8853 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 lt_cv_prog_compiler_pic_works=no
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8860 # Insert the option either (1) after the last *FLAGS variable, or
8861 # (2) before a word containing "conftest.", or (3) at the end.
8862 # Note that $ac_compile itself does not contain backslashes and begins
8863 # with a dollar sign (not a hyphen), so the echo should work correctly.
8864 # The option is referenced via a variable to avoid confusing sed.
8865 lt_compile=`echo "$ac_compile" | $SED \
8866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8868 -e 's:$: $lt_compiler_flag:'`
8869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8870 (eval "$lt_compile" 2>conftest.err)
8871 ac_status=$?
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 if (exit $ac_status) && test -s "$ac_outfile"; then
8875 # The compiler can only warn and ignore the option if not recognized
8876 # So say no if there are warnings other than the usual output.
8877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8880 lt_cv_prog_compiler_pic_works=yes
8881 fi
8882 fi
8883 $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8887 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8888
8889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8890 case $lt_prog_compiler_pic in
8891 "" | " "*) ;;
8892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8893 esac
8894 else
8895 lt_prog_compiler_pic=
8896 lt_prog_compiler_can_build_shared=no
8897 fi
8898
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911 #
8912 # Check to make sure the static flag actually works.
8913 #
8914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8916 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8917 if ${lt_cv_prog_compiler_static_works+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 lt_cv_prog_compiler_static_works=no
8921 save_LDFLAGS="$LDFLAGS"
8922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8923 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8925 # The linker can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 if test -s conftest.err; then
8928 # Append any errors to the config.log.
8929 cat conftest.err 1>&5
8930 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8932 if diff conftest.exp conftest.er2 >/dev/null; then
8933 lt_cv_prog_compiler_static_works=yes
8934 fi
8935 else
8936 lt_cv_prog_compiler_static_works=yes
8937 fi
8938 fi
8939 $RM -r conftest*
8940 LDFLAGS="$save_LDFLAGS"
8941
8942 fi
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8944 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8945
8946 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8947 :
8948 else
8949 lt_prog_compiler_static=
8950 fi
8951
8952
8953
8954
8955
8956
8957
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8960 if ${lt_cv_prog_compiler_c_o+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 lt_cv_prog_compiler_c_o=no
8964 $RM -r conftest 2>/dev/null
8965 mkdir conftest
8966 cd conftest
8967 mkdir out
8968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
8970 lt_compiler_flag="-o out/conftest2.$ac_objext"
8971 # Insert the option either (1) after the last *FLAGS variable, or
8972 # (2) before a word containing "conftest.", or (3) at the end.
8973 # Note that $ac_compile itself does not contain backslashes and begins
8974 # with a dollar sign (not a hyphen), so the echo should work correctly.
8975 lt_compile=`echo "$ac_compile" | $SED \
8976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978 -e 's:$: $lt_compiler_flag:'`
8979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8980 (eval "$lt_compile" 2>out/conftest.err)
8981 ac_status=$?
8982 cat out/conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8985 then
8986 # The compiler can only warn and ignore the option if not recognized
8987 # So say no if there are warnings
8988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_c_o=yes
8992 fi
8993 fi
8994 chmod u+w . 2>&5
8995 $RM conftest*
8996 # SGI C++ compiler will create directory out/ii_files/ for
8997 # template instantiation
8998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8999 $RM out/* && rmdir out
9000 cd ..
9001 $RM -r conftest
9002 $RM conftest*
9003
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9007
9008
9009
9010
9011
9012
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9014 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9015 if ${lt_cv_prog_compiler_c_o+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 lt_cv_prog_compiler_c_o=no
9019 $RM -r conftest 2>/dev/null
9020 mkdir conftest
9021 cd conftest
9022 mkdir out
9023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9024
9025 lt_compiler_flag="-o out/conftest2.$ac_objext"
9026 # Insert the option either (1) after the last *FLAGS variable, or
9027 # (2) before a word containing "conftest.", or (3) at the end.
9028 # Note that $ac_compile itself does not contain backslashes and begins
9029 # with a dollar sign (not a hyphen), so the echo should work correctly.
9030 lt_compile=`echo "$ac_compile" | $SED \
9031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9033 -e 's:$: $lt_compiler_flag:'`
9034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9035 (eval "$lt_compile" 2>out/conftest.err)
9036 ac_status=$?
9037 cat out/conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9040 then
9041 # The compiler can only warn and ignore the option if not recognized
9042 # So say no if there are warnings
9043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9046 lt_cv_prog_compiler_c_o=yes
9047 fi
9048 fi
9049 chmod u+w . 2>&5
9050 $RM conftest*
9051 # SGI C++ compiler will create directory out/ii_files/ for
9052 # template instantiation
9053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9054 $RM out/* && rmdir out
9055 cd ..
9056 $RM -r conftest
9057 $RM conftest*
9058
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9061 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9062
9063
9064
9065
9066 hard_links="nottested"
9067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9068 # do not overwrite the value of need_locks provided by the user
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9070 $as_echo_n "checking if we can lock with hard links... " >&6; }
9071 hard_links=yes
9072 $RM conftest*
9073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9074 touch conftest.a
9075 ln conftest.a conftest.b 2>&5 || hard_links=no
9076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9078 $as_echo "$hard_links" >&6; }
9079 if test "$hard_links" = no; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9082 need_locks=warn
9083 fi
9084 else
9085 need_locks=no
9086 fi
9087
9088
9089
9090
9091
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9094 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9095
9096 runpath_var=
9097 allow_undefined_flag=
9098 always_export_symbols=no
9099 archive_cmds=
9100 archive_expsym_cmds=
9101 compiler_needs_object=no
9102 enable_shared_with_static_runtimes=no
9103 export_dynamic_flag_spec=
9104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9105 hardcode_automatic=no
9106 hardcode_direct=no
9107 hardcode_direct_absolute=no
9108 hardcode_libdir_flag_spec=
9109 hardcode_libdir_separator=
9110 hardcode_minus_L=no
9111 hardcode_shlibpath_var=unsupported
9112 inherit_rpath=no
9113 link_all_deplibs=unknown
9114 module_cmds=
9115 module_expsym_cmds=
9116 old_archive_from_new_cmds=
9117 old_archive_from_expsyms_cmds=
9118 thread_safe_flag_spec=
9119 whole_archive_flag_spec=
9120 # include_expsyms should be a list of space-separated symbols to be *always*
9121 # included in the symbol list
9122 include_expsyms=
9123 # exclude_expsyms can be an extended regexp of symbols to exclude
9124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9126 # as well as any symbol that contains `d'.
9127 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9129 # platforms (ab)use it in PIC code, but their linkers get confused if
9130 # the symbol is explicitly referenced. Since portable code cannot
9131 # rely on this symbol name, it's probably fine to never include it in
9132 # preloaded symbol tables.
9133 # Exclude shared library initialization/finalization symbols.
9134 extract_expsyms_cmds=
9135
9136 case $host_os in
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9139 # When not using gcc, we currently assume that we are using
9140 # Microsoft Visual C++.
9141 if test "$GCC" != yes; then
9142 with_gnu_ld=no
9143 fi
9144 ;;
9145 interix*)
9146 # we just hope/assume this is gcc and not c89 (= MSVC++)
9147 with_gnu_ld=yes
9148 ;;
9149 openbsd*)
9150 with_gnu_ld=no
9151 ;;
9152 esac
9153
9154 ld_shlibs=yes
9155
9156 # On some targets, GNU ld is compatible enough with the native linker
9157 # that we're better off using the native interface for both.
9158 lt_use_gnu_ld_interface=no
9159 if test "$with_gnu_ld" = yes; then
9160 case $host_os in
9161 aix*)
9162 # The AIX port of GNU ld has always aspired to compatibility
9163 # with the native linker. However, as the warning in the GNU ld
9164 # block says, versions before 2.19.5* couldn't really create working
9165 # shared libraries, regardless of the interface used.
9166 case `$LD -v 2>&1` in
9167 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9168 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9169 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9170 *)
9171 lt_use_gnu_ld_interface=yes
9172 ;;
9173 esac
9174 ;;
9175 *)
9176 lt_use_gnu_ld_interface=yes
9177 ;;
9178 esac
9179 fi
9180
9181 if test "$lt_use_gnu_ld_interface" = yes; then
9182 # If archive_cmds runs LD, not CC, wlarc should be empty
9183 wlarc='${wl}'
9184
9185 # Set some defaults for GNU ld with shared library support. These
9186 # are reset later if shared libraries are not supported. Putting them
9187 # here allows them to be overridden if necessary.
9188 runpath_var=LD_RUN_PATH
9189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9190 export_dynamic_flag_spec='${wl}--export-dynamic'
9191 # ancient GNU ld didn't support --whole-archive et. al.
9192 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9193 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9194 else
9195 whole_archive_flag_spec=
9196 fi
9197 supports_anon_versioning=no
9198 case `$LD -v 2>&1` in
9199 *GNU\ gold*) supports_anon_versioning=yes ;;
9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9203 *\ 2.11.*) ;; # other 2.11 versions
9204 *) supports_anon_versioning=yes ;;
9205 esac
9206
9207 # See if GNU ld supports shared libraries.
9208 case $host_os in
9209 aix[3-9]*)
9210 # On AIX/PPC, the GNU linker is very broken
9211 if test "$host_cpu" != ia64; then
9212 ld_shlibs=no
9213 cat <<_LT_EOF 1>&2
9214
9215 *** Warning: the GNU linker, at least up to release 2.19, is reported
9216 *** to be unable to reliably create shared libraries on AIX.
9217 *** Therefore, libtool is disabling shared libraries support. If you
9218 *** really care for shared libraries, you may want to install binutils
9219 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9220 *** You will then need to restart the configuration process.
9221
9222 _LT_EOF
9223 fi
9224 ;;
9225
9226 amigaos*)
9227 case $host_cpu in
9228 powerpc)
9229 # see comment about AmigaOS4 .so support
9230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 archive_expsym_cmds=''
9232 ;;
9233 m68k)
9234 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)'
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_minus_L=yes
9237 ;;
9238 esac
9239 ;;
9240
9241 beos*)
9242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9243 allow_undefined_flag=unsupported
9244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9245 # support --undefined. This deserves some investigation. FIXME
9246 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 cygwin* | mingw* | pw32* | cegcc*)
9253 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9254 # as there is no search path for DLLs.
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 export_dynamic_flag_spec='${wl}--export-all-symbols'
9257 allow_undefined_flag=unsupported
9258 always_export_symbols=no
9259 enable_shared_with_static_runtimes=yes
9260 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'
9261 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9262
9263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9265 # If the export-symbols file already is a .def file (1st line
9266 # is EXPORTS), use it as is; otherwise, prepend...
9267 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9268 cp $export_symbols $output_objdir/$soname.def;
9269 else
9270 echo EXPORTS > $output_objdir/$soname.def;
9271 cat $export_symbols >> $output_objdir/$soname.def;
9272 fi~
9273 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9274 else
9275 ld_shlibs=no
9276 fi
9277 ;;
9278
9279 haiku*)
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 link_all_deplibs=yes
9282 ;;
9283
9284 interix[3-9]*)
9285 hardcode_direct=no
9286 hardcode_shlibpath_var=no
9287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9288 export_dynamic_flag_spec='${wl}-E'
9289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9290 # Instead, shared libraries are loaded at an image base (0x10000000 by
9291 # default) and relocated if they conflict, which is a slow very memory
9292 # consuming and fragmenting process. To avoid this, we pick a random,
9293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9294 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9296 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'
9297 ;;
9298
9299 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9300 tmp_diet=no
9301 if test "$host_os" = linux-dietlibc; then
9302 case $cc_basename in
9303 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9304 esac
9305 fi
9306 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9307 && test "$tmp_diet" = no
9308 then
9309 tmp_addflag=' $pic_flag'
9310 tmp_sharedflag='-shared'
9311 case $cc_basename,$host_cpu in
9312 pgcc*) # Portland Group C compiler
9313 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'
9314 tmp_addflag=' $pic_flag'
9315 ;;
9316 pgf77* | pgf90* | pgf95* | pgfortran*)
9317 # Portland Group f77 and f90 compilers
9318 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'
9319 tmp_addflag=' $pic_flag -Mnomain' ;;
9320 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9321 tmp_addflag=' -i_dynamic' ;;
9322 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9323 tmp_addflag=' -i_dynamic -nofor_main' ;;
9324 ifc* | ifort*) # Intel Fortran compiler
9325 tmp_addflag=' -nofor_main' ;;
9326 lf95*) # Lahey Fortran 8.1
9327 whole_archive_flag_spec=
9328 tmp_sharedflag='--shared' ;;
9329 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9330 tmp_sharedflag='-qmkshrobj'
9331 tmp_addflag= ;;
9332 nvcc*) # Cuda Compiler Driver 2.2
9333 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'
9334 compiler_needs_object=yes
9335 ;;
9336 esac
9337 case `$CC -V 2>&1 | sed 5q` in
9338 *Sun\ C*) # Sun C 5.9
9339 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'
9340 compiler_needs_object=yes
9341 tmp_sharedflag='-G' ;;
9342 *Sun\ F*) # Sun Fortran 8.3
9343 tmp_sharedflag='-G' ;;
9344 esac
9345 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346
9347 if test "x$supports_anon_versioning" = xyes; then
9348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9350 echo "local: *; };" >> $output_objdir/$libname.ver~
9351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9352 fi
9353
9354 case $cc_basename in
9355 xlf* | bgf* | bgxlf* | mpixlf*)
9356 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9357 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9360 if test "x$supports_anon_versioning" = xyes; then
9361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9363 echo "local: *; };" >> $output_objdir/$libname.ver~
9364 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9365 fi
9366 ;;
9367 esac
9368 else
9369 ld_shlibs=no
9370 fi
9371 ;;
9372
9373 netbsd*)
9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9376 wlarc=
9377 else
9378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9380 fi
9381 ;;
9382
9383 solaris*)
9384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9385 ld_shlibs=no
9386 cat <<_LT_EOF 1>&2
9387
9388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9389 *** create shared libraries on Solaris systems. Therefore, libtool
9390 *** is disabling shared libraries support. We urge you to upgrade GNU
9391 *** binutils to release 2.9.1 or newer. Another option is to modify
9392 *** your PATH or compiler configuration so that the native linker is
9393 *** used, and then restart.
9394
9395 _LT_EOF
9396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
9403
9404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9405 case `$LD -v 2>&1` in
9406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9407 ld_shlibs=no
9408 cat <<_LT_EOF 1>&2
9409
9410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9411 *** reliably create shared libraries on SCO systems. Therefore, libtool
9412 *** is disabling shared libraries support. We urge you to upgrade GNU
9413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9414 *** your PATH or compiler configuration so that the native linker is
9415 *** used, and then restart.
9416
9417 _LT_EOF
9418 ;;
9419 *)
9420 # For security reasons, it is highly recommended that you always
9421 # use absolute paths for naming shared libraries, and exclude the
9422 # DT_RUNPATH tag from executables and libraries. But doing so
9423 # requires that you compile everything twice, which is a pain.
9424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 else
9429 ld_shlibs=no
9430 fi
9431 ;;
9432 esac
9433 ;;
9434
9435 sunos4*)
9436 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9437 wlarc=
9438 hardcode_direct=yes
9439 hardcode_shlibpath_var=no
9440 ;;
9441
9442 *)
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9446 else
9447 ld_shlibs=no
9448 fi
9449 ;;
9450 esac
9451
9452 if test "$ld_shlibs" = no; then
9453 runpath_var=
9454 hardcode_libdir_flag_spec=
9455 export_dynamic_flag_spec=
9456 whole_archive_flag_spec=
9457 fi
9458 else
9459 # PORTME fill in a description of your system's linker (not GNU ld)
9460 case $host_os in
9461 aix3*)
9462 allow_undefined_flag=unsupported
9463 always_export_symbols=yes
9464 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'
9465 # Note: this linker hardcodes the directories in LIBPATH if there
9466 # are no directories specified by -L.
9467 hardcode_minus_L=yes
9468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9469 # Neither direct hardcoding nor static linking is supported with a
9470 # broken collect2.
9471 hardcode_direct=unsupported
9472 fi
9473 ;;
9474
9475 aix[4-9]*)
9476 if test "$host_cpu" = ia64; then
9477 # On IA64, the linker does run time linking by default, so we don't
9478 # have to do anything special.
9479 aix_use_runtimelinking=no
9480 exp_sym_flag='-Bexport'
9481 no_entry_flag=""
9482 else
9483 # If we're using GNU nm, then we don't want the "-C" option.
9484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9485 # Also, AIX nm treats weak defined symbols like other global
9486 # defined symbols, whereas GNU nm marks them as "W".
9487 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9488 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'
9489 else
9490 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'
9491 fi
9492 aix_use_runtimelinking=no
9493
9494 # Test if we are trying to use run time linking or normal
9495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9496 # need to do runtime linking.
9497 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9498 for ld_flag in $LDFLAGS; do
9499 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9500 aix_use_runtimelinking=yes
9501 break
9502 fi
9503 done
9504 ;;
9505 esac
9506
9507 exp_sym_flag='-bexport'
9508 no_entry_flag='-bnoentry'
9509 fi
9510
9511 # When large executables or shared objects are built, AIX ld can
9512 # have problems creating the table of contents. If linking a library
9513 # or program results in "error TOC overflow" add -mminimal-toc to
9514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9516
9517 archive_cmds=''
9518 hardcode_direct=yes
9519 hardcode_direct_absolute=yes
9520 hardcode_libdir_separator=':'
9521 link_all_deplibs=yes
9522 file_list_spec='${wl}-f,'
9523
9524 if test "$GCC" = yes; then
9525 case $host_os in aix4.[012]|aix4.[012].*)
9526 # We only want to do this on AIX 4.2 and lower, the check
9527 # below for broken collect2 doesn't work under 4.3+
9528 collect2name=`${CC} -print-prog-name=collect2`
9529 if test -f "$collect2name" &&
9530 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9531 then
9532 # We have reworked collect2
9533 :
9534 else
9535 # We have old collect2
9536 hardcode_direct=unsupported
9537 # It fails to find uninstalled libraries when the uninstalled
9538 # path is not listed in the libpath. Setting hardcode_minus_L
9539 # to unsupported forces relinking
9540 hardcode_minus_L=yes
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_libdir_separator=
9543 fi
9544 ;;
9545 esac
9546 shared_flag='-shared'
9547 if test "$aix_use_runtimelinking" = yes; then
9548 shared_flag="$shared_flag "'${wl}-G'
9549 fi
9550 else
9551 # not using gcc
9552 if test "$host_cpu" = ia64; then
9553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9554 # chokes on -Wl,-G. The following line is correct:
9555 shared_flag='-G'
9556 else
9557 if test "$aix_use_runtimelinking" = yes; then
9558 shared_flag='${wl}-G'
9559 else
9560 shared_flag='${wl}-bM:SRE'
9561 fi
9562 fi
9563 fi
9564
9565 export_dynamic_flag_spec='${wl}-bexpall'
9566 # It seems that -bexpall does not export symbols beginning with
9567 # underscore (_), so it is better to generate a list of symbols to export.
9568 always_export_symbols=yes
9569 if test "$aix_use_runtimelinking" = yes; then
9570 # Warning - without using the other runtime loading flags (-brtl),
9571 # -berok will link without error, but may produce a broken library.
9572 allow_undefined_flag='-berok'
9573 # Determine the default libpath from the value encoded in an
9574 # empty executable.
9575 if test "${lt_cv_aix_libpath+set}" = set; then
9576 aix_libpath=$lt_cv_aix_libpath
9577 else
9578 if ${lt_cv_aix_libpath_+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583
9584 int
9585 main ()
9586 {
9587
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593
9594 lt_aix_libpath_sed='
9595 /Import File Strings/,/^$/ {
9596 /^0/ {
9597 s/^0 *\([^ ]*\) *$/\1/
9598 p
9599 }
9600 }'
9601 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9602 # Check for a 64-bit object if we didn't find anything.
9603 if test -z "$lt_cv_aix_libpath_"; then
9604 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9605 fi
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 if test -z "$lt_cv_aix_libpath_"; then
9610 lt_cv_aix_libpath_="/usr/lib:/lib"
9611 fi
9612
9613 fi
9614
9615 aix_libpath=$lt_cv_aix_libpath_
9616 fi
9617
9618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9619 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"
9620 else
9621 if test "$host_cpu" = ia64; then
9622 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9623 allow_undefined_flag="-z nodefs"
9624 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"
9625 else
9626 # Determine the default libpath from the value encoded in an
9627 # empty executable.
9628 if test "${lt_cv_aix_libpath+set}" = set; then
9629 aix_libpath=$lt_cv_aix_libpath
9630 else
9631 if ${lt_cv_aix_libpath_+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636
9637 int
9638 main ()
9639 {
9640
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646
9647 lt_aix_libpath_sed='
9648 /Import File Strings/,/^$/ {
9649 /^0/ {
9650 s/^0 *\([^ ]*\) *$/\1/
9651 p
9652 }
9653 }'
9654 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655 # Check for a 64-bit object if we didn't find anything.
9656 if test -z "$lt_cv_aix_libpath_"; then
9657 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658 fi
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 if test -z "$lt_cv_aix_libpath_"; then
9663 lt_cv_aix_libpath_="/usr/lib:/lib"
9664 fi
9665
9666 fi
9667
9668 aix_libpath=$lt_cv_aix_libpath_
9669 fi
9670
9671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9672 # Warning - without using the other run time loading flags,
9673 # -berok will link without error, but may produce a broken library.
9674 no_undefined_flag=' ${wl}-bernotok'
9675 allow_undefined_flag=' ${wl}-berok'
9676 if test "$with_gnu_ld" = yes; then
9677 # We only use this code for GNU lds that support --whole-archive.
9678 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9679 else
9680 # Exported symbols can be pulled into shared objects from archives
9681 whole_archive_flag_spec='$convenience'
9682 fi
9683 archive_cmds_need_lc=yes
9684 # This is similar to how AIX traditionally builds its shared libraries.
9685 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'
9686 fi
9687 fi
9688 ;;
9689
9690 amigaos*)
9691 case $host_cpu in
9692 powerpc)
9693 # see comment about AmigaOS4 .so support
9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695 archive_expsym_cmds=''
9696 ;;
9697 m68k)
9698 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)'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_minus_L=yes
9701 ;;
9702 esac
9703 ;;
9704
9705 bsdi[45]*)
9706 export_dynamic_flag_spec=-rdynamic
9707 ;;
9708
9709 cygwin* | mingw* | pw32* | cegcc*)
9710 # When not using gcc, we currently assume that we are using
9711 # Microsoft Visual C++.
9712 # hardcode_libdir_flag_spec is actually meaningless, as there is
9713 # no search path for DLLs.
9714 case $cc_basename in
9715 cl*)
9716 # Native MSVC
9717 hardcode_libdir_flag_spec=' '
9718 allow_undefined_flag=unsupported
9719 always_export_symbols=yes
9720 file_list_spec='@'
9721 # Tell ltmain to make .lib files, not .a files.
9722 libext=lib
9723 # Tell ltmain to make .dll files, not .so files.
9724 shrext_cmds=".dll"
9725 # FIXME: Setting linknames here is a bad hack.
9726 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9727 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9728 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9729 else
9730 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9731 fi~
9732 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9733 linknames='
9734 # The linker will not automatically build a static lib if we build a DLL.
9735 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9736 enable_shared_with_static_runtimes=yes
9737 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9739 # Don't use ranlib
9740 old_postinstall_cmds='chmod 644 $oldlib'
9741 postlink_cmds='lt_outputfile="@OUTPUT@"~
9742 lt_tool_outputfile="@TOOL_OUTPUT@"~
9743 case $lt_outputfile in
9744 *.exe|*.EXE) ;;
9745 *)
9746 lt_outputfile="$lt_outputfile.exe"
9747 lt_tool_outputfile="$lt_tool_outputfile.exe"
9748 ;;
9749 esac~
9750 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9751 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9752 $RM "$lt_outputfile.manifest";
9753 fi'
9754 ;;
9755 *)
9756 # Assume MSVC wrapper
9757 hardcode_libdir_flag_spec=' '
9758 allow_undefined_flag=unsupported
9759 # Tell ltmain to make .lib files, not .a files.
9760 libext=lib
9761 # Tell ltmain to make .dll files, not .so files.
9762 shrext_cmds=".dll"
9763 # FIXME: Setting linknames here is a bad hack.
9764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9765 # The linker will automatically build a .lib file if we build a DLL.
9766 old_archive_from_new_cmds='true'
9767 # FIXME: Should let the user specify the lib program.
9768 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9769 enable_shared_with_static_runtimes=yes
9770 ;;
9771 esac
9772 ;;
9773
9774 darwin* | rhapsody*)
9775
9776
9777 archive_cmds_need_lc=no
9778 hardcode_direct=no
9779 hardcode_automatic=yes
9780 hardcode_shlibpath_var=unsupported
9781 if test "$lt_cv_ld_force_load" = "yes"; then
9782 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\"`'
9783
9784 else
9785 whole_archive_flag_spec=''
9786 fi
9787 link_all_deplibs=yes
9788 allow_undefined_flag="$_lt_dar_allow_undefined"
9789 case $cc_basename in
9790 ifort*) _lt_dar_can_shared=yes ;;
9791 *) _lt_dar_can_shared=$GCC ;;
9792 esac
9793 if test "$_lt_dar_can_shared" = "yes"; then
9794 output_verbose_link_cmd=func_echo_all
9795 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9796 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9797 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}"
9798 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}"
9799
9800 else
9801 ld_shlibs=no
9802 fi
9803
9804 ;;
9805
9806 dgux*)
9807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_libdir_flag_spec='-L$libdir'
9809 hardcode_shlibpath_var=no
9810 ;;
9811
9812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9813 # support. Future versions do this automatically, but an explicit c++rt0.o
9814 # does not break anything, and helps significantly (at the cost of a little
9815 # extra space).
9816 freebsd2.2*)
9817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9818 hardcode_libdir_flag_spec='-R$libdir'
9819 hardcode_direct=yes
9820 hardcode_shlibpath_var=no
9821 ;;
9822
9823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9824 freebsd2.*)
9825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_direct=yes
9827 hardcode_minus_L=yes
9828 hardcode_shlibpath_var=no
9829 ;;
9830
9831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9832 freebsd* | dragonfly*)
9833 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9834 hardcode_libdir_flag_spec='-R$libdir'
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 ;;
9838
9839 hpux9*)
9840 if test "$GCC" = yes; then
9841 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'
9842 else
9843 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'
9844 fi
9845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9846 hardcode_libdir_separator=:
9847 hardcode_direct=yes
9848
9849 # hardcode_minus_L: Not really in the search PATH,
9850 # but as the default location of the library.
9851 hardcode_minus_L=yes
9852 export_dynamic_flag_spec='${wl}-E'
9853 ;;
9854
9855 hpux10*)
9856 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9857 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9858 else
9859 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9860 fi
9861 if test "$with_gnu_ld" = no; then
9862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9863 hardcode_libdir_separator=:
9864 hardcode_direct=yes
9865 hardcode_direct_absolute=yes
9866 export_dynamic_flag_spec='${wl}-E'
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 fi
9871 ;;
9872
9873 hpux11*)
9874 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9875 case $host_cpu in
9876 hppa*64*)
9877 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9878 ;;
9879 ia64*)
9880 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9881 ;;
9882 *)
9883 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9884 ;;
9885 esac
9886 else
9887 case $host_cpu in
9888 hppa*64*)
9889 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 ;;
9891 ia64*)
9892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893 ;;
9894 *)
9895
9896 # Older versions of the 11.00 compiler do not understand -b yet
9897 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9899 $as_echo_n "checking if $CC understands -b... " >&6; }
9900 if ${lt_cv_prog_compiler__b+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 lt_cv_prog_compiler__b=no
9904 save_LDFLAGS="$LDFLAGS"
9905 LDFLAGS="$LDFLAGS -b"
9906 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9907 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9908 # The linker can only warn and ignore the option if not recognized
9909 # So say no if there are warnings
9910 if test -s conftest.err; then
9911 # Append any errors to the config.log.
9912 cat conftest.err 1>&5
9913 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9915 if diff conftest.exp conftest.er2 >/dev/null; then
9916 lt_cv_prog_compiler__b=yes
9917 fi
9918 else
9919 lt_cv_prog_compiler__b=yes
9920 fi
9921 fi
9922 $RM -r conftest*
9923 LDFLAGS="$save_LDFLAGS"
9924
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9927 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9928
9929 if test x"$lt_cv_prog_compiler__b" = xyes; then
9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9931 else
9932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9933 fi
9934
9935 ;;
9936 esac
9937 fi
9938 if test "$with_gnu_ld" = no; then
9939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9940 hardcode_libdir_separator=:
9941
9942 case $host_cpu in
9943 hppa*64*|ia64*)
9944 hardcode_direct=no
9945 hardcode_shlibpath_var=no
9946 ;;
9947 *)
9948 hardcode_direct=yes
9949 hardcode_direct_absolute=yes
9950 export_dynamic_flag_spec='${wl}-E'
9951
9952 # hardcode_minus_L: Not really in the search PATH,
9953 # but as the default location of the library.
9954 hardcode_minus_L=yes
9955 ;;
9956 esac
9957 fi
9958 ;;
9959
9960 irix5* | irix6* | nonstopux*)
9961 if test "$GCC" = yes; then
9962 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'
9963 # Try to use the -exported_symbol ld option, if it does not
9964 # work, assume that -exports_file does not work either and
9965 # implicitly export all symbols.
9966 # This should be the same for all languages, so no per-tag cache variable.
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9968 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9969 if ${lt_cv_irix_exported_symbol+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 save_LDFLAGS="$LDFLAGS"
9973 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int foo (void) { return 0; }
9977 _ACEOF
9978 if ac_fn_c_try_link "$LINENO"; then :
9979 lt_cv_irix_exported_symbol=yes
9980 else
9981 lt_cv_irix_exported_symbol=no
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LDFLAGS="$save_LDFLAGS"
9986 fi
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9988 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9989 if test "$lt_cv_irix_exported_symbol" = yes; then
9990 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'
9991 fi
9992 else
9993 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'
9994 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'
9995 fi
9996 archive_cmds_need_lc='no'
9997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9998 hardcode_libdir_separator=:
9999 inherit_rpath=yes
10000 link_all_deplibs=yes
10001 ;;
10002
10003 netbsd*)
10004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10006 else
10007 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10008 fi
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_direct=yes
10011 hardcode_shlibpath_var=no
10012 ;;
10013
10014 newsos6)
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_direct=yes
10017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018 hardcode_libdir_separator=:
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 *nto* | *qnx*)
10023 ;;
10024
10025 openbsd*)
10026 if test -f /usr/libexec/ld.so; then
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 hardcode_direct_absolute=yes
10030 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10034 export_dynamic_flag_spec='${wl}-E'
10035 else
10036 case $host_os in
10037 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_libdir_flag_spec='-R$libdir'
10040 ;;
10041 *)
10042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044 ;;
10045 esac
10046 fi
10047 else
10048 ld_shlibs=no
10049 fi
10050 ;;
10051
10052 os2*)
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_minus_L=yes
10055 allow_undefined_flag=unsupported
10056 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'
10057 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10058 ;;
10059
10060 osf3*)
10061 if test "$GCC" = yes; then
10062 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10063 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'
10064 else
10065 allow_undefined_flag=' -expect_unresolved \*'
10066 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'
10067 fi
10068 archive_cmds_need_lc='no'
10069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070 hardcode_libdir_separator=:
10071 ;;
10072
10073 osf4* | osf5*) # as osf3* with the addition of -msym flag
10074 if test "$GCC" = yes; then
10075 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10076 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'
10077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078 else
10079 allow_undefined_flag=' -expect_unresolved \*'
10080 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'
10081 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~
10082 $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'
10083
10084 # Both c and cxx compiler support -rpath directly
10085 hardcode_libdir_flag_spec='-rpath $libdir'
10086 fi
10087 archive_cmds_need_lc='no'
10088 hardcode_libdir_separator=:
10089 ;;
10090
10091 solaris*)
10092 no_undefined_flag=' -z defs'
10093 if test "$GCC" = yes; then
10094 wlarc='${wl}'
10095 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10097 $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'
10098 else
10099 case `$CC -V 2>&1` in
10100 *"Compilers 5.0"*)
10101 wlarc=''
10102 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10105 ;;
10106 *)
10107 wlarc='${wl}'
10108 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10110 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10111 ;;
10112 esac
10113 fi
10114 hardcode_libdir_flag_spec='-R$libdir'
10115 hardcode_shlibpath_var=no
10116 case $host_os in
10117 solaris2.[0-5] | solaris2.[0-5].*) ;;
10118 *)
10119 # The compiler driver will combine and reorder linker options,
10120 # but understands `-z linker_flag'. GCC discards it without `$wl',
10121 # but is careful enough not to reorder.
10122 # Supported since Solaris 2.6 (maybe 2.5.1?)
10123 if test "$GCC" = yes; then
10124 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10125 else
10126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10127 fi
10128 ;;
10129 esac
10130 link_all_deplibs=yes
10131 ;;
10132
10133 sunos4*)
10134 if test "x$host_vendor" = xsequent; then
10135 # Use $CC to link under sequent, because it throws in some extra .o
10136 # files that make .init and .fini sections work.
10137 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138 else
10139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10140 fi
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_direct=yes
10143 hardcode_minus_L=yes
10144 hardcode_shlibpath_var=no
10145 ;;
10146
10147 sysv4)
10148 case $host_vendor in
10149 sni)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct=yes # is this really true???
10152 ;;
10153 siemens)
10154 ## LD is ld it makes a PLAMLIB
10155 ## CC just makes a GrossModule.
10156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10157 reload_cmds='$CC -r -o $output$reload_objs'
10158 hardcode_direct=no
10159 ;;
10160 motorola)
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10163 ;;
10164 esac
10165 runpath_var='LD_RUN_PATH'
10166 hardcode_shlibpath_var=no
10167 ;;
10168
10169 sysv4.3*)
10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171 hardcode_shlibpath_var=no
10172 export_dynamic_flag_spec='-Bexport'
10173 ;;
10174
10175 sysv4*MP*)
10176 if test -d /usr/nec; then
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_shlibpath_var=no
10179 runpath_var=LD_RUN_PATH
10180 hardcode_runpath_var=yes
10181 ld_shlibs=yes
10182 fi
10183 ;;
10184
10185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10186 no_undefined_flag='${wl}-z,text'
10187 archive_cmds_need_lc=no
10188 hardcode_shlibpath_var=no
10189 runpath_var='LD_RUN_PATH'
10190
10191 if test "$GCC" = yes; then
10192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 else
10195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 fi
10198 ;;
10199
10200 sysv5* | sco3.2v5* | sco5v6*)
10201 # Note: We can NOT use -z defs as we might desire, because we do not
10202 # link with -lc, and that would cause any symbols used from libc to
10203 # always be unresolved, which means just about no library would
10204 # ever link correctly. If we're not using GNU ld we use -z text
10205 # though, which does catch some bad symbols but isn't as heavy-handed
10206 # as -z defs.
10207 no_undefined_flag='${wl}-z,text'
10208 allow_undefined_flag='${wl}-z,nodefs'
10209 archive_cmds_need_lc=no
10210 hardcode_shlibpath_var=no
10211 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10212 hardcode_libdir_separator=':'
10213 link_all_deplibs=yes
10214 export_dynamic_flag_spec='${wl}-Bexport'
10215 runpath_var='LD_RUN_PATH'
10216
10217 if test "$GCC" = yes; then
10218 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 else
10221 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223 fi
10224 ;;
10225
10226 uts4*)
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_shlibpath_var=no
10230 ;;
10231
10232 *)
10233 ld_shlibs=no
10234 ;;
10235 esac
10236
10237 if test x$host_vendor = xsni; then
10238 case $host in
10239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10240 export_dynamic_flag_spec='${wl}-Blargedynsym'
10241 ;;
10242 esac
10243 fi
10244 fi
10245
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10247 $as_echo "$ld_shlibs" >&6; }
10248 test "$ld_shlibs" = no && can_build_shared=no
10249
10250 with_gnu_ld=$with_gnu_ld
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 #
10267 # Do we need to explicitly link libc?
10268 #
10269 case "x$archive_cmds_need_lc" in
10270 x|xyes)
10271 # Assume -lc should be added
10272 archive_cmds_need_lc=yes
10273
10274 if test "$enable_shared" = yes && test "$GCC" = yes; then
10275 case $archive_cmds in
10276 *'~'*)
10277 # FIXME: we may have to deal with multi-command sequences.
10278 ;;
10279 '$CC '*)
10280 # Test whether the compiler implicitly links with -lc since on some
10281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10282 # to ld, don't add -lc before -lgcc.
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10284 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10285 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 $RM conftest*
10289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10290
10291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10292 (eval $ac_compile) 2>&5
10293 ac_status=$?
10294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10295 test $ac_status = 0; } 2>conftest.err; then
10296 soname=conftest
10297 lib=conftest
10298 libobjs=conftest.$ac_objext
10299 deplibs=
10300 wl=$lt_prog_compiler_wl
10301 pic_flag=$lt_prog_compiler_pic
10302 compiler_flags=-v
10303 linker_flags=-v
10304 verstring=
10305 output_objdir=.
10306 libname=conftest
10307 lt_save_allow_undefined_flag=$allow_undefined_flag
10308 allow_undefined_flag=
10309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10310 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10311 ac_status=$?
10312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; }
10314 then
10315 lt_cv_archive_cmds_need_lc=no
10316 else
10317 lt_cv_archive_cmds_need_lc=yes
10318 fi
10319 allow_undefined_flag=$lt_save_allow_undefined_flag
10320 else
10321 cat conftest.err 1>&5
10322 fi
10323 $RM conftest*
10324
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10327 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10328 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10329 ;;
10330 esac
10331 fi
10332 ;;
10333 esac
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10487 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10488
10489 if test "$GCC" = yes; then
10490 case $host_os in
10491 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10492 *) lt_awk_arg="/^libraries:/" ;;
10493 esac
10494 case $host_os in
10495 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10496 *) lt_sed_strip_eq="s,=/,/,g" ;;
10497 esac
10498 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10499 case $lt_search_path_spec in
10500 *\;*)
10501 # if the path contains ";" then we assume it to be the separator
10502 # otherwise default to the standard path separator (i.e. ":") - it is
10503 # assumed that no part of a normal pathname contains ";" but that should
10504 # okay in the real world where ";" in dirpaths is itself problematic.
10505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10506 ;;
10507 *)
10508 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10509 ;;
10510 esac
10511 # Ok, now we have the path, separated by spaces, we can step through it
10512 # and add multilib dir if necessary.
10513 lt_tmp_lt_search_path_spec=
10514 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10515 for lt_sys_path in $lt_search_path_spec; do
10516 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10517 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10518 else
10519 test -d "$lt_sys_path" && \
10520 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10521 fi
10522 done
10523 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10524 BEGIN {RS=" "; FS="/|\n";} {
10525 lt_foo="";
10526 lt_count=0;
10527 for (lt_i = NF; lt_i > 0; lt_i--) {
10528 if ($lt_i != "" && $lt_i != ".") {
10529 if ($lt_i == "..") {
10530 lt_count++;
10531 } else {
10532 if (lt_count == 0) {
10533 lt_foo="/" $lt_i lt_foo;
10534 } else {
10535 lt_count--;
10536 }
10537 }
10538 }
10539 }
10540 if (lt_foo != "") { lt_freq[lt_foo]++; }
10541 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10542 }'`
10543 # AWK program above erroneously prepends '/' to C:/dos/paths
10544 # for these hosts.
10545 case $host_os in
10546 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10547 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10548 esac
10549 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10550 else
10551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10552 fi
10553 library_names_spec=
10554 libname_spec='lib$name'
10555 soname_spec=
10556 shrext_cmds=".so"
10557 postinstall_cmds=
10558 postuninstall_cmds=
10559 finish_cmds=
10560 finish_eval=
10561 shlibpath_var=
10562 shlibpath_overrides_runpath=unknown
10563 version_type=none
10564 dynamic_linker="$host_os ld.so"
10565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10566 need_lib_prefix=unknown
10567 hardcode_into_libs=no
10568
10569 # when you set need_version to no, make sure it does not cause -set_version
10570 # flags to be left without arguments
10571 need_version=unknown
10572
10573 case $host_os in
10574 aix3*)
10575 version_type=linux # correct to gnu/linux during the next big refactor
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10577 shlibpath_var=LIBPATH
10578
10579 # AIX 3 has no versioning support, so we append a major version to the name.
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 ;;
10582
10583 aix[4-9]*)
10584 version_type=linux # correct to gnu/linux during the next big refactor
10585 need_lib_prefix=no
10586 need_version=no
10587 hardcode_into_libs=yes
10588 if test "$host_cpu" = ia64; then
10589 # AIX 5 supports IA64
10590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 else
10593 # With GCC up to 2.95.x, collect2 would create an import file
10594 # for dependence libraries. The import file would start with
10595 # the line `#! .'. This would cause the generated library to
10596 # depend on `.', always an invalid library. This was fixed in
10597 # development snapshots of GCC prior to 3.0.
10598 case $host_os in
10599 aix4 | aix4.[01] | aix4.[01].*)
10600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10601 echo ' yes '
10602 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10603 :
10604 else
10605 can_build_shared=no
10606 fi
10607 ;;
10608 esac
10609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10610 # soname into executable. Probably we can add versioning support to
10611 # collect2, so additional links can be useful in future.
10612 if test "$aix_use_runtimelinking" = yes; then
10613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10614 # instead of lib<name>.a to let people know that these are not
10615 # typical AIX shared libraries.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 else
10618 # We preserve .a as extension for shared libraries through AIX4.2
10619 # and later when we are not doing run time linking.
10620 library_names_spec='${libname}${release}.a $libname.a'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 fi
10623 shlibpath_var=LIBPATH
10624 fi
10625 ;;
10626
10627 amigaos*)
10628 case $host_cpu in
10629 powerpc)
10630 # Since July 2007 AmigaOS4 officially supports .so libraries.
10631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 ;;
10634 m68k)
10635 library_names_spec='$libname.ixlibrary $libname.a'
10636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10637 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'
10638 ;;
10639 esac
10640 ;;
10641
10642 beos*)
10643 library_names_spec='${libname}${shared_ext}'
10644 dynamic_linker="$host_os ld.so"
10645 shlibpath_var=LIBRARY_PATH
10646 ;;
10647
10648 bsdi[45]*)
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 need_version=no
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10657 # the default ld.so.conf also contains /usr/contrib/lib and
10658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10659 # libtool to hard-code these into programs
10660 ;;
10661
10662 cygwin* | mingw* | pw32* | cegcc*)
10663 version_type=windows
10664 shrext_cmds=".dll"
10665 need_version=no
10666 need_lib_prefix=no
10667
10668 case $GCC,$cc_basename in
10669 yes,*)
10670 # gcc
10671 library_names_spec='$libname.dll.a'
10672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10673 postinstall_cmds='base_file=`basename \${file}`~
10674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10675 dldir=$destdir/`dirname \$dlpath`~
10676 test -d \$dldir || mkdir -p \$dldir~
10677 $install_prog $dir/$dlname \$dldir/$dlname~
10678 chmod a+x \$dldir/$dlname~
10679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10681 fi'
10682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10683 dlpath=$dir/\$dldll~
10684 $RM \$dlpath'
10685 shlibpath_overrides_runpath=yes
10686
10687 case $host_os in
10688 cygwin*)
10689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10691
10692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10693 ;;
10694 mingw* | cegcc*)
10695 # MinGW DLLs use traditional 'lib' prefix
10696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10697 ;;
10698 pw32*)
10699 # pw32 DLLs use 'pw' prefix rather than 'lib'
10700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10701 ;;
10702 esac
10703 dynamic_linker='Win32 ld.exe'
10704 ;;
10705
10706 *,cl*)
10707 # Native MSVC
10708 libname_spec='$name'
10709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10710 library_names_spec='${libname}.dll.lib'
10711
10712 case $build_os in
10713 mingw*)
10714 sys_lib_search_path_spec=
10715 lt_save_ifs=$IFS
10716 IFS=';'
10717 for lt_path in $LIB
10718 do
10719 IFS=$lt_save_ifs
10720 # Let DOS variable expansion print the short 8.3 style file name.
10721 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10722 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10723 done
10724 IFS=$lt_save_ifs
10725 # Convert to MSYS style.
10726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10727 ;;
10728 cygwin*)
10729 # Convert to unix form, then to dos form, then back to unix form
10730 # but this time dos style (no spaces!) so that the unix form looks
10731 # like /cygdrive/c/PROGRA~1:/cygdr...
10732 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10733 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10734 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10735 ;;
10736 *)
10737 sys_lib_search_path_spec="$LIB"
10738 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10739 # It is most probably a Windows format PATH.
10740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741 else
10742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 fi
10744 # FIXME: find the short name or the path components, as spaces are
10745 # common. (e.g. "Program Files" -> "PROGRA~1")
10746 ;;
10747 esac
10748
10749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10750 postinstall_cmds='base_file=`basename \${file}`~
10751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10752 dldir=$destdir/`dirname \$dlpath`~
10753 test -d \$dldir || mkdir -p \$dldir~
10754 $install_prog $dir/$dlname \$dldir/$dlname'
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10757 $RM \$dlpath'
10758 shlibpath_overrides_runpath=yes
10759 dynamic_linker='Win32 link.exe'
10760 ;;
10761
10762 *)
10763 # Assume MSVC wrapper
10764 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10765 dynamic_linker='Win32 ld.exe'
10766 ;;
10767 esac
10768 # FIXME: first we should search . and the directory the executable is in
10769 shlibpath_var=PATH
10770 ;;
10771
10772 darwin* | rhapsody*)
10773 dynamic_linker="$host_os dyld"
10774 version_type=darwin
10775 need_lib_prefix=no
10776 need_version=no
10777 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10778 soname_spec='${libname}${release}${major}$shared_ext'
10779 shlibpath_overrides_runpath=yes
10780 shlibpath_var=DYLD_LIBRARY_PATH
10781 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10782
10783 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10785 ;;
10786
10787 dgux*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 ;;
10795
10796 freebsd* | dragonfly*)
10797 # DragonFly does not have aout. When/if they implement a new
10798 # versioning mechanism, adjust this.
10799 if test -x /usr/bin/objformat; then
10800 objformat=`/usr/bin/objformat`
10801 else
10802 case $host_os in
10803 freebsd[23].*) objformat=aout ;;
10804 *) objformat=elf ;;
10805 esac
10806 fi
10807 version_type=freebsd-$objformat
10808 case $version_type in
10809 freebsd-elf*)
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10811 need_version=no
10812 need_lib_prefix=no
10813 ;;
10814 freebsd-*)
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10816 need_version=yes
10817 ;;
10818 esac
10819 shlibpath_var=LD_LIBRARY_PATH
10820 case $host_os in
10821 freebsd2.*)
10822 shlibpath_overrides_runpath=yes
10823 ;;
10824 freebsd3.[01]* | freebsdelf3.[01]*)
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10827 ;;
10828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10830 shlibpath_overrides_runpath=no
10831 hardcode_into_libs=yes
10832 ;;
10833 *) # from 4.6 on, and DragonFly
10834 shlibpath_overrides_runpath=yes
10835 hardcode_into_libs=yes
10836 ;;
10837 esac
10838 ;;
10839
10840 gnu*)
10841 version_type=linux # correct to gnu/linux during the next big refactor
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=no
10848 hardcode_into_libs=yes
10849 ;;
10850
10851 haiku*)
10852 version_type=linux # correct to gnu/linux during the next big refactor
10853 need_lib_prefix=no
10854 need_version=no
10855 dynamic_linker="$host_os runtime_loader"
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LIBRARY_PATH
10859 shlibpath_overrides_runpath=yes
10860 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10861 hardcode_into_libs=yes
10862 ;;
10863
10864 hpux9* | hpux10* | hpux11*)
10865 # Give a soname corresponding to the major version so that dld.sl refuses to
10866 # link against other versions.
10867 version_type=sunos
10868 need_lib_prefix=no
10869 need_version=no
10870 case $host_cpu in
10871 ia64*)
10872 shrext_cmds='.so'
10873 hardcode_into_libs=yes
10874 dynamic_linker="$host_os dld.so"
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 if test "X$HPUX_IA64_MODE" = X32; then
10880 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10881 else
10882 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10883 fi
10884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10885 ;;
10886 hppa*64*)
10887 shrext_cmds='.sl'
10888 hardcode_into_libs=yes
10889 dynamic_linker="$host_os dld.sl"
10890 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10896 ;;
10897 *)
10898 shrext_cmds='.sl'
10899 dynamic_linker="$host_os dld.sl"
10900 shlibpath_var=SHLIB_PATH
10901 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 ;;
10905 esac
10906 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10907 postinstall_cmds='chmod 555 $lib'
10908 # or fails outright, so override atomically:
10909 install_override_mode=555
10910 ;;
10911
10912 interix[3-9]*)
10913 version_type=linux # correct to gnu/linux during the next big refactor
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=no
10921 hardcode_into_libs=yes
10922 ;;
10923
10924 irix5* | irix6* | nonstopux*)
10925 case $host_os in
10926 nonstopux*) version_type=nonstopux ;;
10927 *)
10928 if test "$lt_cv_prog_gnu_ld" = yes; then
10929 version_type=linux # correct to gnu/linux during the next big refactor
10930 else
10931 version_type=irix
10932 fi ;;
10933 esac
10934 need_lib_prefix=no
10935 need_version=no
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10938 case $host_os in
10939 irix5* | nonstopux*)
10940 libsuff= shlibsuff=
10941 ;;
10942 *)
10943 case $LD in # libtool.m4 will add one of these switches to LD
10944 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10945 libsuff= shlibsuff= libmagic=32-bit;;
10946 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10947 libsuff=32 shlibsuff=N32 libmagic=N32;;
10948 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10949 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10950 *) libsuff= shlibsuff= libmagic=never-match;;
10951 esac
10952 ;;
10953 esac
10954 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10955 shlibpath_overrides_runpath=no
10956 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10957 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10958 hardcode_into_libs=yes
10959 ;;
10960
10961 # No shared lib support for Linux oldld, aout, or coff.
10962 linux*oldld* | linux*aout* | linux*coff*)
10963 dynamic_linker=no
10964 ;;
10965
10966 # This must be glibc/ELF.
10967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 need_lib_prefix=no
10970 need_version=no
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=no
10976
10977 # Some binutils ld are patched to set DT_RUNPATH
10978 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 lt_cv_shlibpath_overrides_runpath=no
10982 save_LDFLAGS=$LDFLAGS
10983 save_libdir=$libdir
10984 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10985 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988
10989 int
10990 main ()
10991 {
10992
10993 ;
10994 return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_link "$LINENO"; then :
10998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10999 lt_cv_shlibpath_overrides_runpath=yes
11000 fi
11001 fi
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004 LDFLAGS=$save_LDFLAGS
11005 libdir=$save_libdir
11006
11007 fi
11008
11009 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11010
11011 # This implies no fast_install, which is unacceptable.
11012 # Some rework will be needed to allow for fast_install
11013 # before this can be enabled.
11014 hardcode_into_libs=yes
11015
11016 # Append ld.so.conf contents to the search path
11017 if test -f /etc/ld.so.conf; then
11018 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' ' '`
11019 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11020 fi
11021
11022 # We used to test for /lib/ld.so.1 and disable shared libraries on
11023 # powerpc, because MkLinux only supported shared libraries with the
11024 # GNU dynamic linker. Since this was broken with cross compilers,
11025 # most powerpc-linux boxes support dynamic linking these days and
11026 # people can always --disable-shared, the test was removed, and we
11027 # assume the GNU/Linux dynamic linker is in use.
11028 dynamic_linker='GNU/Linux ld.so'
11029 ;;
11030
11031 netbsd*)
11032 version_type=sunos
11033 need_lib_prefix=no
11034 need_version=no
11035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11038 dynamic_linker='NetBSD (a.out) ld.so'
11039 else
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 dynamic_linker='NetBSD ld.elf_so'
11043 fi
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11046 hardcode_into_libs=yes
11047 ;;
11048
11049 newsos6)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11054 ;;
11055
11056 *nto* | *qnx*)
11057 version_type=qnx
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 dynamic_linker='ldqnx.so'
11066 ;;
11067
11068 openbsd*)
11069 version_type=sunos
11070 sys_lib_dlsearch_path_spec="/usr/lib"
11071 need_lib_prefix=no
11072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11073 case $host_os in
11074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11075 *) need_version=no ;;
11076 esac
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081 case $host_os in
11082 openbsd2.[89] | openbsd2.[89].*)
11083 shlibpath_overrides_runpath=no
11084 ;;
11085 *)
11086 shlibpath_overrides_runpath=yes
11087 ;;
11088 esac
11089 else
11090 shlibpath_overrides_runpath=yes
11091 fi
11092 ;;
11093
11094 os2*)
11095 libname_spec='$name'
11096 shrext_cmds=".dll"
11097 need_lib_prefix=no
11098 library_names_spec='$libname${shared_ext} $libname.a'
11099 dynamic_linker='OS/2 ld.exe'
11100 shlibpath_var=LIBPATH
11101 ;;
11102
11103 osf3* | osf4* | osf5*)
11104 version_type=osf
11105 need_lib_prefix=no
11106 need_version=no
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11112 ;;
11113
11114 rdos*)
11115 dynamic_linker=no
11116 ;;
11117
11118 solaris*)
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11126 hardcode_into_libs=yes
11127 # ldd complains unless libraries are executable
11128 postinstall_cmds='chmod +x $lib'
11129 ;;
11130
11131 sunos4*)
11132 version_type=sunos
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 if test "$with_gnu_ld" = yes; then
11138 need_lib_prefix=no
11139 fi
11140 need_version=yes
11141 ;;
11142
11143 sysv4 | sysv4.3*)
11144 version_type=linux # correct to gnu/linux during the next big refactor
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 case $host_vendor in
11149 sni)
11150 shlibpath_overrides_runpath=no
11151 need_lib_prefix=no
11152 runpath_var=LD_RUN_PATH
11153 ;;
11154 siemens)
11155 need_lib_prefix=no
11156 ;;
11157 motorola)
11158 need_lib_prefix=no
11159 need_version=no
11160 shlibpath_overrides_runpath=no
11161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11162 ;;
11163 esac
11164 ;;
11165
11166 sysv4*MP*)
11167 if test -d /usr/nec ;then
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11170 soname_spec='$libname${shared_ext}.$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 fi
11173 ;;
11174
11175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11176 version_type=freebsd-elf
11177 need_lib_prefix=no
11178 need_version=no
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 hardcode_into_libs=yes
11184 if test "$with_gnu_ld" = yes; then
11185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11186 else
11187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11188 case $host_os in
11189 sco3.2v5*)
11190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11191 ;;
11192 esac
11193 fi
11194 sys_lib_dlsearch_path_spec='/usr/lib'
11195 ;;
11196
11197 tpf*)
11198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11199 version_type=linux # correct to gnu/linux during the next big refactor
11200 need_lib_prefix=no
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 ;;
11207
11208 uts4*)
11209 version_type=linux # correct to gnu/linux during the next big refactor
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 ;;
11214
11215 *)
11216 dynamic_linker=no
11217 ;;
11218 esac
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11220 $as_echo "$dynamic_linker" >&6; }
11221 test "$dynamic_linker" = no && can_build_shared=no
11222
11223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11224 if test "$GCC" = yes; then
11225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11226 fi
11227
11228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11230 fi
11231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11233 fi
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11327 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11328 hardcode_action=
11329 if test -n "$hardcode_libdir_flag_spec" ||
11330 test -n "$runpath_var" ||
11331 test "X$hardcode_automatic" = "Xyes" ; then
11332
11333 # We can hardcode non-existent directories.
11334 if test "$hardcode_direct" != no &&
11335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11336 # have to relink, otherwise we might link with an installed library
11337 # when we should be linking with a yet-to-be-installed one
11338 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11339 test "$hardcode_minus_L" != no; then
11340 # Linking always hardcodes the temporary library directory.
11341 hardcode_action=relink
11342 else
11343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11344 hardcode_action=immediate
11345 fi
11346 else
11347 # We cannot hardcode anything, or else we can only hardcode existing
11348 # directories.
11349 hardcode_action=unsupported
11350 fi
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11352 $as_echo "$hardcode_action" >&6; }
11353
11354 if test "$hardcode_action" = relink ||
11355 test "$inherit_rpath" = yes; then
11356 # Fast installation is not supported
11357 enable_fast_install=no
11358 elif test "$shlibpath_overrides_runpath" = yes ||
11359 test "$enable_shared" = no; then
11360 # Fast installation is not necessary
11361 enable_fast_install=needless
11362 fi
11363
11364
11365
11366
11367
11368
11369 if test "x$enable_dlopen" != xyes; then
11370 enable_dlopen=unknown
11371 enable_dlopen_self=unknown
11372 enable_dlopen_self_static=unknown
11373 else
11374 lt_cv_dlopen=no
11375 lt_cv_dlopen_libs=
11376
11377 case $host_os in
11378 beos*)
11379 lt_cv_dlopen="load_add_on"
11380 lt_cv_dlopen_libs=
11381 lt_cv_dlopen_self=yes
11382 ;;
11383
11384 mingw* | pw32* | cegcc*)
11385 lt_cv_dlopen="LoadLibrary"
11386 lt_cv_dlopen_libs=
11387 ;;
11388
11389 cygwin*)
11390 lt_cv_dlopen="dlopen"
11391 lt_cv_dlopen_libs=
11392 ;;
11393
11394 darwin*)
11395 # if libdl is installed we need to link against it
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11398 if ${ac_cv_lib_dl_dlopen+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldl $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11413 int
11414 main ()
11415 {
11416 return dlopen ();
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_lib_dl_dlopen=yes
11423 else
11424 ac_cv_lib_dl_dlopen=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11434 else
11435
11436 lt_cv_dlopen="dyld"
11437 lt_cv_dlopen_libs=
11438 lt_cv_dlopen_self=yes
11439
11440 fi
11441
11442 ;;
11443
11444 *)
11445 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11446 if test "x$ac_cv_func_shl_load" = xyes; then :
11447 lt_cv_dlopen="shl_load"
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11450 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11451 if ${ac_cv_lib_dld_shl_load+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-ldld $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char shl_load ();
11466 int
11467 main ()
11468 {
11469 return shl_load ();
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_dld_shl_load=yes
11476 else
11477 ac_cv_lib_dld_shl_load=no
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11484 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11485 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11486 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11487 else
11488 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11489 if test "x$ac_cv_func_dlopen" = xyes; then :
11490 lt_cv_dlopen="dlopen"
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11494 if ${ac_cv_lib_dl_dlopen+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-ldl $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char dlopen ();
11509 int
11510 main ()
11511 {
11512 return dlopen ();
11513 ;
11514 return 0;
11515 }
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_dl_dlopen=yes
11519 else
11520 ac_cv_lib_dl_dlopen=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11532 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11533 if ${ac_cv_lib_svld_dlopen+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lsvld $LIBS"
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char dlopen ();
11548 int
11549 main ()
11550 {
11551 return dlopen ();
11552 ;
11553 return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_link "$LINENO"; then :
11557 ac_cv_lib_svld_dlopen=yes
11558 else
11559 ac_cv_lib_svld_dlopen=no
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 LIBS=$ac_check_lib_save_LIBS
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11566 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11567 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11571 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11572 if ${ac_cv_lib_dld_dld_link+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-ldld $LIBS"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char dld_link ();
11587 int
11588 main ()
11589 {
11590 return dld_link ();
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_lib_dld_dld_link=yes
11597 else
11598 ac_cv_lib_dld_dld_link=no
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11606 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11608 fi
11609
11610
11611 fi
11612
11613
11614 fi
11615
11616
11617 fi
11618
11619
11620 fi
11621
11622
11623 fi
11624
11625 ;;
11626 esac
11627
11628 if test "x$lt_cv_dlopen" != xno; then
11629 enable_dlopen=yes
11630 else
11631 enable_dlopen=no
11632 fi
11633
11634 case $lt_cv_dlopen in
11635 dlopen)
11636 save_CPPFLAGS="$CPPFLAGS"
11637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11638
11639 save_LDFLAGS="$LDFLAGS"
11640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11641
11642 save_LIBS="$LIBS"
11643 LIBS="$lt_cv_dlopen_libs $LIBS"
11644
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11647 if ${lt_cv_dlopen_self+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 if test "$cross_compiling" = yes; then :
11651 lt_cv_dlopen_self=cross
11652 else
11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654 lt_status=$lt_dlunknown
11655 cat > conftest.$ac_ext <<_LT_EOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11658
11659 #if HAVE_DLFCN_H
11660 #include <dlfcn.h>
11661 #endif
11662
11663 #include <stdio.h>
11664
11665 #ifdef RTLD_GLOBAL
11666 # define LT_DLGLOBAL RTLD_GLOBAL
11667 #else
11668 # ifdef DL_GLOBAL
11669 # define LT_DLGLOBAL DL_GLOBAL
11670 # else
11671 # define LT_DLGLOBAL 0
11672 # endif
11673 #endif
11674
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676 find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11678 # ifdef RTLD_LAZY
11679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11680 # else
11681 # ifdef DL_LAZY
11682 # define LT_DLLAZY_OR_NOW DL_LAZY
11683 # else
11684 # ifdef RTLD_NOW
11685 # define LT_DLLAZY_OR_NOW RTLD_NOW
11686 # else
11687 # ifdef DL_NOW
11688 # define LT_DLLAZY_OR_NOW DL_NOW
11689 # else
11690 # define LT_DLLAZY_OR_NOW 0
11691 # endif
11692 # endif
11693 # endif
11694 # endif
11695 #endif
11696
11697 /* When -fvisbility=hidden is used, assume the code has been annotated
11698 correspondingly for the symbols needed. */
11699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11700 int fnord () __attribute__((visibility("default")));
11701 #endif
11702
11703 int fnord () { return 42; }
11704 int main ()
11705 {
11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707 int status = $lt_dlunknown;
11708
11709 if (self)
11710 {
11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11712 else
11713 {
11714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11715 else puts (dlerror ());
11716 }
11717 /* dlclose (self); */
11718 }
11719 else
11720 puts (dlerror ());
11721
11722 return status;
11723 }
11724 _LT_EOF
11725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11726 (eval $ac_link) 2>&5
11727 ac_status=$?
11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11730 (./conftest; exit; ) >&5 2>/dev/null
11731 lt_status=$?
11732 case x$lt_status in
11733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11736 esac
11737 else :
11738 # compilation failed
11739 lt_cv_dlopen_self=no
11740 fi
11741 fi
11742 rm -fr conftest*
11743
11744
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11747 $as_echo "$lt_cv_dlopen_self" >&6; }
11748
11749 if test "x$lt_cv_dlopen_self" = xyes; then
11750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11753 if ${lt_cv_dlopen_self_static+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 if test "$cross_compiling" = yes; then :
11757 lt_cv_dlopen_self_static=cross
11758 else
11759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760 lt_status=$lt_dlunknown
11761 cat > conftest.$ac_ext <<_LT_EOF
11762 #line $LINENO "configure"
11763 #include "confdefs.h"
11764
11765 #if HAVE_DLFCN_H
11766 #include <dlfcn.h>
11767 #endif
11768
11769 #include <stdio.h>
11770
11771 #ifdef RTLD_GLOBAL
11772 # define LT_DLGLOBAL RTLD_GLOBAL
11773 #else
11774 # ifdef DL_GLOBAL
11775 # define LT_DLGLOBAL DL_GLOBAL
11776 # else
11777 # define LT_DLGLOBAL 0
11778 # endif
11779 #endif
11780
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782 find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11784 # ifdef RTLD_LAZY
11785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11786 # else
11787 # ifdef DL_LAZY
11788 # define LT_DLLAZY_OR_NOW DL_LAZY
11789 # else
11790 # ifdef RTLD_NOW
11791 # define LT_DLLAZY_OR_NOW RTLD_NOW
11792 # else
11793 # ifdef DL_NOW
11794 # define LT_DLLAZY_OR_NOW DL_NOW
11795 # else
11796 # define LT_DLLAZY_OR_NOW 0
11797 # endif
11798 # endif
11799 # endif
11800 # endif
11801 #endif
11802
11803 /* When -fvisbility=hidden is used, assume the code has been annotated
11804 correspondingly for the symbols needed. */
11805 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11806 int fnord () __attribute__((visibility("default")));
11807 #endif
11808
11809 int fnord () { return 42; }
11810 int main ()
11811 {
11812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11813 int status = $lt_dlunknown;
11814
11815 if (self)
11816 {
11817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11818 else
11819 {
11820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11821 else puts (dlerror ());
11822 }
11823 /* dlclose (self); */
11824 }
11825 else
11826 puts (dlerror ());
11827
11828 return status;
11829 }
11830 _LT_EOF
11831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11832 (eval $ac_link) 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11836 (./conftest; exit; ) >&5 2>/dev/null
11837 lt_status=$?
11838 case x$lt_status in
11839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11842 esac
11843 else :
11844 # compilation failed
11845 lt_cv_dlopen_self_static=no
11846 fi
11847 fi
11848 rm -fr conftest*
11849
11850
11851 fi
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11853 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11854 fi
11855
11856 CPPFLAGS="$save_CPPFLAGS"
11857 LDFLAGS="$save_LDFLAGS"
11858 LIBS="$save_LIBS"
11859 ;;
11860 esac
11861
11862 case $lt_cv_dlopen_self in
11863 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11864 *) enable_dlopen_self=unknown ;;
11865 esac
11866
11867 case $lt_cv_dlopen_self_static in
11868 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11869 *) enable_dlopen_self_static=unknown ;;
11870 esac
11871 fi
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889 striplib=
11890 old_striplib=
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11892 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11893 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11898 else
11899 # FIXME - insert some real tests, host_os isn't really good enough
11900 case $host_os in
11901 darwin*)
11902 if test -n "$STRIP" ; then
11903 striplib="$STRIP -x"
11904 old_striplib="$STRIP -S"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906 $as_echo "yes" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911 ;;
11912 *)
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 ;;
11916 esac
11917 fi
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930 # Report which library types will actually be built
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11932 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11934 $as_echo "$can_build_shared" >&6; }
11935
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11937 $as_echo_n "checking whether to build shared libraries... " >&6; }
11938 test "$can_build_shared" = "no" && enable_shared=no
11939
11940 # On AIX, shared libraries and static libraries use the same namespace, and
11941 # are all built from PIC.
11942 case $host_os in
11943 aix3*)
11944 test "$enable_shared" = yes && enable_static=no
11945 if test -n "$RANLIB"; then
11946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11947 postinstall_cmds='$RANLIB $lib'
11948 fi
11949 ;;
11950
11951 aix[4-9]*)
11952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11953 test "$enable_shared" = yes && enable_static=no
11954 fi
11955 ;;
11956 esac
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11958 $as_echo "$enable_shared" >&6; }
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11961 $as_echo_n "checking whether to build static libraries... " >&6; }
11962 # Make sure either enable_shared or enable_static is yes.
11963 test "$enable_shared" = yes || enable_static=yes
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11965 $as_echo "$enable_static" >&6; }
11966
11967
11968
11969
11970 fi
11971 ac_ext=c
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976
11977 CC="$lt_save_CC"
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 ac_config_commands="$ac_config_commands libtool"
11994
11995
11996
11997
11998 # Only expand once:
11999
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12002 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12003 if ${libltdl_cv_shlibext+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006
12007 module=yes
12008 eval libltdl_cv_shlibext=$shrext_cmds
12009 module=no
12010 eval libltdl_cv_shrext=$shrext_cmds
12011
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12014 $as_echo "$libltdl_cv_shlibext" >&6; }
12015 if test -n "$libltdl_cv_shlibext"; then
12016
12017 cat >>confdefs.h <<_ACEOF
12018 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12019 _ACEOF
12020
12021 fi
12022 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12023
12024 cat >>confdefs.h <<_ACEOF
12025 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12026 _ACEOF
12027
12028 fi
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12031 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12032 if ${lt_cv_module_path_var+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 lt_cv_module_path_var="$shlibpath_var"
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12038 $as_echo "$lt_cv_module_path_var" >&6; }
12039 if test -n "$lt_cv_module_path_var"; then
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12043 _ACEOF
12044
12045 fi
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12048 $as_echo_n "checking for the default library search path... " >&6; }
12049 if ${lt_cv_sys_dlsearch_path+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12055 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12056 if test -n "$lt_cv_sys_dlsearch_path"; then
12057 sys_dlsearch_path=
12058 for dir in $lt_cv_sys_dlsearch_path; do
12059 if test -z "$sys_dlsearch_path"; then
12060 sys_dlsearch_path="$dir"
12061 else
12062 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12063 fi
12064 done
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12068 _ACEOF
12069
12070 fi
12071
12072
12073 LT_DLLOADERS=
12074
12075
12076 ac_ext=c
12077 ac_cpp='$CPP $CPPFLAGS'
12078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12081
12082
12083 LIBADD_DLOPEN=
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12085 $as_echo_n "checking for library containing dlopen... " >&6; }
12086 if ${ac_cv_search_dlopen+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 ac_func_search_save_LIBS=$LIBS
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char dlopen ();
12100 int
12101 main ()
12102 {
12103 return dlopen ();
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 for ac_lib in '' dl; do
12109 if test -z "$ac_lib"; then
12110 ac_res="none required"
12111 else
12112 ac_res=-l$ac_lib
12113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12114 fi
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_search_dlopen=$ac_res
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext
12120 if ${ac_cv_search_dlopen+:} false; then :
12121 break
12122 fi
12123 done
12124 if ${ac_cv_search_dlopen+:} false; then :
12125
12126 else
12127 ac_cv_search_dlopen=no
12128 fi
12129 rm conftest.$ac_ext
12130 LIBS=$ac_func_search_save_LIBS
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12133 $as_echo "$ac_cv_search_dlopen" >&6; }
12134 ac_res=$ac_cv_search_dlopen
12135 if test "$ac_res" != no; then :
12136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12137
12138 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12139
12140 if test "$ac_cv_search_dlopen" != "none required" ; then
12141 LIBADD_DLOPEN="-ldl"
12142 fi
12143 libltdl_cv_lib_dl_dlopen="yes"
12144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12145 else
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #if HAVE_DLFCN_H
12149 # include <dlfcn.h>
12150 #endif
12151
12152 int
12153 main ()
12154 {
12155 dlopen(0, 0);
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161
12162 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12163
12164 libltdl_cv_func_dlopen="yes"
12165 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12169 if ${ac_cv_lib_svld_dlopen+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-lsvld $LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char dlopen ();
12184 int
12185 main ()
12186 {
12187 return dlopen ();
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_svld_dlopen=yes
12194 else
12195 ac_cv_lib_svld_dlopen=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12204
12205 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12206
12207 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12208 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12209 fi
12210
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 fi
12215
12216 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12217 then
12218 lt_save_LIBS="$LIBS"
12219 LIBS="$LIBS $LIBADD_DLOPEN"
12220 for ac_func in dlerror
12221 do :
12222 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12223 if test "x$ac_cv_func_dlerror" = xyes; then :
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_DLERROR 1
12226 _ACEOF
12227
12228 fi
12229 done
12230
12231 LIBS="$lt_save_LIBS"
12232 fi
12233
12234
12235 LIBADD_SHL_LOAD=
12236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12237 if test "x$ac_cv_func_shl_load" = xyes; then :
12238
12239 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12240
12241 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12244 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12245 if ${ac_cv_lib_dld_shl_load+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-ldld $LIBS"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char shl_load ();
12260 int
12261 main ()
12262 {
12263 return shl_load ();
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_lib_dld_shl_load=yes
12270 else
12271 ac_cv_lib_dld_shl_load=no
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 LIBS=$ac_check_lib_save_LIBS
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12278 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12279 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12280
12281 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12282
12283 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12284 LIBADD_SHL_LOAD="-ldld"
12285 fi
12286
12287 fi
12288
12289
12290
12291 case $host_os in
12292 darwin[1567].*)
12293 # We only want this for pre-Mac OS X 10.4.
12294 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12295 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12296
12297 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12298
12299 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12300 fi
12301
12302 ;;
12303 beos*)
12304 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12305 ;;
12306 cygwin* | mingw* | os2* | pw32*)
12307 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12308 "
12309 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12310 ac_have_decl=1
12311 else
12312 ac_have_decl=0
12313 fi
12314
12315 cat >>confdefs.h <<_ACEOF
12316 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12317 _ACEOF
12318
12319 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12320 ;;
12321 esac
12322
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12325 if ${ac_cv_lib_dld_dld_link+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-ldld $LIBS"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 char dld_link ();
12340 int
12341 main ()
12342 {
12343 return dld_link ();
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_link "$LINENO"; then :
12349 ac_cv_lib_dld_dld_link=yes
12350 else
12351 ac_cv_lib_dld_dld_link=no
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355 LIBS=$ac_check_lib_save_LIBS
12356 fi
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12359 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12360
12361 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12362
12363 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12364 fi
12365
12366
12367
12368
12369 LT_DLPREOPEN=
12370 if test -n "$LT_DLLOADERS"
12371 then
12372 for lt_loader in $LT_DLLOADERS; do
12373 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12374 done
12375
12376 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12377
12378 fi
12379
12380
12381 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12382
12383
12384 ac_ext=c
12385 ac_cpp='$CPP $CPPFLAGS'
12386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12392 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12393 if ${lt_cv_sys_symbol_underscore+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 lt_cv_sys_symbol_underscore=no
12397 cat > conftest.$ac_ext <<_LT_EOF
12398 void nm_test_func(){}
12399 int main(){nm_test_func;return 0;}
12400 _LT_EOF
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; }; then
12406 # Now try to grab the symbols.
12407 ac_nlist=conftest.nm
12408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412 test $ac_status = 0; } && test -s "$ac_nlist"; then
12413 # See whether the symbols have a leading underscore.
12414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12415 lt_cv_sys_symbol_underscore=yes
12416 else
12417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12418 :
12419 else
12420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12421 fi
12422 fi
12423 else
12424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12425 fi
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.c >&5
12429 fi
12430 rm -rf conftest*
12431
12432 fi
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12434 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12435 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12436
12437
12438 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12439 if test x"$libltdl_cv_func_dlopen" = xyes ||
12440 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12442 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12443 if ${libltdl_cv_need_uscore+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 libltdl_cv_need_uscore=unknown
12447 save_LIBS="$LIBS"
12448 LIBS="$LIBS $LIBADD_DLOPEN"
12449 if test "$cross_compiling" = yes; then :
12450 libltdl_cv_need_uscore=cross
12451 else
12452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12453 lt_status=$lt_dlunknown
12454 cat > conftest.$ac_ext <<_LT_EOF
12455 #line $LINENO "configure"
12456 #include "confdefs.h"
12457
12458 #if HAVE_DLFCN_H
12459 #include <dlfcn.h>
12460 #endif
12461
12462 #include <stdio.h>
12463
12464 #ifdef RTLD_GLOBAL
12465 # define LT_DLGLOBAL RTLD_GLOBAL
12466 #else
12467 # ifdef DL_GLOBAL
12468 # define LT_DLGLOBAL DL_GLOBAL
12469 # else
12470 # define LT_DLGLOBAL 0
12471 # endif
12472 #endif
12473
12474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12475 find out it does not work in some platform. */
12476 #ifndef LT_DLLAZY_OR_NOW
12477 # ifdef RTLD_LAZY
12478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12479 # else
12480 # ifdef DL_LAZY
12481 # define LT_DLLAZY_OR_NOW DL_LAZY
12482 # else
12483 # ifdef RTLD_NOW
12484 # define LT_DLLAZY_OR_NOW RTLD_NOW
12485 # else
12486 # ifdef DL_NOW
12487 # define LT_DLLAZY_OR_NOW DL_NOW
12488 # else
12489 # define LT_DLLAZY_OR_NOW 0
12490 # endif
12491 # endif
12492 # endif
12493 # endif
12494 #endif
12495
12496 /* When -fvisbility=hidden is used, assume the code has been annotated
12497 correspondingly for the symbols needed. */
12498 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12499 int fnord () __attribute__((visibility("default")));
12500 #endif
12501
12502 int fnord () { return 42; }
12503 int main ()
12504 {
12505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12506 int status = $lt_dlunknown;
12507
12508 if (self)
12509 {
12510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12511 else
12512 {
12513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12514 else puts (dlerror ());
12515 }
12516 /* dlclose (self); */
12517 }
12518 else
12519 puts (dlerror ());
12520
12521 return status;
12522 }
12523 _LT_EOF
12524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12525 (eval $ac_link) 2>&5
12526 ac_status=$?
12527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12528 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12529 (./conftest; exit; ) >&5 2>/dev/null
12530 lt_status=$?
12531 case x$lt_status in
12532 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12533 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12534 x$lt_dlunknown|x*) ;;
12535 esac
12536 else :
12537 # compilation failed
12538
12539 fi
12540 fi
12541 rm -fr conftest*
12542
12543 LIBS="$save_LIBS"
12544
12545 fi
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12547 $as_echo "$libltdl_cv_need_uscore" >&6; }
12548 fi
12549 fi
12550
12551 if test x"$libltdl_cv_need_uscore" = xyes; then
12552
12553 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12554
12555 fi
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12558 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12559 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 # PORTME does your system automatically load deplibs for dlopen?
12563 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12564 # For now, we just catch OSes we know something about -- in the
12565 # future, we'll try test this programmatically.
12566 lt_cv_sys_dlopen_deplibs=unknown
12567 case $host_os in
12568 aix3*|aix4.1.*|aix4.2.*)
12569 # Unknown whether this is true for these versions of AIX, but
12570 # we want this `case' here to explicitly catch those versions.
12571 lt_cv_sys_dlopen_deplibs=unknown
12572 ;;
12573 aix[4-9]*)
12574 lt_cv_sys_dlopen_deplibs=yes
12575 ;;
12576 amigaos*)
12577 case $host_cpu in
12578 powerpc)
12579 lt_cv_sys_dlopen_deplibs=no
12580 ;;
12581 esac
12582 ;;
12583 darwin*)
12584 # Assuming the user has installed a libdl from somewhere, this is true
12585 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12586 lt_cv_sys_dlopen_deplibs=yes
12587 ;;
12588 freebsd* | dragonfly*)
12589 lt_cv_sys_dlopen_deplibs=yes
12590 ;;
12591 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12592 # GNU and its variants, using gnu ld.so (Glibc)
12593 lt_cv_sys_dlopen_deplibs=yes
12594 ;;
12595 hpux10*|hpux11*)
12596 lt_cv_sys_dlopen_deplibs=yes
12597 ;;
12598 interix*)
12599 lt_cv_sys_dlopen_deplibs=yes
12600 ;;
12601 irix[12345]*|irix6.[01]*)
12602 # Catch all versions of IRIX before 6.2, and indicate that we don't
12603 # know how it worked for any of those versions.
12604 lt_cv_sys_dlopen_deplibs=unknown
12605 ;;
12606 irix*)
12607 # The case above catches anything before 6.2, and it's known that
12608 # at 6.2 and later dlopen does load deplibs.
12609 lt_cv_sys_dlopen_deplibs=yes
12610 ;;
12611 netbsd*)
12612 lt_cv_sys_dlopen_deplibs=yes
12613 ;;
12614 openbsd*)
12615 lt_cv_sys_dlopen_deplibs=yes
12616 ;;
12617 osf[1234]*)
12618 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12619 # it did *not* use an RPATH in a shared library to find objects the
12620 # library depends on, so we explicitly say `no'.
12621 lt_cv_sys_dlopen_deplibs=no
12622 ;;
12623 osf5.0|osf5.0a|osf5.1)
12624 # dlopen *does* load deplibs and with the right loader patch applied
12625 # it even uses RPATH in a shared library to search for shared objects
12626 # that the library depends on, but there's no easy way to know if that
12627 # patch is installed. Since this is the case, all we can really
12628 # say is unknown -- it depends on the patch being installed. If
12629 # it is, this changes to `yes'. Without it, it would be `no'.
12630 lt_cv_sys_dlopen_deplibs=unknown
12631 ;;
12632 osf*)
12633 # the two cases above should catch all versions of osf <= 5.1. Read
12634 # the comments above for what we know about them.
12635 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12636 # is used to find them so we can finally say `yes'.
12637 lt_cv_sys_dlopen_deplibs=yes
12638 ;;
12639 qnx*)
12640 lt_cv_sys_dlopen_deplibs=yes
12641 ;;
12642 solaris*)
12643 lt_cv_sys_dlopen_deplibs=yes
12644 ;;
12645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12646 libltdl_cv_sys_dlopen_deplibs=yes
12647 ;;
12648 esac
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12652 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12653 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12654
12655 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12656
12657 fi
12658
12659 :
12660
12661 for ac_header in argz.h
12662 do :
12663 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12664 "
12665 if test "x$ac_cv_header_argz_h" = xyes; then :
12666 cat >>confdefs.h <<_ACEOF
12667 #define HAVE_ARGZ_H 1
12668 _ACEOF
12669
12670 fi
12671
12672 done
12673
12674
12675 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12676 # include <argz.h>
12677 #endif
12678 "
12679 if test "x$ac_cv_type_error_t" = xyes; then :
12680
12681 cat >>confdefs.h <<_ACEOF
12682 #define HAVE_ERROR_T 1
12683 _ACEOF
12684
12685
12686 else
12687
12688 $as_echo "#define error_t int" >>confdefs.h
12689
12690
12691 $as_echo "#define __error_t_defined 1" >>confdefs.h
12692
12693 fi
12694
12695
12696 ARGZ_H=
12697 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12698 argz_next argz_stringify
12699 do :
12700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12703 cat >>confdefs.h <<_ACEOF
12704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12705 _ACEOF
12706
12707 else
12708 ARGZ_H=argz.h;
12709
12710 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12711
12712 fi
12713 done
12714
12715
12716 if test -z "$ARGZ_H"; then :
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12718 $as_echo_n "checking if argz actually works... " >&6; }
12719 if ${lt_cv_sys_argz_works+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 case $host_os in #(
12723 *cygwin*)
12724 lt_cv_sys_argz_works=no
12725 if test "$cross_compiling" != no; then
12726 lt_cv_sys_argz_works="guessing no"
12727 else
12728 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12729 save_IFS=$IFS
12730 IFS=-.
12731 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12732 IFS=$save_IFS
12733 lt_os_major=${2-0}
12734 lt_os_minor=${3-0}
12735 lt_os_micro=${4-0}
12736 if test "$lt_os_major" -gt 1 \
12737 || { test "$lt_os_major" -eq 1 \
12738 && { test "$lt_os_minor" -gt 5 \
12739 || { test "$lt_os_minor" -eq 5 \
12740 && test "$lt_os_micro" -gt 24; }; }; }; then
12741 lt_cv_sys_argz_works=yes
12742 fi
12743 fi
12744 ;; #(
12745 *) lt_cv_sys_argz_works=yes ;;
12746 esac
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12749 $as_echo "$lt_cv_sys_argz_works" >&6; }
12750 if test "$lt_cv_sys_argz_works" = yes; then :
12751
12752 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12753
12754 else
12755 ARGZ_H=argz.h
12756
12757
12758 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12759
12760 fi
12761 fi
12762
12763
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12766 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12767 if ${libltdl_cv_preloaded_symbols+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12771 libltdl_cv_preloaded_symbols=yes
12772 else
12773 libltdl_cv_preloaded_symbols=no
12774 fi
12775
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12778 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12779 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12780
12781 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12782
12783 fi
12784
12785 # Set options
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797 # Check whether --with-included_ltdl was given.
12798 if test "${with_included_ltdl+set}" = set; then :
12799 withval=$with_included_ltdl;
12800 fi
12801
12802
12803 if test "x$with_included_ltdl" != xyes; then
12804 # We are not being forced to use the included libltdl sources, so
12805 # decide whether there is a useful installed version we can use.
12806 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12807
12808 "
12809 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12810 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12811 #include <ltdl.h>
12812 "
12813 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12815 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12816 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 ac_check_lib_save_LIBS=$LIBS
12820 LIBS="-lltdl $LIBS"
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char lt_dladvise_preload ();
12831 int
12832 main ()
12833 {
12834 return lt_dladvise_preload ();
12835 ;
12836 return 0;
12837 }
12838 _ACEOF
12839 if ac_fn_c_try_link "$LINENO"; then :
12840 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12841 else
12842 ac_cv_lib_ltdl_lt_dladvise_preload=no
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS
12847 fi
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12849 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12850 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12851 with_included_ltdl=no
12852 else
12853 with_included_ltdl=yes
12854 fi
12855
12856 else
12857 with_included_ltdl=yes
12858 fi
12859
12860 else
12861 with_included_ltdl=yes
12862 fi
12863
12864
12865 fi
12866
12867
12868
12869
12870 # Check whether --with-ltdl_include was given.
12871 if test "${with_ltdl_include+set}" = set; then :
12872 withval=$with_ltdl_include;
12873 fi
12874
12875
12876 if test -n "$with_ltdl_include"; then
12877 if test -f "$with_ltdl_include/ltdl.h"; then :
12878 else
12879 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12880 fi
12881 else
12882 with_ltdl_include=no
12883 fi
12884
12885
12886 # Check whether --with-ltdl_lib was given.
12887 if test "${with_ltdl_lib+set}" = set; then :
12888 withval=$with_ltdl_lib;
12889 fi
12890
12891
12892 if test -n "$with_ltdl_lib"; then
12893 if test -f "$with_ltdl_lib/libltdl.la"; then :
12894 else
12895 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12896 fi
12897 else
12898 with_ltdl_lib=no
12899 fi
12900
12901 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12902 ,yes,no,no,)
12903 case $enable_ltdl_convenience in
12904 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12905 "") enable_ltdl_convenience=yes
12906 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12907 esac
12908 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12909 LTDLDEPS=$LIBLTDL
12910 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12911
12912
12913
12914
12915
12916 # For backwards non-gettext consistent compatibility...
12917 INCLTDL="$LTDLINCL"
12918
12919
12920 ;;
12921 ,no,no,no,)
12922 # If the included ltdl is not to be used, then use the
12923 # preinstalled libltdl we found.
12924
12925 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12926
12927 LIBLTDL=-lltdl
12928 LTDLDEPS=
12929 LTDLINCL=
12930 ;;
12931 ,no*,no,*)
12932 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12933 ;;
12934 *) with_included_ltdl=no
12935 LIBLTDL="-L$with_ltdl_lib -lltdl"
12936 LTDLDEPS=
12937 LTDLINCL="-I$with_ltdl_include"
12938 ;;
12939 esac
12940 INCLTDL="$LTDLINCL"
12941
12942 # Report our decision...
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12944 $as_echo_n "checking where to find libltdl headers... " >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12946 $as_echo "$LTDLINCL" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12948 $as_echo_n "checking where to find libltdl library... " >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12950 $as_echo "$LIBLTDL" >&6; }
12951
12952
12953
12954 # Check whether --enable-ltdl-install was given.
12955 if test "${enable_ltdl_install+set}" = set; then :
12956 enableval=$enable_ltdl_install;
12957 fi
12958
12959
12960 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12961 *yes*) ;;
12962 *) enable_ltdl_convenience=yes ;;
12963 esac
12964
12965 if test x"${enable_ltdl_install-no}" != xno; then
12966 INSTALL_LTDL_TRUE=
12967 INSTALL_LTDL_FALSE='#'
12968 else
12969 INSTALL_LTDL_TRUE='#'
12970 INSTALL_LTDL_FALSE=
12971 fi
12972
12973 if test x"${enable_ltdl_convenience-no}" != xno; then
12974 CONVENIENCE_LTDL_TRUE=
12975 CONVENIENCE_LTDL_FALSE='#'
12976 else
12977 CONVENIENCE_LTDL_TRUE='#'
12978 CONVENIENCE_LTDL_FALSE=
12979 fi
12980
12981
12982
12983
12984
12985
12986 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12987 # the user used. This is so that ltdl.h can pick up the parent projects
12988 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12989 # definitions required by ltdl.c.
12990 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12991
12992
12993
12994 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12995 do :
12996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12998 "
12999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13000 cat >>confdefs.h <<_ACEOF
13001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13002 _ACEOF
13003
13004 fi
13005
13006 done
13007
13008
13009 for ac_func in closedir opendir readdir
13010 do :
13011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13012 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13013 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13014 cat >>confdefs.h <<_ACEOF
13015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13016 _ACEOF
13017
13018 else
13019
13020
13021 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13022
13023 fi
13024 done
13025
13026 for ac_func in strlcat strlcpy
13027 do :
13028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13030 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13031 cat >>confdefs.h <<_ACEOF
13032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033 _ACEOF
13034
13035 else
13036
13037
13038 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13039
13040 fi
13041 done
13042
13043
13044
13045 cat >>confdefs.h <<_ACEOF
13046 #define LT_LIBEXT "$libext"
13047 _ACEOF
13048
13049
13050 name=
13051 eval "lt_libprefix=\"$libname_spec\""
13052
13053 cat >>confdefs.h <<_ACEOF
13054 #define LT_LIBPREFIX "$lt_libprefix"
13055 _ACEOF
13056
13057
13058 name=ltdl
13059 eval "LTDLOPEN=\"$libname_spec\""
13060
13061
13062
13063
13064
13065
13066
13067
13068 # Only expand once:
13069
13070
13071 LIBTOOL="$LIBTOOL --silent"
13072
13073 # Checks for libraries.
13074
13075 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13076 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13077
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13080 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13081 if ${ac_cv_search_getaddrinfo+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 ac_func_search_save_LIBS=$LIBS
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char getaddrinfo ();
13095 int
13096 main ()
13097 {
13098 return getaddrinfo ();
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 for ac_lib in '' nsl; do
13104 if test -z "$ac_lib"; then
13105 ac_res="none required"
13106 else
13107 ac_res=-l$ac_lib
13108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13109 fi
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_search_getaddrinfo=$ac_res
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext
13115 if ${ac_cv_search_getaddrinfo+:} false; then :
13116 break
13117 fi
13118 done
13119 if ${ac_cv_search_getaddrinfo+:} false; then :
13120
13121 else
13122 ac_cv_search_getaddrinfo=no
13123 fi
13124 rm conftest.$ac_ext
13125 LIBS=$ac_func_search_save_LIBS
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13128 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13129 ac_res=$ac_cv_search_getaddrinfo
13130 if test "$ac_res" != no; then :
13131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13132
13133 fi
13134
13135 fi
13136
13137 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13138 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13139
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13142 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13143 if ${ac_cv_search_getnameinfo+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 ac_func_search_save_LIBS=$LIBS
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 char getnameinfo ();
13157 int
13158 main ()
13159 {
13160 return getnameinfo ();
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 for ac_lib in '' nsl; do
13166 if test -z "$ac_lib"; then
13167 ac_res="none required"
13168 else
13169 ac_res=-l$ac_lib
13170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13171 fi
13172 if ac_fn_c_try_link "$LINENO"; then :
13173 ac_cv_search_getnameinfo=$ac_res
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext
13177 if ${ac_cv_search_getnameinfo+:} false; then :
13178 break
13179 fi
13180 done
13181 if ${ac_cv_search_getnameinfo+:} false; then :
13182
13183 else
13184 ac_cv_search_getnameinfo=no
13185 fi
13186 rm conftest.$ac_ext
13187 LIBS=$ac_func_search_save_LIBS
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13190 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13191 ac_res=$ac_cv_search_getnameinfo
13192 if test "$ac_res" != no; then :
13193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13194
13195 fi
13196
13197 fi
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13200 $as_echo_n "checking for library containing socket... " >&6; }
13201 if ${ac_cv_search_socket+:} false; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 ac_func_search_save_LIBS=$LIBS
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char socket ();
13215 int
13216 main ()
13217 {
13218 return socket ();
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 for ac_lib in '' socket; do
13224 if test -z "$ac_lib"; then
13225 ac_res="none required"
13226 else
13227 ac_res=-l$ac_lib
13228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13229 fi
13230 if ac_fn_c_try_link "$LINENO"; then :
13231 ac_cv_search_socket=$ac_res
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext
13235 if ${ac_cv_search_socket+:} false; then :
13236 break
13237 fi
13238 done
13239 if ${ac_cv_search_socket+:} false; then :
13240
13241 else
13242 ac_cv_search_socket=no
13243 fi
13244 rm conftest.$ac_ext
13245 LIBS=$ac_func_search_save_LIBS
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13248 $as_echo "$ac_cv_search_socket" >&6; }
13249 ac_res=$ac_cv_search_socket
13250 if test "$ac_res" != no; then :
13251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13252
13253 else
13254 as_fn_error $? "socket library not found" "$LINENO" 5
13255 fi
13256
13257 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13258 #include <sys/socket.h>
13259 #include <netdb.h>
13260
13261 "
13262 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_STRUCT_SOCKADDR_IN 1
13266 _ACEOF
13267
13268
13269 fi
13270 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13271 #include <sys/socket.h>
13272 #include <netdb.h>
13273
13274 "
13275 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13279 _ACEOF
13280
13281
13282 fi
13283 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13284 #include <sys/socket.h>
13285 #include <netdb.h>
13286
13287 "
13288 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13289
13290 cat >>confdefs.h <<_ACEOF
13291 #define HAVE_STRUCT_ADDRINFO 1
13292 _ACEOF
13293
13294
13295 fi
13296
13297 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13298 <sys/socket.h>
13299 "
13300 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13301
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13304 _ACEOF
13305
13306
13307 fi
13308
13309
13310
13311 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13312 "
13313 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13314
13315 $as_echo "#define IPV6 1" >>confdefs.h
13316
13317 fi
13318
13319
13320
13321 # Checks for typedefs, structures, and compiler characteristics.
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13323 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13324 if ${ac_cv_c_bigendian+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 ac_cv_c_bigendian=unknown
13328 # See if we're dealing with a universal compiler.
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331 #ifndef __APPLE_CC__
13332 not a universal capable compiler
13333 #endif
13334 typedef int dummy;
13335
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338
13339 # Check for potential -arch flags. It is not universal unless
13340 # there are at least two -arch flags with different values.
13341 ac_arch=
13342 ac_prev=
13343 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13344 if test -n "$ac_prev"; then
13345 case $ac_word in
13346 i?86 | x86_64 | ppc | ppc64)
13347 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13348 ac_arch=$ac_word
13349 else
13350 ac_cv_c_bigendian=universal
13351 break
13352 fi
13353 ;;
13354 esac
13355 ac_prev=
13356 elif test "x$ac_word" = "x-arch"; then
13357 ac_prev=arch
13358 fi
13359 done
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 if test $ac_cv_c_bigendian = unknown; then
13363 # See if sys/param.h defines the BYTE_ORDER macro.
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 #include <sys/types.h>
13367 #include <sys/param.h>
13368
13369 int
13370 main ()
13371 {
13372 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13374 && LITTLE_ENDIAN)
13375 bogus endian macros
13376 #endif
13377
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 if ac_fn_c_try_compile "$LINENO"; then :
13383 # It does; now see whether it defined to BIG_ENDIAN or not.
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386 #include <sys/types.h>
13387 #include <sys/param.h>
13388
13389 int
13390 main ()
13391 {
13392 #if BYTE_ORDER != BIG_ENDIAN
13393 not big endian
13394 #endif
13395
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_compile "$LINENO"; then :
13401 ac_cv_c_bigendian=yes
13402 else
13403 ac_cv_c_bigendian=no
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 fi
13409 if test $ac_cv_c_bigendian = unknown; then
13410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13413 #include <limits.h>
13414
13415 int
13416 main ()
13417 {
13418 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13419 bogus endian macros
13420 #endif
13421
13422 ;
13423 return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427 # It does; now see whether it defined to _BIG_ENDIAN or not.
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 #include <limits.h>
13431
13432 int
13433 main ()
13434 {
13435 #ifndef _BIG_ENDIAN
13436 not big endian
13437 #endif
13438
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_compile "$LINENO"; then :
13444 ac_cv_c_bigendian=yes
13445 else
13446 ac_cv_c_bigendian=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 fi
13452 if test $ac_cv_c_bigendian = unknown; then
13453 # Compile a test program.
13454 if test "$cross_compiling" = yes; then :
13455 # Try to guess by grepping values from an object file.
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 short int ascii_mm[] =
13459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13460 short int ascii_ii[] =
13461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13462 int use_ascii (int i) {
13463 return ascii_mm[i] + ascii_ii[i];
13464 }
13465 short int ebcdic_ii[] =
13466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13467 short int ebcdic_mm[] =
13468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13469 int use_ebcdic (int i) {
13470 return ebcdic_mm[i] + ebcdic_ii[i];
13471 }
13472 extern int foo;
13473
13474 int
13475 main ()
13476 {
13477 return use_ascii (foo) == use_ebcdic (foo);
13478 ;
13479 return 0;
13480 }
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13484 ac_cv_c_bigendian=yes
13485 fi
13486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13487 if test "$ac_cv_c_bigendian" = unknown; then
13488 ac_cv_c_bigendian=no
13489 else
13490 # finding both strings is unlikely to happen, but who knows?
13491 ac_cv_c_bigendian=unknown
13492 fi
13493 fi
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 else
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 $ac_includes_default
13500 int
13501 main ()
13502 {
13503
13504 /* Are we little or big endian? From Harbison&Steele. */
13505 union
13506 {
13507 long int l;
13508 char c[sizeof (long int)];
13509 } u;
13510 u.l = 1;
13511 return u.c[sizeof (long int) - 1] == 1;
13512
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_run "$LINENO"; then :
13518 ac_cv_c_bigendian=no
13519 else
13520 ac_cv_c_bigendian=yes
13521 fi
13522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13523 conftest.$ac_objext conftest.beam conftest.$ac_ext
13524 fi
13525
13526 fi
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13529 $as_echo "$ac_cv_c_bigendian" >&6; }
13530 case $ac_cv_c_bigendian in #(
13531 yes)
13532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13533 ;; #(
13534 no)
13535 ;; #(
13536 universal)
13537
13538 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13539
13540 ;; #(
13541 *)
13542 as_fn_error $? "unknown endianness
13543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13544 esac
13545
13546
13547 # Checks for library functions.
13548
13549
13550
13551 for ac_func in $ac_func_list
13552 do :
13553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13558 _ACEOF
13559
13560 fi
13561 done
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573 # Checks for header files.
13574
13575
13576
13577 for ac_header in $ac_header_list
13578 do :
13579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13581 "
13582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13583 cat >>confdefs.h <<_ACEOF
13584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13585 _ACEOF
13586
13587 fi
13588
13589 done
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13608 $as_echo_n "checking for library containing crypt... " >&6; }
13609 if ${ac_cv_search_crypt+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_func_search_save_LIBS=$LIBS
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char crypt ();
13623 int
13624 main ()
13625 {
13626 return crypt ();
13627 ;
13628 return 0;
13629 }
13630 _ACEOF
13631 for ac_lib in '' crypt; do
13632 if test -z "$ac_lib"; then
13633 ac_res="none required"
13634 else
13635 ac_res=-l$ac_lib
13636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13637 fi
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_search_crypt=$ac_res
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext
13643 if ${ac_cv_search_crypt+:} false; then :
13644 break
13645 fi
13646 done
13647 if ${ac_cv_search_crypt+:} false; then :
13648
13649 else
13650 ac_cv_search_crypt=no
13651 fi
13652 rm conftest.$ac_ext
13653 LIBS=$ac_func_search_save_LIBS
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13656 $as_echo "$ac_cv_search_crypt" >&6; }
13657 ac_res=$ac_cv_search_crypt
13658 if test "$ac_res" != no; then :
13659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13660
13661 fi
13662
13663
13664 # Check whether --enable-libGeoIP was given.
13665 if test "${enable_libGeoIP+set}" = set; then :
13666 enableval=$enable_libGeoIP;
13667 else
13668 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13669 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13671 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13672 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 ac_func_search_save_LIBS=$LIBS
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char GeoIP_id_by_ipnum_v6_gl ();
13686 int
13687 main ()
13688 {
13689 return GeoIP_id_by_ipnum_v6_gl ();
13690 ;
13691 return 0;
13692 }
13693 _ACEOF
13694 for ac_lib in '' GeoIP; do
13695 if test -z "$ac_lib"; then
13696 ac_res="none required"
13697 else
13698 ac_res=-l$ac_lib
13699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13700 fi
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext
13706 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13707 break
13708 fi
13709 done
13710 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13711
13712 else
13713 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13714 fi
13715 rm conftest.$ac_ext
13716 LIBS=$ac_func_search_save_LIBS
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13719 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13720 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13721 if test "$ac_res" != no; then :
13722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13723
13724 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13725
13726 fi
13727
13728 fi
13729
13730
13731 fi
13732
13733
13734 # Check whether --enable-openssl was given.
13735 if test "${enable_openssl+set}" = set; then :
13736 enableval=$enable_openssl; cf_enable_openssl=$enableval
13737 else
13738 cf_enable_openssl="auto"
13739 fi
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13742 $as_echo_n "checking for OpenSSL... " >&6; }
13743 if test "$cf_enable_openssl" != "no"; then
13744 cf_openssl_basedir=""
13745 if test "$cf_enable_openssl" != "auto" &&
13746 test "$cf_enable_openssl" != "yes"; then
13747 cf_openssl_basedir="${cf_enable_openssl}"
13748 else
13749 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13750 /opt /opt/openssl /usr/local/openssl; do
13751 if test -f "${dirs}/include/openssl/opensslv.h"; then
13752 cf_openssl_basedir="${dirs}"
13753 break
13754 fi
13755 done
13756 unset dirs
13757 fi
13758
13759 if test ! -z "$cf_openssl_basedir"; then
13760 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13761 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13762 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13763 else
13764 cf_openssl_basedir=""
13765 fi
13766 else
13767 if test -f "/usr/include/openssl/opensslv.h"; then
13768 cf_openssl_basedir="/usr"
13769 fi
13770 fi
13771
13772 if test ! -z "$cf_openssl_basedir"; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13774 $as_echo "$cf_openssl_basedir" >&6; }
13775 cf_enable_openssl="yes"
13776 else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13778 $as_echo "not found. Please check your path." >&6; }
13779 cf_enable_openssl="no"
13780 fi
13781 unset cf_openssl_basedir
13782 else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13784 $as_echo "disabled" >&6; }
13785 fi
13786
13787 if test "$cf_enable_openssl" != "no"; then :
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5
13789 $as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; }
13790 if test "$cross_compiling" = yes; then :
13791 cf_openssl_version_ok=no
13792 else
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13795
13796
13797 #include <openssl/opensslv.h>
13798 #include <stdlib.h>
13799 int
13800 main ()
13801 {
13802 exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f));
13803 ;
13804 return 0;
13805 }
13806 _ACEOF
13807 if ac_fn_c_try_run "$LINENO"; then :
13808 cf_openssl_version_ok=yes
13809 else
13810 cf_openssl_version_ok=no
13811 fi
13812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13813 conftest.$ac_objext conftest.beam conftest.$ac_ext
13814 fi
13815
13816
13817 if test "$cf_openssl_version_ok" = "yes"; then :
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13819 $as_echo "found" >&6; }
13820
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13822 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13823 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 ac_check_lib_save_LIBS=$LIBS
13827 LIBS="-lcrypto $LIBS"
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830
13831 /* Override any GCC internal prototype to avoid an error.
13832 Use char because int might match the return type of a GCC
13833 builtin and then its argument prototype would still apply. */
13834 #ifdef __cplusplus
13835 extern "C"
13836 #endif
13837 char RSA_free ();
13838 int
13839 main ()
13840 {
13841 return RSA_free ();
13842 ;
13843 return 0;
13844 }
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_lib_crypto_RSA_free=yes
13848 else
13849 ac_cv_lib_crypto_RSA_free=no
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13856 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13857 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_LIBCRYPTO 1
13860 _ACEOF
13861
13862 LIBS="-lcrypto $LIBS"
13863
13864 fi
13865
13866 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13868 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13869 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 ac_check_lib_save_LIBS=$LIBS
13873 LIBS="-lssl $LIBS"
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13880 #ifdef __cplusplus
13881 extern "C"
13882 #endif
13883 char SSL_connect ();
13884 int
13885 main ()
13886 {
13887 return SSL_connect ();
13888 ;
13889 return 0;
13890 }
13891 _ACEOF
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_lib_ssl_SSL_connect=yes
13894 else
13895 ac_cv_lib_ssl_SSL_connect=no
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LIBS=$ac_check_lib_save_LIBS
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13902 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13903 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_LIBSSL 1
13906 _ACEOF
13907
13908 LIBS="-lssl $LIBS"
13909
13910 fi
13911
13912 fi
13913
13914 else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13916 $as_echo "no - OpenSSL support disabled" >&6; }
13917 cf_enable_openssl="no"
13918 fi
13919 fi
13920
13921 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13922 ENABLE_SSL_TRUE=
13923 ENABLE_SSL_FALSE='#'
13924 else
13925 ENABLE_SSL_TRUE='#'
13926 ENABLE_SSL_FALSE=
13927 fi
13928
13929
13930
13931 # Check whether --enable-assert was given.
13932 if test "${enable_assert+set}" = set; then :
13933 enableval=$enable_assert; assert=$enableval
13934 else
13935 assert=no
13936 fi
13937
13938
13939 if test "$assert" = "no"; then :
13940
13941 $as_echo "#define NDEBUG 1" >>confdefs.h
13942
13943 fi
13944
13945
13946 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
13947
13948
13949 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
13950
13951
13952 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
13953
13954
13955 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
13956
13957
13958 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
13959
13960
13961 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
13962
13963
13964 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
13965
13966
13967 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13968
13969
13970 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
13971
13972
13973 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
13974
13975
13976 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
13977
13978
13979 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
13980
13981
13982 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
13983
13984
13985 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
13986
13987
13988 # Argument processing.
13989
13990 desired_iopoll_mechanism="none"
13991 # Check whether --enable-kqueue was given.
13992 if test "${enable_kqueue+set}" = set; then :
13993 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13994 fi
13995
13996 # Check whether --enable-epoll was given.
13997 if test "${enable_epoll+set}" = set; then :
13998 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13999 fi
14000
14001 # Check whether --enable-devpoll was given.
14002 if test "${enable_devpoll+set}" = set; then :
14003 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14004 fi
14005
14006 # Check whether --enable-poll was given.
14007 if test "${enable_poll+set}" = set; then :
14008 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14009 fi
14010
14011 # Check whether --enable-select was given.
14012 if test "${enable_select+set}" = set; then :
14013 enableval=$enable_select; desired_iopoll_mechanism="select"
14014 fi
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14017 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14018 iopoll_mechanism_none=0
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14022 _ACEOF
14023
14024 iopoll_mechanism_kqueue=1
14025
14026 cat >>confdefs.h <<_ACEOF
14027 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14028 _ACEOF
14029
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14034 #define kevent innocuous_kevent
14035
14036 /* System header to define __stub macros and hopefully few prototypes,
14037 which can conflict with char kevent (); below.
14038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14039 <limits.h> exists even on freestanding compilers. */
14040
14041 #ifdef __STDC__
14042 # include <limits.h>
14043 #else
14044 # include <assert.h>
14045 #endif
14046
14047 #undef kevent
14048
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 char kevent ();
14056 /* The GNU C library defines this for functions which it implements
14057 to always fail with ENOSYS. Some functions are actually named
14058 something starting with __ and the normal name is an alias. */
14059 #if defined __stub_kevent || defined __stub___kevent
14060 choke me
14061 #endif
14062
14063 int
14064 main ()
14065 {
14066 return kevent ();
14067 ;
14068 return 0;
14069 }
14070 _ACEOF
14071 if ac_fn_c_try_link "$LINENO"; then :
14072 is_kqueue_mechanism_available="yes"
14073 else
14074 is_kqueue_mechanism_available="no"
14075 fi
14076 rm -f core conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
14078 iopoll_mechanism_epoll=2
14079
14080 cat >>confdefs.h <<_ACEOF
14081 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14082 _ACEOF
14083
14084 if test "$cross_compiling" = yes; then :
14085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14087 as_fn_error $? "cannot run test program while cross compiling
14088 See \`config.log' for more details" "$LINENO" 5; }
14089 else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092
14093 #include <sys/epoll.h>
14094 #include <sys/syscall.h>
14095 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14096 #if !defined(__NR_epoll_create)
14097 #if defined(__ia64__)
14098 #define __NR_epoll_create 1243
14099 #elif defined(__x86_64__)
14100 #define __NR_epoll_create 214
14101 #elif defined(__sparc64__) || defined(__sparc__)
14102 #define __NR_epoll_create 193
14103 #elif defined(__s390__) || defined(__m68k__)
14104 #define __NR_epoll_create 249
14105 #elif defined(__ppc64__) || defined(__ppc__)
14106 #define __NR_epoll_create 236
14107 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14108 #define __NR_epoll_create 224
14109 #elif defined(__alpha__)
14110 #define __NR_epoll_create 407
14111 #elif defined(__sh64__)
14112 #define __NR_epoll_create 282
14113 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14114 #define __NR_epoll_create 254
14115 #else
14116 #error No system call numbers defined for epoll family.
14117 #endif
14118 #endif
14119 _syscall1(int, epoll_create, int, size)
14120 #endif
14121
14122 int
14123 main ()
14124 {
14125 return epoll_create(256) == -1 ? 1 : 0
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_run "$LINENO"; then :
14131 is_epoll_mechanism_available="yes"
14132 else
14133 is_epoll_mechanism_available="no"
14134 fi
14135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14136 conftest.$ac_objext conftest.beam conftest.$ac_ext
14137 fi
14138
14139 iopoll_mechanism_devpoll=3
14140
14141 cat >>confdefs.h <<_ACEOF
14142 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14143 _ACEOF
14144
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 #include <devpoll.h>
14148 int
14149 main ()
14150 {
14151
14152 ;
14153 return 0;
14154 }
14155 _ACEOF
14156 if ac_fn_c_try_compile "$LINENO"; then :
14157 is_devpoll_mechanism_available="yes"
14158 else
14159 is_devpoll_mechanism_available="no"
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 if test "$is_devpoll_mechanism_available" = "yes" ; then
14163
14164 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14165
14166 fi
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #include <sys/devpoll.h>
14170 int
14171 main ()
14172 {
14173
14174 ;
14175 return 0;
14176 }
14177 _ACEOF
14178 if ac_fn_c_try_compile "$LINENO"; then :
14179 is_devpoll_mechanism_available="yes"
14180 else
14181 is_devpoll_mechanism_available="no"
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 if test "$is_devpoll_mechanism_available" = "yes" ; then
14185
14186 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14187
14188 fi
14189 iopoll_mechanism_poll=4
14190
14191 cat >>confdefs.h <<_ACEOF
14192 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14193 _ACEOF
14194
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14199 #define poll innocuous_poll
14200
14201 /* System header to define __stub macros and hopefully few prototypes,
14202 which can conflict with char poll (); below.
14203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14204 <limits.h> exists even on freestanding compilers. */
14205
14206 #ifdef __STDC__
14207 # include <limits.h>
14208 #else
14209 # include <assert.h>
14210 #endif
14211
14212 #undef poll
14213
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char poll ();
14221 /* The GNU C library defines this for functions which it implements
14222 to always fail with ENOSYS. Some functions are actually named
14223 something starting with __ and the normal name is an alias. */
14224 #if defined __stub_poll || defined __stub___poll
14225 choke me
14226 #endif
14227
14228 int
14229 main ()
14230 {
14231 return poll ();
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"; then :
14237 is_poll_mechanism_available="yes"
14238 else
14239 is_poll_mechanism_available="no"
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14243 iopoll_mechanism_select=5
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14247 _ACEOF
14248
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 /* Define select to an innocuous variant, in case <limits.h> declares select.
14252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14253 #define select innocuous_select
14254
14255 /* System header to define __stub macros and hopefully few prototypes,
14256 which can conflict with char select (); below.
14257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14258 <limits.h> exists even on freestanding compilers. */
14259
14260 #ifdef __STDC__
14261 # include <limits.h>
14262 #else
14263 # include <assert.h>
14264 #endif
14265
14266 #undef select
14267
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char select ();
14275 /* The GNU C library defines this for functions which it implements
14276 to always fail with ENOSYS. Some functions are actually named
14277 something starting with __ and the normal name is an alias. */
14278 #if defined __stub_select || defined __stub___select
14279 choke me
14280 #endif
14281
14282 int
14283 main ()
14284 {
14285 return select ();
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 is_select_mechanism_available="yes"
14292 else
14293 is_select_mechanism_available="no"
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 optimal_iopoll_mechanism="none"
14298 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14299 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14300 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14301 optimal_iopoll_mechanism="$mechanism"
14302 break
14303 fi
14304 done
14305 if test "$desired_iopoll_mechanism" = "none" ; then
14306 if test "$optimal_iopoll_mechanism" = "none" ; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14308 $as_echo "none" >&6; }
14309 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14310 else
14311 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14313 $as_echo "$selected_iopoll_mechanism" >&6; }
14314 fi
14315 else
14316 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14317 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14318 selected_iopoll_mechanism=$desired_iopoll_mechanism
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14320 $as_echo "$selected_iopoll_mechanism" >&6; }
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14323 $as_echo "none" >&6; }
14324 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14325 fi
14326 fi
14327 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14328
14329 cat >>confdefs.h <<_ACEOF
14330 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14331 _ACEOF
14332
14333
14334
14335 # Check whether --enable-halfops was given.
14336 if test "${enable_halfops+set}" = set; then :
14337 enableval=$enable_halfops; halfops="$enableval"
14338 else
14339 halfops="no"
14340 fi
14341
14342 if test "$halfops" = "yes" ; then
14343
14344 $as_echo "#define HALFOPS 1" >>confdefs.h
14345
14346 fi
14347
14348
14349 # Check whether --enable-debugging was given.
14350 if test "${enable_debugging+set}" = set; then :
14351 enableval=$enable_debugging; debugging="$enableval"
14352 else
14353 debugging="no"
14354 fi
14355
14356 if test "$debugging" = "yes" ; then
14357 CFLAGS="-Wall -g -O0"
14358 fi
14359
14360
14361 # Check whether --enable-warnings was given.
14362 if test "${enable_warnings+set}" = set; then :
14363 enableval=$enable_warnings; warnings="$enableval"
14364 else
14365 warnings="no"
14366 fi
14367
14368 if test "$warnings" = "yes" ; then
14369 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14370 fi
14371
14372
14373
14374 prefix_NONE=
14375 exec_prefix_NONE=
14376 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14377 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14378 eval ac_define_dir="\"$prefix\""
14379 eval ac_define_dir="\"$ac_define_dir\""
14380 PREFIX="$ac_define_dir"
14381
14382
14383 cat >>confdefs.h <<_ACEOF
14384 #define PREFIX "$ac_define_dir"
14385 _ACEOF
14386
14387 test "$prefix_NONE" && prefix=NONE
14388 test "$exec_prefix_NONE" && exec_prefix=NONE
14389
14390
14391 prefix_NONE=
14392 exec_prefix_NONE=
14393 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14394 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14395 eval ac_define_dir="\"$sysconfdir\""
14396 eval ac_define_dir="\"$ac_define_dir\""
14397 SYSCONFDIR="$ac_define_dir"
14398
14399
14400 cat >>confdefs.h <<_ACEOF
14401 #define SYSCONFDIR "$ac_define_dir"
14402 _ACEOF
14403
14404 test "$prefix_NONE" && prefix=NONE
14405 test "$exec_prefix_NONE" && exec_prefix=NONE
14406
14407
14408 prefix_NONE=
14409 exec_prefix_NONE=
14410 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14411 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14412 eval ac_define_dir="\"$libdir\""
14413 eval ac_define_dir="\"$ac_define_dir\""
14414 LIBDIR="$ac_define_dir"
14415
14416
14417 cat >>confdefs.h <<_ACEOF
14418 #define LIBDIR "$ac_define_dir"
14419 _ACEOF
14420
14421 test "$prefix_NONE" && prefix=NONE
14422 test "$exec_prefix_NONE" && exec_prefix=NONE
14423
14424
14425 prefix_NONE=
14426 exec_prefix_NONE=
14427 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14428 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14429 eval ac_define_dir="\"$datadir\""
14430 eval ac_define_dir="\"$ac_define_dir\""
14431 DATADIR="$ac_define_dir"
14432
14433
14434 cat >>confdefs.h <<_ACEOF
14435 #define DATADIR "$ac_define_dir"
14436 _ACEOF
14437
14438 test "$prefix_NONE" && prefix=NONE
14439 test "$exec_prefix_NONE" && exec_prefix=NONE
14440
14441
14442 prefix_NONE=
14443 exec_prefix_NONE=
14444 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14445 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14446 eval ac_define_dir="\"$localstatedir\""
14447 eval ac_define_dir="\"$ac_define_dir\""
14448 LOCALSTATEDIR="$ac_define_dir"
14449
14450
14451 cat >>confdefs.h <<_ACEOF
14452 #define LOCALSTATEDIR "$ac_define_dir"
14453 _ACEOF
14454
14455 test "$prefix_NONE" && prefix=NONE
14456 test "$exec_prefix_NONE" && exec_prefix=NONE
14457
14458
14459 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
14460
14461
14462 cat >confcache <<\_ACEOF
14463 # This file is a shell script that caches the results of configure
14464 # tests run on this system so they can be shared between configure
14465 # scripts and configure runs, see configure's option --config-cache.
14466 # It is not useful on other systems. If it contains results you don't
14467 # want to keep, you may remove or edit it.
14468 #
14469 # config.status only pays attention to the cache file if you give it
14470 # the --recheck option to rerun configure.
14471 #
14472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14474 # following values.
14475
14476 _ACEOF
14477
14478 # The following way of writing the cache mishandles newlines in values,
14479 # but we know of no workaround that is simple, portable, and efficient.
14480 # So, we kill variables containing newlines.
14481 # Ultrix sh set writes to stderr and can't be redirected directly,
14482 # and sets the high bit in the cache file unless we assign to the vars.
14483 (
14484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14485 eval ac_val=\$$ac_var
14486 case $ac_val in #(
14487 *${as_nl}*)
14488 case $ac_var in #(
14489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14491 esac
14492 case $ac_var in #(
14493 _ | IFS | as_nl) ;; #(
14494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14495 *) { eval $ac_var=; unset $ac_var;} ;;
14496 esac ;;
14497 esac
14498 done
14499
14500 (set) 2>&1 |
14501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14502 *${as_nl}ac_space=\ *)
14503 # `set' does not quote correctly, so add quotes: double-quote
14504 # substitution turns \\\\ into \\, and sed turns \\ into \.
14505 sed -n \
14506 "s/'/'\\\\''/g;
14507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14508 ;; #(
14509 *)
14510 # `set' quotes correctly as required by POSIX, so do not add quotes.
14511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14512 ;;
14513 esac |
14514 sort
14515 ) |
14516 sed '
14517 /^ac_cv_env_/b end
14518 t clear
14519 :clear
14520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14521 t end
14522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14523 :end' >>confcache
14524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14525 if test -w "$cache_file"; then
14526 if test "x$cache_file" != "x/dev/null"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14528 $as_echo "$as_me: updating cache $cache_file" >&6;}
14529 if test ! -f "$cache_file" || test -h "$cache_file"; then
14530 cat confcache >"$cache_file"
14531 else
14532 case $cache_file in #(
14533 */* | ?:*)
14534 mv -f confcache "$cache_file"$$ &&
14535 mv -f "$cache_file"$$ "$cache_file" ;; #(
14536 *)
14537 mv -f confcache "$cache_file" ;;
14538 esac
14539 fi
14540 fi
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14544 fi
14545 fi
14546 rm -f confcache
14547
14548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14549 # Let make expand exec_prefix.
14550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14551
14552 DEFS=-DHAVE_CONFIG_H
14553
14554 ac_libobjs=
14555 ac_ltlibobjs=
14556 U=
14557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14558 # 1. Remove the extension, and $U if already installed.
14559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14562 # will be set to the directory where LIBOBJS objects are built.
14563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14565 done
14566 LIBOBJS=$ac_libobjs
14567
14568 LTLIBOBJS=$ac_ltlibobjs
14569
14570
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14572 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14573 if test -n "$am_sleep_pid"; then
14574 # Hide warnings about reused PIDs.
14575 wait $am_sleep_pid 2>/dev/null
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14578 $as_echo "done" >&6; }
14579 if test -n "$EXEEXT"; then
14580 am__EXEEXT_TRUE=
14581 am__EXEEXT_FALSE='#'
14582 else
14583 am__EXEEXT_TRUE='#'
14584 am__EXEEXT_FALSE=
14585 fi
14586
14587 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14588 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14590 fi
14591 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14592 as_fn_error $? "conditional \"AMDEP\" was never defined.
14593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14594 fi
14595 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14596 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14598 fi
14599 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14600 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14602 fi
14603 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14604 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606 fi
14607 LT_CONFIG_H=config.h
14608
14609 _ltdl_libobjs=
14610 _ltdl_ltlibobjs=
14611 if test -n "$_LT_LIBOBJS"; then
14612 # Remove the extension.
14613 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14614 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14615 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14616 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14617 done
14618 fi
14619 ltdl_LIBOBJS=$_ltdl_libobjs
14620
14621 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14622
14623
14624
14625 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14626 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14628 fi
14629
14630 : "${CONFIG_STATUS=./config.status}"
14631 ac_write_fail=0
14632 ac_clean_files_save=$ac_clean_files
14633 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14635 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14636 as_write_fail=0
14637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14638 #! $SHELL
14639 # Generated by $as_me.
14640 # Run this file to recreate the current configuration.
14641 # Compiler output produced by configure, useful for debugging
14642 # configure, is in config.log if it exists.
14643
14644 debug=false
14645 ac_cs_recheck=false
14646 ac_cs_silent=false
14647
14648 SHELL=\${CONFIG_SHELL-$SHELL}
14649 export SHELL
14650 _ASEOF
14651 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14652 ## -------------------- ##
14653 ## M4sh Initialization. ##
14654 ## -------------------- ##
14655
14656 # Be more Bourne compatible
14657 DUALCASE=1; export DUALCASE # for MKS sh
14658 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14659 emulate sh
14660 NULLCMD=:
14661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14662 # is contrary to our usage. Disable this feature.
14663 alias -g '${1+"$@"}'='"$@"'
14664 setopt NO_GLOB_SUBST
14665 else
14666 case `(set -o) 2>/dev/null` in #(
14667 *posix*) :
14668 set -o posix ;; #(
14669 *) :
14670 ;;
14671 esac
14672 fi
14673
14674
14675 as_nl='
14676 '
14677 export as_nl
14678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14679 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14682 # Prefer a ksh shell builtin over an external printf program on Solaris,
14683 # but without wasting forks for bash or zsh.
14684 if test -z "$BASH_VERSION$ZSH_VERSION" \
14685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14686 as_echo='print -r --'
14687 as_echo_n='print -rn --'
14688 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14689 as_echo='printf %s\n'
14690 as_echo_n='printf %s'
14691 else
14692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14693 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14694 as_echo_n='/usr/ucb/echo -n'
14695 else
14696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14697 as_echo_n_body='eval
14698 arg=$1;
14699 case $arg in #(
14700 *"$as_nl"*)
14701 expr "X$arg" : "X\\(.*\\)$as_nl";
14702 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14703 esac;
14704 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14705 '
14706 export as_echo_n_body
14707 as_echo_n='sh -c $as_echo_n_body as_echo'
14708 fi
14709 export as_echo_body
14710 as_echo='sh -c $as_echo_body as_echo'
14711 fi
14712
14713 # The user is always right.
14714 if test "${PATH_SEPARATOR+set}" != set; then
14715 PATH_SEPARATOR=:
14716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14718 PATH_SEPARATOR=';'
14719 }
14720 fi
14721
14722
14723 # IFS
14724 # We need space, tab and new line, in precisely that order. Quoting is
14725 # there to prevent editors from complaining about space-tab.
14726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14727 # splitting by setting IFS to empty value.)
14728 IFS=" "" $as_nl"
14729
14730 # Find who we are. Look in the path if we contain no directory separator.
14731 as_myself=
14732 case $0 in #((
14733 *[\\/]* ) as_myself=$0 ;;
14734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
14739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14740 done
14741 IFS=$as_save_IFS
14742
14743 ;;
14744 esac
14745 # We did not find ourselves, most probably we were run as `sh COMMAND'
14746 # in which case we are not to be found in the path.
14747 if test "x$as_myself" = x; then
14748 as_myself=$0
14749 fi
14750 if test ! -f "$as_myself"; then
14751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14752 exit 1
14753 fi
14754
14755 # Unset variables that we do not need and which cause bugs (e.g. in
14756 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14757 # suppresses any "Segmentation fault" message there. '((' could
14758 # trigger a bug in pdksh 5.2.14.
14759 for as_var in BASH_ENV ENV MAIL MAILPATH
14760 do eval test x\${$as_var+set} = xset \
14761 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14762 done
14763 PS1='$ '
14764 PS2='> '
14765 PS4='+ '
14766
14767 # NLS nuisances.
14768 LC_ALL=C
14769 export LC_ALL
14770 LANGUAGE=C
14771 export LANGUAGE
14772
14773 # CDPATH.
14774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14775
14776
14777 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14778 # ----------------------------------------
14779 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14780 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14781 # script with STATUS, using 1 if that was 0.
14782 as_fn_error ()
14783 {
14784 as_status=$1; test $as_status -eq 0 && as_status=1
14785 if test "$4"; then
14786 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14787 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14788 fi
14789 $as_echo "$as_me: error: $2" >&2
14790 as_fn_exit $as_status
14791 } # as_fn_error
14792
14793
14794 # as_fn_set_status STATUS
14795 # -----------------------
14796 # Set $? to STATUS, without forking.
14797 as_fn_set_status ()
14798 {
14799 return $1
14800 } # as_fn_set_status
14801
14802 # as_fn_exit STATUS
14803 # -----------------
14804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14805 as_fn_exit ()
14806 {
14807 set +e
14808 as_fn_set_status $1
14809 exit $1
14810 } # as_fn_exit
14811
14812 # as_fn_unset VAR
14813 # ---------------
14814 # Portably unset VAR.
14815 as_fn_unset ()
14816 {
14817 { eval $1=; unset $1;}
14818 }
14819 as_unset=as_fn_unset
14820 # as_fn_append VAR VALUE
14821 # ----------------------
14822 # Append the text in VALUE to the end of the definition contained in VAR. Take
14823 # advantage of any shell optimizations that allow amortized linear growth over
14824 # repeated appends, instead of the typical quadratic growth present in naive
14825 # implementations.
14826 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14827 eval 'as_fn_append ()
14828 {
14829 eval $1+=\$2
14830 }'
14831 else
14832 as_fn_append ()
14833 {
14834 eval $1=\$$1\$2
14835 }
14836 fi # as_fn_append
14837
14838 # as_fn_arith ARG...
14839 # ------------------
14840 # Perform arithmetic evaluation on the ARGs, and store the result in the
14841 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14842 # must be portable across $(()) and expr.
14843 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14844 eval 'as_fn_arith ()
14845 {
14846 as_val=$(( $* ))
14847 }'
14848 else
14849 as_fn_arith ()
14850 {
14851 as_val=`expr "$@" || test $? -eq 1`
14852 }
14853 fi # as_fn_arith
14854
14855
14856 if expr a : '\(a\)' >/dev/null 2>&1 &&
14857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14858 as_expr=expr
14859 else
14860 as_expr=false
14861 fi
14862
14863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14864 as_basename=basename
14865 else
14866 as_basename=false
14867 fi
14868
14869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14870 as_dirname=dirname
14871 else
14872 as_dirname=false
14873 fi
14874
14875 as_me=`$as_basename -- "$0" ||
14876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14877 X"$0" : 'X\(//\)$' \| \
14878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14879 $as_echo X/"$0" |
14880 sed '/^.*\/\([^/][^/]*\)\/*$/{
14881 s//\1/
14882 q
14883 }
14884 /^X\/\(\/\/\)$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\/\(\/\).*/{
14889 s//\1/
14890 q
14891 }
14892 s/.*/./; q'`
14893
14894 # Avoid depending upon Character Ranges.
14895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14898 as_cr_digits='0123456789'
14899 as_cr_alnum=$as_cr_Letters$as_cr_digits
14900
14901 ECHO_C= ECHO_N= ECHO_T=
14902 case `echo -n x` in #(((((
14903 -n*)
14904 case `echo 'xy\c'` in
14905 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14906 xy) ECHO_C='\c';;
14907 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14908 ECHO_T=' ';;
14909 esac;;
14910 *)
14911 ECHO_N='-n';;
14912 esac
14913
14914 rm -f conf$$ conf$$.exe conf$$.file
14915 if test -d conf$$.dir; then
14916 rm -f conf$$.dir/conf$$.file
14917 else
14918 rm -f conf$$.dir
14919 mkdir conf$$.dir 2>/dev/null
14920 fi
14921 if (echo >conf$$.file) 2>/dev/null; then
14922 if ln -s conf$$.file conf$$ 2>/dev/null; then
14923 as_ln_s='ln -s'
14924 # ... but there are two gotchas:
14925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14927 # In both cases, we have to default to `cp -pR'.
14928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14929 as_ln_s='cp -pR'
14930 elif ln conf$$.file conf$$ 2>/dev/null; then
14931 as_ln_s=ln
14932 else
14933 as_ln_s='cp -pR'
14934 fi
14935 else
14936 as_ln_s='cp -pR'
14937 fi
14938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14939 rmdir conf$$.dir 2>/dev/null
14940
14941
14942 # as_fn_mkdir_p
14943 # -------------
14944 # Create "$as_dir" as a directory, including parents if necessary.
14945 as_fn_mkdir_p ()
14946 {
14947
14948 case $as_dir in #(
14949 -*) as_dir=./$as_dir;;
14950 esac
14951 test -d "$as_dir" || eval $as_mkdir_p || {
14952 as_dirs=
14953 while :; do
14954 case $as_dir in #(
14955 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14956 *) as_qdir=$as_dir;;
14957 esac
14958 as_dirs="'$as_qdir' $as_dirs"
14959 as_dir=`$as_dirname -- "$as_dir" ||
14960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14961 X"$as_dir" : 'X\(//\)[^/]' \| \
14962 X"$as_dir" : 'X\(//\)$' \| \
14963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14964 $as_echo X"$as_dir" |
14965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14966 s//\1/
14967 q
14968 }
14969 /^X\(\/\/\)[^/].*/{
14970 s//\1/
14971 q
14972 }
14973 /^X\(\/\/\)$/{
14974 s//\1/
14975 q
14976 }
14977 /^X\(\/\).*/{
14978 s//\1/
14979 q
14980 }
14981 s/.*/./; q'`
14982 test -d "$as_dir" && break
14983 done
14984 test -z "$as_dirs" || eval "mkdir $as_dirs"
14985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14986
14987
14988 } # as_fn_mkdir_p
14989 if mkdir -p . 2>/dev/null; then
14990 as_mkdir_p='mkdir -p "$as_dir"'
14991 else
14992 test -d ./-p && rmdir ./-p
14993 as_mkdir_p=false
14994 fi
14995
14996
14997 # as_fn_executable_p FILE
14998 # -----------------------
14999 # Test if FILE is an executable regular file.
15000 as_fn_executable_p ()
15001 {
15002 test -f "$1" && test -x "$1"
15003 } # as_fn_executable_p
15004 as_test_x='test -x'
15005 as_executable_p=as_fn_executable_p
15006
15007 # Sed expression to map a string onto a valid CPP name.
15008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15009
15010 # Sed expression to map a string onto a valid variable name.
15011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15012
15013
15014 exec 6>&1
15015 ## ----------------------------------- ##
15016 ## Main body of $CONFIG_STATUS script. ##
15017 ## ----------------------------------- ##
15018 _ASEOF
15019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15020
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 # Save the log message, to keep $0 and so on meaningful, and to
15023 # report actual input values of CONFIG_FILES etc. instead of their
15024 # values after options handling.
15025 ac_log="
15026 This file was extended by ircd-hybrid $as_me TRUNK, which was
15027 generated by GNU Autoconf 2.69. Invocation command line was
15028
15029 CONFIG_FILES = $CONFIG_FILES
15030 CONFIG_HEADERS = $CONFIG_HEADERS
15031 CONFIG_LINKS = $CONFIG_LINKS
15032 CONFIG_COMMANDS = $CONFIG_COMMANDS
15033 $ $0 $@
15034
15035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15036 "
15037
15038 _ACEOF
15039
15040 case $ac_config_files in *"
15041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15042 esac
15043
15044 case $ac_config_headers in *"
15045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15046 esac
15047
15048
15049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15050 # Files that config.status was made for.
15051 config_files="$ac_config_files"
15052 config_headers="$ac_config_headers"
15053 config_commands="$ac_config_commands"
15054
15055 _ACEOF
15056
15057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15058 ac_cs_usage="\
15059 \`$as_me' instantiates files and other configuration actions
15060 from templates according to the current configuration. Unless the files
15061 and actions are specified as TAGs, all are instantiated by default.
15062
15063 Usage: $0 [OPTION]... [TAG]...
15064
15065 -h, --help print this help, then exit
15066 -V, --version print version number and configuration settings, then exit
15067 --config print configuration, then exit
15068 -q, --quiet, --silent
15069 do not print progress messages
15070 -d, --debug don't remove temporary files
15071 --recheck update $as_me by reconfiguring in the same conditions
15072 --file=FILE[:TEMPLATE]
15073 instantiate the configuration file FILE
15074 --header=FILE[:TEMPLATE]
15075 instantiate the configuration header FILE
15076
15077 Configuration files:
15078 $config_files
15079
15080 Configuration headers:
15081 $config_headers
15082
15083 Configuration commands:
15084 $config_commands
15085
15086 Report bugs to <bugs@ircd-hybrid.org>."
15087
15088 _ACEOF
15089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15091 ac_cs_version="\\
15092 ircd-hybrid config.status TRUNK
15093 configured by $0, generated by GNU Autoconf 2.69,
15094 with options \\"\$ac_cs_config\\"
15095
15096 Copyright (C) 2012 Free Software Foundation, Inc.
15097 This config.status script is free software; the Free Software Foundation
15098 gives unlimited permission to copy, distribute and modify it."
15099
15100 ac_pwd='$ac_pwd'
15101 srcdir='$srcdir'
15102 INSTALL='$INSTALL'
15103 MKDIR_P='$MKDIR_P'
15104 AWK='$AWK'
15105 test -n "\$AWK" || AWK=awk
15106 _ACEOF
15107
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15109 # The default lists apply if the user does not specify any file.
15110 ac_need_defaults=:
15111 while test $# != 0
15112 do
15113 case $1 in
15114 --*=?*)
15115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15117 ac_shift=:
15118 ;;
15119 --*=)
15120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15121 ac_optarg=
15122 ac_shift=:
15123 ;;
15124 *)
15125 ac_option=$1
15126 ac_optarg=$2
15127 ac_shift=shift
15128 ;;
15129 esac
15130
15131 case $ac_option in
15132 # Handling of the options.
15133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15134 ac_cs_recheck=: ;;
15135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15136 $as_echo "$ac_cs_version"; exit ;;
15137 --config | --confi | --conf | --con | --co | --c )
15138 $as_echo "$ac_cs_config"; exit ;;
15139 --debug | --debu | --deb | --de | --d | -d )
15140 debug=: ;;
15141 --file | --fil | --fi | --f )
15142 $ac_shift
15143 case $ac_optarg in
15144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15145 '') as_fn_error $? "missing file argument" ;;
15146 esac
15147 as_fn_append CONFIG_FILES " '$ac_optarg'"
15148 ac_need_defaults=false;;
15149 --header | --heade | --head | --hea )
15150 $ac_shift
15151 case $ac_optarg in
15152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15153 esac
15154 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15155 ac_need_defaults=false;;
15156 --he | --h)
15157 # Conflict between --help and --header
15158 as_fn_error $? "ambiguous option: \`$1'
15159 Try \`$0 --help' for more information.";;
15160 --help | --hel | -h )
15161 $as_echo "$ac_cs_usage"; exit ;;
15162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15164 ac_cs_silent=: ;;
15165
15166 # This is an error.
15167 -*) as_fn_error $? "unrecognized option: \`$1'
15168 Try \`$0 --help' for more information." ;;
15169
15170 *) as_fn_append ac_config_targets " $1"
15171 ac_need_defaults=false ;;
15172
15173 esac
15174 shift
15175 done
15176
15177 ac_configure_extra_args=
15178
15179 if $ac_cs_silent; then
15180 exec 6>/dev/null
15181 ac_configure_extra_args="$ac_configure_extra_args --silent"
15182 fi
15183
15184 _ACEOF
15185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15186 if \$ac_cs_recheck; then
15187 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15188 shift
15189 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15190 CONFIG_SHELL='$SHELL'
15191 export CONFIG_SHELL
15192 exec "\$@"
15193 fi
15194
15195 _ACEOF
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 exec 5>>config.log
15198 {
15199 echo
15200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15201 ## Running $as_me. ##
15202 _ASBOX
15203 $as_echo "$ac_log"
15204 } >&5
15205
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 #
15209 # INIT-COMMANDS
15210 #
15211 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15212
15213
15214 # The HP-UX ksh and POSIX shell print the target directory to stdout
15215 # if CDPATH is set.
15216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15217
15218 sed_quote_subst='$sed_quote_subst'
15219 double_quote_subst='$double_quote_subst'
15220 delay_variable_subst='$delay_variable_subst'
15221 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15222 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15224 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15225 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15226 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15227 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15228 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15229 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15230 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15231 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15232 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15233 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15234 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15235 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15236 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15237 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15238 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15239 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15240 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15241 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15242 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15243 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15244 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15245 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15246 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15247 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15248 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15249 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15250 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15251 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15252 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15253 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15254 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15255 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15256 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15257 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15258 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15259 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15260 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15261 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15262 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15263 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15264 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15265 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15266 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15267 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15268 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15269 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15270 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15271 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15272 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15273 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15274 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15275 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15277 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"`'
15278 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15279 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15280 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15281 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15282 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15283 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15285 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15286 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15287 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15288 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15312 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15313 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15314 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15315 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15316 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15317 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15318 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15319 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15320 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15321 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15322 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15323 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15324 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15325 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15326 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15327 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15328 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15329 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15330 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15331 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15332 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15333 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15334 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15335 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15336 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15337 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15338 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15339 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15340 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15341 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15342 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15343 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15344 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15345 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15346 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15347 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15348 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15349 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15350 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15351
15352 LTCC='$LTCC'
15353 LTCFLAGS='$LTCFLAGS'
15354 compiler='$compiler_DEFAULT'
15355
15356 # A function that is used when there is no print builtin or printf.
15357 func_fallback_echo ()
15358 {
15359 eval 'cat <<_LTECHO_EOF
15360 \$1
15361 _LTECHO_EOF'
15362 }
15363
15364 # Quote evaled strings.
15365 for var in SHELL \
15366 ECHO \
15367 PATH_SEPARATOR \
15368 SED \
15369 GREP \
15370 EGREP \
15371 FGREP \
15372 LD \
15373 NM \
15374 LN_S \
15375 lt_SP2NL \
15376 lt_NL2SP \
15377 reload_flag \
15378 OBJDUMP \
15379 deplibs_check_method \
15380 file_magic_cmd \
15381 file_magic_glob \
15382 want_nocaseglob \
15383 DLLTOOL \
15384 sharedlib_from_linklib_cmd \
15385 AR \
15386 AR_FLAGS \
15387 archiver_list_spec \
15388 STRIP \
15389 RANLIB \
15390 CC \
15391 CFLAGS \
15392 compiler \
15393 lt_cv_sys_global_symbol_pipe \
15394 lt_cv_sys_global_symbol_to_cdecl \
15395 lt_cv_sys_global_symbol_to_c_name_address \
15396 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15397 nm_file_list_spec \
15398 lt_prog_compiler_no_builtin_flag \
15399 lt_prog_compiler_pic \
15400 lt_prog_compiler_wl \
15401 lt_prog_compiler_static \
15402 lt_cv_prog_compiler_c_o \
15403 need_locks \
15404 MANIFEST_TOOL \
15405 DSYMUTIL \
15406 NMEDIT \
15407 LIPO \
15408 OTOOL \
15409 OTOOL64 \
15410 shrext_cmds \
15411 export_dynamic_flag_spec \
15412 whole_archive_flag_spec \
15413 compiler_needs_object \
15414 with_gnu_ld \
15415 allow_undefined_flag \
15416 no_undefined_flag \
15417 hardcode_libdir_flag_spec \
15418 hardcode_libdir_separator \
15419 exclude_expsyms \
15420 include_expsyms \
15421 file_list_spec \
15422 variables_saved_for_relink \
15423 libname_spec \
15424 library_names_spec \
15425 soname_spec \
15426 install_override_mode \
15427 finish_eval \
15428 old_striplib \
15429 striplib; do
15430 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15431 *[\\\\\\\`\\"\\\$]*)
15432 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15433 ;;
15434 *)
15435 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15436 ;;
15437 esac
15438 done
15439
15440 # Double-quote double-evaled strings.
15441 for var in reload_cmds \
15442 old_postinstall_cmds \
15443 old_postuninstall_cmds \
15444 old_archive_cmds \
15445 extract_expsyms_cmds \
15446 old_archive_from_new_cmds \
15447 old_archive_from_expsyms_cmds \
15448 archive_cmds \
15449 archive_expsym_cmds \
15450 module_cmds \
15451 module_expsym_cmds \
15452 export_symbols_cmds \
15453 prelink_cmds \
15454 postlink_cmds \
15455 postinstall_cmds \
15456 postuninstall_cmds \
15457 finish_cmds \
15458 sys_lib_search_path_spec \
15459 sys_lib_dlsearch_path_spec; do
15460 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15461 *[\\\\\\\`\\"\\\$]*)
15462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15463 ;;
15464 *)
15465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15466 ;;
15467 esac
15468 done
15469
15470 ac_aux_dir='$ac_aux_dir'
15471 xsi_shell='$xsi_shell'
15472 lt_shell_append='$lt_shell_append'
15473
15474 # See if we are running on zsh, and set the options which allow our
15475 # commands through without removal of \ escapes INIT.
15476 if test -n "\${ZSH_VERSION+set}" ; then
15477 setopt NO_GLOB_SUBST
15478 fi
15479
15480
15481 PACKAGE='$PACKAGE'
15482 VERSION='$VERSION'
15483 TIMESTAMP='$TIMESTAMP'
15484 RM='$RM'
15485 ofile='$ofile'
15486
15487
15488
15489
15490 _ACEOF
15491
15492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15493
15494 # Handling of arguments.
15495 for ac_config_target in $ac_config_targets
15496 do
15497 case $ac_config_target in
15498 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15500 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15501 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15502 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15503 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15504 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15505 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15506 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15507 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15508 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15509
15510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15511 esac
15512 done
15513
15514
15515 # If the user did not use the arguments to specify the items to instantiate,
15516 # then the envvar interface is used. Set only those that are not.
15517 # We use the long form for the default assignment because of an extremely
15518 # bizarre bug on SunOS 4.1.3.
15519 if $ac_need_defaults; then
15520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15523 fi
15524
15525 # Have a temporary directory for convenience. Make it in the build tree
15526 # simply because there is no reason against having it here, and in addition,
15527 # creating and moving files from /tmp can sometimes cause problems.
15528 # Hook for its removal unless debugging.
15529 # Note that there is a small window in which the directory will not be cleaned:
15530 # after its creation but before its name has been assigned to `$tmp'.
15531 $debug ||
15532 {
15533 tmp= ac_tmp=
15534 trap 'exit_status=$?
15535 : "${ac_tmp:=$tmp}"
15536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15537 ' 0
15538 trap 'as_fn_exit 1' 1 2 13 15
15539 }
15540 # Create a (secure) tmp directory for tmp files.
15541
15542 {
15543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15544 test -d "$tmp"
15545 } ||
15546 {
15547 tmp=./conf$$-$RANDOM
15548 (umask 077 && mkdir "$tmp")
15549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15550 ac_tmp=$tmp
15551
15552 # Set up the scripts for CONFIG_FILES section.
15553 # No need to generate them if there are no CONFIG_FILES.
15554 # This happens for instance with `./config.status config.h'.
15555 if test -n "$CONFIG_FILES"; then
15556
15557
15558 ac_cr=`echo X | tr X '\015'`
15559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15560 # But we know of no other shell where ac_cr would be empty at this
15561 # point, so we can use a bashism as a fallback.
15562 if test "x$ac_cr" = x; then
15563 eval ac_cr=\$\'\\r\'
15564 fi
15565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15567 ac_cs_awk_cr='\\r'
15568 else
15569 ac_cs_awk_cr=$ac_cr
15570 fi
15571
15572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15573 _ACEOF
15574
15575
15576 {
15577 echo "cat >conf$$subs.awk <<_ACEOF" &&
15578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15579 echo "_ACEOF"
15580 } >conf$$subs.sh ||
15581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15583 ac_delim='%!_!# '
15584 for ac_last_try in false false false false false :; do
15585 . ./conf$$subs.sh ||
15586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15587
15588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15589 if test $ac_delim_n = $ac_delim_num; then
15590 break
15591 elif $ac_last_try; then
15592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15593 else
15594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15595 fi
15596 done
15597 rm -f conf$$subs.sh
15598
15599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15601 _ACEOF
15602 sed -n '
15603 h
15604 s/^/S["/; s/!.*/"]=/
15605 p
15606 g
15607 s/^[^!]*!//
15608 :repl
15609 t repl
15610 s/'"$ac_delim"'$//
15611 t delim
15612 :nl
15613 h
15614 s/\(.\{148\}\)..*/\1/
15615 t more1
15616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15617 p
15618 n
15619 b repl
15620 :more1
15621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15622 p
15623 g
15624 s/.\{148\}//
15625 t nl
15626 :delim
15627 h
15628 s/\(.\{148\}\)..*/\1/
15629 t more2
15630 s/["\\]/\\&/g; s/^/"/; s/$/"/
15631 p
15632 b
15633 :more2
15634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15635 p
15636 g
15637 s/.\{148\}//
15638 t delim
15639 ' <conf$$subs.awk | sed '
15640 /^[^""]/{
15641 N
15642 s/\n//
15643 }
15644 ' >>$CONFIG_STATUS || ac_write_fail=1
15645 rm -f conf$$subs.awk
15646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15647 _ACAWK
15648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15649 for (key in S) S_is_set[key] = 1
15650 FS = ""
15651
15652 }
15653 {
15654 line = $ 0
15655 nfields = split(line, field, "@")
15656 substed = 0
15657 len = length(field[1])
15658 for (i = 2; i < nfields; i++) {
15659 key = field[i]
15660 keylen = length(key)
15661 if (S_is_set[key]) {
15662 value = S[key]
15663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15664 len += length(value) + length(field[++i])
15665 substed = 1
15666 } else
15667 len += 1 + keylen
15668 }
15669
15670 print line
15671 }
15672
15673 _ACAWK
15674 _ACEOF
15675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15678 else
15679 cat
15680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15682 _ACEOF
15683
15684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15686 # trailing colons and then remove the whole line if VPATH becomes empty
15687 # (actually we leave an empty line to preserve line numbers).
15688 if test "x$srcdir" = x.; then
15689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15690 h
15691 s///
15692 s/^/:/
15693 s/[ ]*$/:/
15694 s/:\$(srcdir):/:/g
15695 s/:\${srcdir}:/:/g
15696 s/:@srcdir@:/:/g
15697 s/^:*//
15698 s/:*$//
15699 x
15700 s/\(=[ ]*\).*/\1/
15701 G
15702 s/\n//
15703 s/^[^=]*=[ ]*$//
15704 }'
15705 fi
15706
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 fi # test -n "$CONFIG_FILES"
15709
15710 # Set up the scripts for CONFIG_HEADERS section.
15711 # No need to generate them if there are no CONFIG_HEADERS.
15712 # This happens for instance with `./config.status Makefile'.
15713 if test -n "$CONFIG_HEADERS"; then
15714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15715 BEGIN {
15716 _ACEOF
15717
15718 # Transform confdefs.h into an awk script `defines.awk', embedded as
15719 # here-document in config.status, that substitutes the proper values into
15720 # config.h.in to produce config.h.
15721
15722 # Create a delimiter string that does not exist in confdefs.h, to ease
15723 # handling of long lines.
15724 ac_delim='%!_!# '
15725 for ac_last_try in false false :; do
15726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15727 if test -z "$ac_tt"; then
15728 break
15729 elif $ac_last_try; then
15730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15731 else
15732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15733 fi
15734 done
15735
15736 # For the awk script, D is an array of macro values keyed by name,
15737 # likewise P contains macro parameters if any. Preserve backslash
15738 # newline sequences.
15739
15740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15741 sed -n '
15742 s/.\{148\}/&'"$ac_delim"'/g
15743 t rset
15744 :rset
15745 s/^[ ]*#[ ]*define[ ][ ]*/ /
15746 t def
15747 d
15748 :def
15749 s/\\$//
15750 t bsnl
15751 s/["\\]/\\&/g
15752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15753 D["\1"]=" \3"/p
15754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15755 d
15756 :bsnl
15757 s/["\\]/\\&/g
15758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15759 D["\1"]=" \3\\\\\\n"\\/p
15760 t cont
15761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15762 t cont
15763 d
15764 :cont
15765 n
15766 s/.\{148\}/&'"$ac_delim"'/g
15767 t clear
15768 :clear
15769 s/\\$//
15770 t bsnlc
15771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15772 d
15773 :bsnlc
15774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15775 b cont
15776 ' <confdefs.h | sed '
15777 s/'"$ac_delim"'/"\\\
15778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15779
15780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781 for (key in D) D_is_set[key] = 1
15782 FS = ""
15783 }
15784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15785 line = \$ 0
15786 split(line, arg, " ")
15787 if (arg[1] == "#") {
15788 defundef = arg[2]
15789 mac1 = arg[3]
15790 } else {
15791 defundef = substr(arg[1], 2)
15792 mac1 = arg[2]
15793 }
15794 split(mac1, mac2, "(") #)
15795 macro = mac2[1]
15796 prefix = substr(line, 1, index(line, defundef) - 1)
15797 if (D_is_set[macro]) {
15798 # Preserve the white space surrounding the "#".
15799 print prefix "define", macro P[macro] D[macro]
15800 next
15801 } else {
15802 # Replace #undef with comments. This is necessary, for example,
15803 # in the case of _POSIX_SOURCE, which is predefined and required
15804 # on some systems where configure will not decide to define it.
15805 if (defundef == "undef") {
15806 print "/*", prefix defundef, macro, "*/"
15807 next
15808 }
15809 }
15810 }
15811 { print }
15812 _ACAWK
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15816 fi # test -n "$CONFIG_HEADERS"
15817
15818
15819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15820 shift
15821 for ac_tag
15822 do
15823 case $ac_tag in
15824 :[FHLC]) ac_mode=$ac_tag; continue;;
15825 esac
15826 case $ac_mode$ac_tag in
15827 :[FHL]*:*);;
15828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15829 :[FH]-) ac_tag=-:-;;
15830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15831 esac
15832 ac_save_IFS=$IFS
15833 IFS=:
15834 set x $ac_tag
15835 IFS=$ac_save_IFS
15836 shift
15837 ac_file=$1
15838 shift
15839
15840 case $ac_mode in
15841 :L) ac_source=$1;;
15842 :[FH])
15843 ac_file_inputs=
15844 for ac_f
15845 do
15846 case $ac_f in
15847 -) ac_f="$ac_tmp/stdin";;
15848 *) # Look for the file first in the build tree, then in the source tree
15849 # (if the path is not absolute). The absolute path cannot be DOS-style,
15850 # because $ac_f cannot contain `:'.
15851 test -f "$ac_f" ||
15852 case $ac_f in
15853 [\\/$]*) false;;
15854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15855 esac ||
15856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15857 esac
15858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15859 as_fn_append ac_file_inputs " '$ac_f'"
15860 done
15861
15862 # Let's still pretend it is `configure' which instantiates (i.e., don't
15863 # use $as_me), people would be surprised to read:
15864 # /* config.h. Generated by config.status. */
15865 configure_input='Generated from '`
15866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15867 `' by configure.'
15868 if test x"$ac_file" != x-; then
15869 configure_input="$ac_file. $configure_input"
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15871 $as_echo "$as_me: creating $ac_file" >&6;}
15872 fi
15873 # Neutralize special characters interpreted by sed in replacement strings.
15874 case $configure_input in #(
15875 *\&* | *\|* | *\\* )
15876 ac_sed_conf_input=`$as_echo "$configure_input" |
15877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15878 *) ac_sed_conf_input=$configure_input;;
15879 esac
15880
15881 case $ac_tag in
15882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15884 esac
15885 ;;
15886 esac
15887
15888 ac_dir=`$as_dirname -- "$ac_file" ||
15889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15890 X"$ac_file" : 'X\(//\)[^/]' \| \
15891 X"$ac_file" : 'X\(//\)$' \| \
15892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15893 $as_echo X"$ac_file" |
15894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15895 s//\1/
15896 q
15897 }
15898 /^X\(\/\/\)[^/].*/{
15899 s//\1/
15900 q
15901 }
15902 /^X\(\/\/\)$/{
15903 s//\1/
15904 q
15905 }
15906 /^X\(\/\).*/{
15907 s//\1/
15908 q
15909 }
15910 s/.*/./; q'`
15911 as_dir="$ac_dir"; as_fn_mkdir_p
15912 ac_builddir=.
15913
15914 case "$ac_dir" in
15915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15916 *)
15917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15918 # A ".." for each directory in $ac_dir_suffix.
15919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15920 case $ac_top_builddir_sub in
15921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15923 esac ;;
15924 esac
15925 ac_abs_top_builddir=$ac_pwd
15926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15927 # for backward compatibility:
15928 ac_top_builddir=$ac_top_build_prefix
15929
15930 case $srcdir in
15931 .) # We are building in place.
15932 ac_srcdir=.
15933 ac_top_srcdir=$ac_top_builddir_sub
15934 ac_abs_top_srcdir=$ac_pwd ;;
15935 [\\/]* | ?:[\\/]* ) # Absolute name.
15936 ac_srcdir=$srcdir$ac_dir_suffix;
15937 ac_top_srcdir=$srcdir
15938 ac_abs_top_srcdir=$srcdir ;;
15939 *) # Relative name.
15940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15941 ac_top_srcdir=$ac_top_build_prefix$srcdir
15942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15943 esac
15944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15945
15946
15947 case $ac_mode in
15948 :F)
15949 #
15950 # CONFIG_FILE
15951 #
15952
15953 case $INSTALL in
15954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15956 esac
15957 ac_MKDIR_P=$MKDIR_P
15958 case $MKDIR_P in
15959 [\\/$]* | ?:[\\/]* ) ;;
15960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15961 esac
15962 _ACEOF
15963
15964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15965 # If the template does not know about datarootdir, expand it.
15966 # FIXME: This hack should be removed a few years after 2.60.
15967 ac_datarootdir_hack=; ac_datarootdir_seen=
15968 ac_sed_dataroot='
15969 /datarootdir/ {
15970 p
15971 q
15972 }
15973 /@datadir@/p
15974 /@docdir@/p
15975 /@infodir@/p
15976 /@localedir@/p
15977 /@mandir@/p'
15978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15979 *datarootdir*) ac_datarootdir_seen=yes;;
15980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15983 _ACEOF
15984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15985 ac_datarootdir_hack='
15986 s&@datadir@&$datadir&g
15987 s&@docdir@&$docdir&g
15988 s&@infodir@&$infodir&g
15989 s&@localedir@&$localedir&g
15990 s&@mandir@&$mandir&g
15991 s&\\\${datarootdir}&$datarootdir&g' ;;
15992 esac
15993 _ACEOF
15994
15995 # Neutralize VPATH when `$srcdir' = `.'.
15996 # Shell code in configure.ac might set extrasub.
15997 # FIXME: do we really want to maintain this feature?
15998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999 ac_sed_extra="$ac_vpsub
16000 $extrasub
16001 _ACEOF
16002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16003 :t
16004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16005 s|@configure_input@|$ac_sed_conf_input|;t t
16006 s&@top_builddir@&$ac_top_builddir_sub&;t t
16007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16008 s&@srcdir@&$ac_srcdir&;t t
16009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16010 s&@top_srcdir@&$ac_top_srcdir&;t t
16011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16012 s&@builddir@&$ac_builddir&;t t
16013 s&@abs_builddir@&$ac_abs_builddir&;t t
16014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16015 s&@INSTALL@&$ac_INSTALL&;t t
16016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16017 $ac_datarootdir_hack
16018 "
16019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16020 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16021
16022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16023 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16025 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16027 which seems to be undefined. Please make sure it is defined" >&5
16028 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16029 which seems to be undefined. Please make sure it is defined" >&2;}
16030
16031 rm -f "$ac_tmp/stdin"
16032 case $ac_file in
16033 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16034 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16035 esac \
16036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16037 ;;
16038 :H)
16039 #
16040 # CONFIG_HEADER
16041 #
16042 if test x"$ac_file" != x-; then
16043 {
16044 $as_echo "/* $configure_input */" \
16045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16046 } >"$ac_tmp/config.h" \
16047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16048 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16050 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16051 else
16052 rm -f "$ac_file"
16053 mv "$ac_tmp/config.h" "$ac_file" \
16054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16055 fi
16056 else
16057 $as_echo "/* $configure_input */" \
16058 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16059 || as_fn_error $? "could not create -" "$LINENO" 5
16060 fi
16061 # Compute "$ac_file"'s index in $config_headers.
16062 _am_arg="$ac_file"
16063 _am_stamp_count=1
16064 for _am_header in $config_headers :; do
16065 case $_am_header in
16066 $_am_arg | $_am_arg:* )
16067 break ;;
16068 * )
16069 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16070 esac
16071 done
16072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074 X"$_am_arg" : 'X\(//\)[^/]' \| \
16075 X"$_am_arg" : 'X\(//\)$' \| \
16076 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16077 $as_echo X"$_am_arg" |
16078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16079 s//\1/
16080 q
16081 }
16082 /^X\(\/\/\)[^/].*/{
16083 s//\1/
16084 q
16085 }
16086 /^X\(\/\/\)$/{
16087 s//\1/
16088 q
16089 }
16090 /^X\(\/\).*/{
16091 s//\1/
16092 q
16093 }
16094 s/.*/./; q'`/stamp-h$_am_stamp_count
16095 ;;
16096
16097 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16098 $as_echo "$as_me: executing $ac_file commands" >&6;}
16099 ;;
16100 esac
16101
16102
16103 case $ac_file$ac_mode in
16104 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16105 # Older Autoconf quotes --file arguments for eval, but not when files
16106 # are listed without --file. Let's play safe and only enable the eval
16107 # if we detect the quoting.
16108 case $CONFIG_FILES in
16109 *\'*) eval set x "$CONFIG_FILES" ;;
16110 *) set x $CONFIG_FILES ;;
16111 esac
16112 shift
16113 for mf
16114 do
16115 # Strip MF so we end up with the name of the file.
16116 mf=`echo "$mf" | sed -e 's/:.*$//'`
16117 # Check whether this is an Automake generated Makefile or not.
16118 # We used to match only the files named 'Makefile.in', but
16119 # some people rename them; so instead we look at the file content.
16120 # Grep'ing the first line is not enough: some people post-process
16121 # each Makefile.in and add a new line on top of each file to say so.
16122 # Grep'ing the whole file is not good either: AIX grep has a line
16123 # limit of 2048, but all sed's we know have understand at least 4000.
16124 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16125 dirpart=`$as_dirname -- "$mf" ||
16126 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$mf" : 'X\(//\)[^/]' \| \
16128 X"$mf" : 'X\(//\)$' \| \
16129 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16130 $as_echo X"$mf" |
16131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16132 s//\1/
16133 q
16134 }
16135 /^X\(\/\/\)[^/].*/{
16136 s//\1/
16137 q
16138 }
16139 /^X\(\/\/\)$/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\).*/{
16144 s//\1/
16145 q
16146 }
16147 s/.*/./; q'`
16148 else
16149 continue
16150 fi
16151 # Extract the definition of DEPDIR, am__include, and am__quote
16152 # from the Makefile without running 'make'.
16153 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16154 test -z "$DEPDIR" && continue
16155 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16156 test -z "$am__include" && continue
16157 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16158 # Find all dependency output files, they are included files with
16159 # $(DEPDIR) in their names. We invoke sed twice because it is the
16160 # simplest approach to changing $(DEPDIR) to its actual value in the
16161 # expansion.
16162 for file in `sed -n "
16163 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16164 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16165 # Make sure the directory exists.
16166 test -f "$dirpart/$file" && continue
16167 fdir=`$as_dirname -- "$file" ||
16168 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16169 X"$file" : 'X\(//\)[^/]' \| \
16170 X"$file" : 'X\(//\)$' \| \
16171 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16172 $as_echo X"$file" |
16173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16174 s//\1/
16175 q
16176 }
16177 /^X\(\/\/\)[^/].*/{
16178 s//\1/
16179 q
16180 }
16181 /^X\(\/\/\)$/{
16182 s//\1/
16183 q
16184 }
16185 /^X\(\/\).*/{
16186 s//\1/
16187 q
16188 }
16189 s/.*/./; q'`
16190 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16191 # echo "creating $dirpart/$file"
16192 echo '# dummy' > "$dirpart/$file"
16193 done
16194 done
16195 }
16196 ;;
16197 "libtool":C)
16198
16199 # See if we are running on zsh, and set the options which allow our
16200 # commands through without removal of \ escapes.
16201 if test -n "${ZSH_VERSION+set}" ; then
16202 setopt NO_GLOB_SUBST
16203 fi
16204
16205 cfgfile="${ofile}T"
16206 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16207 $RM "$cfgfile"
16208
16209 cat <<_LT_EOF >> "$cfgfile"
16210 #! $SHELL
16211
16212 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16213 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16216 #
16217 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16218 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16219 # Foundation, Inc.
16220 # Written by Gordon Matzigkeit, 1996
16221 #
16222 # This file is part of GNU Libtool.
16223 #
16224 # GNU Libtool is free software; you can redistribute it and/or
16225 # modify it under the terms of the GNU General Public License as
16226 # published by the Free Software Foundation; either version 2 of
16227 # the License, or (at your option) any later version.
16228 #
16229 # As a special exception to the GNU General Public License,
16230 # if you distribute this file as part of a program or library that
16231 # is built using GNU Libtool, you may include this file under the
16232 # same distribution terms that you use for the rest of that program.
16233 #
16234 # GNU Libtool is distributed in the hope that it will be useful,
16235 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16236 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16237 # GNU General Public License for more details.
16238 #
16239 # You should have received a copy of the GNU General Public License
16240 # along with GNU Libtool; see the file COPYING. If not, a copy
16241 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16242 # obtained by writing to the Free Software Foundation, Inc.,
16243 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16244
16245
16246 # The names of the tagged configurations supported by this script.
16247 available_tags=""
16248
16249 # ### BEGIN LIBTOOL CONFIG
16250
16251 # Which release of libtool.m4 was used?
16252 macro_version=$macro_version
16253 macro_revision=$macro_revision
16254
16255 # Whether or not to build static libraries.
16256 build_old_libs=$enable_static
16257
16258 # Whether or not to build shared libraries.
16259 build_libtool_libs=$enable_shared
16260
16261 # What type of objects to build.
16262 pic_mode=$pic_mode
16263
16264 # Whether or not to optimize for fast installation.
16265 fast_install=$enable_fast_install
16266
16267 # Shell to use when invoking shell scripts.
16268 SHELL=$lt_SHELL
16269
16270 # An echo program that protects backslashes.
16271 ECHO=$lt_ECHO
16272
16273 # The PATH separator for the build system.
16274 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16275
16276 # The host system.
16277 host_alias=$host_alias
16278 host=$host
16279 host_os=$host_os
16280
16281 # The build system.
16282 build_alias=$build_alias
16283 build=$build
16284 build_os=$build_os
16285
16286 # A sed program that does not truncate output.
16287 SED=$lt_SED
16288
16289 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16290 Xsed="\$SED -e 1s/^X//"
16291
16292 # A grep program that handles long lines.
16293 GREP=$lt_GREP
16294
16295 # An ERE matcher.
16296 EGREP=$lt_EGREP
16297
16298 # A literal string matcher.
16299 FGREP=$lt_FGREP
16300
16301 # A BSD- or MS-compatible name lister.
16302 NM=$lt_NM
16303
16304 # Whether we need soft or hard links.
16305 LN_S=$lt_LN_S
16306
16307 # What is the maximum length of a command?
16308 max_cmd_len=$max_cmd_len
16309
16310 # Object file suffix (normally "o").
16311 objext=$ac_objext
16312
16313 # Executable file suffix (normally "").
16314 exeext=$exeext
16315
16316 # whether the shell understands "unset".
16317 lt_unset=$lt_unset
16318
16319 # turn spaces into newlines.
16320 SP2NL=$lt_lt_SP2NL
16321
16322 # turn newlines into spaces.
16323 NL2SP=$lt_lt_NL2SP
16324
16325 # convert \$build file names to \$host format.
16326 to_host_file_cmd=$lt_cv_to_host_file_cmd
16327
16328 # convert \$build files to toolchain format.
16329 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16330
16331 # An object symbol dumper.
16332 OBJDUMP=$lt_OBJDUMP
16333
16334 # Method to check whether dependent libraries are shared objects.
16335 deplibs_check_method=$lt_deplibs_check_method
16336
16337 # Command to use when deplibs_check_method = "file_magic".
16338 file_magic_cmd=$lt_file_magic_cmd
16339
16340 # How to find potential files when deplibs_check_method = "file_magic".
16341 file_magic_glob=$lt_file_magic_glob
16342
16343 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16344 want_nocaseglob=$lt_want_nocaseglob
16345
16346 # DLL creation program.
16347 DLLTOOL=$lt_DLLTOOL
16348
16349 # Command to associate shared and link libraries.
16350 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16351
16352 # The archiver.
16353 AR=$lt_AR
16354
16355 # Flags to create an archive.
16356 AR_FLAGS=$lt_AR_FLAGS
16357
16358 # How to feed a file listing to the archiver.
16359 archiver_list_spec=$lt_archiver_list_spec
16360
16361 # A symbol stripping program.
16362 STRIP=$lt_STRIP
16363
16364 # Commands used to install an old-style archive.
16365 RANLIB=$lt_RANLIB
16366 old_postinstall_cmds=$lt_old_postinstall_cmds
16367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16368
16369 # Whether to use a lock for old archive extraction.
16370 lock_old_archive_extraction=$lock_old_archive_extraction
16371
16372 # A C compiler.
16373 LTCC=$lt_CC
16374
16375 # LTCC compiler flags.
16376 LTCFLAGS=$lt_CFLAGS
16377
16378 # Take the output of nm and produce a listing of raw symbols and C names.
16379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16380
16381 # Transform the output of nm in a proper C declaration.
16382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16383
16384 # Transform the output of nm in a C name address pair.
16385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16386
16387 # Transform the output of nm in a C name address pair when lib prefix is needed.
16388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16389
16390 # Specify filename containing input files for \$NM.
16391 nm_file_list_spec=$lt_nm_file_list_spec
16392
16393 # The root where to search for dependent libraries,and in which our libraries should be installed.
16394 lt_sysroot=$lt_sysroot
16395
16396 # The name of the directory that contains temporary libtool files.
16397 objdir=$objdir
16398
16399 # Used to examine libraries when file_magic_cmd begins with "file".
16400 MAGIC_CMD=$MAGIC_CMD
16401
16402 # Must we lock files when doing compilation?
16403 need_locks=$lt_need_locks
16404
16405 # Manifest tool.
16406 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16407
16408 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16409 DSYMUTIL=$lt_DSYMUTIL
16410
16411 # Tool to change global to local symbols on Mac OS X.
16412 NMEDIT=$lt_NMEDIT
16413
16414 # Tool to manipulate fat objects and archives on Mac OS X.
16415 LIPO=$lt_LIPO
16416
16417 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16418 OTOOL=$lt_OTOOL
16419
16420 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16421 OTOOL64=$lt_OTOOL64
16422
16423 # Old archive suffix (normally "a").
16424 libext=$libext
16425
16426 # Shared library suffix (normally ".so").
16427 shrext_cmds=$lt_shrext_cmds
16428
16429 # The commands to extract the exported symbol list from a shared archive.
16430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16431
16432 # Variables whose values should be saved in libtool wrapper scripts and
16433 # restored at link time.
16434 variables_saved_for_relink=$lt_variables_saved_for_relink
16435
16436 # Do we need the "lib" prefix for modules?
16437 need_lib_prefix=$need_lib_prefix
16438
16439 # Do we need a version for libraries?
16440 need_version=$need_version
16441
16442 # Library versioning type.
16443 version_type=$version_type
16444
16445 # Shared library runtime path variable.
16446 runpath_var=$runpath_var
16447
16448 # Shared library path variable.
16449 shlibpath_var=$shlibpath_var
16450
16451 # Is shlibpath searched before the hard-coded library search path?
16452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16453
16454 # Format of library name prefix.
16455 libname_spec=$lt_libname_spec
16456
16457 # List of archive names. First name is the real one, the rest are links.
16458 # The last name is the one that the linker finds with -lNAME
16459 library_names_spec=$lt_library_names_spec
16460
16461 # The coded name of the library, if different from the real name.
16462 soname_spec=$lt_soname_spec
16463
16464 # Permission mode override for installation of shared libraries.
16465 install_override_mode=$lt_install_override_mode
16466
16467 # Command to use after installation of a shared archive.
16468 postinstall_cmds=$lt_postinstall_cmds
16469
16470 # Command to use after uninstallation of a shared archive.
16471 postuninstall_cmds=$lt_postuninstall_cmds
16472
16473 # Commands used to finish a libtool library installation in a directory.
16474 finish_cmds=$lt_finish_cmds
16475
16476 # As "finish_cmds", except a single script fragment to be evaled but
16477 # not shown.
16478 finish_eval=$lt_finish_eval
16479
16480 # Whether we should hardcode library paths into libraries.
16481 hardcode_into_libs=$hardcode_into_libs
16482
16483 # Compile-time system search path for libraries.
16484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16485
16486 # Run-time system search path for libraries.
16487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16488
16489 # Whether dlopen is supported.
16490 dlopen_support=$enable_dlopen
16491
16492 # Whether dlopen of programs is supported.
16493 dlopen_self=$enable_dlopen_self
16494
16495 # Whether dlopen of statically linked programs is supported.
16496 dlopen_self_static=$enable_dlopen_self_static
16497
16498 # Commands to strip libraries.
16499 old_striplib=$lt_old_striplib
16500 striplib=$lt_striplib
16501
16502
16503 # The linker used to build libraries.
16504 LD=$lt_LD
16505
16506 # How to create reloadable object files.
16507 reload_flag=$lt_reload_flag
16508 reload_cmds=$lt_reload_cmds
16509
16510 # Commands used to build an old-style archive.
16511 old_archive_cmds=$lt_old_archive_cmds
16512
16513 # A language specific compiler.
16514 CC=$lt_compiler
16515
16516 # Is the compiler the GNU compiler?
16517 with_gcc=$GCC
16518
16519 # Compiler flag to turn off builtin functions.
16520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16521
16522 # Additional compiler flags for building library objects.
16523 pic_flag=$lt_lt_prog_compiler_pic
16524
16525 # How to pass a linker flag through the compiler.
16526 wl=$lt_lt_prog_compiler_wl
16527
16528 # Compiler flag to prevent dynamic linking.
16529 link_static_flag=$lt_lt_prog_compiler_static
16530
16531 # Does compiler simultaneously support -c and -o options?
16532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16533
16534 # Whether or not to add -lc for building shared libraries.
16535 build_libtool_need_lc=$archive_cmds_need_lc
16536
16537 # Whether or not to disallow shared libs when runtime libs are static.
16538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16539
16540 # Compiler flag to allow reflexive dlopens.
16541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16542
16543 # Compiler flag to generate shared objects directly from archives.
16544 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16545
16546 # Whether the compiler copes with passing no objects directly.
16547 compiler_needs_object=$lt_compiler_needs_object
16548
16549 # Create an old-style archive from a shared archive.
16550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16551
16552 # Create a temporary old-style archive to link instead of a shared archive.
16553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16554
16555 # Commands used to build a shared archive.
16556 archive_cmds=$lt_archive_cmds
16557 archive_expsym_cmds=$lt_archive_expsym_cmds
16558
16559 # Commands used to build a loadable module if different from building
16560 # a shared archive.
16561 module_cmds=$lt_module_cmds
16562 module_expsym_cmds=$lt_module_expsym_cmds
16563
16564 # Whether we are building with GNU ld or not.
16565 with_gnu_ld=$lt_with_gnu_ld
16566
16567 # Flag that allows shared libraries with undefined symbols to be built.
16568 allow_undefined_flag=$lt_allow_undefined_flag
16569
16570 # Flag that enforces no undefined symbols.
16571 no_undefined_flag=$lt_no_undefined_flag
16572
16573 # Flag to hardcode \$libdir into a binary during linking.
16574 # This must work even if \$libdir does not exist
16575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16576
16577 # Whether we need a single "-rpath" flag with a separated argument.
16578 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16579
16580 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16581 # DIR into the resulting binary.
16582 hardcode_direct=$hardcode_direct
16583
16584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16585 # DIR into the resulting binary and the resulting library dependency is
16586 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16587 # library is relocated.
16588 hardcode_direct_absolute=$hardcode_direct_absolute
16589
16590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16591 # into the resulting binary.
16592 hardcode_minus_L=$hardcode_minus_L
16593
16594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16595 # into the resulting binary.
16596 hardcode_shlibpath_var=$hardcode_shlibpath_var
16597
16598 # Set to "yes" if building a shared library automatically hardcodes DIR
16599 # into the library and all subsequent libraries and executables linked
16600 # against it.
16601 hardcode_automatic=$hardcode_automatic
16602
16603 # Set to yes if linker adds runtime paths of dependent libraries
16604 # to runtime path list.
16605 inherit_rpath=$inherit_rpath
16606
16607 # Whether libtool must link a program against all its dependency libraries.
16608 link_all_deplibs=$link_all_deplibs
16609
16610 # Set to "yes" if exported symbols are required.
16611 always_export_symbols=$always_export_symbols
16612
16613 # The commands to list exported symbols.
16614 export_symbols_cmds=$lt_export_symbols_cmds
16615
16616 # Symbols that should not be listed in the preloaded symbols.
16617 exclude_expsyms=$lt_exclude_expsyms
16618
16619 # Symbols that must always be exported.
16620 include_expsyms=$lt_include_expsyms
16621
16622 # Commands necessary for linking programs (against libraries) with templates.
16623 prelink_cmds=$lt_prelink_cmds
16624
16625 # Commands necessary for finishing linking programs.
16626 postlink_cmds=$lt_postlink_cmds
16627
16628 # Specify filename containing input files.
16629 file_list_spec=$lt_file_list_spec
16630
16631 # How to hardcode a shared library path into an executable.
16632 hardcode_action=$hardcode_action
16633
16634 # ### END LIBTOOL CONFIG
16635
16636 _LT_EOF
16637
16638 case $host_os in
16639 aix3*)
16640 cat <<\_LT_EOF >> "$cfgfile"
16641 # AIX sometimes has problems with the GCC collect2 program. For some
16642 # reason, if we set the COLLECT_NAMES environment variable, the problems
16643 # vanish in a puff of smoke.
16644 if test "X${COLLECT_NAMES+set}" != Xset; then
16645 COLLECT_NAMES=
16646 export COLLECT_NAMES
16647 fi
16648 _LT_EOF
16649 ;;
16650 esac
16651
16652
16653 ltmain="$ac_aux_dir/ltmain.sh"
16654
16655
16656 # We use sed instead of cat because bash on DJGPP gets confused if
16657 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16658 # text mode, it properly converts lines to CR/LF. This bash problem
16659 # is reportedly fixed, but why not run on old versions too?
16660 sed '$q' "$ltmain" >> "$cfgfile" \
16661 || (rm -f "$cfgfile"; exit 1)
16662
16663 if test x"$xsi_shell" = xyes; then
16664 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16665 func_dirname ()\
16666 {\
16667 \ case ${1} in\
16668 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16669 \ * ) func_dirname_result="${3}" ;;\
16670 \ esac\
16671 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16672 && mv -f "$cfgfile.tmp" "$cfgfile" \
16673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16674 test 0 -eq $? || _lt_function_replace_fail=:
16675
16676
16677 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16678 func_basename ()\
16679 {\
16680 \ func_basename_result="${1##*/}"\
16681 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16682 && mv -f "$cfgfile.tmp" "$cfgfile" \
16683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16684 test 0 -eq $? || _lt_function_replace_fail=:
16685
16686
16687 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16688 func_dirname_and_basename ()\
16689 {\
16690 \ case ${1} in\
16691 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16692 \ * ) func_dirname_result="${3}" ;;\
16693 \ esac\
16694 \ func_basename_result="${1##*/}"\
16695 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16696 && mv -f "$cfgfile.tmp" "$cfgfile" \
16697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16698 test 0 -eq $? || _lt_function_replace_fail=:
16699
16700
16701 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16702 func_stripname ()\
16703 {\
16704 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16705 \ # positional parameters, so assign one to ordinary parameter first.\
16706 \ func_stripname_result=${3}\
16707 \ func_stripname_result=${func_stripname_result#"${1}"}\
16708 \ func_stripname_result=${func_stripname_result%"${2}"}\
16709 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16710 && mv -f "$cfgfile.tmp" "$cfgfile" \
16711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16712 test 0 -eq $? || _lt_function_replace_fail=:
16713
16714
16715 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16716 func_split_long_opt ()\
16717 {\
16718 \ func_split_long_opt_name=${1%%=*}\
16719 \ func_split_long_opt_arg=${1#*=}\
16720 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16721 && mv -f "$cfgfile.tmp" "$cfgfile" \
16722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16723 test 0 -eq $? || _lt_function_replace_fail=:
16724
16725
16726 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16727 func_split_short_opt ()\
16728 {\
16729 \ func_split_short_opt_arg=${1#??}\
16730 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16731 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16732 && mv -f "$cfgfile.tmp" "$cfgfile" \
16733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16734 test 0 -eq $? || _lt_function_replace_fail=:
16735
16736
16737 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16738 func_lo2o ()\
16739 {\
16740 \ case ${1} in\
16741 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16742 \ *) func_lo2o_result=${1} ;;\
16743 \ esac\
16744 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16745 && mv -f "$cfgfile.tmp" "$cfgfile" \
16746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16747 test 0 -eq $? || _lt_function_replace_fail=:
16748
16749
16750 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16751 func_xform ()\
16752 {\
16753 func_xform_result=${1%.*}.lo\
16754 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16755 && mv -f "$cfgfile.tmp" "$cfgfile" \
16756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16757 test 0 -eq $? || _lt_function_replace_fail=:
16758
16759
16760 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16761 func_arith ()\
16762 {\
16763 func_arith_result=$(( $* ))\
16764 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16765 && mv -f "$cfgfile.tmp" "$cfgfile" \
16766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16767 test 0 -eq $? || _lt_function_replace_fail=:
16768
16769
16770 sed -e '/^func_len ()$/,/^} # func_len /c\
16771 func_len ()\
16772 {\
16773 func_len_result=${#1}\
16774 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16775 && mv -f "$cfgfile.tmp" "$cfgfile" \
16776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16777 test 0 -eq $? || _lt_function_replace_fail=:
16778
16779 fi
16780
16781 if test x"$lt_shell_append" = xyes; then
16782 sed -e '/^func_append ()$/,/^} # func_append /c\
16783 func_append ()\
16784 {\
16785 eval "${1}+=\\${2}"\
16786 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16787 && mv -f "$cfgfile.tmp" "$cfgfile" \
16788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16789 test 0 -eq $? || _lt_function_replace_fail=:
16790
16791
16792 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16793 func_append_quoted ()\
16794 {\
16795 \ func_quote_for_eval "${2}"\
16796 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16797 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16798 && mv -f "$cfgfile.tmp" "$cfgfile" \
16799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16800 test 0 -eq $? || _lt_function_replace_fail=:
16801
16802
16803 # Save a `func_append' function call where possible by direct use of '+='
16804 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16805 && mv -f "$cfgfile.tmp" "$cfgfile" \
16806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16807 test 0 -eq $? || _lt_function_replace_fail=:
16808 else
16809 # Save a `func_append' function call even when '+=' is not available
16810 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16811 && mv -f "$cfgfile.tmp" "$cfgfile" \
16812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813 test 0 -eq $? || _lt_function_replace_fail=:
16814 fi
16815
16816 if test x"$_lt_function_replace_fail" = x":"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16818 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16819 fi
16820
16821
16822 mv -f "$cfgfile" "$ofile" ||
16823 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16824 chmod +x "$ofile"
16825
16826 ;;
16827
16828 esac
16829 done # for ac_tag
16830
16831
16832 as_fn_exit 0
16833 _ACEOF
16834 ac_clean_files=$ac_clean_files_save
16835
16836 test $ac_write_fail = 0 ||
16837 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16838
16839
16840 # configure is writing to config.log, and then calls config.status.
16841 # config.status does its own redirection, appending to config.log.
16842 # Unfortunately, on DOS this fails, as config.log is still kept open
16843 # by configure, so config.status won't be able to write to it; its
16844 # output is simply discarded. So we exec the FD to /dev/null,
16845 # effectively closing config.log, so it can be properly (re)opened and
16846 # appended to by config.status. When coming back to configure, we
16847 # need to make the FD available again.
16848 if test "$no_create" != yes; then
16849 ac_cs_success=:
16850 ac_config_status_args=
16851 test "$silent" = yes &&
16852 ac_config_status_args="$ac_config_status_args --quiet"
16853 exec 5>/dev/null
16854 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16855 exec 5>>config.log
16856 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16857 # would make configure fail if this is the last instruction.
16858 $ac_cs_success || as_fn_exit 1
16859 fi
16860 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16862 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16863 fi
16864

Properties

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