Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libev 4.33.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libev'
589 PACKAGE_TARNAME='libev'
590 PACKAGE_VERSION='4.33'
591 PACKAGE_STRING='libev 4.33'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ev_epoll.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 CPP
637 LT_SYS_LIBRARY_PATH
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 runstatedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_maintainer_mode
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_aix_soname
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 LT_SYS_LIBRARY_PATH
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 runstatedir='${localstatedir}/run'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -runstatedir | --runstatedir | --runstatedi | --runstated \
1070 | --runstate | --runstat | --runsta | --runst | --runs \
1071 | --run | --ru | --r)
1072 ac_prev=runstatedir ;;
1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1075 | --run=* | --ru=* | --r=*)
1076 runstatedir=$ac_optarg ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir runstatedir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures libev 4.33 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libev]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1383
1384 cat <<\_ACEOF
1385
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of libev 4.33:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-maintainer-mode
1410 enable make rules and dependencies not useful (and
1411 sometimes confusing) to the casual installer
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 LT_SYS_LIBRARY_PATH
1443 User-defined run-time library search path.
1444 CPP C preprocessor
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 libev configure 4.33
1513 generated by GNU Autoconf 2.69
1514
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 test -x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621 else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629 else
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1741
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1747
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main ()
1766 {
1767 return $2 ();
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790 # the include files in INCLUDES and setting the cache variable VAR
1791 # accordingly.
1792 ac_fn_c_check_header_mongrel ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if eval \${$3+:} false; then :
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 else
1805 # Is the header compilable?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807 $as_echo_n "checking $2 usability... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 ac_header_compiler=yes
1815 else
1816 ac_header_compiler=no
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820 $as_echo "$ac_header_compiler" >&6; }
1821
1822 # Is the header present?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824 $as_echo_n "checking $2 presence... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 #include <$2>
1828 _ACEOF
1829 if ac_fn_c_try_cpp "$LINENO"; then :
1830 ac_header_preproc=yes
1831 else
1832 ac_header_preproc=no
1833 fi
1834 rm -f conftest.err conftest.i conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836 $as_echo "$ac_header_preproc" >&6; }
1837
1838 # So? What about this header?
1839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1840 yes:no: )
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846 no:yes:* )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1850 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1854 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858 esac
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=\$ac_header_compiler"
1865 fi
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_mongrel
1873
1874 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1875 # -------------------------------------------
1876 # Tests whether TYPE exists after having included INCLUDES, setting cache
1877 # variable VAR accordingly.
1878 ac_fn_c_check_type ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 eval "$3=no"
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main ()
1892 {
1893 if (sizeof ($2))
1894 return 0;
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 if (sizeof (($2)))
1907 return 0;
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913
1914 else
1915 eval "$3=yes"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_type
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by libev $as_me 4.33, which was
1932 generated by GNU Autoconf 2.69. Invocation command line was
1933
1934 $ $0 $@
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 $as_echo "PATH: $as_dir"
1969 done
1970 IFS=$as_save_IFS
1971
1972 } >&5
1973
1974 cat >&5 <<_ACEOF
1975
1976
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1980
1981 _ACEOF
1982
1983
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1994 do
1995 for ac_arg
1996 do
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 esac
2005 case $ac_pass in
2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007 2)
2008 as_fn_append ac_configure_args1 " '$ac_arg'"
2009 if test $ac_must_keep_next = true; then
2010 ac_must_keep_next=false # Got value, back to normal.
2011 else
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2020 ;;
2021 -* ) ac_must_keep_next=true ;;
2022 esac
2023 fi
2024 as_fn_append ac_configure_args " '$ac_arg'"
2025 ;;
2026 esac
2027 done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2031
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log. We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2039 {
2040 echo
2041
2042 $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2045 echo
2046 # The following way of writing the cache mishandles newlines in values,
2047 (
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in #(
2051 *${as_nl}*)
2052 case $ac_var in #(
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055 esac
2056 case $ac_var in #(
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2060 esac ;;
2061 esac
2062 done
2063 (set) 2>&1 |
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2066 sed -n \
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069 ;; #(
2070 *)
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072 ;;
2073 esac |
2074 sort
2075 )
2076 echo
2077
2078 $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2081 echo
2082 for ac_var in $ac_subst_vars
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091
2092 if test -n "$ac_subst_files"; then
2093 $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2096 echo
2097 for ac_var in $ac_subst_files
2098 do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in
2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 esac
2103 $as_echo "$ac_var='\''$ac_val'\''"
2104 done | sort
2105 echo
2106 fi
2107
2108 if test -s confdefs.h; then
2109 $as_echo "## ----------- ##
2110 ## confdefs.h. ##
2111 ## ----------- ##"
2112 echo
2113 cat confdefs.h
2114 echo
2115 fi
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2123 ' 0
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2128
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2131
2132 $as_echo "/* confdefs.h */" > confdefs.h
2133
2134 # Predefined preprocessor variables.
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 # We do not want a PATH search for config.site.
2167 case $CONFIG_SITE in #((
2168 -*) ac_site_file1=./$CONFIG_SITE;;
2169 */*) ac_site_file1=$CONFIG_SITE;;
2170 *) ac_site_file1=./$CONFIG_SITE;;
2171 esac
2172 elif test "x$prefix" != xNONE; then
2173 ac_site_file1=$prefix/share/config.site
2174 ac_site_file2=$prefix/etc/config.site
2175 else
2176 ac_site_file1=$ac_default_prefix/share/config.site
2177 ac_site_file2=$ac_default_prefix/etc/config.site
2178 fi
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180 do
2181 test "x$ac_site_file" = xNONE && continue
2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185 sed 's/^/| /' "$ac_site_file" >&5
2186 . "$ac_site_file" \
2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2191 fi
2192 done
2193
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special files
2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200 case $cache_file in
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2203 esac
2204 fi
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 >$cache_file
2209 fi
2210
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2220 set,)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,set)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2228 ,);;
2229 *)
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2242 fi
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 fi;;
2248 esac
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2251 case $ac_new_val in
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2254 esac
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 esac
2259 fi
2260 done
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267 fi
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2271
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280 orig_CFLAGS="$CFLAGS"
2281
2282
2283 am__api_version='1.16'
2284
2285 ac_aux_dir=
2286 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2287 if test -f "$ac_dir/install-sh"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/install-sh -c"
2290 break
2291 elif test -f "$ac_dir/install.sh"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/install.sh -c"
2294 break
2295 elif test -f "$ac_dir/shtool"; then
2296 ac_aux_dir=$ac_dir
2297 ac_install_sh="$ac_aux_dir/shtool install -c"
2298 break
2299 fi
2300 done
2301 if test -z "$ac_aux_dir"; then
2302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2303 fi
2304
2305 # These three variables are undocumented and unsupported,
2306 # and are intended to be withdrawn in a future Autoconf release.
2307 # They can cause serious problems if a builder's source tree is in a directory
2308 # whose full name contains unusual characters.
2309 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2310 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2311 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2312
2313
2314 # Find a good install program. We prefer a C program (faster),
2315 # so one script is as good as another. But avoid the broken or
2316 # incompatible versions:
2317 # SysV /etc/install, /usr/sbin/install
2318 # SunOS /usr/etc/install
2319 # IRIX /sbin/install
2320 # AIX /bin/install
2321 # AmigaOS /C/install, which installs bootblocks on floppy discs
2322 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2323 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2324 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2325 # OS/2's system install, which has a completely different semantic
2326 # ./install, which can be erroneously created by make from ./install.sh.
2327 # Reject install programs that cannot install multiple files.
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2329 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2330 if test -z "$INSTALL"; then
2331 if ${ac_cv_path_install+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 # Account for people who put trailing slashes in PATH elements.
2340 case $as_dir/ in #((
2341 ./ | .// | /[cC]/* | \
2342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2343 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2344 /usr/ucb/* ) ;;
2345 *)
2346 # OSF1 and SCO ODT 3.0 have their own names for install.
2347 # Don't use installbsd from OSF since it installs stuff as root
2348 # by default.
2349 for ac_prog in ginstall scoinst install; do
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2352 if test $ac_prog = install &&
2353 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354 # AIX install. It has an incompatible calling convention.
2355 :
2356 elif test $ac_prog = install &&
2357 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # program-specific install script used by HP pwplus--don't use.
2359 :
2360 else
2361 rm -rf conftest.one conftest.two conftest.dir
2362 echo one > conftest.one
2363 echo two > conftest.two
2364 mkdir conftest.dir
2365 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2366 test -s conftest.one && test -s conftest.two &&
2367 test -s conftest.dir/conftest.one &&
2368 test -s conftest.dir/conftest.two
2369 then
2370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2371 break 3
2372 fi
2373 fi
2374 fi
2375 done
2376 done
2377 ;;
2378 esac
2379
2380 done
2381 IFS=$as_save_IFS
2382
2383 rm -rf conftest.one conftest.two conftest.dir
2384
2385 fi
2386 if test "${ac_cv_path_install+set}" = set; then
2387 INSTALL=$ac_cv_path_install
2388 else
2389 # As a last resort, use the slow shell script. Don't cache a
2390 # value for INSTALL within a source directory, because that will
2391 # break other packages using the cache if that directory is
2392 # removed, or if the value is a relative name.
2393 INSTALL=$ac_install_sh
2394 fi
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2397 $as_echo "$INSTALL" >&6; }
2398
2399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2400 # It thinks the first close brace ends the variable substitution.
2401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2402
2403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2404
2405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2408 $as_echo_n "checking whether build environment is sane... " >&6; }
2409 # Reject unsafe characters in $srcdir or the absolute working directory
2410 # name. Accept space and tab only in the latter.
2411 am_lf='
2412 '
2413 case `pwd` in
2414 *[\\\"\#\$\&\'\`$am_lf]*)
2415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2416 esac
2417 case $srcdir in
2418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2419 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2420 esac
2421
2422 # Do 'set' in a subshell so we don't clobber the current shell's
2423 # arguments. Must try -L first in case configure is actually a
2424 # symlink; some systems play weird games with the mod time of symlinks
2425 # (eg FreeBSD returns the mod time of the symlink's containing
2426 # directory).
2427 if (
2428 am_has_slept=no
2429 for am_try in 1 2; do
2430 echo "timestamp, slept: $am_has_slept" > conftest.file
2431 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2432 if test "$*" = "X"; then
2433 # -L didn't work.
2434 set X `ls -t "$srcdir/configure" conftest.file`
2435 fi
2436 if test "$*" != "X $srcdir/configure conftest.file" \
2437 && test "$*" != "X conftest.file $srcdir/configure"; then
2438
2439 # If neither matched, then we have a broken ls. This can happen
2440 # if, for instance, CONFIG_SHELL is bash and it inherits a
2441 # broken ls alias from the environment. This has actually
2442 # happened. Such a system could not be considered "sane".
2443 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2444 alias in your environment" "$LINENO" 5
2445 fi
2446 if test "$2" = conftest.file || test $am_try -eq 2; then
2447 break
2448 fi
2449 # Just in case.
2450 sleep 1
2451 am_has_slept=yes
2452 done
2453 test "$2" = conftest.file
2454 )
2455 then
2456 # Ok.
2457 :
2458 else
2459 as_fn_error $? "newly created file is older than distributed files!
2460 Check your system clock" "$LINENO" 5
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 $as_echo "yes" >&6; }
2464 # If we didn't sleep, we still need to ensure time stamps of config.status and
2465 # generated files are strictly newer.
2466 am_sleep_pid=
2467 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2468 ( sleep 1 ) &
2469 am_sleep_pid=$!
2470 fi
2471
2472 rm -f conftest.file
2473
2474 test "$program_prefix" != NONE &&
2475 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2476 # Use a double $ so make ignores it.
2477 test "$program_suffix" != NONE &&
2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2479 # Double any \ or $.
2480 # By default was `s,x,x', remove it if useless.
2481 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2482 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2483
2484 # Expand $ac_aux_dir to an absolute path.
2485 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2486
2487 if test x"${MISSING+set}" != xset; then
2488 case $am_aux_dir in
2489 *\ * | *\ *)
2490 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2491 *)
2492 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2493 esac
2494 fi
2495 # Use eval to expand $SHELL
2496 if eval "$MISSING --is-lightweight"; then
2497 am_missing_run="$MISSING "
2498 else
2499 am_missing_run=
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2501 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2502 fi
2503
2504 if test x"${install_sh+set}" != xset; then
2505 case $am_aux_dir in
2506 *\ * | *\ *)
2507 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2508 *)
2509 install_sh="\${SHELL} $am_aux_dir/install-sh"
2510 esac
2511 fi
2512
2513 # Installed binaries are usually stripped using 'strip' when the user
2514 # run "make install-strip". However 'strip' might not be the right
2515 # tool to use in cross-compilation environments, therefore Automake
2516 # will honor the 'STRIP' environment variable to overrule this program.
2517 if test "$cross_compiling" != no; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}strip; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if ${ac_cv_prog_STRIP+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$STRIP"; then
2527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 STRIP=$ac_cv_prog_STRIP
2547 if test -n "$STRIP"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2549 $as_echo "$STRIP" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555
2556 fi
2557 if test -z "$ac_cv_prog_STRIP"; then
2558 ac_ct_STRIP=$STRIP
2559 # Extract the first word of "strip", so it can be a program name with args.
2560 set dummy strip; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 if test -n "$ac_ct_STRIP"; then
2567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_ac_ct_STRIP="strip"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585 fi
2586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2587 if test -n "$ac_ct_STRIP"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2589 $as_echo "$ac_ct_STRIP" >&6; }
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 fi
2594
2595 if test "x$ac_ct_STRIP" = x; then
2596 STRIP=":"
2597 else
2598 case $cross_compiling:$ac_tool_warned in
2599 yes:)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2602 ac_tool_warned=yes ;;
2603 esac
2604 STRIP=$ac_ct_STRIP
2605 fi
2606 else
2607 STRIP="$ac_cv_prog_STRIP"
2608 fi
2609
2610 fi
2611 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2612
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2614 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2615 if test -z "$MKDIR_P"; then
2616 if ${ac_cv_path_mkdir+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_prog in mkdir gmkdir; do
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2627 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2628 'mkdir (GNU coreutils) '* | \
2629 'mkdir (coreutils) '* | \
2630 'mkdir (fileutils) '4.1*)
2631 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2632 break 3;;
2633 esac
2634 done
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640
2641 test -d ./--version && rmdir ./--version
2642 if test "${ac_cv_path_mkdir+set}" = set; then
2643 MKDIR_P="$ac_cv_path_mkdir -p"
2644 else
2645 # As a last resort, use the slow shell script. Don't cache a
2646 # value for MKDIR_P within a source directory, because that will
2647 # break other packages using the cache if that directory is
2648 # removed, or if the value is a relative name.
2649 MKDIR_P="$ac_install_sh -d"
2650 fi
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2653 $as_echo "$MKDIR_P" >&6; }
2654
2655 for ac_prog in gawk mawk nawk awk
2656 do
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_AWK+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$AWK"; then
2665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_AWK="$ac_prog"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 AWK=$ac_cv_prog_AWK
2685 if test -n "$AWK"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2687 $as_echo "$AWK" >&6; }
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694 test -n "$AWK" && break
2695 done
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2699 set x ${MAKE-make}
2700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 cat >conftest.make <<\_ACEOF
2705 SHELL = /bin/sh
2706 all:
2707 @echo '@@@%%%=$(MAKE)=@@@%%%'
2708 _ACEOF
2709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2711 *@@@%%%=?*=@@@%%%*)
2712 eval ac_cv_prog_make_${ac_make}_set=yes;;
2713 *)
2714 eval ac_cv_prog_make_${ac_make}_set=no;;
2715 esac
2716 rm -f conftest.make
2717 fi
2718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 SET_MAKE=
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 SET_MAKE="MAKE=${MAKE-make}"
2726 fi
2727
2728 rm -rf .tst 2>/dev/null
2729 mkdir .tst 2>/dev/null
2730 if test -d .tst; then
2731 am__leading_dot=.
2732 else
2733 am__leading_dot=_
2734 fi
2735 rmdir .tst 2>/dev/null
2736
2737 # Check whether --enable-silent-rules was given.
2738 if test "${enable_silent_rules+set}" = set; then :
2739 enableval=$enable_silent_rules;
2740 fi
2741
2742 case $enable_silent_rules in # (((
2743 yes) AM_DEFAULT_VERBOSITY=0;;
2744 no) AM_DEFAULT_VERBOSITY=1;;
2745 *) AM_DEFAULT_VERBOSITY=1;;
2746 esac
2747 am_make=${MAKE-make}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2749 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2750 if ${am_cv_make_support_nested_variables+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if $as_echo 'TRUE=$(BAR$(V))
2754 BAR0=false
2755 BAR1=true
2756 V=1
2757 am__doit:
2758 @$(TRUE)
2759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2760 am_cv_make_support_nested_variables=yes
2761 else
2762 am_cv_make_support_nested_variables=no
2763 fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2766 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2767 if test $am_cv_make_support_nested_variables = yes; then
2768 AM_V='$(V)'
2769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2770 else
2771 AM_V=$AM_DEFAULT_VERBOSITY
2772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2773 fi
2774 AM_BACKSLASH='\'
2775
2776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2777 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2778 # is not polluted with repeated "-I."
2779 am__isrc=' -I$(srcdir)'
2780 # test to see if srcdir already configured
2781 if test -f $srcdir/config.status; then
2782 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2783 fi
2784 fi
2785
2786 # test whether we have cygpath
2787 if test -z "$CYGPATH_W"; then
2788 if (cygpath --version) >/dev/null 2>/dev/null; then
2789 CYGPATH_W='cygpath -w'
2790 else
2791 CYGPATH_W=echo
2792 fi
2793 fi
2794
2795
2796 # Define the identity of the package.
2797 PACKAGE='libev'
2798 VERSION='4.33'
2799
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE "$PACKAGE"
2803 _ACEOF
2804
2805
2806 cat >>confdefs.h <<_ACEOF
2807 #define VERSION "$VERSION"
2808 _ACEOF
2809
2810 # Some tools Automake needs.
2811
2812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2813
2814
2815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2816
2817
2818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2819
2820
2821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2822
2823
2824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2825
2826 # For better backward compatibility. To be removed once Automake 1.9.x
2827 # dies out for good. For more background, see:
2828 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2829 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2830 mkdir_p='$(MKDIR_P)'
2831
2832 # We need awk for the "check" target (and possibly the TAP driver). The
2833 # system "awk" is bad on some platforms.
2834 # Always define AMTAR for backward compatibility. Yes, it's still used
2835 # in the wild :-( We should find a proper way to deprecate it ...
2836 AMTAR='$${TAR-tar}'
2837
2838
2839 # We'll loop over all known methods to create a tar archive until one works.
2840 _am_tools='gnutar pax cpio none'
2841
2842 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2843
2844
2845
2846
2847
2848
2849 # POSIX will say in a future version that running "rm -f" with no argument
2850 # is OK; and we want to be able to make that assumption in our Makefile
2851 # recipes. So use an aggressive probe to check that the usage we want is
2852 # actually supported "in the wild" to an acceptable degree.
2853 # See automake bug#10828.
2854 # To make any issue more visible, cause the running configure to be aborted
2855 # by default if the 'rm' program in use doesn't match our expectations; the
2856 # user can still override this though.
2857 if rm -f && rm -fr && rm -rf; then : OK; else
2858 cat >&2 <<'END'
2859 Oops!
2860
2861 Your 'rm' program seems unable to run without file operands specified
2862 on the command line, even when the '-f' option is present. This is contrary
2863 to the behaviour of most rm programs out there, and not conforming with
2864 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2865
2866 Please tell [email protected] about your system, including the value
2867 of your $PATH and any error possibly output before this message. This
2868 can help us improve future automake versions.
2869
2870 END
2871 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2872 echo 'Configuration will proceed anyway, since you have set the' >&2
2873 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2874 echo >&2
2875 else
2876 cat >&2 <<'END'
2877 Aborting the configuration process, to ensure you take notice of the issue.
2878
2879 You can download and install GNU coreutils to get an 'rm' implementation
2880 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2881
2882 If you want to complete the configuration process using your problematic
2883 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2884 to "yes", and re-run configure.
2885
2886 END
2887 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2888 fi
2889 fi
2890
2891
2892 ac_config_headers="$ac_config_headers config.h"
2893
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2896 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2897 # Check whether --enable-maintainer-mode was given.
2898 if test "${enable_maintainer_mode+set}" = set; then :
2899 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2900 else
2901 USE_MAINTAINER_MODE=no
2902 fi
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2905 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2906 if test $USE_MAINTAINER_MODE = yes; then
2907 MAINTAINER_MODE_TRUE=
2908 MAINTAINER_MODE_FALSE='#'
2909 else
2910 MAINTAINER_MODE_TRUE='#'
2911 MAINTAINER_MODE_FALSE=
2912 fi
2913
2914 MAINT=$MAINTAINER_MODE_TRUE
2915
2916
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 fi
2962 if test -z "$ac_cv_prog_CC"; then
2963 ac_ct_CC=$CC
2964 # Extract the first word of "gcc", so it can be a program name with args.
2965 set dummy gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_ac_ct_CC="gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2994 $as_echo "$ac_ct_CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000 if test "x$ac_ct_CC" = x; then
3001 CC=""
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009 CC=$ac_ct_CC
3010 fi
3011 else
3012 CC="$ac_cv_prog_CC"
3013 fi
3014
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}cc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_CC="${ac_tool_prefix}cc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 fi
3056 if test -z "$CC"; then
3057 # Extract the first word of "cc", so it can be a program name with args.
3058 set dummy cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 ac_prog_rejected=no
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076 ac_prog_rejected=yes
3077 continue
3078 fi
3079 ac_cv_prog_CC="cc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 if test $ac_prog_rejected = yes; then
3088 # We found a bogon in the path, so make sure we never use it.
3089 set dummy $ac_cv_prog_CC
3090 shift
3091 if test $# != 0; then
3092 # We chose a different compiler from the bogus one.
3093 # However, it has the same basename, so the bogon will be chosen
3094 # first if we set CC to just the basename; use the full file name.
3095 shift
3096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3097 fi
3098 fi
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 for ac_prog in cl.exe
3115 do
3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 test -n "$CC" && break
3154 done
3155 fi
3156 if test -z "$CC"; then
3157 ac_ct_CC=$CC
3158 for ac_prog in cl.exe
3159 do
3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3161 set dummy $ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_ac_ct_CC="$ac_prog"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3190 $as_echo "$ac_ct_CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 test -n "$ac_ct_CC" && break
3198 done
3199
3200 if test "x$ac_ct_CC" = x; then
3201 CC=""
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209 CC=$ac_ct_CC
3210 fi
3211 fi
3212
3213 fi
3214
3215
3216 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $? "no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details" "$LINENO" 5; }
3220
3221 # Provide some information about the compiler.
3222 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3223 set X $ac_compile
3224 ac_compiler=$2
3225 for ac_option in --version -v -V -qversion; do
3226 { { ac_try="$ac_compiler $ac_option >&5"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232 $as_echo "$ac_try_echo"; } >&5
3233 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3234 ac_status=$?
3235 if test -s conftest.err; then
3236 sed '10a\
3237 ... rest of stderr output deleted ...
3238 10q' conftest.err >conftest.er1
3239 cat conftest.er1 >&5
3240 fi
3241 rm -f conftest.er1 conftest.err
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }
3244 done
3245
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248
3249 int
3250 main ()
3251 {
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 ac_clean_files_save=$ac_clean_files
3258 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3259 # Try to create an executable without -o first, disregard a.out.
3260 # It will help us diagnose broken compilers, and finding out an intuition
3261 # of exeext.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3263 $as_echo_n "checking whether the C compiler works... " >&6; }
3264 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3265
3266 # The possible output files:
3267 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268
3269 ac_rmfiles=
3270 for ac_file in $ac_files
3271 do
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3275 esac
3276 done
3277 rm -f $ac_rmfiles
3278
3279 if { { ac_try="$ac_link_default"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_link_default") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; then :
3290 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3291 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3292 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3293 # so that the user can short-circuit this test for compilers unknown to
3294 # Autoconf.
3295 for ac_file in $ac_files ''
3296 do
3297 test -f "$ac_file" || continue
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3300 ;;
3301 [ab].out )
3302 # We found the default executable, but exeext='' is most
3303 # certainly right.
3304 break;;
3305 *.* )
3306 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3307 then :; else
3308 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 fi
3310 # We set ac_cv_exeext here because the later test for it is not
3311 # safe: cross compilers may not add the suffix if given an `-o'
3312 # argument, so we may need to know it at that point already.
3313 # Even if this section looks crufty: it has the advantage of
3314 # actually working.
3315 break;;
3316 * )
3317 break;;
3318 esac
3319 done
3320 test "$ac_cv_exeext" = no && ac_cv_exeext=
3321
3322 else
3323 ac_file=''
3324 fi
3325 if test -z "$ac_file"; then :
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error 77 "C compiler cannot create executables
3334 See \`config.log' for more details" "$LINENO" 5; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3340 $as_echo_n "checking for C compiler default output file name... " >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3342 $as_echo "$ac_file" >&6; }
3343 ac_exeext=$ac_cv_exeext
3344
3345 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3346 ac_clean_files=$ac_clean_files_save
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3348 $as_echo_n "checking for suffix of executables... " >&6; }
3349 if { { ac_try="$ac_link"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_link") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; then :
3360 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3361 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3362 # work properly (i.e., refer to `conftest.exe'), while it won't with
3363 # `rm'.
3364 for ac_file in conftest.exe conftest conftest.*; do
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 break;;
3370 * ) break;;
3371 esac
3372 done
3373 else
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3377 See \`config.log' for more details" "$LINENO" 5; }
3378 fi
3379 rm -f conftest conftest$ac_cv_exeext
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3381 $as_echo "$ac_cv_exeext" >&6; }
3382
3383 rm -f conftest.$ac_ext
3384 EXEEXT=$ac_cv_exeext
3385 ac_exeext=$EXEEXT
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388 #include <stdio.h>
3389 int
3390 main ()
3391 {
3392 FILE *f = fopen ("conftest.out", "w");
3393 return ferror (f) || fclose (f) != 0;
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 ac_clean_files="$ac_clean_files conftest.out"
3400 # Check that the compiler produces executables we can run. If not, either
3401 # the compiler is broken, or we cross compile.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3403 $as_echo_n "checking whether we are cross compiling... " >&6; }
3404 if test "$cross_compiling" != yes; then
3405 { { ac_try="$ac_link"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }
3416 if { ac_try='./conftest$ac_cv_exeext'
3417 { { case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; }; then
3427 cross_compiling=no
3428 else
3429 if test "$cross_compiling" = maybe; then
3430 cross_compiling=yes
3431 else
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot run C compiled programs.
3435 If you meant to cross compile, use \`--host'.
3436 See \`config.log' for more details" "$LINENO" 5; }
3437 fi
3438 fi
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3441 $as_echo "$cross_compiling" >&6; }
3442
3443 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3444 ac_clean_files=$ac_clean_files_save
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3446 $as_echo_n "checking for suffix of object files... " >&6; }
3447 if ${ac_cv_objext+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.o conftest.obj
3462 if { { ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compile") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 for ac_file in conftest.o conftest.obj conftest.*; do
3474 test -f "$ac_file" || continue;
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478 break;;
3479 esac
3480 done
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "cannot compute suffix of object files: cannot compile
3488 See \`config.log' for more details" "$LINENO" 5; }
3489 fi
3490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 $as_echo "$ac_cv_objext" >&6; }
3494 OBJEXT=$ac_cv_objext
3495 ac_objext=$OBJEXT
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3498 if ${ac_cv_c_compiler_gnu+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507 #ifndef __GNUC__
3508 choke me
3509 #endif
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_compiler_gnu=yes
3517 else
3518 ac_compiler_gnu=no
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3522
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3526 if test $ac_compiler_gnu = yes; then
3527 GCC=yes
3528 else
3529 GCC=
3530 fi
3531 ac_test_CFLAGS=${CFLAGS+set}
3532 ac_save_CFLAGS=$CFLAGS
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3535 if ${ac_cv_prog_cc_g+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_save_c_werror_flag=$ac_c_werror_flag
3539 ac_c_werror_flag=yes
3540 ac_cv_prog_cc_g=no
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544
3545 int
3546 main ()
3547 {
3548
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3555 else
3556 CFLAGS=""
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569
3570 else
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3595 $as_echo "$ac_cv_prog_cc_g" >&6; }
3596 if test "$ac_test_CFLAGS" = set; then
3597 CFLAGS=$ac_save_CFLAGS
3598 elif test $ac_cv_prog_cc_g = yes; then
3599 if test "$GCC" = yes; then
3600 CFLAGS="-g -O2"
3601 else
3602 CFLAGS="-g"
3603 fi
3604 else
3605 if test "$GCC" = yes; then
3606 CFLAGS="-O2"
3607 else
3608 CFLAGS=
3609 fi
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3613 if ${ac_cv_prog_cc_c89+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdarg.h>
3621 #include <stdio.h>
3622 struct stat;
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3629 {
3630 return p[i];
3631 }
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3633 {
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3640 }
3641
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3662 int
3663 main ()
3664 {
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 do
3673 CC="$ac_save_CC $ac_arg"
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_c89=$ac_arg
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 done
3680 rm -f conftest.$ac_ext
3681 CC=$ac_save_CC
3682
3683 fi
3684 # AC_CACHE_VAL
3685 case "x$ac_cv_prog_cc_c89" in
3686 x)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 $as_echo "none needed" >&6; } ;;
3689 xno)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691 $as_echo "unsupported" >&6; } ;;
3692 *)
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3695 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 esac
3697 if test "x$ac_cv_prog_cc_c89" != xno; then :
3698
3699 fi
3700
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3713 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3714 if ${am_cv_prog_cc_c_o+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 # Make sure it works both with $CC and with simple cc.
3729 # Following AC_PROG_CC_C_O, we do the test twice because some
3730 # compilers refuse to overwrite an existing .o file with -o,
3731 # though they will create one.
3732 am_cv_prog_cc_c_o=yes
3733 for am_i in 1 2; do
3734 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3735 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } \
3739 && test -f conftest2.$ac_objext; then
3740 : OK
3741 else
3742 am_cv_prog_cc_c_o=no
3743 break
3744 fi
3745 done
3746 rm -f core conftest*
3747 unset am_i
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3750 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3751 if test "$am_cv_prog_cc_c_o" != yes; then
3752 # Losing compiler, so override with the script.
3753 # FIXME: It is wrong to rewrite CC.
3754 # But if we don't then we get into trouble of one sort or another.
3755 # A longer-term fix would be to have automake use am__CC in this case,
3756 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3757 CC="$am_aux_dir/compile $CC"
3758 fi
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765 DEPDIR="${am__leading_dot}deps"
3766
3767 ac_config_commands="$ac_config_commands depfiles"
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3770 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3771 cat > confinc.mk << 'END'
3772 am__doit:
3773 @echo this is the am__doit target >confinc.out
3774 .PHONY: am__doit
3775 END
3776 am__include="#"
3777 am__quote=
3778 # BSD make does it like this.
3779 echo '.include "confinc.mk" # ignored' > confmf.BSD
3780 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3781 echo 'include confinc.mk # ignored' > confmf.GNU
3782 _am_result=no
3783 for s in GNU BSD; do
3784 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3785 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }
3789 case $?:`cat confinc.out 2>/dev/null` in #(
3790 '0:this is the am__doit target') :
3791 case $s in #(
3792 BSD) :
3793 am__include='.include' am__quote='"' ;; #(
3794 *) :
3795 am__include='include' am__quote='' ;;
3796 esac ;; #(
3797 *) :
3798 ;;
3799 esac
3800 if test "$am__include" != "#"; then
3801 _am_result="yes ($s style)"
3802 break
3803 fi
3804 done
3805 rm -f confinc.* confmf.*
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3807 $as_echo "${_am_result}" >&6; }
3808
3809 # Check whether --enable-dependency-tracking was given.
3810 if test "${enable_dependency_tracking+set}" = set; then :
3811 enableval=$enable_dependency_tracking;
3812 fi
3813
3814 if test "x$enable_dependency_tracking" != xno; then
3815 am_depcomp="$ac_aux_dir/depcomp"
3816 AMDEPBACKSLASH='\'
3817 am__nodep='_no'
3818 fi
3819 if test "x$enable_dependency_tracking" != xno; then
3820 AMDEP_TRUE=
3821 AMDEP_FALSE='#'
3822 else
3823 AMDEP_TRUE='#'
3824 AMDEP_FALSE=
3825 fi
3826
3827
3828
3829 depcc="$CC" am_compiler_list=
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named 'D' -- because '-MD' means "put the output
3841 # in D".
3842 rm -rf conftest.dir
3843 mkdir conftest.dir
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3847 cd conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3853 # directory.
3854 mkdir sub
3855
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 fi
3860 am__universal=false
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 esac
3864
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3877 # Solaris 10 /bin/sh.
3878 echo '/* dummy */' > sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle '-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs.
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
3888 case $depmode in
3889 gcc)
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3892 ;;
3893 nosideeffect)
3894 # After this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested.
3896 if test "x$enable_dependency_tracking" = xyes; then
3897 continue
3898 else
3899 break
3900 fi
3901 ;;
3902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903 # This compiler won't grok '-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3907 am__minus_obj=
3908 ;;
3909 none) break ;;
3910 esac
3911 if depmode=$depmode \
3912 source=sub/conftest.c object=$am__obj \
3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915 >/dev/null 2>conftest.err &&
3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3930 break
3931 fi
3932 fi
3933 done
3934
3935 cd ..
3936 rm -rf conftest.dir
3937 else
3938 am_cv_CC_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
3946 if
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_TRUE=
3950 am__fastdepCC_FALSE='#'
3951 else
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
3954 fi
3955
3956
3957
3958 if test -z "$orig_CFLAGS"; then
3959 if test x$GCC = xyes; then
3960 CFLAGS="-g -O3"
3961 fi
3962 fi
3963
3964
3965 case `pwd` in
3966 *\ * | *\ *)
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3968 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3969 esac
3970
3971
3972
3973 macro_version='2.4.6'
3974 macro_revision='2.4.6'
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988 ltmain=$ac_aux_dir/ltmain.sh
3989
3990 # Make sure we can run config.sub.
3991 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3992 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3993
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3995 $as_echo_n "checking build system type... " >&6; }
3996 if ${ac_cv_build+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 ac_build_alias=$build_alias
4000 test "x$ac_build_alias" = x &&
4001 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4002 test "x$ac_build_alias" = x &&
4003 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4004 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4005 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4006
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4009 $as_echo "$ac_cv_build" >&6; }
4010 case $ac_cv_build in
4011 *-*-*) ;;
4012 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4013 esac
4014 build=$ac_cv_build
4015 ac_save_IFS=$IFS; IFS='-'
4016 set x $ac_cv_build
4017 shift
4018 build_cpu=$1
4019 build_vendor=$2
4020 shift; shift
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4023 build_os=$*
4024 IFS=$ac_save_IFS
4025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4026
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4029 $as_echo_n "checking host system type... " >&6; }
4030 if ${ac_cv_host+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test "x$host_alias" = x; then
4034 ac_cv_host=$ac_cv_build
4035 else
4036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4038 fi
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4042 $as_echo "$ac_cv_host" >&6; }
4043 case $ac_cv_host in
4044 *-*-*) ;;
4045 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4046 esac
4047 host=$ac_cv_host
4048 ac_save_IFS=$IFS; IFS='-'
4049 set x $ac_cv_host
4050 shift
4051 host_cpu=$1
4052 host_vendor=$2
4053 shift; shift
4054 # Remember, the first character of IFS is used to create $*,
4055 # except with old shells:
4056 host_os=$*
4057 IFS=$ac_save_IFS
4058 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4059
4060
4061 # Backslashify metacharacters that are still active within
4062 # double-quoted strings.
4063 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4064
4065 # Same as above, but do not quote variable references.
4066 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4067
4068 # Sed substitution to delay expansion of an escaped shell variable in a
4069 # double_quote_subst'ed string.
4070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4071
4072 # Sed substitution to delay expansion of an escaped single quote.
4073 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4074
4075 # Sed substitution to avoid accidental globbing in evaled expressions
4076 no_glob_subst='s/\*/\\\*/g'
4077
4078 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4079 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4080 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4083 $as_echo_n "checking how to print strings... " >&6; }
4084 # Test print first, because it will be a builtin if present.
4085 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4086 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4087 ECHO='print -r --'
4088 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4089 ECHO='printf %s\n'
4090 else
4091 # Use this function as a fallback that always works.
4092 func_fallback_echo ()
4093 {
4094 eval 'cat <<_LTECHO_EOF
4095 $1
4096 _LTECHO_EOF'
4097 }
4098 ECHO='func_fallback_echo'
4099 fi
4100
4101 # func_echo_all arg...
4102 # Invoke $ECHO with all args, space-separated.
4103 func_echo_all ()
4104 {
4105 $ECHO ""
4106 }
4107
4108 case $ECHO in
4109 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4110 $as_echo "printf" >&6; } ;;
4111 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4112 $as_echo "print -r" >&6; } ;;
4113 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4114 $as_echo "cat" >&6; } ;;
4115 esac
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4131 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4132 if ${ac_cv_path_SED+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4136 for ac_i in 1 2 3 4 5 6 7; do
4137 ac_script="$ac_script$as_nl$ac_script"
4138 done
4139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4140 { ac_script=; unset ac_script;}
4141 if test -z "$SED"; then
4142 ac_path_SED_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in sed gsed; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4152 as_fn_executable_p "$ac_path_SED" || continue
4153 # Check for GNU ac_path_SED and select it if it is found.
4154 # Check for GNU $ac_path_SED
4155 case `"$ac_path_SED" --version 2>&1` in
4156 *GNU*)
4157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4158 *)
4159 ac_count=0
4160 $as_echo_n 0123456789 >"conftest.in"
4161 while :
4162 do
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo '' >> "conftest.nl"
4167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 as_fn_arith $ac_count + 1 && ac_count=$as_val
4170 if test $ac_count -gt ${ac_path_SED_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_SED="$ac_path_SED"
4173 ac_path_SED_max=$ac_count
4174 fi
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4177 done
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 esac
4180
4181 $ac_path_SED_found && break 3
4182 done
4183 done
4184 done
4185 IFS=$as_save_IFS
4186 if test -z "$ac_cv_path_SED"; then
4187 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4188 fi
4189 else
4190 ac_cv_path_SED=$SED
4191 fi
4192
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4195 $as_echo "$ac_cv_path_SED" >&6; }
4196 SED="$ac_cv_path_SED"
4197 rm -f conftest.sed
4198
4199 test -z "$SED" && SED=sed
4200 Xsed="$SED -e 1s/^X//"
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if ${ac_cv_path_GREP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in grep ggrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4228 as_fn_executable_p "$ac_path_GREP" || continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4234 *)
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP="$ac_path_GREP"
4249 ac_path_GREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257 $ac_path_GREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_GREP"; then
4263 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 fi
4265 else
4266 ac_cv_path_GREP=$GREP
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4271 $as_echo "$ac_cv_path_GREP" >&6; }
4272 GREP="$ac_cv_path_GREP"
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4276 $as_echo_n "checking for egrep... " >&6; }
4277 if ${ac_cv_path_EGREP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4281 then ac_cv_path_EGREP="$GREP -E"
4282 else
4283 if test -z "$EGREP"; then
4284 ac_path_EGREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in egrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_EGREP" || continue
4295 # Check for GNU ac_path_EGREP and select it if it is found.
4296 # Check for GNU $ac_path_EGREP
4297 case `"$ac_path_EGREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'EGREP' >> "conftest.nl"
4309 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_EGREP="$ac_path_EGREP"
4315 ac_path_EGREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_EGREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_EGREP"; then
4329 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_EGREP=$EGREP
4333 fi
4334
4335 fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4338 $as_echo "$ac_cv_path_EGREP" >&6; }
4339 EGREP="$ac_cv_path_EGREP"
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4343 $as_echo_n "checking for fgrep... " >&6; }
4344 if ${ac_cv_path_FGREP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4348 then ac_cv_path_FGREP="$GREP -F"
4349 else
4350 if test -z "$FGREP"; then
4351 ac_path_FGREP_found=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_prog in fgrep; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p "$ac_path_FGREP" || continue
4362 # Check for GNU ac_path_FGREP and select it if it is found.
4363 # Check for GNU $ac_path_FGREP
4364 case `"$ac_path_FGREP" --version 2>&1` in
4365 *GNU*)
4366 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4367 *)
4368 ac_count=0
4369 $as_echo_n 0123456789 >"conftest.in"
4370 while :
4371 do
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'FGREP' >> "conftest.nl"
4376 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378 as_fn_arith $ac_count + 1 && ac_count=$as_val
4379 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_FGREP="$ac_path_FGREP"
4382 ac_path_FGREP_max=$ac_count
4383 fi
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4386 done
4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 esac
4389
4390 $ac_path_FGREP_found && break 3
4391 done
4392 done
4393 done
4394 IFS=$as_save_IFS
4395 if test -z "$ac_cv_path_FGREP"; then
4396 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 fi
4398 else
4399 ac_cv_path_FGREP=$FGREP
4400 fi
4401
4402 fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4405 $as_echo "$ac_cv_path_FGREP" >&6; }
4406 FGREP="$ac_cv_path_FGREP"
4407
4408
4409 test -z "$GREP" && GREP=grep
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 # Check whether --with-gnu-ld was given.
4430 if test "${with_gnu_ld+set}" = set; then :
4431 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4432 else
4433 with_gnu_ld=no
4434 fi
4435
4436 ac_prog=ld
4437 if test yes = "$GCC"; then
4438 # Check if gcc -print-prog-name=ld gives a path.
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4440 $as_echo_n "checking for ld used by $CC... " >&6; }
4441 case $host in
4442 *-*-mingw*)
4443 # gcc leaves a trailing carriage return, which upsets mingw
4444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4445 *)
4446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4447 esac
4448 case $ac_prog in
4449 # Accept absolute paths.
4450 [\\/]* | ?:[\\/]*)
4451 re_direlt='/[^/][^/]*/\.\./'
4452 # Canonicalize the pathname of ld
4453 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4454 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4455 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4456 done
4457 test -z "$LD" && LD=$ac_prog
4458 ;;
4459 "")
4460 # If it fails, then pretend we aren't using GCC.
4461 ac_prog=ld
4462 ;;
4463 *)
4464 # If it is relative, then search for the first ld in PATH.
4465 with_gnu_ld=unknown
4466 ;;
4467 esac
4468 elif test yes = "$with_gnu_ld"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4470 $as_echo_n "checking for GNU ld... " >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4473 $as_echo_n "checking for non-GNU ld... " >&6; }
4474 fi
4475 if ${lt_cv_path_LD+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -z "$LD"; then
4479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH; do
4481 IFS=$lt_save_ifs
4482 test -z "$ac_dir" && ac_dir=.
4483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4484 lt_cv_path_LD=$ac_dir/$ac_prog
4485 # Check to see if the program is GNU ld. I'd rather use --version,
4486 # but apparently some variants of GNU ld only accept -v.
4487 # Break only if it was the GNU/non-GNU ld that we prefer.
4488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4489 *GNU* | *'with BFD'*)
4490 test no != "$with_gnu_ld" && break
4491 ;;
4492 *)
4493 test yes != "$with_gnu_ld" && break
4494 ;;
4495 esac
4496 fi
4497 done
4498 IFS=$lt_save_ifs
4499 else
4500 lt_cv_path_LD=$LD # Let the user override the test with a path.
4501 fi
4502 fi
4503
4504 LD=$lt_cv_path_LD
4505 if test -n "$LD"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4507 $as_echo "$LD" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4515 if ${lt_cv_prog_gnu_ld+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4519 case `$LD -v 2>&1 </dev/null` in
4520 *GNU* | *'with BFD'*)
4521 lt_cv_prog_gnu_ld=yes
4522 ;;
4523 *)
4524 lt_cv_prog_gnu_ld=no
4525 ;;
4526 esac
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4530 with_gnu_ld=$lt_cv_prog_gnu_ld
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4541 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4542 if ${lt_cv_path_NM+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$NM"; then
4546 # Let the user override the test.
4547 lt_cv_path_NM=$NM
4548 else
4549 lt_nm_to_check=${ac_tool_prefix}nm
4550 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4551 lt_nm_to_check="$lt_nm_to_check nm"
4552 fi
4553 for lt_tmp_nm in $lt_nm_to_check; do
4554 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4555 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4556 IFS=$lt_save_ifs
4557 test -z "$ac_dir" && ac_dir=.
4558 tmp_nm=$ac_dir/$lt_tmp_nm
4559 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4560 # Check to see if the nm accepts a BSD-compat flag.
4561 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4562 # nm: unknown option "B" ignored
4563 # Tru64's nm complains that /dev/null is an invalid object file
4564 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4565 case $build_os in
4566 mingw*) lt_bad_file=conftest.nm/nofile ;;
4567 *) lt_bad_file=/dev/null ;;
4568 esac
4569 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4570 *$lt_bad_file* | *'Invalid file or object type'*)
4571 lt_cv_path_NM="$tmp_nm -B"
4572 break 2
4573 ;;
4574 *)
4575 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4576 */dev/null*)
4577 lt_cv_path_NM="$tmp_nm -p"
4578 break 2
4579 ;;
4580 *)
4581 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4582 continue # so that we can try to find one that supports BSD flags
4583 ;;
4584 esac
4585 ;;
4586 esac
4587 fi
4588 done
4589 IFS=$lt_save_ifs
4590 done
4591 : ${lt_cv_path_NM=no}
4592 fi
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4595 $as_echo "$lt_cv_path_NM" >&6; }
4596 if test no != "$lt_cv_path_NM"; then
4597 NM=$lt_cv_path_NM
4598 else
4599 # Didn't find any BSD compatible name lister, look for dumpbin.
4600 if test -n "$DUMPBIN"; then :
4601 # Let the user override the test.
4602 else
4603 if test -n "$ac_tool_prefix"; then
4604 for ac_prog in dumpbin "link -dump"
4605 do
4606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_prog_DUMPBIN+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -n "$DUMPBIN"; then
4614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 DUMPBIN=$ac_cv_prog_DUMPBIN
4634 if test -n "$DUMPBIN"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4636 $as_echo "$DUMPBIN" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642
4643 test -n "$DUMPBIN" && break
4644 done
4645 fi
4646 if test -z "$DUMPBIN"; then
4647 ac_ct_DUMPBIN=$DUMPBIN
4648 for ac_prog in dumpbin "link -dump"
4649 do
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$ac_ct_DUMPBIN"; then
4658 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4678 if test -n "$ac_ct_DUMPBIN"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4680 $as_echo "$ac_ct_DUMPBIN" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 test -n "$ac_ct_DUMPBIN" && break
4688 done
4689
4690 if test "x$ac_ct_DUMPBIN" = x; then
4691 DUMPBIN=":"
4692 else
4693 case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4698 esac
4699 DUMPBIN=$ac_ct_DUMPBIN
4700 fi
4701 fi
4702
4703 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4704 *COFF*)
4705 DUMPBIN="$DUMPBIN -symbols -headers"
4706 ;;
4707 *)
4708 DUMPBIN=:
4709 ;;
4710 esac
4711 fi
4712
4713 if test : != "$DUMPBIN"; then
4714 NM=$DUMPBIN
4715 fi
4716 fi
4717 test -z "$NM" && NM=nm
4718
4719
4720
4721
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4725 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4726 if ${lt_cv_nm_interface+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 lt_cv_nm_interface="BSD nm"
4730 echo "int some_variable = 0;" > conftest.$ac_ext
4731 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4732 (eval "$ac_compile" 2>conftest.err)
4733 cat conftest.err >&5
4734 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4735 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4736 cat conftest.err >&5
4737 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4738 cat conftest.out >&5
4739 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4740 lt_cv_nm_interface="MS dumpbin"
4741 fi
4742 rm -f conftest*
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4745 $as_echo "$lt_cv_nm_interface" >&6; }
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4748 $as_echo_n "checking whether ln -s works... " >&6; }
4749 LN_S=$as_ln_s
4750 if test "$LN_S" = "ln -s"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4752 $as_echo "yes" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4755 $as_echo "no, using $LN_S" >&6; }
4756 fi
4757
4758 # find the maximum length of command line arguments
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4760 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4761 if ${lt_cv_sys_max_cmd_len+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 i=0
4765 teststring=ABCD
4766
4767 case $build_os in
4768 msdosdjgpp*)
4769 # On DJGPP, this test can blow up pretty badly due to problems in libc
4770 # (any single argument exceeding 2000 bytes causes a buffer overrun
4771 # during glob expansion). Even if it were fixed, the result of this
4772 # check would be larger than it should be.
4773 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4774 ;;
4775
4776 gnu*)
4777 # Under GNU Hurd, this test is not required because there is
4778 # no limit to the length of command line arguments.
4779 # Libtool will interpret -1 as no limit whatsoever
4780 lt_cv_sys_max_cmd_len=-1;
4781 ;;
4782
4783 cygwin* | mingw* | cegcc*)
4784 # On Win9x/ME, this test blows up -- it succeeds, but takes
4785 # about 5 minutes as the teststring grows exponentially.
4786 # Worse, since 9x/ME are not pre-emptively multitasking,
4787 # you end up with a "frozen" computer, even though with patience
4788 # the test eventually succeeds (with a max line length of 256k).
4789 # Instead, let's just punt: use the minimum linelength reported by
4790 # all of the supported platforms: 8192 (on NT/2K/XP).
4791 lt_cv_sys_max_cmd_len=8192;
4792 ;;
4793
4794 mint*)
4795 # On MiNT this can take a long time and run out of memory.
4796 lt_cv_sys_max_cmd_len=8192;
4797 ;;
4798
4799 amigaos*)
4800 # On AmigaOS with pdksh, this test takes hours, literally.
4801 # So we just punt and use a minimum line length of 8192.
4802 lt_cv_sys_max_cmd_len=8192;
4803 ;;
4804
4805 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4806 # This has been around since 386BSD, at least. Likely further.
4807 if test -x /sbin/sysctl; then
4808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4809 elif test -x /usr/sbin/sysctl; then
4810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4811 else
4812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4813 fi
4814 # And add a safety zone
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4817 ;;
4818
4819 interix*)
4820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4821 lt_cv_sys_max_cmd_len=196608
4822 ;;
4823
4824 os2*)
4825 # The test takes a long time on OS/2.
4826 lt_cv_sys_max_cmd_len=8192
4827 ;;
4828
4829 osf*)
4830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4832 # nice to cause kernel panics so lets avoid the loop below.
4833 # First set a reasonable default.
4834 lt_cv_sys_max_cmd_len=16384
4835 #
4836 if test -x /sbin/sysconfig; then
4837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4839 esac
4840 fi
4841 ;;
4842 sco3.2v5*)
4843 lt_cv_sys_max_cmd_len=102400
4844 ;;
4845 sysv5* | sco5v6* | sysv4.2uw2*)
4846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4847 if test -n "$kargmax"; then
4848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4849 else
4850 lt_cv_sys_max_cmd_len=32768
4851 fi
4852 ;;
4853 *)
4854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4855 if test -n "$lt_cv_sys_max_cmd_len" && \
4856 test undefined != "$lt_cv_sys_max_cmd_len"; then
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4859 else
4860 # Make teststring a little bigger before we do anything with it.
4861 # a 1K string should be a reasonable start.
4862 for i in 1 2 3 4 5 6 7 8; do
4863 teststring=$teststring$teststring
4864 done
4865 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4866 # If test is not a shell built-in, we'll probably end up computing a
4867 # maximum length that is only half of the actual maximum length, but
4868 # we can't tell.
4869 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4870 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4871 test 17 != "$i" # 1/2 MB should be enough
4872 do
4873 i=`expr $i + 1`
4874 teststring=$teststring$teststring
4875 done
4876 # Only check the string length outside the loop.
4877 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4878 teststring=
4879 # Add a significant safety factor because C++ compilers can tack on
4880 # massive amounts of additional arguments before passing them to the
4881 # linker. It appears as though 1/2 is a usable value.
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4883 fi
4884 ;;
4885 esac
4886
4887 fi
4888
4889 if test -n "$lt_cv_sys_max_cmd_len"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4891 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4894 $as_echo "none" >&6; }
4895 fi
4896 max_cmd_len=$lt_cv_sys_max_cmd_len
4897
4898
4899
4900
4901
4902
4903 : ${CP="cp -f"}
4904 : ${MV="mv -f"}
4905 : ${RM="rm -f"}
4906
4907 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4908 lt_unset=unset
4909 else
4910 lt_unset=false
4911 fi
4912
4913
4914
4915
4916
4917 # test EBCDIC or ASCII
4918 case `echo X|tr X '\101'` in
4919 A) # ASCII based system
4920 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4921 lt_SP2NL='tr \040 \012'
4922 lt_NL2SP='tr \015\012 \040\040'
4923 ;;
4924 *) # EBCDIC based system
4925 lt_SP2NL='tr \100 \n'
4926 lt_NL2SP='tr \r\n \100\100'
4927 ;;
4928 esac
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4939 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4940 if ${lt_cv_to_host_file_cmd+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 case $host in
4944 *-*-mingw* )
4945 case $build in
4946 *-*-mingw* ) # actually msys
4947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4948 ;;
4949 *-*-cygwin* )
4950 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4951 ;;
4952 * ) # otherwise, assume *nix
4953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4954 ;;
4955 esac
4956 ;;
4957 *-*-cygwin* )
4958 case $build in
4959 *-*-mingw* ) # actually msys
4960 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4961 ;;
4962 *-*-cygwin* )
4963 lt_cv_to_host_file_cmd=func_convert_file_noop
4964 ;;
4965 * ) # otherwise, assume *nix
4966 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4967 ;;
4968 esac
4969 ;;
4970 * ) # unhandled hosts (and "normal" native builds)
4971 lt_cv_to_host_file_cmd=func_convert_file_noop
4972 ;;
4973 esac
4974
4975 fi
4976
4977 to_host_file_cmd=$lt_cv_to_host_file_cmd
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4979 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4980
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4986 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4987 if ${lt_cv_to_tool_file_cmd+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 #assume ordinary cross tools, or native build.
4991 lt_cv_to_tool_file_cmd=func_convert_file_noop
4992 case $host in
4993 *-*-mingw* )
4994 case $build in
4995 *-*-mingw* ) # actually msys
4996 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4997 ;;
4998 esac
4999 ;;
5000 esac
5001
5002 fi
5003
5004 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5006 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5007
5008
5009
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5013 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5014 if ${lt_cv_ld_reload_flag+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 lt_cv_ld_reload_flag='-r'
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5020 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5021 reload_flag=$lt_cv_ld_reload_flag
5022 case $reload_flag in
5023 "" | " "*) ;;
5024 *) reload_flag=" $reload_flag" ;;
5025 esac
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 case $host_os in
5028 cygwin* | mingw* | pw32* | cegcc*)
5029 if test yes != "$GCC"; then
5030 reload_cmds=false
5031 fi
5032 ;;
5033 darwin*)
5034 if test yes = "$GCC"; then
5035 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5036 else
5037 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5038 fi
5039 ;;
5040 esac
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5052 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_OBJDUMP+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$OBJDUMP"; then
5059 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 fi
5077 fi
5078 OBJDUMP=$ac_cv_prog_OBJDUMP
5079 if test -n "$OBJDUMP"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5081 $as_echo "$OBJDUMP" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086
5087
5088 fi
5089 if test -z "$ac_cv_prog_OBJDUMP"; then
5090 ac_ct_OBJDUMP=$OBJDUMP
5091 # Extract the first word of "objdump", so it can be a program name with args.
5092 set dummy objdump; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$ac_ct_OBJDUMP"; then
5099 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 fi
5117 fi
5118 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5119 if test -n "$ac_ct_OBJDUMP"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5121 $as_echo "$ac_ct_OBJDUMP" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126
5127 if test "x$ac_ct_OBJDUMP" = x; then
5128 OBJDUMP="false"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 OBJDUMP=$ac_ct_OBJDUMP
5137 fi
5138 else
5139 OBJDUMP="$ac_cv_prog_OBJDUMP"
5140 fi
5141
5142 test -z "$OBJDUMP" && OBJDUMP=objdump
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5153 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5154 if ${lt_cv_deplibs_check_method+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 lt_cv_file_magic_cmd='$MAGIC_CMD'
5158 lt_cv_file_magic_test_file=
5159 lt_cv_deplibs_check_method='unknown'
5160 # Need to set the preceding variable on all platforms that support
5161 # interlibrary dependencies.
5162 # 'none' -- dependencies not supported.
5163 # 'unknown' -- same as none, but documents that we really don't know.
5164 # 'pass_all' -- all dependencies passed with no checks.
5165 # 'test_compile' -- check by making test program.
5166 # 'file_magic [[regex]]' -- check by looking for files in library path
5167 # that responds to the $file_magic_cmd with a given extended regex.
5168 # If you have 'file' or equivalent on your system and you're not sure
5169 # whether 'pass_all' will *always* work, you probably want this one.
5170
5171 case $host_os in
5172 aix[4-9]*)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 beos*)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179
5180 bsdi[45]*)
5181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5182 lt_cv_file_magic_cmd='/usr/bin/file -L'
5183 lt_cv_file_magic_test_file=/shlib/libc.so
5184 ;;
5185
5186 cygwin*)
5187 # func_win32_libid is a shell function defined in ltmain.sh
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5190 ;;
5191
5192 mingw* | pw32*)
5193 # Base MSYS/MinGW do not provide the 'file' command needed by
5194 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5195 # unless we find 'file', for example because we are cross-compiling.
5196 if ( file / ) >/dev/null 2>&1; then
5197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5198 lt_cv_file_magic_cmd='func_win32_libid'
5199 else
5200 # Keep this pattern in sync with the one in func_win32_libid.
5201 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5202 lt_cv_file_magic_cmd='$OBJDUMP -f'
5203 fi
5204 ;;
5205
5206 cegcc*)
5207 # use the weaker test based on 'objdump'. See mingw*.
5208 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209 lt_cv_file_magic_cmd='$OBJDUMP -f'
5210 ;;
5211
5212 darwin* | rhapsody*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 freebsd* | dragonfly*)
5217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218 case $host_cpu in
5219 i*86 )
5220 # Not sure whether the presence of OpenBSD here was a mistake.
5221 # Let's accept both of them until this is cleared up.
5222 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223 lt_cv_file_magic_cmd=/usr/bin/file
5224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225 ;;
5226 esac
5227 else
5228 lt_cv_deplibs_check_method=pass_all
5229 fi
5230 ;;
5231
5232 haiku*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 hpux10.20* | hpux11*)
5237 lt_cv_file_magic_cmd=/usr/bin/file
5238 case $host_cpu in
5239 ia64*)
5240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242 ;;
5243 hppa*64*)
5244 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]'
5245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5246 ;;
5247 *)
5248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5250 ;;
5251 esac
5252 ;;
5253
5254 interix[3-9]*)
5255 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5257 ;;
5258
5259 irix5* | irix6* | nonstopux*)
5260 case $LD in
5261 *-32|*"-32 ") libmagic=32-bit;;
5262 *-n32|*"-n32 ") libmagic=N32;;
5263 *-64|*"-64 ") libmagic=64-bit;;
5264 *) libmagic=never-match;;
5265 esac
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268
5269 # This must be glibc/ELF.
5270 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 netbsd* | netbsdelf*-gnu)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5277 else
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5279 fi
5280 ;;
5281
5282 newos6*)
5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5286 ;;
5287
5288 *nto* | *qnx*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 openbsd* | bitrig*)
5293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5295 else
5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5297 fi
5298 ;;
5299
5300 osf3* | osf4* | osf5*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304 rdos*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308 solaris*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311
5312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 sysv4 | sysv4.3*)
5317 case $host_vendor in
5318 motorola)
5319 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]'
5320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5321 ;;
5322 ncr)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 sequent)
5326 lt_cv_file_magic_cmd='/bin/file'
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5328 ;;
5329 sni)
5330 lt_cv_file_magic_cmd='/bin/file'
5331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5332 lt_cv_file_magic_test_file=/lib/libc.so
5333 ;;
5334 siemens)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337 pc)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340 esac
5341 ;;
5342
5343 tpf*)
5344 lt_cv_deplibs_check_method=pass_all
5345 ;;
5346 os2*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349 esac
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5354
5355 file_magic_glob=
5356 want_nocaseglob=no
5357 if test "$build" = "$host"; then
5358 case $host_os in
5359 mingw* | pw32*)
5360 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5361 want_nocaseglob=yes
5362 else
5363 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5364 fi
5365 ;;
5366 esac
5367 fi
5368
5369 file_magic_cmd=$lt_cv_file_magic_cmd
5370 deplibs_check_method=$lt_cv_deplibs_check_method
5371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_prog_DLLTOOL+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$DLLTOOL"; then
5403 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 DLLTOOL=$ac_cv_prog_DLLTOOL
5423 if test -n "$DLLTOOL"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5425 $as_echo "$DLLTOOL" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431
5432 fi
5433 if test -z "$ac_cv_prog_DLLTOOL"; then
5434 ac_ct_DLLTOOL=$DLLTOOL
5435 # Extract the first word of "dlltool", so it can be a program name with args.
5436 set dummy dlltool; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 if test -n "$ac_ct_DLLTOOL"; then
5443 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5463 if test -n "$ac_ct_DLLTOOL"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5465 $as_echo "$ac_ct_DLLTOOL" >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471 if test "x$ac_ct_DLLTOOL" = x; then
5472 DLLTOOL="false"
5473 else
5474 case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5479 esac
5480 DLLTOOL=$ac_ct_DLLTOOL
5481 fi
5482 else
5483 DLLTOOL="$ac_cv_prog_DLLTOOL"
5484 fi
5485
5486 test -z "$DLLTOOL" && DLLTOOL=dlltool
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5498 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5499 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 lt_cv_sharedlib_from_linklib_cmd='unknown'
5503
5504 case $host_os in
5505 cygwin* | mingw* | pw32* | cegcc*)
5506 # two different shell functions defined in ltmain.sh;
5507 # decide which one to use based on capabilities of $DLLTOOL
5508 case `$DLLTOOL --help 2>&1` in
5509 *--identify-strict*)
5510 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5511 ;;
5512 *)
5513 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5514 ;;
5515 esac
5516 ;;
5517 *)
5518 # fallback: assume linklib IS sharedlib
5519 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5520 ;;
5521 esac
5522
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5525 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5526 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5527 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5528
5529
5530
5531
5532
5533
5534
5535
5536 if test -n "$ac_tool_prefix"; then
5537 for ac_prog in ar
5538 do
5539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_AR+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$AR"; then
5547 ac_cv_prog_AR="$AR" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 AR=$ac_cv_prog_AR
5567 if test -n "$AR"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569 $as_echo "$AR" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 test -n "$AR" && break
5577 done
5578 fi
5579 if test -z "$AR"; then
5580 ac_ct_AR=$AR
5581 for ac_prog in ar
5582 do
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_AR"; then
5591 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_AR="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5611 if test -n "$ac_ct_AR"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5613 $as_echo "$ac_ct_AR" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619
5620 test -n "$ac_ct_AR" && break
5621 done
5622
5623 if test "x$ac_ct_AR" = x; then
5624 AR="false"
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 AR=$ac_ct_AR
5633 fi
5634 fi
5635
5636 : ${AR=ar}
5637 : ${AR_FLAGS=cru}
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5650 $as_echo_n "checking for archiver @FILE support... " >&6; }
5651 if ${lt_cv_ar_at_file+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 lt_cv_ar_at_file=no
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657
5658 int
5659 main ()
5660 {
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 echo conftest.$ac_objext > conftest.lst
5668 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5670 (eval $lt_ar_try) 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }
5674 if test 0 -eq "$ac_status"; then
5675 # Ensure the archiver fails upon bogus file names.
5676 rm -f conftest.$ac_objext libconftest.a
5677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5678 (eval $lt_ar_try) 2>&5
5679 ac_status=$?
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }
5682 if test 0 -ne "$ac_status"; then
5683 lt_cv_ar_at_file=@
5684 fi
5685 fi
5686 rm -f conftest.* libconftest.a
5687
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5693 $as_echo "$lt_cv_ar_at_file" >&6; }
5694
5695 if test no = "$lt_cv_ar_at_file"; then
5696 archiver_list_spec=
5697 else
5698 archiver_list_spec=$lt_cv_ar_at_file
5699 fi
5700
5701
5702
5703
5704
5705
5706
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}strip; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_STRIP+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$STRIP"; then
5716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 STRIP=$ac_cv_prog_STRIP
5736 if test -n "$STRIP"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5738 $as_echo "$STRIP" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 fi
5746 if test -z "$ac_cv_prog_STRIP"; then
5747 ac_ct_STRIP=$STRIP
5748 # Extract the first word of "strip", so it can be a program name with args.
5749 set dummy strip; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 if test -n "$ac_ct_STRIP"; then
5756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_STRIP="strip"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5776 if test -n "$ac_ct_STRIP"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5778 $as_echo "$ac_ct_STRIP" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784 if test "x$ac_ct_STRIP" = x; then
5785 STRIP=":"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793 STRIP=$ac_ct_STRIP
5794 fi
5795 else
5796 STRIP="$ac_cv_prog_STRIP"
5797 fi
5798
5799 test -z "$STRIP" && STRIP=:
5800
5801
5802
5803
5804
5805
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_RANLIB+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 RANLIB=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5837 $as_echo "$RANLIB" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 fi
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5867 fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5877 $as_echo "$ac_ct_RANLIB" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883 if test "x$ac_ct_RANLIB" = x; then
5884 RANLIB=":"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 RANLIB=$ac_ct_RANLIB
5893 fi
5894 else
5895 RANLIB="$ac_cv_prog_RANLIB"
5896 fi
5897
5898 test -z "$RANLIB" && RANLIB=:
5899
5900
5901
5902
5903
5904
5905 # Determine commands to create old-style static archives.
5906 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5907 old_postinstall_cmds='chmod 644 $oldlib'
5908 old_postuninstall_cmds=
5909
5910 if test -n "$RANLIB"; then
5911 case $host_os in
5912 bitrig* | openbsd*)
5913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5914 ;;
5915 *)
5916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5917 ;;
5918 esac
5919 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5920 fi
5921
5922 case $host_os in
5923 darwin*)
5924 lock_old_archive_extraction=yes ;;
5925 *)
5926 lock_old_archive_extraction=no ;;
5927 esac
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 # If no C compiler was specified, use CC.
5968 LTCC=${LTCC-"$CC"}
5969
5970 # If no C compiler flags were specified, use CFLAGS.
5971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5972
5973 # Allow CC to be a program name with arguments.
5974 compiler=$CC
5975
5976
5977 # Check for command to grab the raw symbol name followed by C symbol from nm.
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5980 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983
5984 # These are sane defaults that work on at least a few old systems.
5985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5986
5987 # Character class describing NM global symbol codes.
5988 symcode='[BCDEGRST]'
5989
5990 # Regexp to match symbols that can be accessed directly from C.
5991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5992
5993 # Define system-specific variables.
5994 case $host_os in
5995 aix*)
5996 symcode='[BCDT]'
5997 ;;
5998 cygwin* | mingw* | pw32* | cegcc*)
5999 symcode='[ABCDGISTW]'
6000 ;;
6001 hpux*)
6002 if test ia64 = "$host_cpu"; then
6003 symcode='[ABCDEGRST]'
6004 fi
6005 ;;
6006 irix* | nonstopux*)
6007 symcode='[BCDEGRST]'
6008 ;;
6009 osf*)
6010 symcode='[BCDEGQRST]'
6011 ;;
6012 solaris*)
6013 symcode='[BDRT]'
6014 ;;
6015 sco3.2v5*)
6016 symcode='[DT]'
6017 ;;
6018 sysv4.2uw2*)
6019 symcode='[DT]'
6020 ;;
6021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022 symcode='[ABDT]'
6023 ;;
6024 sysv4)
6025 symcode='[DFNSTU]'
6026 ;;
6027 esac
6028
6029 # If we're using GNU nm, then use its standard symbol codes.
6030 case `$NM -V 2>&1` in
6031 *GNU* | *'with BFD'*)
6032 symcode='[ABCDGIRSTW]' ;;
6033 esac
6034
6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6036 # Gets list of data symbols to import.
6037 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6038 # Adjust the below global symbol transforms to fixup imported variables.
6039 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6040 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6041 lt_c_name_lib_hook="\
6042 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6043 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6044 else
6045 # Disable hooks by default.
6046 lt_cv_sys_global_symbol_to_import=
6047 lt_cdecl_hook=
6048 lt_c_name_hook=
6049 lt_c_name_lib_hook=
6050 fi
6051
6052 # Transform an extracted symbol line into a proper C declaration.
6053 # Some systems (esp. on ia64) link data and code symbols differently,
6054 # so use this general approach.
6055 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6056 $lt_cdecl_hook\
6057 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6058 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6059
6060 # Transform an extracted symbol line into symbol name and symbol address
6061 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6062 $lt_c_name_hook\
6063 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6064 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6065
6066 # Transform an extracted symbol line into symbol name with lib prefix and
6067 # symbol address.
6068 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6069 $lt_c_name_lib_hook\
6070 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6071 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6072 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6073
6074 # Handle CRLF in mingw tool chain
6075 opt_cr=
6076 case $build_os in
6077 mingw*)
6078 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6079 ;;
6080 esac
6081
6082 # Try without a prefix underscore, then with it.
6083 for ac_symprfx in "" "_"; do
6084
6085 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6086 symxfrm="\\1 $ac_symprfx\\2 \\2"
6087
6088 # Write the raw and C identifiers.
6089 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6090 # Fake it for dumpbin and say T for any non-static function,
6091 # D for any global variable and I for any imported variable.
6092 # Also find C++ and __fastcall symbols from MSVC++,
6093 # which start with @ or ?.
6094 lt_cv_sys_global_symbol_pipe="$AWK '"\
6095 " {last_section=section; section=\$ 3};"\
6096 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6097 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6098 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6099 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6100 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6101 " \$ 0!~/External *\|/{next};"\
6102 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6103 " {if(hide[section]) next};"\
6104 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6105 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6106 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6107 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6108 " ' prfx=^$ac_symprfx"
6109 else
6110 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6111 fi
6112 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6113
6114 # Check to see that the pipe works correctly.
6115 pipe_works=no
6116
6117 rm -f conftest*
6118 cat > conftest.$ac_ext <<_LT_EOF
6119 #ifdef __cplusplus
6120 extern "C" {
6121 #endif
6122 char nm_test_var;
6123 void nm_test_func(void);
6124 void nm_test_func(void){}
6125 #ifdef __cplusplus
6126 }
6127 #endif
6128 int main(){nm_test_var='a';nm_test_func();return(0);}
6129 _LT_EOF
6130
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132 (eval $ac_compile) 2>&5
6133 ac_status=$?
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; }; then
6136 # Now try to grab the symbols.
6137 nlist=conftest.nm
6138 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6139 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6140 # Try sorting and uniquifying the output.
6141 if sort "$nlist" | uniq > "$nlist"T; then
6142 mv -f "$nlist"T "$nlist"
6143 else
6144 rm -f "$nlist"T
6145 fi
6146
6147 # Make sure that we snagged all the symbols we need.
6148 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6149 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6150 cat <<_LT_EOF > conftest.$ac_ext
6151 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6152 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6153 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6154 relocations are performed -- see ld's documentation on pseudo-relocs. */
6155 # define LT_DLSYM_CONST
6156 #elif defined __osf__
6157 /* This system does not cope well with relocations in const data. */
6158 # define LT_DLSYM_CONST
6159 #else
6160 # define LT_DLSYM_CONST const
6161 #endif
6162
6163 #ifdef __cplusplus
6164 extern "C" {
6165 #endif
6166
6167 _LT_EOF
6168 # Now generate the symbol file.
6169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6170
6171 cat <<_LT_EOF >> conftest.$ac_ext
6172
6173 /* The mapping between symbol names and symbols. */
6174 LT_DLSYM_CONST struct {
6175 const char *name;
6176 void *address;
6177 }
6178 lt__PROGRAM__LTX_preloaded_symbols[] =
6179 {
6180 { "@PROGRAM@", (void *) 0 },
6181 _LT_EOF
6182 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6183 cat <<\_LT_EOF >> conftest.$ac_ext
6184 {0, (void *) 0}
6185 };
6186
6187 /* This works around a problem in FreeBSD linker */
6188 #ifdef FREEBSD_WORKAROUND
6189 static const void *lt_preloaded_setup() {
6190 return lt__PROGRAM__LTX_preloaded_symbols;
6191 }
6192 #endif
6193
6194 #ifdef __cplusplus
6195 }
6196 #endif
6197 _LT_EOF
6198 # Now try linking the two files.
6199 mv conftest.$ac_objext conftstm.$ac_objext
6200 lt_globsym_save_LIBS=$LIBS
6201 lt_globsym_save_CFLAGS=$CFLAGS
6202 LIBS=conftstm.$ac_objext
6203 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6205 (eval $ac_link) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6209 pipe_works=yes
6210 fi
6211 LIBS=$lt_globsym_save_LIBS
6212 CFLAGS=$lt_globsym_save_CFLAGS
6213 else
6214 echo "cannot find nm_test_func in $nlist" >&5
6215 fi
6216 else
6217 echo "cannot find nm_test_var in $nlist" >&5
6218 fi
6219 else
6220 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6221 fi
6222 else
6223 echo "$progname: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6225 fi
6226 rm -rf conftest* conftst*
6227
6228 # Do not use the global_symbol_pipe unless it works.
6229 if test yes = "$pipe_works"; then
6230 break
6231 else
6232 lt_cv_sys_global_symbol_pipe=
6233 fi
6234 done
6235
6236 fi
6237
6238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6239 lt_cv_sys_global_symbol_to_cdecl=
6240 fi
6241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6243 $as_echo "failed" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6246 $as_echo "ok" >&6; }
6247 fi
6248
6249 # Response file support.
6250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6251 nm_file_list_spec='@'
6252 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6253 nm_file_list_spec='@'
6254 fi
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6293 $as_echo_n "checking for sysroot... " >&6; }
6294
6295 # Check whether --with-sysroot was given.
6296 if test "${with_sysroot+set}" = set; then :
6297 withval=$with_sysroot;
6298 else
6299 with_sysroot=no
6300 fi
6301
6302
6303 lt_sysroot=
6304 case $with_sysroot in #(
6305 yes)
6306 if test yes = "$GCC"; then
6307 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6308 fi
6309 ;; #(
6310 /*)
6311 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6312 ;; #(
6313 no|'')
6314 ;; #(
6315 *)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6317 $as_echo "$with_sysroot" >&6; }
6318 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6319 ;;
6320 esac
6321
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6323 $as_echo "${lt_sysroot:-no}" >&6; }
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6330 $as_echo_n "checking for a working dd... " >&6; }
6331 if ${ac_cv_path_lt_DD+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 printf 0123456789abcdef0123456789abcdef >conftest.i
6335 cat conftest.i conftest.i >conftest2.i
6336 : ${lt_DD:=$DD}
6337 if test -z "$lt_DD"; then
6338 ac_path_lt_DD_found=false
6339 # Loop through the user's path and test for each of PROGNAME-LIST
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_prog in dd; do
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6348 as_fn_executable_p "$ac_path_lt_DD" || continue
6349 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6350 cmp -s conftest.i conftest.out \
6351 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6352 fi
6353 $ac_path_lt_DD_found && break 3
6354 done
6355 done
6356 done
6357 IFS=$as_save_IFS
6358 if test -z "$ac_cv_path_lt_DD"; then
6359 :
6360 fi
6361 else
6362 ac_cv_path_lt_DD=$lt_DD
6363 fi
6364
6365 rm -f conftest.i conftest2.i conftest.out
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6368 $as_echo "$ac_cv_path_lt_DD" >&6; }
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6372 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6373 if ${lt_cv_truncate_bin+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 printf 0123456789abcdef0123456789abcdef >conftest.i
6377 cat conftest.i conftest.i >conftest2.i
6378 lt_cv_truncate_bin=
6379 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6380 cmp -s conftest.i conftest.out \
6381 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6382 fi
6383 rm -f conftest.i conftest2.i conftest.out
6384 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6387 $as_echo "$lt_cv_truncate_bin" >&6; }
6388
6389
6390
6391
6392
6393
6394
6395 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6396 func_cc_basename ()
6397 {
6398 for cc_temp in $*""; do
6399 case $cc_temp in
6400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6402 \-*) ;;
6403 *) break;;
6404 esac
6405 done
6406 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6407 }
6408
6409 # Check whether --enable-libtool-lock was given.
6410 if test "${enable_libtool_lock+set}" = set; then :
6411 enableval=$enable_libtool_lock;
6412 fi
6413
6414 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6415
6416 # Some flags need to be propagated to the compiler or linker for good
6417 # libtool support.
6418 case $host in
6419 ia64-*-hpux*)
6420 # Find out what ABI is being produced by ac_compile, and set mode
6421 # options accordingly.
6422 echo 'int i;' > conftest.$ac_ext
6423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6424 (eval $ac_compile) 2>&5
6425 ac_status=$?
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; }; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *ELF-32*)
6430 HPUX_IA64_MODE=32
6431 ;;
6432 *ELF-64*)
6433 HPUX_IA64_MODE=64
6434 ;;
6435 esac
6436 fi
6437 rm -rf conftest*
6438 ;;
6439 *-*-irix6*)
6440 # Find out what ABI is being produced by ac_compile, and set linker
6441 # options accordingly.
6442 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 if test yes = "$lt_cv_prog_gnu_ld"; then
6449 case `/usr/bin/file conftest.$ac_objext` in
6450 *32-bit*)
6451 LD="${LD-ld} -melf32bsmip"
6452 ;;
6453 *N32*)
6454 LD="${LD-ld} -melf32bmipn32"
6455 ;;
6456 *64-bit*)
6457 LD="${LD-ld} -melf64bmip"
6458 ;;
6459 esac
6460 else
6461 case `/usr/bin/file conftest.$ac_objext` in
6462 *32-bit*)
6463 LD="${LD-ld} -32"
6464 ;;
6465 *N32*)
6466 LD="${LD-ld} -n32"
6467 ;;
6468 *64-bit*)
6469 LD="${LD-ld} -64"
6470 ;;
6471 esac
6472 fi
6473 fi
6474 rm -rf conftest*
6475 ;;
6476
6477 mips64*-*linux*)
6478 # Find out what ABI is being produced by ac_compile, and set linker
6479 # options accordingly.
6480 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485 test $ac_status = 0; }; then
6486 emul=elf
6487 case `/usr/bin/file conftest.$ac_objext` in
6488 *32-bit*)
6489 emul="${emul}32"
6490 ;;
6491 *64-bit*)
6492 emul="${emul}64"
6493 ;;
6494 esac
6495 case `/usr/bin/file conftest.$ac_objext` in
6496 *MSB*)
6497 emul="${emul}btsmip"
6498 ;;
6499 *LSB*)
6500 emul="${emul}ltsmip"
6501 ;;
6502 esac
6503 case `/usr/bin/file conftest.$ac_objext` in
6504 *N32*)
6505 emul="${emul}n32"
6506 ;;
6507 esac
6508 LD="${LD-ld} -m $emul"
6509 fi
6510 rm -rf conftest*
6511 ;;
6512
6513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6515 # Find out what ABI is being produced by ac_compile, and set linker
6516 # options accordingly. Note that the listed cases only cover the
6517 # situations where additional linker options are needed (such as when
6518 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6519 # vice versa); the common cases where no linker options are needed do
6520 # not appear in the list.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.o` in
6528 *32-bit*)
6529 case $host in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_i386_fbsd"
6532 ;;
6533 x86_64-*linux*)
6534 case `/usr/bin/file conftest.o` in
6535 *x86-64*)
6536 LD="${LD-ld} -m elf32_x86_64"
6537 ;;
6538 *)
6539 LD="${LD-ld} -m elf_i386"
6540 ;;
6541 esac
6542 ;;
6543 powerpc64le-*linux*)
6544 LD="${LD-ld} -m elf32lppclinux"
6545 ;;
6546 powerpc64-*linux*)
6547 LD="${LD-ld} -m elf32ppclinux"
6548 ;;
6549 s390x-*linux*)
6550 LD="${LD-ld} -m elf_s390"
6551 ;;
6552 sparc64-*linux*)
6553 LD="${LD-ld} -m elf32_sparc"
6554 ;;
6555 esac
6556 ;;
6557 *64-bit*)
6558 case $host in
6559 x86_64-*kfreebsd*-gnu)
6560 LD="${LD-ld} -m elf_x86_64_fbsd"
6561 ;;
6562 x86_64-*linux*)
6563 LD="${LD-ld} -m elf_x86_64"
6564 ;;
6565 powerpcle-*linux*)
6566 LD="${LD-ld} -m elf64lppc"
6567 ;;
6568 powerpc-*linux*)
6569 LD="${LD-ld} -m elf64ppc"
6570 ;;
6571 s390*-*linux*|s390*-*tpf*)
6572 LD="${LD-ld} -m elf64_s390"
6573 ;;
6574 sparc*-*linux*)
6575 LD="${LD-ld} -m elf64_sparc"
6576 ;;
6577 esac
6578 ;;
6579 esac
6580 fi
6581 rm -rf conftest*
6582 ;;
6583
6584 *-*-sco3.2v5*)
6585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6586 SAVE_CFLAGS=$CFLAGS
6587 CFLAGS="$CFLAGS -belf"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6590 if ${lt_cv_cc_needs_belf+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601
6602 int
6603 main ()
6604 {
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 lt_cv_cc_needs_belf=yes
6612 else
6613 lt_cv_cc_needs_belf=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626 if test yes != "$lt_cv_cc_needs_belf"; then
6627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628 CFLAGS=$SAVE_CFLAGS
6629 fi
6630 ;;
6631 *-*solaris*)
6632 # Find out what ABI is being produced by ac_compile, and set linker
6633 # options accordingly.
6634 echo 'int i;' > conftest.$ac_ext
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }; then
6640 case `/usr/bin/file conftest.o` in
6641 *64-bit*)
6642 case $lt_cv_prog_gnu_ld in
6643 yes*)
6644 case $host in
6645 i?86-*-solaris*|x86_64-*-solaris*)
6646 LD="${LD-ld} -m elf_x86_64"
6647 ;;
6648 sparc*-*-solaris*)
6649 LD="${LD-ld} -m elf64_sparc"
6650 ;;
6651 esac
6652 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6653 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6654 LD=${LD-ld}_sol2
6655 fi
6656 ;;
6657 *)
6658 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6659 LD="${LD-ld} -64"
6660 fi
6661 ;;
6662 esac
6663 ;;
6664 esac
6665 fi
6666 rm -rf conftest*
6667 ;;
6668 esac
6669
6670 need_locks=$enable_libtool_lock
6671
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}mt; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$MANIFEST_TOOL"; then
6681 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6701 if test -n "$MANIFEST_TOOL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6703 $as_echo "$MANIFEST_TOOL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6712 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6713 # Extract the first word of "mt", so it can be a program name with args.
6714 set dummy mt; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$ac_ct_MANIFEST_TOOL"; then
6721 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6741 if test -n "$ac_ct_MANIFEST_TOOL"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6743 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6744 else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6750 MANIFEST_TOOL=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6759 fi
6760 else
6761 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6762 fi
6763
6764 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6766 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6767 if ${lt_cv_path_mainfest_tool+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 lt_cv_path_mainfest_tool=no
6771 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6772 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6773 cat conftest.err >&5
6774 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6775 lt_cv_path_mainfest_tool=yes
6776 fi
6777 rm -f conftest*
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6780 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6781 if test yes != "$lt_cv_path_mainfest_tool"; then
6782 MANIFEST_TOOL=:
6783 fi
6784
6785
6786
6787
6788
6789
6790 case $host_os in
6791 rhapsody* | darwin*)
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 if test -n "$DSYMUTIL"; then
6801 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6821 if test -n "$DSYMUTIL"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6823 $as_echo "$DSYMUTIL" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_DSYMUTIL"; then
6832 ac_ct_DSYMUTIL=$DSYMUTIL
6833 # Extract the first word of "dsymutil", so it can be a program name with args.
6834 set dummy dsymutil; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 if test -n "$ac_ct_DSYMUTIL"; then
6841 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6861 if test -n "$ac_ct_DSYMUTIL"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6863 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869 if test "x$ac_ct_DSYMUTIL" = x; then
6870 DSYMUTIL=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878 DSYMUTIL=$ac_ct_DSYMUTIL
6879 fi
6880 else
6881 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6882 fi
6883
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_NMEDIT+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$NMEDIT"; then
6893 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 NMEDIT=$ac_cv_prog_NMEDIT
6913 if test -n "$NMEDIT"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6915 $as_echo "$NMEDIT" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921
6922 fi
6923 if test -z "$ac_cv_prog_NMEDIT"; then
6924 ac_ct_NMEDIT=$NMEDIT
6925 # Extract the first word of "nmedit", so it can be a program name with args.
6926 set dummy nmedit; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 if test -n "$ac_ct_NMEDIT"; then
6933 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6953 if test -n "$ac_ct_NMEDIT"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6955 $as_echo "$ac_ct_NMEDIT" >&6; }
6956 else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961 if test "x$ac_ct_NMEDIT" = x; then
6962 NMEDIT=":"
6963 else
6964 case $cross_compiling:$ac_tool_warned in
6965 yes:)
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970 NMEDIT=$ac_ct_NMEDIT
6971 fi
6972 else
6973 NMEDIT="$ac_cv_prog_NMEDIT"
6974 fi
6975
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_LIPO+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$LIPO"; then
6985 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 LIPO=$ac_cv_prog_LIPO
7005 if test -n "$LIPO"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7007 $as_echo "$LIPO" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_LIPO"; then
7016 ac_ct_LIPO=$LIPO
7017 # Extract the first word of "lipo", so it can be a program name with args.
7018 set dummy lipo; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$ac_ct_LIPO"; then
7025 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_LIPO="lipo"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7045 if test -n "$ac_ct_LIPO"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7047 $as_echo "$ac_ct_LIPO" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053 if test "x$ac_ct_LIPO" = x; then
7054 LIPO=":"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 LIPO=$ac_ct_LIPO
7063 fi
7064 else
7065 LIPO="$ac_cv_prog_LIPO"
7066 fi
7067
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}otool; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_OTOOL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$OTOOL"; then
7077 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 OTOOL=$ac_cv_prog_OTOOL
7097 if test -n "$OTOOL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7099 $as_echo "$OTOOL" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_OTOOL"; then
7108 ac_ct_OTOOL=$OTOOL
7109 # Extract the first word of "otool", so it can be a program name with args.
7110 set dummy otool; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_OTOOL"; then
7117 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_OTOOL="otool"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7137 if test -n "$ac_ct_OTOOL"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7139 $as_echo "$ac_ct_OTOOL" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_OTOOL" = x; then
7146 OTOOL=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 OTOOL=$ac_ct_OTOOL
7155 fi
7156 else
7157 OTOOL="$ac_cv_prog_OTOOL"
7158 fi
7159
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_OTOOL64+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$OTOOL64"; then
7169 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 OTOOL64=$ac_cv_prog_OTOOL64
7189 if test -n "$OTOOL64"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7191 $as_echo "$OTOOL64" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_OTOOL64"; then
7200 ac_ct_OTOOL64=$OTOOL64
7201 # Extract the first word of "otool64", so it can be a program name with args.
7202 set dummy otool64; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if test -n "$ac_ct_OTOOL64"; then
7209 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_ac_ct_OTOOL64="otool64"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7229 if test -n "$ac_ct_OTOOL64"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7231 $as_echo "$ac_ct_OTOOL64" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237 if test "x$ac_ct_OTOOL64" = x; then
7238 OTOOL64=":"
7239 else
7240 case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246 OTOOL64=$ac_ct_OTOOL64
7247 fi
7248 else
7249 OTOOL64="$ac_cv_prog_OTOOL64"
7250 fi
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7279 $as_echo_n "checking for -single_module linker flag... " >&6; }
7280 if ${lt_cv_apple_cc_single_mod+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 lt_cv_apple_cc_single_mod=no
7284 if test -z "$LT_MULTI_MODULE"; then
7285 # By default we will add the -single_module flag. You can override
7286 # by either setting the environment variable LT_MULTI_MODULE
7287 # non-empty at configure time, or by adding -multi_module to the
7288 # link flags.
7289 rm -rf libconftest.dylib*
7290 echo "int foo(void){return 1;}" > conftest.c
7291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c" >&5
7293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7294 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7295 _lt_result=$?
7296 # If there is a non-empty error log, and "single_module"
7297 # appears in it, assume the flag caused a linker warning
7298 if test -s conftest.err && $GREP single_module conftest.err; then
7299 cat conftest.err >&5
7300 # Otherwise, if the output was created with a 0 exit code from
7301 # the compiler, it worked.
7302 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7303 lt_cv_apple_cc_single_mod=yes
7304 else
7305 cat conftest.err >&5
7306 fi
7307 rm -rf libconftest.dylib*
7308 rm -f conftest.*
7309 fi
7310 fi
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7312 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7313
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7315 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7316 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 lt_cv_ld_exported_symbols_list=no
7320 save_LDFLAGS=$LDFLAGS
7321 echo "_main" > conftest.sym
7322 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325
7326 int
7327 main ()
7328 {
7329
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"; then :
7335 lt_cv_ld_exported_symbols_list=yes
7336 else
7337 lt_cv_ld_exported_symbols_list=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 LDFLAGS=$save_LDFLAGS
7342
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7348 $as_echo_n "checking for -force_load linker flag... " >&6; }
7349 if ${lt_cv_ld_force_load+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 lt_cv_ld_force_load=no
7353 cat > conftest.c << _LT_EOF
7354 int forced_loaded() { return 2;}
7355 _LT_EOF
7356 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7357 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7358 echo "$AR cru libconftest.a conftest.o" >&5
7359 $AR cru libconftest.a conftest.o 2>&5
7360 echo "$RANLIB libconftest.a" >&5
7361 $RANLIB libconftest.a 2>&5
7362 cat > conftest.c << _LT_EOF
7363 int main() { return 0;}
7364 _LT_EOF
7365 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7366 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7367 _lt_result=$?
7368 if test -s conftest.err && $GREP force_load conftest.err; then
7369 cat conftest.err >&5
7370 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7371 lt_cv_ld_force_load=yes
7372 else
7373 cat conftest.err >&5
7374 fi
7375 rm -f conftest.err libconftest.a conftest conftest.c
7376 rm -rf conftest.dSYM
7377
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7380 $as_echo "$lt_cv_ld_force_load" >&6; }
7381 case $host_os in
7382 rhapsody* | darwin1.[012])
7383 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7384 darwin1.*)
7385 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7386 darwin*) # darwin 5.x on
7387 # if running on 10.5 or later, the deployment target defaults
7388 # to the OS version, if on x86, and 10.4, the deployment
7389 # target defaults to 10.4. Don't you love it?
7390 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7391 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7392 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7393 10.[012][,.]*)
7394 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7395 10.*)
7396 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7397 esac
7398 ;;
7399 esac
7400 if test yes = "$lt_cv_apple_cc_single_mod"; then
7401 _lt_dar_single_mod='$single_module'
7402 fi
7403 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7404 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7405 else
7406 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7407 fi
7408 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7409 _lt_dsymutil='~$DSYMUTIL $lib || :'
7410 else
7411 _lt_dsymutil=
7412 fi
7413 ;;
7414 esac
7415
7416 # func_munge_path_list VARIABLE PATH
7417 # -----------------------------------
7418 # VARIABLE is name of variable containing _space_ separated list of
7419 # directories to be munged by the contents of PATH, which is string
7420 # having a format:
7421 # "DIR[:DIR]:"
7422 # string "DIR[ DIR]" will be prepended to VARIABLE
7423 # ":DIR[:DIR]"
7424 # string "DIR[ DIR]" will be appended to VARIABLE
7425 # "DIRP[:DIRP]::[DIRA:]DIRA"
7426 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7427 # "DIRA[ DIRA]" will be appended to VARIABLE
7428 # "DIR[:DIR]"
7429 # VARIABLE will be replaced by "DIR[ DIR]"
7430 func_munge_path_list ()
7431 {
7432 case x$2 in
7433 x)
7434 ;;
7435 *:)
7436 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7437 ;;
7438 x:*)
7439 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7440 ;;
7441 *::*)
7442 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7443 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7444 ;;
7445 *)
7446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7447 ;;
7448 esac
7449 }
7450
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7458 # On Suns, sometimes $CPP names a directory.
7459 if test -n "$CPP" && test -d "$CPP"; then
7460 CPP=
7461 fi
7462 if test -z "$CPP"; then
7463 if ${ac_cv_prog_CPP+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 # Double quotes because CPP needs to be expanded
7467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7468 do
7469 ac_preproc_ok=false
7470 for ac_c_preproc_warn_flag in '' yes
7471 do
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #ifdef __STDC__
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485 Syntax error
7486 _ACEOF
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7488
7489 else
7490 # Broken: fails on valid input.
7491 continue
7492 fi
7493 rm -f conftest.err conftest.i conftest.$ac_ext
7494
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <ac_nonexistent.h>
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7503 continue
7504 else
7505 # Passes both tests.
7506 ac_preproc_ok=:
7507 break
7508 fi
7509 rm -f conftest.err conftest.i conftest.$ac_ext
7510
7511 done
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.i conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7515 break
7516 fi
7517
7518 done
7519 ac_cv_prog_CPP=$CPP
7520
7521 fi
7522 CPP=$ac_cv_prog_CPP
7523 else
7524 ac_cv_prog_CPP=$CPP
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7527 $as_echo "$CPP" >&6; }
7528 ac_preproc_ok=false
7529 for ac_c_preproc_warn_flag in '' yes
7530 do
7531 # Use a header file that comes with gcc, so configuring glibc
7532 # with a fresh cross-compiler works.
7533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534 # <limits.h> exists even on freestanding compilers.
7535 # On the NeXT, cc -E runs the code through the compiler's parser,
7536 # not just through cpp. "Syntax error" is here to catch this case.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #ifdef __STDC__
7540 # include <limits.h>
7541 #else
7542 # include <assert.h>
7543 #endif
7544 Syntax error
7545 _ACEOF
7546 if ac_fn_c_try_cpp "$LINENO"; then :
7547
7548 else
7549 # Broken: fails on valid input.
7550 continue
7551 fi
7552 rm -f conftest.err conftest.i conftest.$ac_ext
7553
7554 # OK, works on sane cases. Now check whether nonexistent headers
7555 # can be detected and how.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <ac_nonexistent.h>
7559 _ACEOF
7560 if ac_fn_c_try_cpp "$LINENO"; then :
7561 # Broken: success on invalid input.
7562 continue
7563 else
7564 # Passes both tests.
7565 ac_preproc_ok=:
7566 break
7567 fi
7568 rm -f conftest.err conftest.i conftest.$ac_ext
7569
7570 done
7571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7572 rm -f conftest.i conftest.err conftest.$ac_ext
7573 if $ac_preproc_ok; then :
7574
7575 else
7576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7579 See \`config.log' for more details" "$LINENO" 5; }
7580 fi
7581
7582 ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7590 $as_echo_n "checking for ANSI C header files... " >&6; }
7591 if ${ac_cv_header_stdc+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 #include <stdlib.h>
7597 #include <stdarg.h>
7598 #include <string.h>
7599 #include <float.h>
7600
7601 int
7602 main ()
7603 {
7604
7605 ;
7606 return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610 ac_cv_header_stdc=yes
7611 else
7612 ac_cv_header_stdc=no
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615
7616 if test $ac_cv_header_stdc = yes; then
7617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <string.h>
7621
7622 _ACEOF
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "memchr" >/dev/null 2>&1; then :
7625
7626 else
7627 ac_cv_header_stdc=no
7628 fi
7629 rm -f conftest*
7630
7631 fi
7632
7633 if test $ac_cv_header_stdc = yes; then
7634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #include <stdlib.h>
7638
7639 _ACEOF
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 $EGREP "free" >/dev/null 2>&1; then :
7642
7643 else
7644 ac_cv_header_stdc=no
7645 fi
7646 rm -f conftest*
7647
7648 fi
7649
7650 if test $ac_cv_header_stdc = yes; then
7651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7652 if test "$cross_compiling" = yes; then :
7653 :
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <ctype.h>
7658 #include <stdlib.h>
7659 #if ((' ' & 0x0FF) == 0x020)
7660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7662 #else
7663 # define ISLOWER(c) \
7664 (('a' <= (c) && (c) <= 'i') \
7665 || ('j' <= (c) && (c) <= 'r') \
7666 || ('s' <= (c) && (c) <= 'z'))
7667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #endif
7669
7670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7671 int
7672 main ()
7673 {
7674 int i;
7675 for (i = 0; i < 256; i++)
7676 if (XOR (islower (i), ISLOWER (i))
7677 || toupper (i) != TOUPPER (i))
7678 return 2;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_run "$LINENO"; then :
7683
7684 else
7685 ac_cv_header_stdc=no
7686 fi
7687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7688 conftest.$ac_objext conftest.beam conftest.$ac_ext
7689 fi
7690
7691 fi
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7694 $as_echo "$ac_cv_header_stdc" >&6; }
7695 if test $ac_cv_header_stdc = yes; then
7696
7697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7698
7699 fi
7700
7701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7703 inttypes.h stdint.h unistd.h
7704 do :
7705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7707 "
7708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7709 cat >>confdefs.h <<_ACEOF
7710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7711 _ACEOF
7712
7713 fi
7714
7715 done
7716
7717
7718 for ac_header in dlfcn.h
7719 do :
7720 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7721 "
7722 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define HAVE_DLFCN_H 1
7725 _ACEOF
7726
7727 fi
7728
7729 done
7730
7731
7732
7733
7734
7735 # Set options
7736
7737
7738
7739 enable_dlopen=no
7740
7741
7742 enable_win32_dll=no
7743
7744
7745 # Check whether --enable-shared was given.
7746 if test "${enable_shared+set}" = set; then :
7747 enableval=$enable_shared; p=${PACKAGE-default}
7748 case $enableval in
7749 yes) enable_shared=yes ;;
7750 no) enable_shared=no ;;
7751 *)
7752 enable_shared=no
7753 # Look at the argument we got. We use all the common list separators.
7754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7755 for pkg in $enableval; do
7756 IFS=$lt_save_ifs
7757 if test "X$pkg" = "X$p"; then
7758 enable_shared=yes
7759 fi
7760 done
7761 IFS=$lt_save_ifs
7762 ;;
7763 esac
7764 else
7765 enable_shared=yes
7766 fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 # Check whether --enable-static was given.
7777 if test "${enable_static+set}" = set; then :
7778 enableval=$enable_static; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_static=yes ;;
7781 no) enable_static=no ;;
7782 *)
7783 enable_static=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7786 for pkg in $enableval; do
7787 IFS=$lt_save_ifs
7788 if test "X$pkg" = "X$p"; then
7789 enable_static=yes
7790 fi
7791 done
7792 IFS=$lt_save_ifs
7793 ;;
7794 esac
7795 else
7796 enable_static=yes
7797 fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 # Check whether --with-pic was given.
7809 if test "${with_pic+set}" = set; then :
7810 withval=$with_pic; lt_p=${PACKAGE-default}
7811 case $withval in
7812 yes|no) pic_mode=$withval ;;
7813 *)
7814 pic_mode=default
7815 # Look at the argument we got. We use all the common list separators.
7816 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7817 for lt_pkg in $withval; do
7818 IFS=$lt_save_ifs
7819 if test "X$lt_pkg" = "X$lt_p"; then
7820 pic_mode=yes
7821 fi
7822 done
7823 IFS=$lt_save_ifs
7824 ;;
7825 esac
7826 else
7827 pic_mode=default
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836
7837 # Check whether --enable-fast-install was given.
7838 if test "${enable_fast_install+set}" = set; then :
7839 enableval=$enable_fast_install; p=${PACKAGE-default}
7840 case $enableval in
7841 yes) enable_fast_install=yes ;;
7842 no) enable_fast_install=no ;;
7843 *)
7844 enable_fast_install=no
7845 # Look at the argument we got. We use all the common list separators.
7846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7847 for pkg in $enableval; do
7848 IFS=$lt_save_ifs
7849 if test "X$pkg" = "X$p"; then
7850 enable_fast_install=yes
7851 fi
7852 done
7853 IFS=$lt_save_ifs
7854 ;;
7855 esac
7856 else
7857 enable_fast_install=yes
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867 shared_archive_member_spec=
7868 case $host,$enable_shared in
7869 power*-*-aix[5-9]*,yes)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7871 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7872
7873 # Check whether --with-aix-soname was given.
7874 if test "${with_aix_soname+set}" = set; then :
7875 withval=$with_aix_soname; case $withval in
7876 aix|svr4|both)
7877 ;;
7878 *)
7879 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7880 ;;
7881 esac
7882 lt_cv_with_aix_soname=$with_aix_soname
7883 else
7884 if ${lt_cv_with_aix_soname+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 lt_cv_with_aix_soname=aix
7888 fi
7889
7890 with_aix_soname=$lt_cv_with_aix_soname
7891 fi
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7894 $as_echo "$with_aix_soname" >&6; }
7895 if test aix != "$with_aix_soname"; then
7896 # For the AIX way of multilib, we name the shared archive member
7897 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7898 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7899 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7900 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7901 if test 64 = "${OBJECT_MODE-32}"; then
7902 shared_archive_member_spec=shr_64
7903 else
7904 shared_archive_member_spec=shr
7905 fi
7906 fi
7907 ;;
7908 *)
7909 with_aix_soname=aix
7910 ;;
7911 esac
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 # This can be used to rebuild libtool when needed
7923 LIBTOOL_DEPS=$ltmain
7924
7925 # Always use our own libtool.
7926 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957 test -z "$LN_S" && LN_S="ln -s"
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972 if test -n "${ZSH_VERSION+set}"; then
7973 setopt NO_GLOB_SUBST
7974 fi
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7977 $as_echo_n "checking for objdir... " >&6; }
7978 if ${lt_cv_objdir+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 rm -f .libs 2>/dev/null
7982 mkdir .libs 2>/dev/null
7983 if test -d .libs; then
7984 lt_cv_objdir=.libs
7985 else
7986 # MS-DOS does not allow filenames that begin with a dot.
7987 lt_cv_objdir=_libs
7988 fi
7989 rmdir .libs 2>/dev/null
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7992 $as_echo "$lt_cv_objdir" >&6; }
7993 objdir=$lt_cv_objdir
7994
7995
7996
7997
7998
7999 cat >>confdefs.h <<_ACEOF
8000 #define LT_OBJDIR "$lt_cv_objdir/"
8001 _ACEOF
8002
8003
8004
8005
8006 case $host_os in
8007 aix3*)
8008 # AIX sometimes has problems with the GCC collect2 program. For some
8009 # reason, if we set the COLLECT_NAMES environment variable, the problems
8010 # vanish in a puff of smoke.
8011 if test set != "${COLLECT_NAMES+set}"; then
8012 COLLECT_NAMES=
8013 export COLLECT_NAMES
8014 fi
8015 ;;
8016 esac
8017
8018 # Global variables:
8019 ofile=libtool
8020 can_build_shared=yes
8021
8022 # All known linkers require a '.a' archive for static linking (except MSVC,
8023 # which needs '.lib').
8024 libext=a
8025
8026 with_gnu_ld=$lt_cv_prog_gnu_ld
8027
8028 old_CC=$CC
8029 old_CFLAGS=$CFLAGS
8030
8031 # Set sane defaults for various variables
8032 test -z "$CC" && CC=cc
8033 test -z "$LTCC" && LTCC=$CC
8034 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8035 test -z "$LD" && LD=ld
8036 test -z "$ac_objext" && ac_objext=o
8037
8038 func_cc_basename $compiler
8039 cc_basename=$func_cc_basename_result
8040
8041
8042 # Only perform the check for file, if the check method requires it
8043 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8044 case $deplibs_check_method in
8045 file_magic*)
8046 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8048 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8049 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 case $MAGIC_CMD in
8053 [\\/*] | ?:[\\/]*)
8054 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8055 ;;
8056 *)
8057 lt_save_MAGIC_CMD=$MAGIC_CMD
8058 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8059 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8060 for ac_dir in $ac_dummy; do
8061 IFS=$lt_save_ifs
8062 test -z "$ac_dir" && ac_dir=.
8063 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8064 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8065 if test -n "$file_magic_test_file"; then
8066 case $deplibs_check_method in
8067 "file_magic "*)
8068 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8069 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8070 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8071 $EGREP "$file_magic_regex" > /dev/null; then
8072 :
8073 else
8074 cat <<_LT_EOF 1>&2
8075
8076 *** Warning: the command libtool uses to detect shared libraries,
8077 *** $file_magic_cmd, produces output that libtool cannot recognize.
8078 *** The result is that libtool may fail to recognize shared libraries
8079 *** as such. This will affect the creation of libtool libraries that
8080 *** depend on shared libraries, but programs linked with such libtool
8081 *** libraries will work regardless of this problem. Nevertheless, you
8082 *** may want to report the problem to your system manager and/or to
8083 *** [email protected]
8084
8085 _LT_EOF
8086 fi ;;
8087 esac
8088 fi
8089 break
8090 fi
8091 done
8092 IFS=$lt_save_ifs
8093 MAGIC_CMD=$lt_save_MAGIC_CMD
8094 ;;
8095 esac
8096 fi
8097
8098 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8099 if test -n "$MAGIC_CMD"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8101 $as_echo "$MAGIC_CMD" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108
8109
8110
8111 if test -z "$lt_cv_path_MAGIC_CMD"; then
8112 if test -n "$ac_tool_prefix"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8114 $as_echo_n "checking for file... " >&6; }
8115 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 case $MAGIC_CMD in
8119 [\\/*] | ?:[\\/]*)
8120 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8121 ;;
8122 *)
8123 lt_save_MAGIC_CMD=$MAGIC_CMD
8124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8125 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8126 for ac_dir in $ac_dummy; do
8127 IFS=$lt_save_ifs
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f "$ac_dir/file"; then
8130 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8131 if test -n "$file_magic_test_file"; then
8132 case $deplibs_check_method in
8133 "file_magic "*)
8134 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8137 $EGREP "$file_magic_regex" > /dev/null; then
8138 :
8139 else
8140 cat <<_LT_EOF 1>&2
8141
8142 *** Warning: the command libtool uses to detect shared libraries,
8143 *** $file_magic_cmd, produces output that libtool cannot recognize.
8144 *** The result is that libtool may fail to recognize shared libraries
8145 *** as such. This will affect the creation of libtool libraries that
8146 *** depend on shared libraries, but programs linked with such libtool
8147 *** libraries will work regardless of this problem. Nevertheless, you
8148 *** may want to report the problem to your system manager and/or to
8149 *** [email protected]
8150
8151 _LT_EOF
8152 fi ;;
8153 esac
8154 fi
8155 break
8156 fi
8157 done
8158 IFS=$lt_save_ifs
8159 MAGIC_CMD=$lt_save_MAGIC_CMD
8160 ;;
8161 esac
8162 fi
8163
8164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8165 if test -n "$MAGIC_CMD"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8167 $as_echo "$MAGIC_CMD" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8171 fi
8172
8173
8174 else
8175 MAGIC_CMD=:
8176 fi
8177 fi
8178
8179 fi
8180 ;;
8181 esac
8182
8183 # Use C for the default configuration in the libtool script
8184
8185 lt_save_CC=$CC
8186 ac_ext=c
8187 ac_cpp='$CPP $CPPFLAGS'
8188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192
8193 # Source file extension for C test sources.
8194 ac_ext=c
8195
8196 # Object file extension for compiled C test sources.
8197 objext=o
8198 objext=$objext
8199
8200 # Code to be used in simple compile tests
8201 lt_simple_compile_test_code="int some_variable = 0;"
8202
8203 # Code to be used in simple link tests
8204 lt_simple_link_test_code='int main(){return(0);}'
8205
8206
8207
8208
8209
8210
8211
8212 # If no C compiler was specified, use CC.
8213 LTCC=${LTCC-"$CC"}
8214
8215 # If no C compiler flags were specified, use CFLAGS.
8216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8217
8218 # Allow CC to be a program name with arguments.
8219 compiler=$CC
8220
8221 # Save the default compiler, since it gets overwritten when the other
8222 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8223 compiler_DEFAULT=$CC
8224
8225 # save warnings/boilerplate of simple test code
8226 ac_outfile=conftest.$ac_objext
8227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8229 _lt_compiler_boilerplate=`cat conftest.err`
8230 $RM conftest*
8231
8232 ac_outfile=conftest.$ac_objext
8233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8235 _lt_linker_boilerplate=`cat conftest.err`
8236 $RM -r conftest*
8237
8238
8239 if test -n "$compiler"; then
8240
8241 lt_prog_compiler_no_builtin_flag=
8242
8243 if test yes = "$GCC"; then
8244 case $cc_basename in
8245 nvcc*)
8246 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8247 *)
8248 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8249 esac
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8252 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8253 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 lt_cv_prog_compiler_rtti_exceptions=no
8257 ac_outfile=conftest.$ac_objext
8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8259 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8260 # Insert the option either (1) after the last *FLAGS variable, or
8261 # (2) before a word containing "conftest.", or (3) at the end.
8262 # Note that $ac_compile itself does not contain backslashes and begins
8263 # with a dollar sign (not a hyphen), so the echo should work correctly.
8264 # The option is referenced via a variable to avoid confusing sed.
8265 lt_compile=`echo "$ac_compile" | $SED \
8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8268 -e 's:$: $lt_compiler_flag:'`
8269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8270 (eval "$lt_compile" 2>conftest.err)
8271 ac_status=$?
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 if (exit $ac_status) && test -s "$ac_outfile"; then
8275 # The compiler can only warn and ignore the option if not recognized
8276 # So say no if there are warnings other than the usual output.
8277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8280 lt_cv_prog_compiler_rtti_exceptions=yes
8281 fi
8282 fi
8283 $RM conftest*
8284
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8287 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8288
8289 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8290 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8291 else
8292 :
8293 fi
8294
8295 fi
8296
8297
8298
8299
8300
8301
8302 lt_prog_compiler_wl=
8303 lt_prog_compiler_pic=
8304 lt_prog_compiler_static=
8305
8306
8307 if test yes = "$GCC"; then
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_static='-static'
8310
8311 case $host_os in
8312 aix*)
8313 # All AIX code is PIC.
8314 if test ia64 = "$host_cpu"; then
8315 # AIX 5 now supports IA64 processor
8316 lt_prog_compiler_static='-Bstatic'
8317 fi
8318 lt_prog_compiler_pic='-fPIC'
8319 ;;
8320
8321 amigaos*)
8322 case $host_cpu in
8323 powerpc)
8324 # see comment about AmigaOS4 .so support
8325 lt_prog_compiler_pic='-fPIC'
8326 ;;
8327 m68k)
8328 # FIXME: we need at least 68020 code to build shared libraries, but
8329 # adding the '-m68020' flag to GCC prevents building anything better,
8330 # like '-m68040'.
8331 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8332 ;;
8333 esac
8334 ;;
8335
8336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8337 # PIC is the default for these OSes.
8338 ;;
8339
8340 mingw* | cygwin* | pw32* | os2* | cegcc*)
8341 # This hack is so that the source file can tell whether it is being
8342 # built for inclusion in a dll (and should export symbols for example).
8343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8344 # (--disable-auto-import) libraries
8345 lt_prog_compiler_pic='-DDLL_EXPORT'
8346 case $host_os in
8347 os2*)
8348 lt_prog_compiler_static='$wl-static'
8349 ;;
8350 esac
8351 ;;
8352
8353 darwin* | rhapsody*)
8354 # PIC is the default on this platform
8355 # Common symbols not allowed in MH_DYLIB files
8356 lt_prog_compiler_pic='-fno-common'
8357 ;;
8358
8359 haiku*)
8360 # PIC is the default for Haiku.
8361 # The "-static" flag exists, but is broken.
8362 lt_prog_compiler_static=
8363 ;;
8364
8365 hpux*)
8366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8368 # sets the default TLS model and affects inlining.
8369 case $host_cpu in
8370 hppa*64*)
8371 # +Z the default
8372 ;;
8373 *)
8374 lt_prog_compiler_pic='-fPIC'
8375 ;;
8376 esac
8377 ;;
8378
8379 interix[3-9]*)
8380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8381 # Instead, we relocate shared libraries at runtime.
8382 ;;
8383
8384 msdosdjgpp*)
8385 # Just because we use GCC doesn't mean we suddenly get shared libraries
8386 # on systems that don't support them.
8387 lt_prog_compiler_can_build_shared=no
8388 enable_shared=no
8389 ;;
8390
8391 *nto* | *qnx*)
8392 # QNX uses GNU C++, but need to define -shared option too, otherwise
8393 # it will coredump.
8394 lt_prog_compiler_pic='-fPIC -shared'
8395 ;;
8396
8397 sysv4*MP*)
8398 if test -d /usr/nec; then
8399 lt_prog_compiler_pic=-Kconform_pic
8400 fi
8401 ;;
8402
8403 *)
8404 lt_prog_compiler_pic='-fPIC'
8405 ;;
8406 esac
8407
8408 case $cc_basename in
8409 nvcc*) # Cuda Compiler Driver 2.2
8410 lt_prog_compiler_wl='-Xlinker '
8411 if test -n "$lt_prog_compiler_pic"; then
8412 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8413 fi
8414 ;;
8415 esac
8416 else
8417 # PORTME Check for flag to pass linker flags through the system compiler.
8418 case $host_os in
8419 aix*)
8420 lt_prog_compiler_wl='-Wl,'
8421 if test ia64 = "$host_cpu"; then
8422 # AIX 5 now supports IA64 processor
8423 lt_prog_compiler_static='-Bstatic'
8424 else
8425 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8426 fi
8427 ;;
8428
8429 darwin* | rhapsody*)
8430 # PIC is the default on this platform
8431 # Common symbols not allowed in MH_DYLIB files
8432 lt_prog_compiler_pic='-fno-common'
8433 case $cc_basename in
8434 nagfor*)
8435 # NAG Fortran compiler
8436 lt_prog_compiler_wl='-Wl,-Wl,,'
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440 esac
8441 ;;
8442
8443 mingw* | cygwin* | pw32* | os2* | cegcc*)
8444 # This hack is so that the source file can tell whether it is being
8445 # built for inclusion in a dll (and should export symbols for example).
8446 lt_prog_compiler_pic='-DDLL_EXPORT'
8447 case $host_os in
8448 os2*)
8449 lt_prog_compiler_static='$wl-static'
8450 ;;
8451 esac
8452 ;;
8453
8454 hpux9* | hpux10* | hpux11*)
8455 lt_prog_compiler_wl='-Wl,'
8456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8457 # not for PA HP-UX.
8458 case $host_cpu in
8459 hppa*64*|ia64*)
8460 # +Z the default
8461 ;;
8462 *)
8463 lt_prog_compiler_pic='+Z'
8464 ;;
8465 esac
8466 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8467 lt_prog_compiler_static='$wl-a ${wl}archive'
8468 ;;
8469
8470 irix5* | irix6* | nonstopux*)
8471 lt_prog_compiler_wl='-Wl,'
8472 # PIC (with -KPIC) is the default.
8473 lt_prog_compiler_static='-non_shared'
8474 ;;
8475
8476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8477 case $cc_basename in
8478 # old Intel for x86_64, which still supported -KPIC.
8479 ecc*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-static'
8483 ;;
8484 # icc used to be incompatible with GCC.
8485 # ICC 10 doesn't accept -KPIC any more.
8486 icc* | ifort*)
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-fPIC'
8489 lt_prog_compiler_static='-static'
8490 ;;
8491 # Lahey Fortran 8.1.
8492 lf95*)
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='--shared'
8495 lt_prog_compiler_static='--static'
8496 ;;
8497 nagfor*)
8498 # NAG Fortran compiler
8499 lt_prog_compiler_wl='-Wl,-Wl,,'
8500 lt_prog_compiler_pic='-PIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 ;;
8503 tcc*)
8504 # Fabrice Bellard et al's Tiny C Compiler
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='-fPIC'
8507 lt_prog_compiler_static='-static'
8508 ;;
8509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8510 # Portland Group compilers (*not* the Pentium gcc compiler,
8511 # which looks to be a dead project)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fpic'
8514 lt_prog_compiler_static='-Bstatic'
8515 ;;
8516 ccc*)
8517 lt_prog_compiler_wl='-Wl,'
8518 # All Alpha code is PIC.
8519 lt_prog_compiler_static='-non_shared'
8520 ;;
8521 xl* | bgxl* | bgf* | mpixl*)
8522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-qpic'
8525 lt_prog_compiler_static='-qstaticlink'
8526 ;;
8527 *)
8528 case `$CC -V 2>&1 | sed 5q` in
8529 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl=''
8534 ;;
8535 *Sun\ F* | *Sun*Fortran*)
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl='-Qoption ld '
8539 ;;
8540 *Sun\ C*)
8541 # Sun C 5.9
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_wl='-Wl,'
8545 ;;
8546 *Intel*\ [CF]*Compiler*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fPIC'
8549 lt_prog_compiler_static='-static'
8550 ;;
8551 *Portland\ Group*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556 esac
8557 ;;
8558 esac
8559 ;;
8560
8561 newsos6)
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-Bstatic'
8564 ;;
8565
8566 *nto* | *qnx*)
8567 # QNX uses GNU C++, but need to define -shared option too, otherwise
8568 # it will coredump.
8569 lt_prog_compiler_pic='-fPIC -shared'
8570 ;;
8571
8572 osf3* | osf4* | osf5*)
8573 lt_prog_compiler_wl='-Wl,'
8574 # All OSF/1 code is PIC.
8575 lt_prog_compiler_static='-non_shared'
8576 ;;
8577
8578 rdos*)
8579 lt_prog_compiler_static='-non_shared'
8580 ;;
8581
8582 solaris*)
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 case $cc_basename in
8586 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8587 lt_prog_compiler_wl='-Qoption ld ';;
8588 *)
8589 lt_prog_compiler_wl='-Wl,';;
8590 esac
8591 ;;
8592
8593 sunos4*)
8594 lt_prog_compiler_wl='-Qoption ld '
8595 lt_prog_compiler_pic='-PIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 ;;
8598
8599 sysv4 | sysv4.2uw2* | sysv4.3*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 ;;
8604
8605 sysv4*MP*)
8606 if test -d /usr/nec; then
8607 lt_prog_compiler_pic='-Kconform_pic'
8608 lt_prog_compiler_static='-Bstatic'
8609 fi
8610 ;;
8611
8612 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 unicos*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_can_build_shared=no
8621 ;;
8622
8623 uts4*)
8624 lt_prog_compiler_pic='-pic'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627
8628 *)
8629 lt_prog_compiler_can_build_shared=no
8630 ;;
8631 esac
8632 fi
8633
8634 case $host_os in
8635 # For platforms that do not support PIC, -DPIC is meaningless:
8636 *djgpp*)
8637 lt_prog_compiler_pic=
8638 ;;
8639 *)
8640 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8641 ;;
8642 esac
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8645 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8646 if ${lt_cv_prog_compiler_pic+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8652 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8653 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8654
8655 #
8656 # Check to make sure the PIC flag actually works.
8657 #
8658 if test -n "$lt_prog_compiler_pic"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8661 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 lt_cv_prog_compiler_pic_works=no
8665 ac_outfile=conftest.$ac_objext
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8668 # Insert the option either (1) after the last *FLAGS variable, or
8669 # (2) before a word containing "conftest.", or (3) at the end.
8670 # Note that $ac_compile itself does not contain backslashes and begins
8671 # with a dollar sign (not a hyphen), so the echo should work correctly.
8672 # The option is referenced via a variable to avoid confusing sed.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>conftest.err)
8679 ac_status=$?
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s "$ac_outfile"; then
8683 # The compiler can only warn and ignore the option if not recognized
8684 # So say no if there are warnings other than the usual output.
8685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8688 lt_cv_prog_compiler_pic_works=yes
8689 fi
8690 fi
8691 $RM conftest*
8692
8693 fi
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8695 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8696
8697 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8698 case $lt_prog_compiler_pic in
8699 "" | " "*) ;;
8700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8701 esac
8702 else
8703 lt_prog_compiler_pic=
8704 lt_prog_compiler_can_build_shared=no
8705 fi
8706
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 #
8720 # Check to make sure the static flag actually works.
8721 #
8722 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8724 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8725 if ${lt_cv_prog_compiler_static_works+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 lt_cv_prog_compiler_static_works=no
8729 save_LDFLAGS=$LDFLAGS
8730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8731 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8733 # The linker can only warn and ignore the option if not recognized
8734 # So say no if there are warnings
8735 if test -s conftest.err; then
8736 # Append any errors to the config.log.
8737 cat conftest.err 1>&5
8738 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740 if diff conftest.exp conftest.er2 >/dev/null; then
8741 lt_cv_prog_compiler_static_works=yes
8742 fi
8743 else
8744 lt_cv_prog_compiler_static_works=yes
8745 fi
8746 fi
8747 $RM -r conftest*
8748 LDFLAGS=$save_LDFLAGS
8749
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8752 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8753
8754 if test yes = "$lt_cv_prog_compiler_static_works"; then
8755 :
8756 else
8757 lt_prog_compiler_static=
8758 fi
8759
8760
8761
8762
8763
8764
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8768 if ${lt_cv_prog_compiler_c_o+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 lt_cv_prog_compiler_c_o=no
8772 $RM -r conftest 2>/dev/null
8773 mkdir conftest
8774 cd conftest
8775 mkdir out
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777
8778 lt_compiler_flag="-o out/conftest2.$ac_objext"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>out/conftest.err)
8789 ac_status=$?
8790 cat out/conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8793 then
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings
8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8799 lt_cv_prog_compiler_c_o=yes
8800 fi
8801 fi
8802 chmod u+w . 2>&5
8803 $RM conftest*
8804 # SGI C++ compiler will create directory out/ii_files/ for
8805 # template instantiation
8806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8807 $RM out/* && rmdir out
8808 cd ..
8809 $RM -r conftest
8810 $RM conftest*
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8815
8816
8817
8818
8819
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8822 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8823 if ${lt_cv_prog_compiler_c_o+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 lt_cv_prog_compiler_c_o=no
8827 $RM -r conftest 2>/dev/null
8828 mkdir conftest
8829 cd conftest
8830 mkdir out
8831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8832
8833 lt_compiler_flag="-o out/conftest2.$ac_objext"
8834 # Insert the option either (1) after the last *FLAGS variable, or
8835 # (2) before a word containing "conftest.", or (3) at the end.
8836 # Note that $ac_compile itself does not contain backslashes and begins
8837 # with a dollar sign (not a hyphen), so the echo should work correctly.
8838 lt_compile=`echo "$ac_compile" | $SED \
8839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8841 -e 's:$: $lt_compiler_flag:'`
8842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8843 (eval "$lt_compile" 2>out/conftest.err)
8844 ac_status=$?
8845 cat out/conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8848 then
8849 # The compiler can only warn and ignore the option if not recognized
8850 # So say no if there are warnings
8851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8854 lt_cv_prog_compiler_c_o=yes
8855 fi
8856 fi
8857 chmod u+w . 2>&5
8858 $RM conftest*
8859 # SGI C++ compiler will create directory out/ii_files/ for
8860 # template instantiation
8861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8862 $RM out/* && rmdir out
8863 cd ..
8864 $RM -r conftest
8865 $RM conftest*
8866
8867 fi
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8869 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8870
8871
8872
8873
8874 hard_links=nottested
8875 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8876 # do not overwrite the value of need_locks provided by the user
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8878 $as_echo_n "checking if we can lock with hard links... " >&6; }
8879 hard_links=yes
8880 $RM conftest*
8881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8882 touch conftest.a
8883 ln conftest.a conftest.b 2>&5 || hard_links=no
8884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8886 $as_echo "$hard_links" >&6; }
8887 if test no = "$hard_links"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8889 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8890 need_locks=warn
8891 fi
8892 else
8893 need_locks=no
8894 fi
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8903
8904 runpath_var=
8905 allow_undefined_flag=
8906 always_export_symbols=no
8907 archive_cmds=
8908 archive_expsym_cmds=
8909 compiler_needs_object=no
8910 enable_shared_with_static_runtimes=no
8911 export_dynamic_flag_spec=
8912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8913 hardcode_automatic=no
8914 hardcode_direct=no
8915 hardcode_direct_absolute=no
8916 hardcode_libdir_flag_spec=
8917 hardcode_libdir_separator=
8918 hardcode_minus_L=no
8919 hardcode_shlibpath_var=unsupported
8920 inherit_rpath=no
8921 link_all_deplibs=unknown
8922 module_cmds=
8923 module_expsym_cmds=
8924 old_archive_from_new_cmds=
8925 old_archive_from_expsyms_cmds=
8926 thread_safe_flag_spec=
8927 whole_archive_flag_spec=
8928 # include_expsyms should be a list of space-separated symbols to be *always*
8929 # included in the symbol list
8930 include_expsyms=
8931 # exclude_expsyms can be an extended regexp of symbols to exclude
8932 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8933 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8934 # as well as any symbol that contains 'd'.
8935 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8937 # platforms (ab)use it in PIC code, but their linkers get confused if
8938 # the symbol is explicitly referenced. Since portable code cannot
8939 # rely on this symbol name, it's probably fine to never include it in
8940 # preloaded symbol tables.
8941 # Exclude shared library initialization/finalization symbols.
8942 extract_expsyms_cmds=
8943
8944 case $host_os in
8945 cygwin* | mingw* | pw32* | cegcc*)
8946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8947 # When not using gcc, we currently assume that we are using
8948 # Microsoft Visual C++.
8949 if test yes != "$GCC"; then
8950 with_gnu_ld=no
8951 fi
8952 ;;
8953 interix*)
8954 # we just hope/assume this is gcc and not c89 (= MSVC++)
8955 with_gnu_ld=yes
8956 ;;
8957 openbsd* | bitrig*)
8958 with_gnu_ld=no
8959 ;;
8960 linux* | k*bsd*-gnu | gnu*)
8961 link_all_deplibs=no
8962 ;;
8963 esac
8964
8965 ld_shlibs=yes
8966
8967 # On some targets, GNU ld is compatible enough with the native linker
8968 # that we're better off using the native interface for both.
8969 lt_use_gnu_ld_interface=no
8970 if test yes = "$with_gnu_ld"; then
8971 case $host_os in
8972 aix*)
8973 # The AIX port of GNU ld has always aspired to compatibility
8974 # with the native linker. However, as the warning in the GNU ld
8975 # block says, versions before 2.19.5* couldn't really create working
8976 # shared libraries, regardless of the interface used.
8977 case `$LD -v 2>&1` in
8978 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8979 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8980 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8981 *)
8982 lt_use_gnu_ld_interface=yes
8983 ;;
8984 esac
8985 ;;
8986 *)
8987 lt_use_gnu_ld_interface=yes
8988 ;;
8989 esac
8990 fi
8991
8992 if test yes = "$lt_use_gnu_ld_interface"; then
8993 # If archive_cmds runs LD, not CC, wlarc should be empty
8994 wlarc='$wl'
8995
8996 # Set some defaults for GNU ld with shared library support. These
8997 # are reset later if shared libraries are not supported. Putting them
8998 # here allows them to be overridden if necessary.
8999 runpath_var=LD_RUN_PATH
9000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9001 export_dynamic_flag_spec='$wl--export-dynamic'
9002 # ancient GNU ld didn't support --whole-archive et. al.
9003 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9004 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9005 else
9006 whole_archive_flag_spec=
9007 fi
9008 supports_anon_versioning=no
9009 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9010 *GNU\ gold*) supports_anon_versioning=yes ;;
9011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9014 *\ 2.11.*) ;; # other 2.11 versions
9015 *) supports_anon_versioning=yes ;;
9016 esac
9017
9018 # See if GNU ld supports shared libraries.
9019 case $host_os in
9020 aix[3-9]*)
9021 # On AIX/PPC, the GNU linker is very broken
9022 if test ia64 != "$host_cpu"; then
9023 ld_shlibs=no
9024 cat <<_LT_EOF 1>&2
9025
9026 *** Warning: the GNU linker, at least up to release 2.19, is reported
9027 *** to be unable to reliably create shared libraries on AIX.
9028 *** Therefore, libtool is disabling shared libraries support. If you
9029 *** really care for shared libraries, you may want to install binutils
9030 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9031 *** You will then need to restart the configuration process.
9032
9033 _LT_EOF
9034 fi
9035 ;;
9036
9037 amigaos*)
9038 case $host_cpu in
9039 powerpc)
9040 # see comment about AmigaOS4 .so support
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9042 archive_expsym_cmds=''
9043 ;;
9044 m68k)
9045 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)'
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 hardcode_minus_L=yes
9048 ;;
9049 esac
9050 ;;
9051
9052 beos*)
9053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9054 allow_undefined_flag=unsupported
9055 # Joseph Beckenbach <[email protected]> says some releases of gcc
9056 # support --undefined. This deserves some investigation. FIXME
9057 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062
9063 cygwin* | mingw* | pw32* | cegcc*)
9064 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9065 # as there is no search path for DLLs.
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 export_dynamic_flag_spec='$wl--export-all-symbols'
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=no
9070 enable_shared_with_static_runtimes=yes
9071 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'
9072 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9073
9074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9076 # If the export-symbols file already is a .def file, use it as
9077 # is; otherwise, prepend EXPORTS...
9078 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9079 cp $export_symbols $output_objdir/$soname.def;
9080 else
9081 echo EXPORTS > $output_objdir/$soname.def;
9082 cat $export_symbols >> $output_objdir/$soname.def;
9083 fi~
9084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9085 else
9086 ld_shlibs=no
9087 fi
9088 ;;
9089
9090 haiku*)
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9092 link_all_deplibs=yes
9093 ;;
9094
9095 os2*)
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_minus_L=yes
9098 allow_undefined_flag=unsupported
9099 shrext_cmds=.dll
9100 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9101 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9102 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9103 $ECHO EXPORTS >> $output_objdir/$libname.def~
9104 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9106 emximp -o $lib $output_objdir/$libname.def'
9107 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9108 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9109 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9110 $ECHO EXPORTS >> $output_objdir/$libname.def~
9111 prefix_cmds="$SED"~
9112 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9113 prefix_cmds="$prefix_cmds -e 1d";
9114 fi~
9115 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9116 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9118 emximp -o $lib $output_objdir/$libname.def'
9119 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9120 enable_shared_with_static_runtimes=yes
9121 ;;
9122
9123 interix[3-9]*)
9124 hardcode_direct=no
9125 hardcode_shlibpath_var=no
9126 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9127 export_dynamic_flag_spec='$wl-E'
9128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9129 # Instead, shared libraries are loaded at an image base (0x10000000 by
9130 # default) and relocated if they conflict, which is a slow very memory
9131 # consuming and fragmenting process. To avoid this, we pick a random,
9132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9135 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'
9136 ;;
9137
9138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9139 tmp_diet=no
9140 if test linux-dietlibc = "$host_os"; then
9141 case $cc_basename in
9142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9143 esac
9144 fi
9145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9146 && test no = "$tmp_diet"
9147 then
9148 tmp_addflag=' $pic_flag'
9149 tmp_sharedflag='-shared'
9150 case $cc_basename,$host_cpu in
9151 pgcc*) # Portland Group C compiler
9152 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'
9153 tmp_addflag=' $pic_flag'
9154 ;;
9155 pgf77* | pgf90* | pgf95* | pgfortran*)
9156 # Portland Group f77 and f90 compilers
9157 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'
9158 tmp_addflag=' $pic_flag -Mnomain' ;;
9159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9160 tmp_addflag=' -i_dynamic' ;;
9161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9162 tmp_addflag=' -i_dynamic -nofor_main' ;;
9163 ifc* | ifort*) # Intel Fortran compiler
9164 tmp_addflag=' -nofor_main' ;;
9165 lf95*) # Lahey Fortran 8.1
9166 whole_archive_flag_spec=
9167 tmp_sharedflag='--shared' ;;
9168 nagfor*) # NAGFOR 5.3
9169 tmp_sharedflag='-Wl,-shared' ;;
9170 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9171 tmp_sharedflag='-qmkshrobj'
9172 tmp_addflag= ;;
9173 nvcc*) # Cuda Compiler Driver 2.2
9174 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'
9175 compiler_needs_object=yes
9176 ;;
9177 esac
9178 case `$CC -V 2>&1 | sed 5q` in
9179 *Sun\ C*) # Sun C 5.9
9180 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'
9181 compiler_needs_object=yes
9182 tmp_sharedflag='-G' ;;
9183 *Sun\ F*) # Sun Fortran 8.3
9184 tmp_sharedflag='-G' ;;
9185 esac
9186 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9187
9188 if test yes = "$supports_anon_versioning"; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9193 fi
9194
9195 case $cc_basename in
9196 tcc*)
9197 export_dynamic_flag_spec='-rdynamic'
9198 ;;
9199 xlf* | bgf* | bgxlf* | mpixlf*)
9200 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9201 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9203 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9204 if test yes = "$supports_anon_versioning"; then
9205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9207 echo "local: *; };" >> $output_objdir/$libname.ver~
9208 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9209 fi
9210 ;;
9211 esac
9212 else
9213 ld_shlibs=no
9214 fi
9215 ;;
9216
9217 netbsd* | netbsdelf*-gnu)
9218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9219 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9220 wlarc=
9221 else
9222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9224 fi
9225 ;;
9226
9227 solaris*)
9228 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9229 ld_shlibs=no
9230 cat <<_LT_EOF 1>&2
9231
9232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9233 *** create shared libraries on Solaris systems. Therefore, libtool
9234 *** is disabling shared libraries support. We urge you to upgrade GNU
9235 *** binutils to release 2.9.1 or newer. Another option is to modify
9236 *** your PATH or compiler configuration so that the native linker is
9237 *** used, and then restart.
9238
9239 _LT_EOF
9240 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9242 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9243 else
9244 ld_shlibs=no
9245 fi
9246 ;;
9247
9248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9249 case `$LD -v 2>&1` in
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9251 ld_shlibs=no
9252 cat <<_LT_EOF 1>&2
9253
9254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9255 *** reliably create shared libraries on SCO systems. Therefore, libtool
9256 *** is disabling shared libraries support. We urge you to upgrade GNU
9257 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9258 *** your PATH or compiler configuration so that the native linker is
9259 *** used, and then restart.
9260
9261 _LT_EOF
9262 ;;
9263 *)
9264 # For security reasons, it is highly recommended that you always
9265 # use absolute paths for naming shared libraries, and exclude the
9266 # DT_RUNPATH tag from executables and libraries. But doing so
9267 # requires that you compile everything twice, which is a pain.
9268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9272 else
9273 ld_shlibs=no
9274 fi
9275 ;;
9276 esac
9277 ;;
9278
9279 sunos4*)
9280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9281 wlarc=
9282 hardcode_direct=yes
9283 hardcode_shlibpath_var=no
9284 ;;
9285
9286 *)
9287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9290 else
9291 ld_shlibs=no
9292 fi
9293 ;;
9294 esac
9295
9296 if test no = "$ld_shlibs"; then
9297 runpath_var=
9298 hardcode_libdir_flag_spec=
9299 export_dynamic_flag_spec=
9300 whole_archive_flag_spec=
9301 fi
9302 else
9303 # PORTME fill in a description of your system's linker (not GNU ld)
9304 case $host_os in
9305 aix3*)
9306 allow_undefined_flag=unsupported
9307 always_export_symbols=yes
9308 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'
9309 # Note: this linker hardcodes the directories in LIBPATH if there
9310 # are no directories specified by -L.
9311 hardcode_minus_L=yes
9312 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9313 # Neither direct hardcoding nor static linking is supported with a
9314 # broken collect2.
9315 hardcode_direct=unsupported
9316 fi
9317 ;;
9318
9319 aix[4-9]*)
9320 if test ia64 = "$host_cpu"; then
9321 # On IA64, the linker does run time linking by default, so we don't
9322 # have to do anything special.
9323 aix_use_runtimelinking=no
9324 exp_sym_flag='-Bexport'
9325 no_entry_flag=
9326 else
9327 # If we're using GNU nm, then we don't want the "-C" option.
9328 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9329 # Without the "-l" option, or with the "-B" option, AIX nm treats
9330 # weak defined symbols like other global defined symbols, whereas
9331 # GNU nm marks them as "W".
9332 # While the 'weak' keyword is ignored in the Export File, we need
9333 # it in the Import File for the 'aix-soname' feature, so we have
9334 # to replace the "-B" option with "-P" for AIX nm.
9335 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9336 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9337 else
9338 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9339 fi
9340 aix_use_runtimelinking=no
9341
9342 # Test if we are trying to use run time linking or normal
9343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9344 # have runtime linking enabled, and use it for executables.
9345 # For shared libraries, we enable/disable runtime linking
9346 # depending on the kind of the shared library created -
9347 # when "with_aix_soname,aix_use_runtimelinking" is:
9348 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9349 # "aix,yes" lib.so shared, rtl:yes, for executables
9350 # lib.a static archive
9351 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9352 # lib.a(lib.so.V) shared, rtl:no, for executables
9353 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9354 # lib.a(lib.so.V) shared, rtl:no
9355 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9356 # lib.a static archive
9357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9358 for ld_flag in $LDFLAGS; do
9359 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9360 aix_use_runtimelinking=yes
9361 break
9362 fi
9363 done
9364 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9365 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9366 # so we don't have lib.a shared libs to link our executables.
9367 # We have to force runtime linking in this case.
9368 aix_use_runtimelinking=yes
9369 LDFLAGS="$LDFLAGS -Wl,-brtl"
9370 fi
9371 ;;
9372 esac
9373
9374 exp_sym_flag='-bexport'
9375 no_entry_flag='-bnoentry'
9376 fi
9377
9378 # When large executables or shared objects are built, AIX ld can
9379 # have problems creating the table of contents. If linking a library
9380 # or program results in "error TOC overflow" add -mminimal-toc to
9381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9383
9384 archive_cmds=''
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 hardcode_libdir_separator=':'
9388 link_all_deplibs=yes
9389 file_list_spec='$wl-f,'
9390 case $with_aix_soname,$aix_use_runtimelinking in
9391 aix,*) ;; # traditional, no import file
9392 svr4,* | *,yes) # use import file
9393 # The Import File defines what to hardcode.
9394 hardcode_direct=no
9395 hardcode_direct_absolute=no
9396 ;;
9397 esac
9398
9399 if test yes = "$GCC"; then
9400 case $host_os in aix4.[012]|aix4.[012].*)
9401 # We only want to do this on AIX 4.2 and lower, the check
9402 # below for broken collect2 doesn't work under 4.3+
9403 collect2name=`$CC -print-prog-name=collect2`
9404 if test -f "$collect2name" &&
9405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9406 then
9407 # We have reworked collect2
9408 :
9409 else
9410 # We have old collect2
9411 hardcode_direct=unsupported
9412 # It fails to find uninstalled libraries when the uninstalled
9413 # path is not listed in the libpath. Setting hardcode_minus_L
9414 # to unsupported forces relinking
9415 hardcode_minus_L=yes
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_libdir_separator=
9418 fi
9419 ;;
9420 esac
9421 shared_flag='-shared'
9422 if test yes = "$aix_use_runtimelinking"; then
9423 shared_flag="$shared_flag "'$wl-G'
9424 fi
9425 # Need to ensure runtime linking is disabled for the traditional
9426 # shared library, or the linker may eventually find shared libraries
9427 # /with/ Import File - we do not want to mix them.
9428 shared_flag_aix='-shared'
9429 shared_flag_svr4='-shared $wl-G'
9430 else
9431 # not using gcc
9432 if test ia64 = "$host_cpu"; then
9433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9434 # chokes on -Wl,-G. The following line is correct:
9435 shared_flag='-G'
9436 else
9437 if test yes = "$aix_use_runtimelinking"; then
9438 shared_flag='$wl-G'
9439 else
9440 shared_flag='$wl-bM:SRE'
9441 fi
9442 shared_flag_aix='$wl-bM:SRE'
9443 shared_flag_svr4='$wl-G'
9444 fi
9445 fi
9446
9447 export_dynamic_flag_spec='$wl-bexpall'
9448 # It seems that -bexpall does not export symbols beginning with
9449 # underscore (_), so it is better to generate a list of symbols to export.
9450 always_export_symbols=yes
9451 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9452 # Warning - without using the other runtime loading flags (-brtl),
9453 # -berok will link without error, but may produce a broken library.
9454 allow_undefined_flag='-berok'
9455 # Determine the default libpath from the value encoded in an
9456 # empty executable.
9457 if test set = "${lt_cv_aix_libpath+set}"; then
9458 aix_libpath=$lt_cv_aix_libpath
9459 else
9460 if ${lt_cv_aix_libpath_+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465
9466 int
9467 main ()
9468 {
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475
9476 lt_aix_libpath_sed='
9477 /Import File Strings/,/^$/ {
9478 /^0/ {
9479 s/^0 *\([^ ]*\) *$/\1/
9480 p
9481 }
9482 }'
9483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484 # Check for a 64-bit object if we didn't find anything.
9485 if test -z "$lt_cv_aix_libpath_"; then
9486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9487 fi
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 if test -z "$lt_cv_aix_libpath_"; then
9492 lt_cv_aix_libpath_=/usr/lib:/lib
9493 fi
9494
9495 fi
9496
9497 aix_libpath=$lt_cv_aix_libpath_
9498 fi
9499
9500 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9501 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9502 else
9503 if test ia64 = "$host_cpu"; then
9504 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9505 allow_undefined_flag="-z nodefs"
9506 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"
9507 else
9508 # Determine the default libpath from the value encoded in an
9509 # empty executable.
9510 if test set = "${lt_cv_aix_libpath+set}"; then
9511 aix_libpath=$lt_cv_aix_libpath
9512 else
9513 if ${lt_cv_aix_libpath_+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518
9519 int
9520 main ()
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528
9529 lt_aix_libpath_sed='
9530 /Import File Strings/,/^$/ {
9531 /^0/ {
9532 s/^0 *\([^ ]*\) *$/\1/
9533 p
9534 }
9535 }'
9536 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 # Check for a 64-bit object if we didn't find anything.
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540 fi
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 if test -z "$lt_cv_aix_libpath_"; then
9545 lt_cv_aix_libpath_=/usr/lib:/lib
9546 fi
9547
9548 fi
9549
9550 aix_libpath=$lt_cv_aix_libpath_
9551 fi
9552
9553 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9554 # Warning - without using the other run time loading flags,
9555 # -berok will link without error, but may produce a broken library.
9556 no_undefined_flag=' $wl-bernotok'
9557 allow_undefined_flag=' $wl-berok'
9558 if test yes = "$with_gnu_ld"; then
9559 # We only use this code for GNU lds that support --whole-archive.
9560 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9561 else
9562 # Exported symbols can be pulled into shared objects from archives
9563 whole_archive_flag_spec='$convenience'
9564 fi
9565 archive_cmds_need_lc=yes
9566 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9567 # -brtl affects multiple linker settings, -berok does not and is overridden later
9568 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9569 if test svr4 != "$with_aix_soname"; then
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9572 fi
9573 if test aix != "$with_aix_soname"; then
9574 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9575 else
9576 # used by -dlpreopen to get the symbols
9577 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9578 fi
9579 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9580 fi
9581 fi
9582 ;;
9583
9584 amigaos*)
9585 case $host_cpu in
9586 powerpc)
9587 # see comment about AmigaOS4 .so support
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds=''
9590 ;;
9591 m68k)
9592 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)'
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_minus_L=yes
9595 ;;
9596 esac
9597 ;;
9598
9599 bsdi[45]*)
9600 export_dynamic_flag_spec=-rdynamic
9601 ;;
9602
9603 cygwin* | mingw* | pw32* | cegcc*)
9604 # When not using gcc, we currently assume that we are using
9605 # Microsoft Visual C++.
9606 # hardcode_libdir_flag_spec is actually meaningless, as there is
9607 # no search path for DLLs.
9608 case $cc_basename in
9609 cl*)
9610 # Native MSVC
9611 hardcode_libdir_flag_spec=' '
9612 allow_undefined_flag=unsupported
9613 always_export_symbols=yes
9614 file_list_spec='@'
9615 # Tell ltmain to make .lib files, not .a files.
9616 libext=lib
9617 # Tell ltmain to make .dll files, not .so files.
9618 shrext_cmds=.dll
9619 # FIXME: Setting linknames here is a bad hack.
9620 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9621 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9622 cp "$export_symbols" "$output_objdir/$soname.def";
9623 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9624 else
9625 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9626 fi~
9627 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9628 linknames='
9629 # The linker will not automatically build a static lib if we build a DLL.
9630 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9631 enable_shared_with_static_runtimes=yes
9632 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9634 # Don't use ranlib
9635 old_postinstall_cmds='chmod 644 $oldlib'
9636 postlink_cmds='lt_outputfile="@OUTPUT@"~
9637 lt_tool_outputfile="@TOOL_OUTPUT@"~
9638 case $lt_outputfile in
9639 *.exe|*.EXE) ;;
9640 *)
9641 lt_outputfile=$lt_outputfile.exe
9642 lt_tool_outputfile=$lt_tool_outputfile.exe
9643 ;;
9644 esac~
9645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9646 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9647 $RM "$lt_outputfile.manifest";
9648 fi'
9649 ;;
9650 *)
9651 # Assume MSVC wrapper
9652 hardcode_libdir_flag_spec=' '
9653 allow_undefined_flag=unsupported
9654 # Tell ltmain to make .lib files, not .a files.
9655 libext=lib
9656 # Tell ltmain to make .dll files, not .so files.
9657 shrext_cmds=.dll
9658 # FIXME: Setting linknames here is a bad hack.
9659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9660 # The linker will automatically build a .lib file if we build a DLL.
9661 old_archive_from_new_cmds='true'
9662 # FIXME: Should let the user specify the lib program.
9663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9664 enable_shared_with_static_runtimes=yes
9665 ;;
9666 esac
9667 ;;
9668
9669 darwin* | rhapsody*)
9670
9671
9672 archive_cmds_need_lc=no
9673 hardcode_direct=no
9674 hardcode_automatic=yes
9675 hardcode_shlibpath_var=unsupported
9676 if test yes = "$lt_cv_ld_force_load"; then
9677 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\"`'
9678
9679 else
9680 whole_archive_flag_spec=''
9681 fi
9682 link_all_deplibs=yes
9683 allow_undefined_flag=$_lt_dar_allow_undefined
9684 case $cc_basename in
9685 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9686 *) _lt_dar_can_shared=$GCC ;;
9687 esac
9688 if test yes = "$_lt_dar_can_shared"; then
9689 output_verbose_link_cmd=func_echo_all
9690 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9691 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9692 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"
9693 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"
9694
9695 else
9696 ld_shlibs=no
9697 fi
9698
9699 ;;
9700
9701 dgux*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9708 # support. Future versions do this automatically, but an explicit c++rt0.o
9709 # does not break anything, and helps significantly (at the cost of a little
9710 # extra space).
9711 freebsd2.2*)
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9713 hardcode_libdir_flag_spec='-R$libdir'
9714 hardcode_direct=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9719 freebsd2.*)
9720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_direct=yes
9722 hardcode_minus_L=yes
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9727 freebsd* | dragonfly*)
9728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 hpux9*)
9735 if test yes = "$GCC"; then
9736 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9737 else
9738 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9739 fi
9740 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9741 hardcode_libdir_separator=:
9742 hardcode_direct=yes
9743
9744 # hardcode_minus_L: Not really in the search PATH,
9745 # but as the default location of the library.
9746 hardcode_minus_L=yes
9747 export_dynamic_flag_spec='$wl-E'
9748 ;;
9749
9750 hpux10*)
9751 if test yes,no = "$GCC,$with_gnu_ld"; then
9752 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9753 else
9754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9755 fi
9756 if test no = "$with_gnu_ld"; then
9757 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9758 hardcode_libdir_separator=:
9759 hardcode_direct=yes
9760 hardcode_direct_absolute=yes
9761 export_dynamic_flag_spec='$wl-E'
9762 # hardcode_minus_L: Not really in the search PATH,
9763 # but as the default location of the library.
9764 hardcode_minus_L=yes
9765 fi
9766 ;;
9767
9768 hpux11*)
9769 if test yes,no = "$GCC,$with_gnu_ld"; then
9770 case $host_cpu in
9771 hppa*64*)
9772 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 ;;
9774 ia64*)
9775 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9776 ;;
9777 *)
9778 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9779 ;;
9780 esac
9781 else
9782 case $host_cpu in
9783 hppa*64*)
9784 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 ia64*)
9787 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 *)
9790
9791 # Older versions of the 11.00 compiler do not understand -b yet
9792 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9794 $as_echo_n "checking if $CC understands -b... " >&6; }
9795 if ${lt_cv_prog_compiler__b+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 lt_cv_prog_compiler__b=no
9799 save_LDFLAGS=$LDFLAGS
9800 LDFLAGS="$LDFLAGS -b"
9801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803 # The linker can only warn and ignore the option if not recognized
9804 # So say no if there are warnings
9805 if test -s conftest.err; then
9806 # Append any errors to the config.log.
9807 cat conftest.err 1>&5
9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
9811 lt_cv_prog_compiler__b=yes
9812 fi
9813 else
9814 lt_cv_prog_compiler__b=yes
9815 fi
9816 fi
9817 $RM -r conftest*
9818 LDFLAGS=$save_LDFLAGS
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9822 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9823
9824 if test yes = "$lt_cv_prog_compiler__b"; then
9825 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 else
9827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828 fi
9829
9830 ;;
9831 esac
9832 fi
9833 if test no = "$with_gnu_ld"; then
9834 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9835 hardcode_libdir_separator=:
9836
9837 case $host_cpu in
9838 hppa*64*|ia64*)
9839 hardcode_direct=no
9840 hardcode_shlibpath_var=no
9841 ;;
9842 *)
9843 hardcode_direct=yes
9844 hardcode_direct_absolute=yes
9845 export_dynamic_flag_spec='$wl-E'
9846
9847 # hardcode_minus_L: Not really in the search PATH,
9848 # but as the default location of the library.
9849 hardcode_minus_L=yes
9850 ;;
9851 esac
9852 fi
9853 ;;
9854
9855 irix5* | irix6* | nonstopux*)
9856 if test yes = "$GCC"; then
9857 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'
9858 # Try to use the -exported_symbol ld option, if it does not
9859 # work, assume that -exports_file does not work either and
9860 # implicitly export all symbols.
9861 # This should be the same for all languages, so no per-tag cache variable.
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9863 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9864 if ${lt_cv_irix_exported_symbol+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 save_LDFLAGS=$LDFLAGS
9868 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int foo (void) { return 0; }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 lt_cv_irix_exported_symbol=yes
9875 else
9876 lt_cv_irix_exported_symbol=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LDFLAGS=$save_LDFLAGS
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9883 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9884 if test yes = "$lt_cv_irix_exported_symbol"; then
9885 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'
9886 fi
9887 link_all_deplibs=no
9888 else
9889 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'
9890 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'
9891 fi
9892 archive_cmds_need_lc='no'
9893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894 hardcode_libdir_separator=:
9895 inherit_rpath=yes
9896 link_all_deplibs=yes
9897 ;;
9898
9899 linux*)
9900 case $cc_basename in
9901 tcc*)
9902 # Fabrice Bellard et al's Tiny C Compiler
9903 ld_shlibs=yes
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 ;;
9906 esac
9907 ;;
9908
9909 netbsd* | netbsdelf*-gnu)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9912 else
9913 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9914 fi
9915 hardcode_libdir_flag_spec='-R$libdir'
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 newsos6)
9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_direct=yes
9923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9924 hardcode_libdir_separator=:
9925 hardcode_shlibpath_var=no
9926 ;;
9927
9928 *nto* | *qnx*)
9929 ;;
9930
9931 openbsd* | bitrig*)
9932 if test -f /usr/libexec/ld.so; then
9933 hardcode_direct=yes
9934 hardcode_shlibpath_var=no
9935 hardcode_direct_absolute=yes
9936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9939 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9940 export_dynamic_flag_spec='$wl-E'
9941 else
9942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9944 fi
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949
9950 os2*)
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_minus_L=yes
9953 allow_undefined_flag=unsupported
9954 shrext_cmds=.dll
9955 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9956 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9957 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9958 $ECHO EXPORTS >> $output_objdir/$libname.def~
9959 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9961 emximp -o $lib $output_objdir/$libname.def'
9962 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9963 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9964 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9965 $ECHO EXPORTS >> $output_objdir/$libname.def~
9966 prefix_cmds="$SED"~
9967 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9968 prefix_cmds="$prefix_cmds -e 1d";
9969 fi~
9970 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9971 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9973 emximp -o $lib $output_objdir/$libname.def'
9974 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9975 enable_shared_with_static_runtimes=yes
9976 ;;
9977
9978 osf3*)
9979 if test yes = "$GCC"; then
9980 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9981 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'
9982 else
9983 allow_undefined_flag=' -expect_unresolved \*'
9984 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'
9985 fi
9986 archive_cmds_need_lc='no'
9987 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9988 hardcode_libdir_separator=:
9989 ;;
9990
9991 osf4* | osf5*) # as osf3* with the addition of -msym flag
9992 if test yes = "$GCC"; then
9993 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9994 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'
9995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9996 else
9997 allow_undefined_flag=' -expect_unresolved \*'
9998 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'
9999 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~
10000 $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'
10001
10002 # Both c and cxx compiler support -rpath directly
10003 hardcode_libdir_flag_spec='-rpath $libdir'
10004 fi
10005 archive_cmds_need_lc='no'
10006 hardcode_libdir_separator=:
10007 ;;
10008
10009 solaris*)
10010 no_undefined_flag=' -z defs'
10011 if test yes = "$GCC"; then
10012 wlarc='$wl'
10013 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015 $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'
10016 else
10017 case `$CC -V 2>&1` in
10018 *"Compilers 5.0"*)
10019 wlarc=''
10020 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10022 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10023 ;;
10024 *)
10025 wlarc='$wl'
10026 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10028 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10029 ;;
10030 esac
10031 fi
10032 hardcode_libdir_flag_spec='-R$libdir'
10033 hardcode_shlibpath_var=no
10034 case $host_os in
10035 solaris2.[0-5] | solaris2.[0-5].*) ;;
10036 *)
10037 # The compiler driver will combine and reorder linker options,
10038 # but understands '-z linker_flag'. GCC discards it without '$wl',
10039 # but is careful enough not to reorder.
10040 # Supported since Solaris 2.6 (maybe 2.5.1?)
10041 if test yes = "$GCC"; then
10042 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10043 else
10044 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10045 fi
10046 ;;
10047 esac
10048 link_all_deplibs=yes
10049 ;;
10050
10051 sunos4*)
10052 if test sequent = "$host_vendor"; then
10053 # Use $CC to link under sequent, because it throws in some extra .o
10054 # files that make .init and .fini sections work.
10055 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10056 else
10057 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10058 fi
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_direct=yes
10061 hardcode_minus_L=yes
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 sysv4)
10066 case $host_vendor in
10067 sni)
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_direct=yes # is this really true???
10070 ;;
10071 siemens)
10072 ## LD is ld it makes a PLAMLIB
10073 ## CC just makes a GrossModule.
10074 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10075 reload_cmds='$CC -r -o $output$reload_objs'
10076 hardcode_direct=no
10077 ;;
10078 motorola)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10081 ;;
10082 esac
10083 runpath_var='LD_RUN_PATH'
10084 hardcode_shlibpath_var=no
10085 ;;
10086
10087 sysv4.3*)
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_shlibpath_var=no
10090 export_dynamic_flag_spec='-Bexport'
10091 ;;
10092
10093 sysv4*MP*)
10094 if test -d /usr/nec; then
10095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096 hardcode_shlibpath_var=no
10097 runpath_var=LD_RUN_PATH
10098 hardcode_runpath_var=yes
10099 ld_shlibs=yes
10100 fi
10101 ;;
10102
10103 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10104 no_undefined_flag='$wl-z,text'
10105 archive_cmds_need_lc=no
10106 hardcode_shlibpath_var=no
10107 runpath_var='LD_RUN_PATH'
10108
10109 if test yes = "$GCC"; then
10110 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 fi
10116 ;;
10117
10118 sysv5* | sco3.2v5* | sco5v6*)
10119 # Note: We CANNOT use -z defs as we might desire, because we do not
10120 # link with -lc, and that would cause any symbols used from libc to
10121 # always be unresolved, which means just about no library would
10122 # ever link correctly. If we're not using GNU ld we use -z text
10123 # though, which does catch some bad symbols but isn't as heavy-handed
10124 # as -z defs.
10125 no_undefined_flag='$wl-z,text'
10126 allow_undefined_flag='$wl-z,nodefs'
10127 archive_cmds_need_lc=no
10128 hardcode_shlibpath_var=no
10129 hardcode_libdir_flag_spec='$wl-R,$libdir'
10130 hardcode_libdir_separator=':'
10131 link_all_deplibs=yes
10132 export_dynamic_flag_spec='$wl-Bexport'
10133 runpath_var='LD_RUN_PATH'
10134
10135 if test yes = "$GCC"; then
10136 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 else
10139 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 fi
10142 ;;
10143
10144 uts4*)
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_shlibpath_var=no
10148 ;;
10149
10150 *)
10151 ld_shlibs=no
10152 ;;
10153 esac
10154
10155 if test sni = "$host_vendor"; then
10156 case $host in
10157 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10158 export_dynamic_flag_spec='$wl-Blargedynsym'
10159 ;;
10160 esac
10161 fi
10162 fi
10163
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10165 $as_echo "$ld_shlibs" >&6; }
10166 test no = "$ld_shlibs" && can_build_shared=no
10167
10168 with_gnu_ld=$with_gnu_ld
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184 #
10185 # Do we need to explicitly link libc?
10186 #
10187 case "x$archive_cmds_need_lc" in
10188 x|xyes)
10189 # Assume -lc should be added
10190 archive_cmds_need_lc=yes
10191
10192 if test yes,yes = "$GCC,$enable_shared"; then
10193 case $archive_cmds in
10194 *'~'*)
10195 # FIXME: we may have to deal with multi-command sequences.
10196 ;;
10197 '$CC '*)
10198 # Test whether the compiler implicitly links with -lc since on some
10199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10200 # to ld, don't add -lc before -lgcc.
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10202 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10203 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 $RM conftest*
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10208
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10210 (eval $ac_compile) 2>&5
10211 ac_status=$?
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; } 2>conftest.err; then
10214 soname=conftest
10215 lib=conftest
10216 libobjs=conftest.$ac_objext
10217 deplibs=
10218 wl=$lt_prog_compiler_wl
10219 pic_flag=$lt_prog_compiler_pic
10220 compiler_flags=-v
10221 linker_flags=-v
10222 verstring=
10223 output_objdir=.
10224 libname=conftest
10225 lt_save_allow_undefined_flag=$allow_undefined_flag
10226 allow_undefined_flag=
10227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10228 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10229 ac_status=$?
10230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10231 test $ac_status = 0; }
10232 then
10233 lt_cv_archive_cmds_need_lc=no
10234 else
10235 lt_cv_archive_cmds_need_lc=yes
10236 fi
10237 allow_undefined_flag=$lt_save_allow_undefined_flag
10238 else
10239 cat conftest.err 1>&5
10240 fi
10241 $RM conftest*
10242
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10245 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10246 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10247 ;;
10248 esac
10249 fi
10250 ;;
10251 esac
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10405 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10406
10407 if test yes = "$GCC"; then
10408 case $host_os in
10409 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10410 *) lt_awk_arg='/^libraries:/' ;;
10411 esac
10412 case $host_os in
10413 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10414 *) lt_sed_strip_eq='s|=/|/|g' ;;
10415 esac
10416 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10417 case $lt_search_path_spec in
10418 *\;*)
10419 # if the path contains ";" then we assume it to be the separator
10420 # otherwise default to the standard path separator (i.e. ":") - it is
10421 # assumed that no part of a normal pathname contains ";" but that should
10422 # okay in the real world where ";" in dirpaths is itself problematic.
10423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10424 ;;
10425 *)
10426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10427 ;;
10428 esac
10429 # Ok, now we have the path, separated by spaces, we can step through it
10430 # and add multilib dir if necessary...
10431 lt_tmp_lt_search_path_spec=
10432 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10433 # ...but if some path component already ends with the multilib dir we assume
10434 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10435 case "$lt_multi_os_dir; $lt_search_path_spec " in
10436 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10437 lt_multi_os_dir=
10438 ;;
10439 esac
10440 for lt_sys_path in $lt_search_path_spec; do
10441 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10443 elif test -n "$lt_multi_os_dir"; then
10444 test -d "$lt_sys_path" && \
10445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10446 fi
10447 done
10448 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10449 BEGIN {RS = " "; FS = "/|\n";} {
10450 lt_foo = "";
10451 lt_count = 0;
10452 for (lt_i = NF; lt_i > 0; lt_i--) {
10453 if ($lt_i != "" && $lt_i != ".") {
10454 if ($lt_i == "..") {
10455 lt_count++;
10456 } else {
10457 if (lt_count == 0) {
10458 lt_foo = "/" $lt_i lt_foo;
10459 } else {
10460 lt_count--;
10461 }
10462 }
10463 }
10464 }
10465 if (lt_foo != "") { lt_freq[lt_foo]++; }
10466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10467 }'`
10468 # AWK program above erroneously prepends '/' to C:/dos/paths
10469 # for these hosts.
10470 case $host_os in
10471 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10472 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10473 esac
10474 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10475 else
10476 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10477 fi
10478 library_names_spec=
10479 libname_spec='lib$name'
10480 soname_spec=
10481 shrext_cmds=.so
10482 postinstall_cmds=
10483 postuninstall_cmds=
10484 finish_cmds=
10485 finish_eval=
10486 shlibpath_var=
10487 shlibpath_overrides_runpath=unknown
10488 version_type=none
10489 dynamic_linker="$host_os ld.so"
10490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10491 need_lib_prefix=unknown
10492 hardcode_into_libs=no
10493
10494 # when you set need_version to no, make sure it does not cause -set_version
10495 # flags to be left without arguments
10496 need_version=unknown
10497
10498
10499
10500 case $host_os in
10501 aix3*)
10502 version_type=linux # correct to gnu/linux during the next big refactor
10503 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10504 shlibpath_var=LIBPATH
10505
10506 # AIX 3 has no versioning support, so we append a major version to the name.
10507 soname_spec='$libname$release$shared_ext$major'
10508 ;;
10509
10510 aix[4-9]*)
10511 version_type=linux # correct to gnu/linux during the next big refactor
10512 need_lib_prefix=no
10513 need_version=no
10514 hardcode_into_libs=yes
10515 if test ia64 = "$host_cpu"; then
10516 # AIX 5 supports IA64
10517 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 else
10520 # With GCC up to 2.95.x, collect2 would create an import file
10521 # for dependence libraries. The import file would start with
10522 # the line '#! .'. This would cause the generated library to
10523 # depend on '.', always an invalid library. This was fixed in
10524 # development snapshots of GCC prior to 3.0.
10525 case $host_os in
10526 aix4 | aix4.[01] | aix4.[01].*)
10527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10528 echo ' yes '
10529 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10530 :
10531 else
10532 can_build_shared=no
10533 fi
10534 ;;
10535 esac
10536 # Using Import Files as archive members, it is possible to support
10537 # filename-based versioning of shared library archives on AIX. While
10538 # this would work for both with and without runtime linking, it will
10539 # prevent static linking of such archives. So we do filename-based
10540 # shared library versioning with .so extension only, which is used
10541 # when both runtime linking and shared linking is enabled.
10542 # Unfortunately, runtime linking may impact performance, so we do
10543 # not want this to be the default eventually. Also, we use the
10544 # versioned .so libs for executables only if there is the -brtl
10545 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10546 # To allow for filename-based versioning support, we need to create
10547 # libNAME.so.V as an archive file, containing:
10548 # *) an Import File, referring to the versioned filename of the
10549 # archive as well as the shared archive member, telling the
10550 # bitwidth (32 or 64) of that shared object, and providing the
10551 # list of exported symbols of that shared object, eventually
10552 # decorated with the 'weak' keyword
10553 # *) the shared object with the F_LOADONLY flag set, to really avoid
10554 # it being seen by the linker.
10555 # At run time we better use the real file rather than another symlink,
10556 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10557
10558 case $with_aix_soname,$aix_use_runtimelinking in
10559 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10560 # soname into executable. Probably we can add versioning support to
10561 # collect2, so additional links can be useful in future.
10562 aix,yes) # traditional libtool
10563 dynamic_linker='AIX unversionable lib.so'
10564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10565 # instead of lib<name>.a to let people know that these are not
10566 # typical AIX shared libraries.
10567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10568 ;;
10569 aix,no) # traditional AIX only
10570 dynamic_linker='AIX lib.a(lib.so.V)'
10571 # We preserve .a as extension for shared libraries through AIX4.2
10572 # and later when we are not doing run time linking.
10573 library_names_spec='$libname$release.a $libname.a'
10574 soname_spec='$libname$release$shared_ext$major'
10575 ;;
10576 svr4,*) # full svr4 only
10577 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10578 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10579 # We do not specify a path in Import Files, so LIBPATH fires.
10580 shlibpath_overrides_runpath=yes
10581 ;;
10582 *,yes) # both, prefer svr4
10583 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10584 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10585 # unpreferred sharedlib libNAME.a needs extra handling
10586 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10587 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10588 # We do not specify a path in Import Files, so LIBPATH fires.
10589 shlibpath_overrides_runpath=yes
10590 ;;
10591 *,no) # both, prefer aix
10592 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10593 library_names_spec='$libname$release.a $libname.a'
10594 soname_spec='$libname$release$shared_ext$major'
10595 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10596 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10597 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10598 ;;
10599 esac
10600 shlibpath_var=LIBPATH
10601 fi
10602 ;;
10603
10604 amigaos*)
10605 case $host_cpu in
10606 powerpc)
10607 # Since July 2007 AmigaOS4 officially supports .so libraries.
10608 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10610 ;;
10611 m68k)
10612 library_names_spec='$libname.ixlibrary $libname.a'
10613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10614 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10615 ;;
10616 esac
10617 ;;
10618
10619 beos*)
10620 library_names_spec='$libname$shared_ext'
10621 dynamic_linker="$host_os ld.so"
10622 shlibpath_var=LIBRARY_PATH
10623 ;;
10624
10625 bsdi[45]*)
10626 version_type=linux # correct to gnu/linux during the next big refactor
10627 need_version=no
10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629 soname_spec='$libname$release$shared_ext$major'
10630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10634 # the default ld.so.conf also contains /usr/contrib/lib and
10635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10636 # libtool to hard-code these into programs
10637 ;;
10638
10639 cygwin* | mingw* | pw32* | cegcc*)
10640 version_type=windows
10641 shrext_cmds=.dll
10642 need_version=no
10643 need_lib_prefix=no
10644
10645 case $GCC,$cc_basename in
10646 yes,*)
10647 # gcc
10648 library_names_spec='$libname.dll.a'
10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10650 postinstall_cmds='base_file=`basename \$file`~
10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10652 dldir=$destdir/`dirname \$dlpath`~
10653 test -d \$dldir || mkdir -p \$dldir~
10654 $install_prog $dir/$dlname \$dldir/$dlname~
10655 chmod a+x \$dldir/$dlname~
10656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10658 fi'
10659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10660 dlpath=$dir/\$dldll~
10661 $RM \$dlpath'
10662 shlibpath_overrides_runpath=yes
10663
10664 case $host_os in
10665 cygwin*)
10666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10667 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10668
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10670 ;;
10671 mingw* | cegcc*)
10672 # MinGW DLLs use traditional 'lib' prefix
10673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10674 ;;
10675 pw32*)
10676 # pw32 DLLs use 'pw' prefix rather than 'lib'
10677 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10678 ;;
10679 esac
10680 dynamic_linker='Win32 ld.exe'
10681 ;;
10682
10683 *,cl*)
10684 # Native MSVC
10685 libname_spec='$name'
10686 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10687 library_names_spec='$libname.dll.lib'
10688
10689 case $build_os in
10690 mingw*)
10691 sys_lib_search_path_spec=
10692 lt_save_ifs=$IFS
10693 IFS=';'
10694 for lt_path in $LIB
10695 do
10696 IFS=$lt_save_ifs
10697 # Let DOS variable expansion print the short 8.3 style file name.
10698 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10699 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10700 done
10701 IFS=$lt_save_ifs
10702 # Convert to MSYS style.
10703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10704 ;;
10705 cygwin*)
10706 # Convert to unix form, then to dos form, then back to unix form
10707 # but this time dos style (no spaces!) so that the unix form looks
10708 # like /cygdrive/c/PROGRA~1:/cygdr...
10709 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10710 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10711 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10712 ;;
10713 *)
10714 sys_lib_search_path_spec=$LIB
10715 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10716 # It is most probably a Windows format PATH.
10717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10718 else
10719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10720 fi
10721 # FIXME: find the short name or the path components, as spaces are
10722 # common. (e.g. "Program Files" -> "PROGRA~1")
10723 ;;
10724 esac
10725
10726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727 postinstall_cmds='base_file=`basename \$file`~
10728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10729 dldir=$destdir/`dirname \$dlpath`~
10730 test -d \$dldir || mkdir -p \$dldir~
10731 $install_prog $dir/$dlname \$dldir/$dlname'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10734 $RM \$dlpath'
10735 shlibpath_overrides_runpath=yes
10736 dynamic_linker='Win32 link.exe'
10737 ;;
10738
10739 *)
10740 # Assume MSVC wrapper
10741 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10742 dynamic_linker='Win32 ld.exe'
10743 ;;
10744 esac
10745 # FIXME: first we should search . and the directory the executable is in
10746 shlibpath_var=PATH
10747 ;;
10748
10749 darwin* | rhapsody*)
10750 dynamic_linker="$host_os dyld"
10751 version_type=darwin
10752 need_lib_prefix=no
10753 need_version=no
10754 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10755 soname_spec='$libname$release$major$shared_ext'
10756 shlibpath_overrides_runpath=yes
10757 shlibpath_var=DYLD_LIBRARY_PATH
10758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10759
10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10762 ;;
10763
10764 dgux*)
10765 version_type=linux # correct to gnu/linux during the next big refactor
10766 need_lib_prefix=no
10767 need_version=no
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769 soname_spec='$libname$release$shared_ext$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 ;;
10772
10773 freebsd* | dragonfly*)
10774 # DragonFly does not have aout. When/if they implement a new
10775 # versioning mechanism, adjust this.
10776 if test -x /usr/bin/objformat; then
10777 objformat=`/usr/bin/objformat`
10778 else
10779 case $host_os in
10780 freebsd[23].*) objformat=aout ;;
10781 *) objformat=elf ;;
10782 esac
10783 fi
10784 version_type=freebsd-$objformat
10785 case $version_type in
10786 freebsd-elf*)
10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10788 soname_spec='$libname$release$shared_ext$major'
10789 need_version=no
10790 need_lib_prefix=no
10791 ;;
10792 freebsd-*)
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10794 need_version=yes
10795 ;;
10796 esac
10797 shlibpath_var=LD_LIBRARY_PATH
10798 case $host_os in
10799 freebsd2.*)
10800 shlibpath_overrides_runpath=yes
10801 ;;
10802 freebsd3.[01]* | freebsdelf3.[01]*)
10803 shlibpath_overrides_runpath=yes
10804 hardcode_into_libs=yes
10805 ;;
10806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 ;;
10811 *) # from 4.6 on, and DragonFly
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 ;;
10815 esac
10816 ;;
10817
10818 haiku*)
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 need_lib_prefix=no
10821 need_version=no
10822 dynamic_linker="$host_os runtime_loader"
10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10824 soname_spec='$libname$release$shared_ext$major'
10825 shlibpath_var=LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10828 hardcode_into_libs=yes
10829 ;;
10830
10831 hpux9* | hpux10* | hpux11*)
10832 # Give a soname corresponding to the major version so that dld.sl refuses to
10833 # link against other versions.
10834 version_type=sunos
10835 need_lib_prefix=no
10836 need_version=no
10837 case $host_cpu in
10838 ia64*)
10839 shrext_cmds='.so'
10840 hardcode_into_libs=yes
10841 dynamic_linker="$host_os dld.so"
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test 32 = "$HPUX_IA64_MODE"; then
10847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10849 else
10850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10851 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10852 fi
10853 ;;
10854 hppa*64*)
10855 shrext_cmds='.sl'
10856 hardcode_into_libs=yes
10857 dynamic_linker="$host_os dld.sl"
10858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10861 soname_spec='$libname$release$shared_ext$major'
10862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10864 ;;
10865 *)
10866 shrext_cmds='.sl'
10867 dynamic_linker="$host_os dld.sl"
10868 shlibpath_var=SHLIB_PATH
10869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871 soname_spec='$libname$release$shared_ext$major'
10872 ;;
10873 esac
10874 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10875 postinstall_cmds='chmod 555 $lib'
10876 # or fails outright, so override atomically:
10877 install_override_mode=555
10878 ;;
10879
10880 interix[3-9]*)
10881 version_type=linux # correct to gnu/linux during the next big refactor
10882 need_lib_prefix=no
10883 need_version=no
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885 soname_spec='$libname$release$shared_ext$major'
10886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=no
10889 hardcode_into_libs=yes
10890 ;;
10891
10892 irix5* | irix6* | nonstopux*)
10893 case $host_os in
10894 nonstopux*) version_type=nonstopux ;;
10895 *)
10896 if test yes = "$lt_cv_prog_gnu_ld"; then
10897 version_type=linux # correct to gnu/linux during the next big refactor
10898 else
10899 version_type=irix
10900 fi ;;
10901 esac
10902 need_lib_prefix=no
10903 need_version=no
10904 soname_spec='$libname$release$shared_ext$major'
10905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10906 case $host_os in
10907 irix5* | nonstopux*)
10908 libsuff= shlibsuff=
10909 ;;
10910 *)
10911 case $LD in # libtool.m4 will add one of these switches to LD
10912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10913 libsuff= shlibsuff= libmagic=32-bit;;
10914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10915 libsuff=32 shlibsuff=N32 libmagic=N32;;
10916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10918 *) libsuff= shlibsuff= libmagic=never-match;;
10919 esac
10920 ;;
10921 esac
10922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10923 shlibpath_overrides_runpath=no
10924 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10925 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10926 hardcode_into_libs=yes
10927 ;;
10928
10929 # No shared lib support for Linux oldld, aout, or coff.
10930 linux*oldld* | linux*aout* | linux*coff*)
10931 dynamic_linker=no
10932 ;;
10933
10934 linux*android*)
10935 version_type=none # Android doesn't support versioned libraries.
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='$libname$release$shared_ext'
10939 soname_spec='$libname$release$shared_ext'
10940 finish_cmds=
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=yes
10943
10944 # This implies no fast_install, which is unacceptable.
10945 # Some rework will be needed to allow for fast_install
10946 # before this can be enabled.
10947 hardcode_into_libs=yes
10948
10949 dynamic_linker='Android linker'
10950 # Don't embed -rpath directories since the linker doesn't support them.
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 ;;
10953
10954 # This must be glibc/ELF.
10955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10956 version_type=linux # correct to gnu/linux during the next big refactor
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960 soname_spec='$libname$release$shared_ext$major'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964
10965 # Some binutils ld are patched to set DT_RUNPATH
10966 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 lt_cv_shlibpath_overrides_runpath=no
10970 save_LDFLAGS=$LDFLAGS
10971 save_libdir=$libdir
10972 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10973 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976
10977 int
10978 main ()
10979 {
10980
10981 ;
10982 return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10987 lt_cv_shlibpath_overrides_runpath=yes
10988 fi
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LDFLAGS=$save_LDFLAGS
10993 libdir=$save_libdir
10994
10995 fi
10996
10997 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10998
10999 # This implies no fast_install, which is unacceptable.
11000 # Some rework will be needed to allow for fast_install
11001 # before this can be enabled.
11002 hardcode_into_libs=yes
11003
11004 # Ideally, we could use ldconfig to report *all* directores which are
11005 # searched for libraries, however this is still not possible. Aside from not
11006 # being certain /sbin/ldconfig is available, command
11007 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11008 # even though it is searched at run-time. Try to do the best guess by
11009 # appending ld.so.conf contents (and includes) to the search path.
11010 if test -f /etc/ld.so.conf; then
11011 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' ' '`
11012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11013 fi
11014
11015 # We used to test for /lib/ld.so.1 and disable shared libraries on
11016 # powerpc, because MkLinux only supported shared libraries with the
11017 # GNU dynamic linker. Since this was broken with cross compilers,
11018 # most powerpc-linux boxes support dynamic linking these days and
11019 # people can always --disable-shared, the test was removed, and we
11020 # assume the GNU/Linux dynamic linker is in use.
11021 dynamic_linker='GNU/Linux ld.so'
11022 ;;
11023
11024 netbsdelf*-gnu)
11025 version_type=linux
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11033 dynamic_linker='NetBSD ld.elf_so'
11034 ;;
11035
11036 netbsd*)
11037 version_type=sunos
11038 need_lib_prefix=no
11039 need_version=no
11040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11043 dynamic_linker='NetBSD (a.out) ld.so'
11044 else
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 soname_spec='$libname$release$shared_ext$major'
11047 dynamic_linker='NetBSD ld.elf_so'
11048 fi
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 hardcode_into_libs=yes
11052 ;;
11053
11054 newsos6)
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 ;;
11060
11061 *nto* | *qnx*)
11062 version_type=qnx
11063 need_lib_prefix=no
11064 need_version=no
11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11066 soname_spec='$libname$release$shared_ext$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=no
11069 hardcode_into_libs=yes
11070 dynamic_linker='ldqnx.so'
11071 ;;
11072
11073 openbsd* | bitrig*)
11074 version_type=sunos
11075 sys_lib_dlsearch_path_spec=/usr/lib
11076 need_lib_prefix=no
11077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11078 need_version=no
11079 else
11080 need_version=yes
11081 fi
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=yes
11086 ;;
11087
11088 os2*)
11089 libname_spec='$name'
11090 version_type=windows
11091 shrext_cmds=.dll
11092 need_version=no
11093 need_lib_prefix=no
11094 # OS/2 can only load a DLL with a base name of 8 characters or less.
11095 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11096 v=$($ECHO $release$versuffix | tr -d .-);
11097 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11098 $ECHO $n$v`$shared_ext'
11099 library_names_spec='${libname}_dll.$libext'
11100 dynamic_linker='OS/2 ld.exe'
11101 shlibpath_var=BEGINLIBPATH
11102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11104 postinstall_cmds='base_file=`basename \$file`~
11105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11106 dldir=$destdir/`dirname \$dlpath`~
11107 test -d \$dldir || mkdir -p \$dldir~
11108 $install_prog $dir/$dlname \$dldir/$dlname~
11109 chmod a+x \$dldir/$dlname~
11110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11112 fi'
11113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11114 dlpath=$dir/\$dldll~
11115 $RM \$dlpath'
11116 ;;
11117
11118 osf3* | osf4* | osf5*)
11119 version_type=osf
11120 need_lib_prefix=no
11121 need_version=no
11122 soname_spec='$libname$release$shared_ext$major'
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11127 ;;
11128
11129 rdos*)
11130 dynamic_linker=no
11131 ;;
11132
11133 solaris*)
11134 version_type=linux # correct to gnu/linux during the next big refactor
11135 need_lib_prefix=no
11136 need_version=no
11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11138 soname_spec='$libname$release$shared_ext$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 # ldd complains unless libraries are executable
11143 postinstall_cmds='chmod +x $lib'
11144 ;;
11145
11146 sunos4*)
11147 version_type=sunos
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 if test yes = "$with_gnu_ld"; then
11153 need_lib_prefix=no
11154 fi
11155 need_version=yes
11156 ;;
11157
11158 sysv4 | sysv4.3*)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 soname_spec='$libname$release$shared_ext$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 case $host_vendor in
11164 sni)
11165 shlibpath_overrides_runpath=no
11166 need_lib_prefix=no
11167 runpath_var=LD_RUN_PATH
11168 ;;
11169 siemens)
11170 need_lib_prefix=no
11171 ;;
11172 motorola)
11173 need_lib_prefix=no
11174 need_version=no
11175 shlibpath_overrides_runpath=no
11176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11177 ;;
11178 esac
11179 ;;
11180
11181 sysv4*MP*)
11182 if test -d /usr/nec; then
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11185 soname_spec='$libname$shared_ext.$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 fi
11188 ;;
11189
11190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11191 version_type=sco
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11195 soname_spec='$libname$release$shared_ext$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11199 if test yes = "$with_gnu_ld"; then
11200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11201 else
11202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11203 case $host_os in
11204 sco3.2v5*)
11205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11206 ;;
11207 esac
11208 fi
11209 sys_lib_dlsearch_path_spec='/usr/lib'
11210 ;;
11211
11212 tpf*)
11213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11221 ;;
11222
11223 uts4*)
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226 soname_spec='$libname$release$shared_ext$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 ;;
11229
11230 *)
11231 dynamic_linker=no
11232 ;;
11233 esac
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11235 $as_echo "$dynamic_linker" >&6; }
11236 test no = "$dynamic_linker" && can_build_shared=no
11237
11238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11239 if test yes = "$GCC"; then
11240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11241 fi
11242
11243 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11244 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11245 fi
11246
11247 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11248 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11249 fi
11250
11251 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11252 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11253
11254 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11255 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11256
11257 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11258 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11357 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11358 hardcode_action=
11359 if test -n "$hardcode_libdir_flag_spec" ||
11360 test -n "$runpath_var" ||
11361 test yes = "$hardcode_automatic"; then
11362
11363 # We can hardcode non-existent directories.
11364 if test no != "$hardcode_direct" &&
11365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11366 # have to relink, otherwise we might link with an installed library
11367 # when we should be linking with a yet-to-be-installed one
11368 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11369 test no != "$hardcode_minus_L"; then
11370 # Linking always hardcodes the temporary library directory.
11371 hardcode_action=relink
11372 else
11373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11374 hardcode_action=immediate
11375 fi
11376 else
11377 # We cannot hardcode anything, or else we can only hardcode existing
11378 # directories.
11379 hardcode_action=unsupported
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11382 $as_echo "$hardcode_action" >&6; }
11383
11384 if test relink = "$hardcode_action" ||
11385 test yes = "$inherit_rpath"; then
11386 # Fast installation is not supported
11387 enable_fast_install=no
11388 elif test yes = "$shlibpath_overrides_runpath" ||
11389 test no = "$enable_shared"; then
11390 # Fast installation is not necessary
11391 enable_fast_install=needless
11392 fi
11393
11394
11395
11396
11397
11398
11399 if test yes != "$enable_dlopen"; then
11400 enable_dlopen=unknown
11401 enable_dlopen_self=unknown
11402 enable_dlopen_self_static=unknown
11403 else
11404 lt_cv_dlopen=no
11405 lt_cv_dlopen_libs=
11406
11407 case $host_os in
11408 beos*)
11409 lt_cv_dlopen=load_add_on
11410 lt_cv_dlopen_libs=
11411 lt_cv_dlopen_self=yes
11412 ;;
11413
11414 mingw* | pw32* | cegcc*)
11415 lt_cv_dlopen=LoadLibrary
11416 lt_cv_dlopen_libs=
11417 ;;
11418
11419 cygwin*)
11420 lt_cv_dlopen=dlopen
11421 lt_cv_dlopen_libs=
11422 ;;
11423
11424 darwin*)
11425 # if libdl is installed we need to link against it
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11428 if ${ac_cv_lib_dl_dlopen+:} false; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 ac_check_lib_save_LIBS=$LIBS
11432 LIBS="-ldl $LIBS"
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char dlopen ();
11443 int
11444 main ()
11445 {
11446 return dlopen ();
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dl_dlopen=yes
11453 else
11454 ac_cv_lib_dl_dlopen=no
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11464 else
11465
11466 lt_cv_dlopen=dyld
11467 lt_cv_dlopen_libs=
11468 lt_cv_dlopen_self=yes
11469
11470 fi
11471
11472 ;;
11473
11474 tpf*)
11475 # Don't try to run any link tests for TPF. We know it's impossible
11476 # because TPF is a cross-compiler, and we know how we open DSOs.
11477 lt_cv_dlopen=dlopen
11478 lt_cv_dlopen_libs=
11479 lt_cv_dlopen_self=no
11480 ;;
11481
11482 *)
11483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11484 if test "x$ac_cv_func_shl_load" = xyes; then :
11485 lt_cv_dlopen=shl_load
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11488 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11489 if ${ac_cv_lib_dld_shl_load+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 ac_check_lib_save_LIBS=$LIBS
11493 LIBS="-ldld $LIBS"
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11496
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char shl_load ();
11504 int
11505 main ()
11506 {
11507 return shl_load ();
11508 ;
11509 return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_lib_dld_shl_load=yes
11514 else
11515 ac_cv_lib_dld_shl_load=no
11516 fi
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11522 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11523 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11524 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11525 else
11526 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11527 if test "x$ac_cv_func_dlopen" = xyes; then :
11528 lt_cv_dlopen=dlopen
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11532 if ${ac_cv_lib_dl_dlopen+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-ldl $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char dlopen ();
11547 int
11548 main ()
11549 {
11550 return dlopen ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_dl_dlopen=yes
11557 else
11558 ac_cv_lib_dl_dlopen=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11566 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11567 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11571 if ${ac_cv_lib_svld_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lsvld $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char dlopen ();
11586 int
11587 main ()
11588 {
11589 return dlopen ();
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_svld_dlopen=yes
11596 else
11597 ac_cv_lib_svld_dlopen=no
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11604 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11605 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11606 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11609 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11610 if ${ac_cv_lib_dld_dld_link+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-ldld $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 char dld_link ();
11625 int
11626 main ()
11627 {
11628 return dld_link ();
11629 ;
11630 return 0;
11631 }
11632 _ACEOF
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_dld_dld_link=yes
11635 else
11636 ac_cv_lib_dld_dld_link=no
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11643 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11644 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11645 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11646 fi
11647
11648
11649 fi
11650
11651
11652 fi
11653
11654
11655 fi
11656
11657
11658 fi
11659
11660
11661 fi
11662
11663 ;;
11664 esac
11665
11666 if test no = "$lt_cv_dlopen"; then
11667 enable_dlopen=no
11668 else
11669 enable_dlopen=yes
11670 fi
11671
11672 case $lt_cv_dlopen in
11673 dlopen)
11674 save_CPPFLAGS=$CPPFLAGS
11675 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11676
11677 save_LDFLAGS=$LDFLAGS
11678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11679
11680 save_LIBS=$LIBS
11681 LIBS="$lt_cv_dlopen_libs $LIBS"
11682
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11684 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11685 if ${lt_cv_dlopen_self+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test yes = "$cross_compiling"; then :
11689 lt_cv_dlopen_self=cross
11690 else
11691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11692 lt_status=$lt_dlunknown
11693 cat > conftest.$ac_ext <<_LT_EOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11696
11697 #if HAVE_DLFCN_H
11698 #include <dlfcn.h>
11699 #endif
11700
11701 #include <stdio.h>
11702
11703 #ifdef RTLD_GLOBAL
11704 # define LT_DLGLOBAL RTLD_GLOBAL
11705 #else
11706 # ifdef DL_GLOBAL
11707 # define LT_DLGLOBAL DL_GLOBAL
11708 # else
11709 # define LT_DLGLOBAL 0
11710 # endif
11711 #endif
11712
11713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11714 find out it does not work in some platform. */
11715 #ifndef LT_DLLAZY_OR_NOW
11716 # ifdef RTLD_LAZY
11717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11718 # else
11719 # ifdef DL_LAZY
11720 # define LT_DLLAZY_OR_NOW DL_LAZY
11721 # else
11722 # ifdef RTLD_NOW
11723 # define LT_DLLAZY_OR_NOW RTLD_NOW
11724 # else
11725 # ifdef DL_NOW
11726 # define LT_DLLAZY_OR_NOW DL_NOW
11727 # else
11728 # define LT_DLLAZY_OR_NOW 0
11729 # endif
11730 # endif
11731 # endif
11732 # endif
11733 #endif
11734
11735 /* When -fvisibility=hidden is used, assume the code has been annotated
11736 correspondingly for the symbols needed. */
11737 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11738 int fnord () __attribute__((visibility("default")));
11739 #endif
11740
11741 int fnord () { return 42; }
11742 int main ()
11743 {
11744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11745 int status = $lt_dlunknown;
11746
11747 if (self)
11748 {
11749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11750 else
11751 {
11752 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11753 else puts (dlerror ());
11754 }
11755 /* dlclose (self); */
11756 }
11757 else
11758 puts (dlerror ());
11759
11760 return status;
11761 }
11762 _LT_EOF
11763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11764 (eval $ac_link) 2>&5
11765 ac_status=$?
11766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11767 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11768 (./conftest; exit; ) >&5 2>/dev/null
11769 lt_status=$?
11770 case x$lt_status in
11771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11774 esac
11775 else :
11776 # compilation failed
11777 lt_cv_dlopen_self=no
11778 fi
11779 fi
11780 rm -fr conftest*
11781
11782
11783 fi
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11785 $as_echo "$lt_cv_dlopen_self" >&6; }
11786
11787 if test yes = "$lt_cv_dlopen_self"; then
11788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11790 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11791 if ${lt_cv_dlopen_self_static+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if test yes = "$cross_compiling"; then :
11795 lt_cv_dlopen_self_static=cross
11796 else
11797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11798 lt_status=$lt_dlunknown
11799 cat > conftest.$ac_ext <<_LT_EOF
11800 #line $LINENO "configure"
11801 #include "confdefs.h"
11802
11803 #if HAVE_DLFCN_H
11804 #include <dlfcn.h>
11805 #endif
11806
11807 #include <stdio.h>
11808
11809 #ifdef RTLD_GLOBAL
11810 # define LT_DLGLOBAL RTLD_GLOBAL
11811 #else
11812 # ifdef DL_GLOBAL
11813 # define LT_DLGLOBAL DL_GLOBAL
11814 # else
11815 # define LT_DLGLOBAL 0
11816 # endif
11817 #endif
11818
11819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11820 find out it does not work in some platform. */
11821 #ifndef LT_DLLAZY_OR_NOW
11822 # ifdef RTLD_LAZY
11823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11824 # else
11825 # ifdef DL_LAZY
11826 # define LT_DLLAZY_OR_NOW DL_LAZY
11827 # else
11828 # ifdef RTLD_NOW
11829 # define LT_DLLAZY_OR_NOW RTLD_NOW
11830 # else
11831 # ifdef DL_NOW
11832 # define LT_DLLAZY_OR_NOW DL_NOW
11833 # else
11834 # define LT_DLLAZY_OR_NOW 0
11835 # endif
11836 # endif
11837 # endif
11838 # endif
11839 #endif
11840
11841 /* When -fvisibility=hidden is used, assume the code has been annotated
11842 correspondingly for the symbols needed. */
11843 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11844 int fnord () __attribute__((visibility("default")));
11845 #endif
11846
11847 int fnord () { return 42; }
11848 int main ()
11849 {
11850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11851 int status = $lt_dlunknown;
11852
11853 if (self)
11854 {
11855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11856 else
11857 {
11858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11859 else puts (dlerror ());
11860 }
11861 /* dlclose (self); */
11862 }
11863 else
11864 puts (dlerror ());
11865
11866 return status;
11867 }
11868 _LT_EOF
11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11870 (eval $ac_link) 2>&5
11871 ac_status=$?
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11874 (./conftest; exit; ) >&5 2>/dev/null
11875 lt_status=$?
11876 case x$lt_status in
11877 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11878 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11879 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11880 esac
11881 else :
11882 # compilation failed
11883 lt_cv_dlopen_self_static=no
11884 fi
11885 fi
11886 rm -fr conftest*
11887
11888
11889 fi
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11891 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11892 fi
11893
11894 CPPFLAGS=$save_CPPFLAGS
11895 LDFLAGS=$save_LDFLAGS
11896 LIBS=$save_LIBS
11897 ;;
11898 esac
11899
11900 case $lt_cv_dlopen_self in
11901 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11902 *) enable_dlopen_self=unknown ;;
11903 esac
11904
11905 case $lt_cv_dlopen_self_static in
11906 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11907 *) enable_dlopen_self_static=unknown ;;
11908 esac
11909 fi
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 striplib=
11928 old_striplib=
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11930 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11931 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11935 $as_echo "yes" >&6; }
11936 else
11937 # FIXME - insert some real tests, host_os isn't really good enough
11938 case $host_os in
11939 darwin*)
11940 if test -n "$STRIP"; then
11941 striplib="$STRIP -x"
11942 old_striplib="$STRIP -S"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944 $as_echo "yes" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949 ;;
11950 *)
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 ;;
11954 esac
11955 fi
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968 # Report what library types will actually be built
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11970 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11972 $as_echo "$can_build_shared" >&6; }
11973
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11975 $as_echo_n "checking whether to build shared libraries... " >&6; }
11976 test no = "$can_build_shared" && enable_shared=no
11977
11978 # On AIX, shared libraries and static libraries use the same namespace, and
11979 # are all built from PIC.
11980 case $host_os in
11981 aix3*)
11982 test yes = "$enable_shared" && enable_static=no
11983 if test -n "$RANLIB"; then
11984 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11985 postinstall_cmds='$RANLIB $lib'
11986 fi
11987 ;;
11988
11989 aix[4-9]*)
11990 if test ia64 != "$host_cpu"; then
11991 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11992 yes,aix,yes) ;; # shared object as lib.so file only
11993 yes,svr4,*) ;; # shared object as lib.so archive member only
11994 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11995 esac
11996 fi
11997 ;;
11998 esac
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12000 $as_echo "$enable_shared" >&6; }
12001
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12003 $as_echo_n "checking whether to build static libraries... " >&6; }
12004 # Make sure either enable_shared or enable_static is yes.
12005 test yes = "$enable_shared" || enable_static=yes
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12007 $as_echo "$enable_static" >&6; }
12008
12009
12010
12011
12012 fi
12013 ac_ext=c
12014 ac_cpp='$CPP $CPPFLAGS'
12015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018
12019 CC=$lt_save_CC
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 ac_config_commands="$ac_config_commands libtool"
12036
12037
12038
12039
12040 # Only expand once:
12041
12042
12043
12044
12045 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/timerfd.h
12046 do :
12047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12049 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12050 cat >>confdefs.h <<_ACEOF
12051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12052 _ACEOF
12053
12054 fi
12055
12056 done
12057
12058 for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h linux/fs.h
12059 do :
12060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12063 cat >>confdefs.h <<_ACEOF
12064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 fi
12068
12069 done
12070
12071
12072 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
12073 do :
12074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12077 cat >>confdefs.h <<_ACEOF
12078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 _ACEOF
12080
12081 fi
12082 done
12083
12084
12085 for ac_func in clock_gettime
12086 do :
12087 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12088 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12089 cat >>confdefs.h <<_ACEOF
12090 #define HAVE_CLOCK_GETTIME 1
12091 _ACEOF
12092
12093 else
12094
12095 if test $(uname) = Linux; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
12097 $as_echo_n "checking for clock_gettime syscall... " >&6; }
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 #include <unistd.h>
12101 #include <sys/syscall.h>
12102 #include <time.h>
12103 int
12104 main ()
12105 {
12106 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 ac_have_clock_syscall=1
12113
12114 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
12115
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117 $as_echo "yes" >&6; }
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 fi
12125 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12127 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12128 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-lrt $LIBS"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char clock_gettime ();
12143 int
12144 main ()
12145 {
12146 return clock_gettime ();
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_rt_clock_gettime=yes
12153 else
12154 ac_cv_lib_rt_clock_gettime=no
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12161 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12162 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBRT 1
12165 _ACEOF
12166
12167 LIBS="-lrt $LIBS"
12168
12169 fi
12170
12171 unset ac_cv_func_clock_gettime
12172 for ac_func in clock_gettime
12173 do :
12174 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12175 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12176 cat >>confdefs.h <<_ACEOF
12177 #define HAVE_CLOCK_GETTIME 1
12178 _ACEOF
12179
12180 fi
12181 done
12182
12183 fi
12184
12185 fi
12186 done
12187
12188
12189 for ac_func in nanosleep
12190 do :
12191 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
12192 if test "x$ac_cv_func_nanosleep" = xyes; then :
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_NANOSLEEP 1
12195 _ACEOF
12196
12197 else
12198
12199 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
12201 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
12202 if ${ac_cv_lib_rt_nanosleep+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lrt $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 char nanosleep ();
12217 int
12218 main ()
12219 {
12220 return nanosleep ();
12221 ;
12222 return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_link "$LINENO"; then :
12226 ac_cv_lib_rt_nanosleep=yes
12227 else
12228 ac_cv_lib_rt_nanosleep=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
12235 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
12236 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_LIBRT 1
12239 _ACEOF
12240
12241 LIBS="-lrt $LIBS"
12242
12243 fi
12244
12245 unset ac_cv_func_nanosleep
12246 for ac_func in nanosleep
12247 do :
12248 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
12249 if test "x$ac_cv_func_nanosleep" = xyes; then :
12250 cat >>confdefs.h <<_ACEOF
12251 #define HAVE_NANOSLEEP 1
12252 _ACEOF
12253
12254 fi
12255 done
12256
12257 fi
12258
12259 fi
12260 done
12261
12262
12263 ac_fn_c_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
12264 "
12265 if test "x$ac_cv_type___kernel_rwf_t" = xyes; then :
12266
12267
12268 $as_echo "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
12269
12270
12271 fi
12272
12273
12274 if test -z "$LIBEV_M4_AVOID_LIBM"; then
12275 LIBM=m
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12278 $as_echo_n "checking for library containing floor... " >&6; }
12279 if ${ac_cv_search_floor+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_func_search_save_LIBS=$LIBS
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char floor ();
12293 int
12294 main ()
12295 {
12296 return floor ();
12297 ;
12298 return 0;
12299 }
12300 _ACEOF
12301 for ac_lib in '' $LIBM; do
12302 if test -z "$ac_lib"; then
12303 ac_res="none required"
12304 else
12305 ac_res=-l$ac_lib
12306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12307 fi
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_search_floor=$ac_res
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext
12313 if ${ac_cv_search_floor+:} false; then :
12314 break
12315 fi
12316 done
12317 if ${ac_cv_search_floor+:} false; then :
12318
12319 else
12320 ac_cv_search_floor=no
12321 fi
12322 rm conftest.$ac_ext
12323 LIBS=$ac_func_search_save_LIBS
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12326 $as_echo "$ac_cv_search_floor" >&6; }
12327 ac_res=$ac_cv_search_floor
12328 if test "$ac_res" != no; then :
12329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12330
12331 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
12332
12333 fi
12334
12335
12336
12337
12338 ac_config_files="$ac_config_files Makefile"
12339
12340 cat >confcache <<\_ACEOF
12341 # This file is a shell script that caches the results of configure
12342 # tests run on this system so they can be shared between configure
12343 # scripts and configure runs, see configure's option --config-cache.
12344 # It is not useful on other systems. If it contains results you don't
12345 # want to keep, you may remove or edit it.
12346 #
12347 # config.status only pays attention to the cache file if you give it
12348 # the --recheck option to rerun configure.
12349 #
12350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12352 # following values.
12353
12354 _ACEOF
12355
12356 # The following way of writing the cache mishandles newlines in values,
12357 # but we know of no workaround that is simple, portable, and efficient.
12358 # So, we kill variables containing newlines.
12359 # Ultrix sh set writes to stderr and can't be redirected directly,
12360 # and sets the high bit in the cache file unless we assign to the vars.
12361 (
12362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12363 eval ac_val=\$$ac_var
12364 case $ac_val in #(
12365 *${as_nl}*)
12366 case $ac_var in #(
12367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12368 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12369 esac
12370 case $ac_var in #(
12371 _ | IFS | as_nl) ;; #(
12372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12373 *) { eval $ac_var=; unset $ac_var;} ;;
12374 esac ;;
12375 esac
12376 done
12377
12378 (set) 2>&1 |
12379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12380 *${as_nl}ac_space=\ *)
12381 # `set' does not quote correctly, so add quotes: double-quote
12382 # substitution turns \\\\ into \\, and sed turns \\ into \.
12383 sed -n \
12384 "s/'/'\\\\''/g;
12385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12386 ;; #(
12387 *)
12388 # `set' quotes correctly as required by POSIX, so do not add quotes.
12389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12390 ;;
12391 esac |
12392 sort
12393 ) |
12394 sed '
12395 /^ac_cv_env_/b end
12396 t clear
12397 :clear
12398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12399 t end
12400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12401 :end' >>confcache
12402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12403 if test -w "$cache_file"; then
12404 if test "x$cache_file" != "x/dev/null"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12406 $as_echo "$as_me: updating cache $cache_file" >&6;}
12407 if test ! -f "$cache_file" || test -h "$cache_file"; then
12408 cat confcache >"$cache_file"
12409 else
12410 case $cache_file in #(
12411 */* | ?:*)
12412 mv -f confcache "$cache_file"$$ &&
12413 mv -f "$cache_file"$$ "$cache_file" ;; #(
12414 *)
12415 mv -f confcache "$cache_file" ;;
12416 esac
12417 fi
12418 fi
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12422 fi
12423 fi
12424 rm -f confcache
12425
12426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12427 # Let make expand exec_prefix.
12428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12429
12430 DEFS=-DHAVE_CONFIG_H
12431
12432 ac_libobjs=
12433 ac_ltlibobjs=
12434 U=
12435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12436 # 1. Remove the extension, and $U if already installed.
12437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12440 # will be set to the directory where LIBOBJS objects are built.
12441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12443 done
12444 LIBOBJS=$ac_libobjs
12445
12446 LTLIBOBJS=$ac_ltlibobjs
12447
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12450 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12451 if test -n "$am_sleep_pid"; then
12452 # Hide warnings about reused PIDs.
12453 wait $am_sleep_pid 2>/dev/null
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12456 $as_echo "done" >&6; }
12457 if test -n "$EXEEXT"; then
12458 am__EXEEXT_TRUE=
12459 am__EXEEXT_FALSE='#'
12460 else
12461 am__EXEEXT_TRUE='#'
12462 am__EXEEXT_FALSE=
12463 fi
12464
12465 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12466 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12468 fi
12469 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12470 as_fn_error $? "conditional \"AMDEP\" was never defined.
12471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12472 fi
12473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12474 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12476 fi
12477
12478 : "${CONFIG_STATUS=./config.status}"
12479 ac_write_fail=0
12480 ac_clean_files_save=$ac_clean_files
12481 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12483 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12484 as_write_fail=0
12485 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12486 #! $SHELL
12487 # Generated by $as_me.
12488 # Run this file to recreate the current configuration.
12489 # Compiler output produced by configure, useful for debugging
12490 # configure, is in config.log if it exists.
12491
12492 debug=false
12493 ac_cs_recheck=false
12494 ac_cs_silent=false
12495
12496 SHELL=\${CONFIG_SHELL-$SHELL}
12497 export SHELL
12498 _ASEOF
12499 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12500 ## -------------------- ##
12501 ## M4sh Initialization. ##
12502 ## -------------------- ##
12503
12504 # Be more Bourne compatible
12505 DUALCASE=1; export DUALCASE # for MKS sh
12506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12507 emulate sh
12508 NULLCMD=:
12509 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12510 # is contrary to our usage. Disable this feature.
12511 alias -g '${1+"$@"}'='"$@"'
12512 setopt NO_GLOB_SUBST
12513 else
12514 case `(set -o) 2>/dev/null` in #(
12515 *posix*) :
12516 set -o posix ;; #(
12517 *) :
12518 ;;
12519 esac
12520 fi
12521
12522
12523 as_nl='
12524 '
12525 export as_nl
12526 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12527 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12530 # Prefer a ksh shell builtin over an external printf program on Solaris,
12531 # but without wasting forks for bash or zsh.
12532 if test -z "$BASH_VERSION$ZSH_VERSION" \
12533 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12534 as_echo='print -r --'
12535 as_echo_n='print -rn --'
12536 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12537 as_echo='printf %s\n'
12538 as_echo_n='printf %s'
12539 else
12540 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12541 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12542 as_echo_n='/usr/ucb/echo -n'
12543 else
12544 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12545 as_echo_n_body='eval
12546 arg=$1;
12547 case $arg in #(
12548 *"$as_nl"*)
12549 expr "X$arg" : "X\\(.*\\)$as_nl";
12550 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12551 esac;
12552 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12553 '
12554 export as_echo_n_body
12555 as_echo_n='sh -c $as_echo_n_body as_echo'
12556 fi
12557 export as_echo_body
12558 as_echo='sh -c $as_echo_body as_echo'
12559 fi
12560
12561 # The user is always right.
12562 if test "${PATH_SEPARATOR+set}" != set; then
12563 PATH_SEPARATOR=:
12564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12565 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12566 PATH_SEPARATOR=';'
12567 }
12568 fi
12569
12570
12571 # IFS
12572 # We need space, tab and new line, in precisely that order. Quoting is
12573 # there to prevent editors from complaining about space-tab.
12574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12575 # splitting by setting IFS to empty value.)
12576 IFS=" "" $as_nl"
12577
12578 # Find who we are. Look in the path if we contain no directory separator.
12579 as_myself=
12580 case $0 in #((
12581 *[\\/]* ) as_myself=$0 ;;
12582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12588 done
12589 IFS=$as_save_IFS
12590
12591 ;;
12592 esac
12593 # We did not find ourselves, most probably we were run as `sh COMMAND'
12594 # in which case we are not to be found in the path.
12595 if test "x$as_myself" = x; then
12596 as_myself=$0
12597 fi
12598 if test ! -f "$as_myself"; then
12599 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12600 exit 1
12601 fi
12602
12603 # Unset variables that we do not need and which cause bugs (e.g. in
12604 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12605 # suppresses any "Segmentation fault" message there. '((' could
12606 # trigger a bug in pdksh 5.2.14.
12607 for as_var in BASH_ENV ENV MAIL MAILPATH
12608 do eval test x\${$as_var+set} = xset \
12609 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12610 done
12611 PS1='$ '
12612 PS2='> '
12613 PS4='+ '
12614
12615 # NLS nuisances.
12616 LC_ALL=C
12617 export LC_ALL
12618 LANGUAGE=C
12619 export LANGUAGE
12620
12621 # CDPATH.
12622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12623
12624
12625 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12626 # ----------------------------------------
12627 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12628 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12629 # script with STATUS, using 1 if that was 0.
12630 as_fn_error ()
12631 {
12632 as_status=$1; test $as_status -eq 0 && as_status=1
12633 if test "$4"; then
12634 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12635 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12636 fi
12637 $as_echo "$as_me: error: $2" >&2
12638 as_fn_exit $as_status
12639 } # as_fn_error
12640
12641
12642 # as_fn_set_status STATUS
12643 # -----------------------
12644 # Set $? to STATUS, without forking.
12645 as_fn_set_status ()
12646 {
12647 return $1
12648 } # as_fn_set_status
12649
12650 # as_fn_exit STATUS
12651 # -----------------
12652 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12653 as_fn_exit ()
12654 {
12655 set +e
12656 as_fn_set_status $1
12657 exit $1
12658 } # as_fn_exit
12659
12660 # as_fn_unset VAR
12661 # ---------------
12662 # Portably unset VAR.
12663 as_fn_unset ()
12664 {
12665 { eval $1=; unset $1;}
12666 }
12667 as_unset=as_fn_unset
12668 # as_fn_append VAR VALUE
12669 # ----------------------
12670 # Append the text in VALUE to the end of the definition contained in VAR. Take
12671 # advantage of any shell optimizations that allow amortized linear growth over
12672 # repeated appends, instead of the typical quadratic growth present in naive
12673 # implementations.
12674 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12675 eval 'as_fn_append ()
12676 {
12677 eval $1+=\$2
12678 }'
12679 else
12680 as_fn_append ()
12681 {
12682 eval $1=\$$1\$2
12683 }
12684 fi # as_fn_append
12685
12686 # as_fn_arith ARG...
12687 # ------------------
12688 # Perform arithmetic evaluation on the ARGs, and store the result in the
12689 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12690 # must be portable across $(()) and expr.
12691 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12692 eval 'as_fn_arith ()
12693 {
12694 as_val=$(( $* ))
12695 }'
12696 else
12697 as_fn_arith ()
12698 {
12699 as_val=`expr "$@" || test $? -eq 1`
12700 }
12701 fi # as_fn_arith
12702
12703
12704 if expr a : '\(a\)' >/dev/null 2>&1 &&
12705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12706 as_expr=expr
12707 else
12708 as_expr=false
12709 fi
12710
12711 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12712 as_basename=basename
12713 else
12714 as_basename=false
12715 fi
12716
12717 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12718 as_dirname=dirname
12719 else
12720 as_dirname=false
12721 fi
12722
12723 as_me=`$as_basename -- "$0" ||
12724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12725 X"$0" : 'X\(//\)$' \| \
12726 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12727 $as_echo X/"$0" |
12728 sed '/^.*\/\([^/][^/]*\)\/*$/{
12729 s//\1/
12730 q
12731 }
12732 /^X\/\(\/\/\)$/{
12733 s//\1/
12734 q
12735 }
12736 /^X\/\(\/\).*/{
12737 s//\1/
12738 q
12739 }
12740 s/.*/./; q'`
12741
12742 # Avoid depending upon Character Ranges.
12743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12746 as_cr_digits='0123456789'
12747 as_cr_alnum=$as_cr_Letters$as_cr_digits
12748
12749 ECHO_C= ECHO_N= ECHO_T=
12750 case `echo -n x` in #(((((
12751 -n*)
12752 case `echo 'xy\c'` in
12753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12754 xy) ECHO_C='\c';;
12755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12756 ECHO_T=' ';;
12757 esac;;
12758 *)
12759 ECHO_N='-n';;
12760 esac
12761
12762 rm -f conf$$ conf$$.exe conf$$.file
12763 if test -d conf$$.dir; then
12764 rm -f conf$$.dir/conf$$.file
12765 else
12766 rm -f conf$$.dir
12767 mkdir conf$$.dir 2>/dev/null
12768 fi
12769 if (echo >conf$$.file) 2>/dev/null; then
12770 if ln -s conf$$.file conf$$ 2>/dev/null; then
12771 as_ln_s='ln -s'
12772 # ... but there are two gotchas:
12773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12775 # In both cases, we have to default to `cp -pR'.
12776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12777 as_ln_s='cp -pR'
12778 elif ln conf$$.file conf$$ 2>/dev/null; then
12779 as_ln_s=ln
12780 else
12781 as_ln_s='cp -pR'
12782 fi
12783 else
12784 as_ln_s='cp -pR'
12785 fi
12786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12787 rmdir conf$$.dir 2>/dev/null
12788
12789
12790 # as_fn_mkdir_p
12791 # -------------
12792 # Create "$as_dir" as a directory, including parents if necessary.
12793 as_fn_mkdir_p ()
12794 {
12795
12796 case $as_dir in #(
12797 -*) as_dir=./$as_dir;;
12798 esac
12799 test -d "$as_dir" || eval $as_mkdir_p || {
12800 as_dirs=
12801 while :; do
12802 case $as_dir in #(
12803 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12804 *) as_qdir=$as_dir;;
12805 esac
12806 as_dirs="'$as_qdir' $as_dirs"
12807 as_dir=`$as_dirname -- "$as_dir" ||
12808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12809 X"$as_dir" : 'X\(//\)[^/]' \| \
12810 X"$as_dir" : 'X\(//\)$' \| \
12811 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12812 $as_echo X"$as_dir" |
12813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12814 s//\1/
12815 q
12816 }
12817 /^X\(\/\/\)[^/].*/{
12818 s//\1/
12819 q
12820 }
12821 /^X\(\/\/\)$/{
12822 s//\1/
12823 q
12824 }
12825 /^X\(\/\).*/{
12826 s//\1/
12827 q
12828 }
12829 s/.*/./; q'`
12830 test -d "$as_dir" && break
12831 done
12832 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12834
12835
12836 } # as_fn_mkdir_p
12837 if mkdir -p . 2>/dev/null; then
12838 as_mkdir_p='mkdir -p "$as_dir"'
12839 else
12840 test -d ./-p && rmdir ./-p
12841 as_mkdir_p=false
12842 fi
12843
12844
12845 # as_fn_executable_p FILE
12846 # -----------------------
12847 # Test if FILE is an executable regular file.
12848 as_fn_executable_p ()
12849 {
12850 test -f "$1" && test -x "$1"
12851 } # as_fn_executable_p
12852 as_test_x='test -x'
12853 as_executable_p=as_fn_executable_p
12854
12855 # Sed expression to map a string onto a valid CPP name.
12856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12857
12858 # Sed expression to map a string onto a valid variable name.
12859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12860
12861
12862 exec 6>&1
12863 ## ----------------------------------- ##
12864 ## Main body of $CONFIG_STATUS script. ##
12865 ## ----------------------------------- ##
12866 _ASEOF
12867 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12868
12869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12870 # Save the log message, to keep $0 and so on meaningful, and to
12871 # report actual input values of CONFIG_FILES etc. instead of their
12872 # values after options handling.
12873 ac_log="
12874 This file was extended by libev $as_me 4.33, which was
12875 generated by GNU Autoconf 2.69. Invocation command line was
12876
12877 CONFIG_FILES = $CONFIG_FILES
12878 CONFIG_HEADERS = $CONFIG_HEADERS
12879 CONFIG_LINKS = $CONFIG_LINKS
12880 CONFIG_COMMANDS = $CONFIG_COMMANDS
12881 $ $0 $@
12882
12883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12884 "
12885
12886 _ACEOF
12887
12888 case $ac_config_files in *"
12889 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12890 esac
12891
12892 case $ac_config_headers in *"
12893 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12894 esac
12895
12896
12897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12898 # Files that config.status was made for.
12899 config_files="$ac_config_files"
12900 config_headers="$ac_config_headers"
12901 config_commands="$ac_config_commands"
12902
12903 _ACEOF
12904
12905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12906 ac_cs_usage="\
12907 \`$as_me' instantiates files and other configuration actions
12908 from templates according to the current configuration. Unless the files
12909 and actions are specified as TAGs, all are instantiated by default.
12910
12911 Usage: $0 [OPTION]... [TAG]...
12912
12913 -h, --help print this help, then exit
12914 -V, --version print version number and configuration settings, then exit
12915 --config print configuration, then exit
12916 -q, --quiet, --silent
12917 do not print progress messages
12918 -d, --debug don't remove temporary files
12919 --recheck update $as_me by reconfiguring in the same conditions
12920 --file=FILE[:TEMPLATE]
12921 instantiate the configuration file FILE
12922 --header=FILE[:TEMPLATE]
12923 instantiate the configuration header FILE
12924
12925 Configuration files:
12926 $config_files
12927
12928 Configuration headers:
12929 $config_headers
12930
12931 Configuration commands:
12932 $config_commands
12933
12934 Report bugs to the package provider."
12935
12936 _ACEOF
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12939 ac_cs_version="\\
12940 libev config.status 4.33
12941 configured by $0, generated by GNU Autoconf 2.69,
12942 with options \\"\$ac_cs_config\\"
12943
12944 Copyright (C) 2012 Free Software Foundation, Inc.
12945 This config.status script is free software; the Free Software Foundation
12946 gives unlimited permission to copy, distribute and modify it."
12947
12948 ac_pwd='$ac_pwd'
12949 srcdir='$srcdir'
12950 INSTALL='$INSTALL'
12951 MKDIR_P='$MKDIR_P'
12952 AWK='$AWK'
12953 test -n "\$AWK" || AWK=awk
12954 _ACEOF
12955
12956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12957 # The default lists apply if the user does not specify any file.
12958 ac_need_defaults=:
12959 while test $# != 0
12960 do
12961 case $1 in
12962 --*=?*)
12963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12965 ac_shift=:
12966 ;;
12967 --*=)
12968 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12969 ac_optarg=
12970 ac_shift=:
12971 ;;
12972 *)
12973 ac_option=$1
12974 ac_optarg=$2
12975 ac_shift=shift
12976 ;;
12977 esac
12978
12979 case $ac_option in
12980 # Handling of the options.
12981 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12982 ac_cs_recheck=: ;;
12983 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12984 $as_echo "$ac_cs_version"; exit ;;
12985 --config | --confi | --conf | --con | --co | --c )
12986 $as_echo "$ac_cs_config"; exit ;;
12987 --debug | --debu | --deb | --de | --d | -d )
12988 debug=: ;;
12989 --file | --fil | --fi | --f )
12990 $ac_shift
12991 case $ac_optarg in
12992 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12993 '') as_fn_error $? "missing file argument" ;;
12994 esac
12995 as_fn_append CONFIG_FILES " '$ac_optarg'"
12996 ac_need_defaults=false;;
12997 --header | --heade | --head | --hea )
12998 $ac_shift
12999 case $ac_optarg in
13000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13001 esac
13002 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13003 ac_need_defaults=false;;
13004 --he | --h)
13005 # Conflict between --help and --header
13006 as_fn_error $? "ambiguous option: \`$1'
13007 Try \`$0 --help' for more information.";;
13008 --help | --hel | -h )
13009 $as_echo "$ac_cs_usage"; exit ;;
13010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13011 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13012 ac_cs_silent=: ;;
13013
13014 # This is an error.
13015 -*) as_fn_error $? "unrecognized option: \`$1'
13016 Try \`$0 --help' for more information." ;;
13017
13018 *) as_fn_append ac_config_targets " $1"
13019 ac_need_defaults=false ;;
13020
13021 esac
13022 shift
13023 done
13024
13025 ac_configure_extra_args=
13026
13027 if $ac_cs_silent; then
13028 exec 6>/dev/null
13029 ac_configure_extra_args="$ac_configure_extra_args --silent"
13030 fi
13031
13032 _ACEOF
13033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13034 if \$ac_cs_recheck; then
13035 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13036 shift
13037 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13038 CONFIG_SHELL='$SHELL'
13039 export CONFIG_SHELL
13040 exec "\$@"
13041 fi
13042
13043 _ACEOF
13044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13045 exec 5>>config.log
13046 {
13047 echo
13048 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13049 ## Running $as_me. ##
13050 _ASBOX
13051 $as_echo "$ac_log"
13052 } >&5
13053
13054 _ACEOF
13055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056 #
13057 # INIT-COMMANDS
13058 #
13059 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13060
13061
13062 # The HP-UX ksh and POSIX shell print the target directory to stdout
13063 # if CDPATH is set.
13064 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13065
13066 sed_quote_subst='$sed_quote_subst'
13067 double_quote_subst='$double_quote_subst'
13068 delay_variable_subst='$delay_variable_subst'
13069 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13070 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13071 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13072 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13073 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13074 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13075 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13076 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13077 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13078 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13079 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13080 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13081 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13082 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13083 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13084 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13085 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13086 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13087 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13088 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13089 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13090 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13091 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13092 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13093 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13094 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13095 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13096 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13097 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13098 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13099 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13100 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13101 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13102 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13103 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13104 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13105 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13106 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13107 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13108 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13109 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13110 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13111 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13112 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13113 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13114 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13115 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13116 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13117 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13118 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13119 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13120 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13121 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13122 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13123 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13124 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13125 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13126 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13127 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"`'
13128 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13129 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13130 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13131 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13132 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13133 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13134 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13135 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13136 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13137 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13138 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13139 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13140 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13141 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13142 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13143 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13144 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13145 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13146 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13147 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13148 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13149 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13150 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13151 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13152 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13153 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13154 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13155 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13156 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13157 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13158 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13159 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13160 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13161 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13162 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13163 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13164 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13165 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13166 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13167 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13168 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13169 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13170 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13171 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13172 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13173 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13174 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13175 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13176 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13177 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13178 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13179 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13180 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13181 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13182 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13183 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13184 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13185 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13186 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13187 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13188 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13189 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13190 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13191 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13192 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13193 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13194 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13195 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13196 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13197 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13198 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13199 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13200 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13201 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13202 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13203 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13204
13205 LTCC='$LTCC'
13206 LTCFLAGS='$LTCFLAGS'
13207 compiler='$compiler_DEFAULT'
13208
13209 # A function that is used when there is no print builtin or printf.
13210 func_fallback_echo ()
13211 {
13212 eval 'cat <<_LTECHO_EOF
13213 \$1
13214 _LTECHO_EOF'
13215 }
13216
13217 # Quote evaled strings.
13218 for var in SHELL \
13219 ECHO \
13220 PATH_SEPARATOR \
13221 SED \
13222 GREP \
13223 EGREP \
13224 FGREP \
13225 LD \
13226 NM \
13227 LN_S \
13228 lt_SP2NL \
13229 lt_NL2SP \
13230 reload_flag \
13231 OBJDUMP \
13232 deplibs_check_method \
13233 file_magic_cmd \
13234 file_magic_glob \
13235 want_nocaseglob \
13236 DLLTOOL \
13237 sharedlib_from_linklib_cmd \
13238 AR \
13239 AR_FLAGS \
13240 archiver_list_spec \
13241 STRIP \
13242 RANLIB \
13243 CC \
13244 CFLAGS \
13245 compiler \
13246 lt_cv_sys_global_symbol_pipe \
13247 lt_cv_sys_global_symbol_to_cdecl \
13248 lt_cv_sys_global_symbol_to_import \
13249 lt_cv_sys_global_symbol_to_c_name_address \
13250 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13251 lt_cv_nm_interface \
13252 nm_file_list_spec \
13253 lt_cv_truncate_bin \
13254 lt_prog_compiler_no_builtin_flag \
13255 lt_prog_compiler_pic \
13256 lt_prog_compiler_wl \
13257 lt_prog_compiler_static \
13258 lt_cv_prog_compiler_c_o \
13259 need_locks \
13260 MANIFEST_TOOL \
13261 DSYMUTIL \
13262 NMEDIT \
13263 LIPO \
13264 OTOOL \
13265 OTOOL64 \
13266 shrext_cmds \
13267 export_dynamic_flag_spec \
13268 whole_archive_flag_spec \
13269 compiler_needs_object \
13270 with_gnu_ld \
13271 allow_undefined_flag \
13272 no_undefined_flag \
13273 hardcode_libdir_flag_spec \
13274 hardcode_libdir_separator \
13275 exclude_expsyms \
13276 include_expsyms \
13277 file_list_spec \
13278 variables_saved_for_relink \
13279 libname_spec \
13280 library_names_spec \
13281 soname_spec \
13282 install_override_mode \
13283 finish_eval \
13284 old_striplib \
13285 striplib; do
13286 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13287 *[\\\\\\\`\\"\\\$]*)
13288 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13289 ;;
13290 *)
13291 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13292 ;;
13293 esac
13294 done
13295
13296 # Double-quote double-evaled strings.
13297 for var in reload_cmds \
13298 old_postinstall_cmds \
13299 old_postuninstall_cmds \
13300 old_archive_cmds \
13301 extract_expsyms_cmds \
13302 old_archive_from_new_cmds \
13303 old_archive_from_expsyms_cmds \
13304 archive_cmds \
13305 archive_expsym_cmds \
13306 module_cmds \
13307 module_expsym_cmds \
13308 export_symbols_cmds \
13309 prelink_cmds \
13310 postlink_cmds \
13311 postinstall_cmds \
13312 postuninstall_cmds \
13313 finish_cmds \
13314 sys_lib_search_path_spec \
13315 configure_time_dlsearch_path \
13316 configure_time_lt_sys_library_path; do
13317 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13318 *[\\\\\\\`\\"\\\$]*)
13319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13320 ;;
13321 *)
13322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13323 ;;
13324 esac
13325 done
13326
13327 ac_aux_dir='$ac_aux_dir'
13328
13329 # See if we are running on zsh, and set the options that allow our
13330 # commands through without removal of \ escapes INIT.
13331 if test -n "\${ZSH_VERSION+set}"; then
13332 setopt NO_GLOB_SUBST
13333 fi
13334
13335
13336 PACKAGE='$PACKAGE'
13337 VERSION='$VERSION'
13338 RM='$RM'
13339 ofile='$ofile'
13340
13341
13342
13343
13344 _ACEOF
13345
13346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13347
13348 # Handling of arguments.
13349 for ac_config_target in $ac_config_targets
13350 do
13351 case $ac_config_target in
13352 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13353 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13354 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13356
13357 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13358 esac
13359 done
13360
13361
13362 # If the user did not use the arguments to specify the items to instantiate,
13363 # then the envvar interface is used. Set only those that are not.
13364 # We use the long form for the default assignment because of an extremely
13365 # bizarre bug on SunOS 4.1.3.
13366 if $ac_need_defaults; then
13367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13370 fi
13371
13372 # Have a temporary directory for convenience. Make it in the build tree
13373 # simply because there is no reason against having it here, and in addition,
13374 # creating and moving files from /tmp can sometimes cause problems.
13375 # Hook for its removal unless debugging.
13376 # Note that there is a small window in which the directory will not be cleaned:
13377 # after its creation but before its name has been assigned to `$tmp'.
13378 $debug ||
13379 {
13380 tmp= ac_tmp=
13381 trap 'exit_status=$?
13382 : "${ac_tmp:=$tmp}"
13383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13384 ' 0
13385 trap 'as_fn_exit 1' 1 2 13 15
13386 }
13387 # Create a (secure) tmp directory for tmp files.
13388
13389 {
13390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13391 test -d "$tmp"
13392 } ||
13393 {
13394 tmp=./conf$$-$RANDOM
13395 (umask 077 && mkdir "$tmp")
13396 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13397 ac_tmp=$tmp
13398
13399 # Set up the scripts for CONFIG_FILES section.
13400 # No need to generate them if there are no CONFIG_FILES.
13401 # This happens for instance with `./config.status config.h'.
13402 if test -n "$CONFIG_FILES"; then
13403
13404
13405 ac_cr=`echo X | tr X '\015'`
13406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13407 # But we know of no other shell where ac_cr would be empty at this
13408 # point, so we can use a bashism as a fallback.
13409 if test "x$ac_cr" = x; then
13410 eval ac_cr=\$\'\\r\'
13411 fi
13412 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13414 ac_cs_awk_cr='\\r'
13415 else
13416 ac_cs_awk_cr=$ac_cr
13417 fi
13418
13419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13420 _ACEOF
13421
13422
13423 {
13424 echo "cat >conf$$subs.awk <<_ACEOF" &&
13425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13426 echo "_ACEOF"
13427 } >conf$$subs.sh ||
13428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13430 ac_delim='%!_!# '
13431 for ac_last_try in false false false false false :; do
13432 . ./conf$$subs.sh ||
13433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13434
13435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13436 if test $ac_delim_n = $ac_delim_num; then
13437 break
13438 elif $ac_last_try; then
13439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13440 else
13441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13442 fi
13443 done
13444 rm -f conf$$subs.sh
13445
13446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13447 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13448 _ACEOF
13449 sed -n '
13450 h
13451 s/^/S["/; s/!.*/"]=/
13452 p
13453 g
13454 s/^[^!]*!//
13455 :repl
13456 t repl
13457 s/'"$ac_delim"'$//
13458 t delim
13459 :nl
13460 h
13461 s/\(.\{148\}\)..*/\1/
13462 t more1
13463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13464 p
13465 n
13466 b repl
13467 :more1
13468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13469 p
13470 g
13471 s/.\{148\}//
13472 t nl
13473 :delim
13474 h
13475 s/\(.\{148\}\)..*/\1/
13476 t more2
13477 s/["\\]/\\&/g; s/^/"/; s/$/"/
13478 p
13479 b
13480 :more2
13481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13482 p
13483 g
13484 s/.\{148\}//
13485 t delim
13486 ' <conf$$subs.awk | sed '
13487 /^[^""]/{
13488 N
13489 s/\n//
13490 }
13491 ' >>$CONFIG_STATUS || ac_write_fail=1
13492 rm -f conf$$subs.awk
13493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13494 _ACAWK
13495 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13496 for (key in S) S_is_set[key] = 1
13497 FS = ""
13498
13499 }
13500 {
13501 line = $ 0
13502 nfields = split(line, field, "@")
13503 substed = 0
13504 len = length(field[1])
13505 for (i = 2; i < nfields; i++) {
13506 key = field[i]
13507 keylen = length(key)
13508 if (S_is_set[key]) {
13509 value = S[key]
13510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13511 len += length(value) + length(field[++i])
13512 substed = 1
13513 } else
13514 len += 1 + keylen
13515 }
13516
13517 print line
13518 }
13519
13520 _ACAWK
13521 _ACEOF
13522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13525 else
13526 cat
13527 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13529 _ACEOF
13530
13531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13533 # trailing colons and then remove the whole line if VPATH becomes empty
13534 # (actually we leave an empty line to preserve line numbers).
13535 if test "x$srcdir" = x.; then
13536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13537 h
13538 s///
13539 s/^/:/
13540 s/[ ]*$/:/
13541 s/:\$(srcdir):/:/g
13542 s/:\${srcdir}:/:/g
13543 s/:@srcdir@:/:/g
13544 s/^:*//
13545 s/:*$//
13546 x
13547 s/\(=[ ]*\).*/\1/
13548 G
13549 s/\n//
13550 s/^[^=]*=[ ]*$//
13551 }'
13552 fi
13553
13554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13555 fi # test -n "$CONFIG_FILES"
13556
13557 # Set up the scripts for CONFIG_HEADERS section.
13558 # No need to generate them if there are no CONFIG_HEADERS.
13559 # This happens for instance with `./config.status Makefile'.
13560 if test -n "$CONFIG_HEADERS"; then
13561 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13562 BEGIN {
13563 _ACEOF
13564
13565 # Transform confdefs.h into an awk script `defines.awk', embedded as
13566 # here-document in config.status, that substitutes the proper values into
13567 # config.h.in to produce config.h.
13568
13569 # Create a delimiter string that does not exist in confdefs.h, to ease
13570 # handling of long lines.
13571 ac_delim='%!_!# '
13572 for ac_last_try in false false :; do
13573 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13574 if test -z "$ac_tt"; then
13575 break
13576 elif $ac_last_try; then
13577 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13578 else
13579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13580 fi
13581 done
13582
13583 # For the awk script, D is an array of macro values keyed by name,
13584 # likewise P contains macro parameters if any. Preserve backslash
13585 # newline sequences.
13586
13587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13588 sed -n '
13589 s/.\{148\}/&'"$ac_delim"'/g
13590 t rset
13591 :rset
13592 s/^[ ]*#[ ]*define[ ][ ]*/ /
13593 t def
13594 d
13595 :def
13596 s/\\$//
13597 t bsnl
13598 s/["\\]/\\&/g
13599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13600 D["\1"]=" \3"/p
13601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13602 d
13603 :bsnl
13604 s/["\\]/\\&/g
13605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13606 D["\1"]=" \3\\\\\\n"\\/p
13607 t cont
13608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13609 t cont
13610 d
13611 :cont
13612 n
13613 s/.\{148\}/&'"$ac_delim"'/g
13614 t clear
13615 :clear
13616 s/\\$//
13617 t bsnlc
13618 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13619 d
13620 :bsnlc
13621 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13622 b cont
13623 ' <confdefs.h | sed '
13624 s/'"$ac_delim"'/"\\\
13625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13626
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 for (key in D) D_is_set[key] = 1
13629 FS = ""
13630 }
13631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13632 line = \$ 0
13633 split(line, arg, " ")
13634 if (arg[1] == "#") {
13635 defundef = arg[2]
13636 mac1 = arg[3]
13637 } else {
13638 defundef = substr(arg[1], 2)
13639 mac1 = arg[2]
13640 }
13641 split(mac1, mac2, "(") #)
13642 macro = mac2[1]
13643 prefix = substr(line, 1, index(line, defundef) - 1)
13644 if (D_is_set[macro]) {
13645 # Preserve the white space surrounding the "#".
13646 print prefix "define", macro P[macro] D[macro]
13647 next
13648 } else {
13649 # Replace #undef with comments. This is necessary, for example,
13650 # in the case of _POSIX_SOURCE, which is predefined and required
13651 # on some systems where configure will not decide to define it.
13652 if (defundef == "undef") {
13653 print "/*", prefix defundef, macro, "*/"
13654 next
13655 }
13656 }
13657 }
13658 { print }
13659 _ACAWK
13660 _ACEOF
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13663 fi # test -n "$CONFIG_HEADERS"
13664
13665
13666 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13667 shift
13668 for ac_tag
13669 do
13670 case $ac_tag in
13671 :[FHLC]) ac_mode=$ac_tag; continue;;
13672 esac
13673 case $ac_mode$ac_tag in
13674 :[FHL]*:*);;
13675 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13676 :[FH]-) ac_tag=-:-;;
13677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13678 esac
13679 ac_save_IFS=$IFS
13680 IFS=:
13681 set x $ac_tag
13682 IFS=$ac_save_IFS
13683 shift
13684 ac_file=$1
13685 shift
13686
13687 case $ac_mode in
13688 :L) ac_source=$1;;
13689 :[FH])
13690 ac_file_inputs=
13691 for ac_f
13692 do
13693 case $ac_f in
13694 -) ac_f="$ac_tmp/stdin";;
13695 *) # Look for the file first in the build tree, then in the source tree
13696 # (if the path is not absolute). The absolute path cannot be DOS-style,
13697 # because $ac_f cannot contain `:'.
13698 test -f "$ac_f" ||
13699 case $ac_f in
13700 [\\/$]*) false;;
13701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13702 esac ||
13703 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13704 esac
13705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13706 as_fn_append ac_file_inputs " '$ac_f'"
13707 done
13708
13709 # Let's still pretend it is `configure' which instantiates (i.e., don't
13710 # use $as_me), people would be surprised to read:
13711 # /* config.h. Generated by config.status. */
13712 configure_input='Generated from '`
13713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13714 `' by configure.'
13715 if test x"$ac_file" != x-; then
13716 configure_input="$ac_file. $configure_input"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13718 $as_echo "$as_me: creating $ac_file" >&6;}
13719 fi
13720 # Neutralize special characters interpreted by sed in replacement strings.
13721 case $configure_input in #(
13722 *\&* | *\|* | *\\* )
13723 ac_sed_conf_input=`$as_echo "$configure_input" |
13724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13725 *) ac_sed_conf_input=$configure_input;;
13726 esac
13727
13728 case $ac_tag in
13729 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13731 esac
13732 ;;
13733 esac
13734
13735 ac_dir=`$as_dirname -- "$ac_file" ||
13736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13737 X"$ac_file" : 'X\(//\)[^/]' \| \
13738 X"$ac_file" : 'X\(//\)$' \| \
13739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13740 $as_echo X"$ac_file" |
13741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13742 s//\1/
13743 q
13744 }
13745 /^X\(\/\/\)[^/].*/{
13746 s//\1/
13747 q
13748 }
13749 /^X\(\/\/\)$/{
13750 s//\1/
13751 q
13752 }
13753 /^X\(\/\).*/{
13754 s//\1/
13755 q
13756 }
13757 s/.*/./; q'`
13758 as_dir="$ac_dir"; as_fn_mkdir_p
13759 ac_builddir=.
13760
13761 case "$ac_dir" in
13762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13763 *)
13764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13765 # A ".." for each directory in $ac_dir_suffix.
13766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13767 case $ac_top_builddir_sub in
13768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13770 esac ;;
13771 esac
13772 ac_abs_top_builddir=$ac_pwd
13773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13774 # for backward compatibility:
13775 ac_top_builddir=$ac_top_build_prefix
13776
13777 case $srcdir in
13778 .) # We are building in place.
13779 ac_srcdir=.
13780 ac_top_srcdir=$ac_top_builddir_sub
13781 ac_abs_top_srcdir=$ac_pwd ;;
13782 [\\/]* | ?:[\\/]* ) # Absolute name.
13783 ac_srcdir=$srcdir$ac_dir_suffix;
13784 ac_top_srcdir=$srcdir
13785 ac_abs_top_srcdir=$srcdir ;;
13786 *) # Relative name.
13787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13788 ac_top_srcdir=$ac_top_build_prefix$srcdir
13789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13790 esac
13791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13792
13793
13794 case $ac_mode in
13795 :F)
13796 #
13797 # CONFIG_FILE
13798 #
13799
13800 case $INSTALL in
13801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13803 esac
13804 ac_MKDIR_P=$MKDIR_P
13805 case $MKDIR_P in
13806 [\\/$]* | ?:[\\/]* ) ;;
13807 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13808 esac
13809 _ACEOF
13810
13811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13812 # If the template does not know about datarootdir, expand it.
13813 # FIXME: This hack should be removed a few years after 2.60.
13814 ac_datarootdir_hack=; ac_datarootdir_seen=
13815 ac_sed_dataroot='
13816 /datarootdir/ {
13817 p
13818 q
13819 }
13820 /@datadir@/p
13821 /@docdir@/p
13822 /@infodir@/p
13823 /@localedir@/p
13824 /@mandir@/p'
13825 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13826 *datarootdir*) ac_datarootdir_seen=yes;;
13827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13829 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13830 _ACEOF
13831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13832 ac_datarootdir_hack='
13833 s&@datadir@&$datadir&g
13834 s&@docdir@&$docdir&g
13835 s&@infodir@&$infodir&g
13836 s&@localedir@&$localedir&g
13837 s&@mandir@&$mandir&g
13838 s&\\\${datarootdir}&$datarootdir&g' ;;
13839 esac
13840 _ACEOF
13841
13842 # Neutralize VPATH when `$srcdir' = `.'.
13843 # Shell code in configure.ac might set extrasub.
13844 # FIXME: do we really want to maintain this feature?
13845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13846 ac_sed_extra="$ac_vpsub
13847 $extrasub
13848 _ACEOF
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 :t
13851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13852 s|@configure_input@|$ac_sed_conf_input|;t t
13853 s&@top_builddir@&$ac_top_builddir_sub&;t t
13854 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13855 s&@srcdir@&$ac_srcdir&;t t
13856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13857 s&@top_srcdir@&$ac_top_srcdir&;t t
13858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13859 s&@builddir@&$ac_builddir&;t t
13860 s&@abs_builddir@&$ac_abs_builddir&;t t
13861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13862 s&@INSTALL@&$ac_INSTALL&;t t
13863 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13864 $ac_datarootdir_hack
13865 "
13866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13867 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13868
13869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13870 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13872 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13874 which seems to be undefined. Please make sure it is defined" >&5
13875 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13876 which seems to be undefined. Please make sure it is defined" >&2;}
13877
13878 rm -f "$ac_tmp/stdin"
13879 case $ac_file in
13880 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13881 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13882 esac \
13883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13884 ;;
13885 :H)
13886 #
13887 # CONFIG_HEADER
13888 #
13889 if test x"$ac_file" != x-; then
13890 {
13891 $as_echo "/* $configure_input */" \
13892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13893 } >"$ac_tmp/config.h" \
13894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13895 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13897 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13898 else
13899 rm -f "$ac_file"
13900 mv "$ac_tmp/config.h" "$ac_file" \
13901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13902 fi
13903 else
13904 $as_echo "/* $configure_input */" \
13905 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13906 || as_fn_error $? "could not create -" "$LINENO" 5
13907 fi
13908 # Compute "$ac_file"'s index in $config_headers.
13909 _am_arg="$ac_file"
13910 _am_stamp_count=1
13911 for _am_header in $config_headers :; do
13912 case $_am_header in
13913 $_am_arg | $_am_arg:* )
13914 break ;;
13915 * )
13916 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13917 esac
13918 done
13919 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13920 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13921 X"$_am_arg" : 'X\(//\)[^/]' \| \
13922 X"$_am_arg" : 'X\(//\)$' \| \
13923 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13924 $as_echo X"$_am_arg" |
13925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13926 s//\1/
13927 q
13928 }
13929 /^X\(\/\/\)[^/].*/{
13930 s//\1/
13931 q
13932 }
13933 /^X\(\/\/\)$/{
13934 s//\1/
13935 q
13936 }
13937 /^X\(\/\).*/{
13938 s//\1/
13939 q
13940 }
13941 s/.*/./; q'`/stamp-h$_am_stamp_count
13942 ;;
13943
13944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13945 $as_echo "$as_me: executing $ac_file commands" >&6;}
13946 ;;
13947 esac
13948
13949
13950 case $ac_file$ac_mode in
13951 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13952 # Older Autoconf quotes --file arguments for eval, but not when files
13953 # are listed without --file. Let's play safe and only enable the eval
13954 # if we detect the quoting.
13955 # TODO: see whether this extra hack can be removed once we start
13956 # requiring Autoconf 2.70 or later.
13957 case $CONFIG_FILES in #(
13958 *\'*) :
13959 eval set x "$CONFIG_FILES" ;; #(
13960 *) :
13961 set x $CONFIG_FILES ;; #(
13962 *) :
13963 ;;
13964 esac
13965 shift
13966 # Used to flag and report bootstrapping failures.
13967 am_rc=0
13968 for am_mf
13969 do
13970 # Strip MF so we end up with the name of the file.
13971 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13972 # Check whether this is an Automake generated Makefile which includes
13973 # dependency-tracking related rules and includes.
13974 # Grep'ing the whole file directly is not great: AIX grep has a line
13975 # limit of 2048, but all sed's we know have understand at least 4000.
13976 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13977 || continue
13978 am_dirpart=`$as_dirname -- "$am_mf" ||
13979 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$am_mf" : 'X\(//\)[^/]' \| \
13981 X"$am_mf" : 'X\(//\)$' \| \
13982 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13983 $as_echo X"$am_mf" |
13984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13985 s//\1/
13986 q
13987 }
13988 /^X\(\/\/\)[^/].*/{
13989 s//\1/
13990 q
13991 }
13992 /^X\(\/\/\)$/{
13993 s//\1/
13994 q
13995 }
13996 /^X\(\/\).*/{
13997 s//\1/
13998 q
13999 }
14000 s/.*/./; q'`
14001 am_filepart=`$as_basename -- "$am_mf" ||
14002 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14003 X"$am_mf" : 'X\(//\)$' \| \
14004 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14005 $as_echo X/"$am_mf" |
14006 sed '/^.*\/\([^/][^/]*\)\/*$/{
14007 s//\1/
14008 q
14009 }
14010 /^X\/\(\/\/\)$/{
14011 s//\1/
14012 q
14013 }
14014 /^X\/\(\/\).*/{
14015 s//\1/
14016 q
14017 }
14018 s/.*/./; q'`
14019 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14020 && sed -e '/# am--include-marker/d' "$am_filepart" \
14021 | $MAKE -f - am--depfiles" >&5
14022 (cd "$am_dirpart" \
14023 && sed -e '/# am--include-marker/d' "$am_filepart" \
14024 | $MAKE -f - am--depfiles) >&5 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } || am_rc=$?
14028 done
14029 if test $am_rc -ne 0; then
14030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14032 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14033 for automatic dependency tracking. Try re-running configure with the
14034 '--disable-dependency-tracking' option to at least be able to build
14035 the package (albeit without support for automatic dependency tracking).
14036 See \`config.log' for more details" "$LINENO" 5; }
14037 fi
14038 { am_dirpart=; unset am_dirpart;}
14039 { am_filepart=; unset am_filepart;}
14040 { am_mf=; unset am_mf;}
14041 { am_rc=; unset am_rc;}
14042 rm -f conftest-deps.mk
14043 }
14044 ;;
14045 "libtool":C)
14046
14047 # See if we are running on zsh, and set the options that allow our
14048 # commands through without removal of \ escapes.
14049 if test -n "${ZSH_VERSION+set}"; then
14050 setopt NO_GLOB_SUBST
14051 fi
14052
14053 cfgfile=${ofile}T
14054 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14055 $RM "$cfgfile"
14056
14057 cat <<_LT_EOF >> "$cfgfile"
14058 #! $SHELL
14059 # Generated automatically by $as_me ($PACKAGE) $VERSION
14060 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14061
14062 # Provide generalized library-building support services.
14063 # Written by Gordon Matzigkeit, 1996
14064
14065 # Copyright (C) 2014 Free Software Foundation, Inc.
14066 # This is free software; see the source for copying conditions. There is NO
14067 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14068
14069 # GNU Libtool is free software; you can redistribute it and/or modify
14070 # it under the terms of the GNU General Public License as published by
14071 # the Free Software Foundation; either version 2 of of the License, or
14072 # (at your option) any later version.
14073 #
14074 # As a special exception to the GNU General Public License, if you
14075 # distribute this file as part of a program or library that is built
14076 # using GNU Libtool, you may include this file under the same
14077 # distribution terms that you use for the rest of that program.
14078 #
14079 # GNU Libtool is distributed in the hope that it will be useful, but
14080 # WITHOUT ANY WARRANTY; without even the implied warranty of
14081 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14082 # GNU General Public License for more details.
14083 #
14084 # You should have received a copy of the GNU General Public License
14085 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14086
14087
14088 # The names of the tagged configurations supported by this script.
14089 available_tags=''
14090
14091 # Configured defaults for sys_lib_dlsearch_path munging.
14092 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14093
14094 # ### BEGIN LIBTOOL CONFIG
14095
14096 # Which release of libtool.m4 was used?
14097 macro_version=$macro_version
14098 macro_revision=$macro_revision
14099
14100 # Whether or not to build shared libraries.
14101 build_libtool_libs=$enable_shared
14102
14103 # Whether or not to build static libraries.
14104 build_old_libs=$enable_static
14105
14106 # What type of objects to build.
14107 pic_mode=$pic_mode
14108
14109 # Whether or not to optimize for fast installation.
14110 fast_install=$enable_fast_install
14111
14112 # Shared archive member basename,for filename based shared library versioning on AIX.
14113 shared_archive_member_spec=$shared_archive_member_spec
14114
14115 # Shell to use when invoking shell scripts.
14116 SHELL=$lt_SHELL
14117
14118 # An echo program that protects backslashes.
14119 ECHO=$lt_ECHO
14120
14121 # The PATH separator for the build system.
14122 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14123
14124 # The host system.
14125 host_alias=$host_alias
14126 host=$host
14127 host_os=$host_os
14128
14129 # The build system.
14130 build_alias=$build_alias
14131 build=$build
14132 build_os=$build_os
14133
14134 # A sed program that does not truncate output.
14135 SED=$lt_SED
14136
14137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14138 Xsed="\$SED -e 1s/^X//"
14139
14140 # A grep program that handles long lines.
14141 GREP=$lt_GREP
14142
14143 # An ERE matcher.
14144 EGREP=$lt_EGREP
14145
14146 # A literal string matcher.
14147 FGREP=$lt_FGREP
14148
14149 # A BSD- or MS-compatible name lister.
14150 NM=$lt_NM
14151
14152 # Whether we need soft or hard links.
14153 LN_S=$lt_LN_S
14154
14155 # What is the maximum length of a command?
14156 max_cmd_len=$max_cmd_len
14157
14158 # Object file suffix (normally "o").
14159 objext=$ac_objext
14160
14161 # Executable file suffix (normally "").
14162 exeext=$exeext
14163
14164 # whether the shell understands "unset".
14165 lt_unset=$lt_unset
14166
14167 # turn spaces into newlines.
14168 SP2NL=$lt_lt_SP2NL
14169
14170 # turn newlines into spaces.
14171 NL2SP=$lt_lt_NL2SP
14172
14173 # convert \$build file names to \$host format.
14174 to_host_file_cmd=$lt_cv_to_host_file_cmd
14175
14176 # convert \$build files to toolchain format.
14177 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14178
14179 # An object symbol dumper.
14180 OBJDUMP=$lt_OBJDUMP
14181
14182 # Method to check whether dependent libraries are shared objects.
14183 deplibs_check_method=$lt_deplibs_check_method
14184
14185 # Command to use when deplibs_check_method = "file_magic".
14186 file_magic_cmd=$lt_file_magic_cmd
14187
14188 # How to find potential files when deplibs_check_method = "file_magic".
14189 file_magic_glob=$lt_file_magic_glob
14190
14191 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14192 want_nocaseglob=$lt_want_nocaseglob
14193
14194 # DLL creation program.
14195 DLLTOOL=$lt_DLLTOOL
14196
14197 # Command to associate shared and link libraries.
14198 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14199
14200 # The archiver.
14201 AR=$lt_AR
14202
14203 # Flags to create an archive.
14204 AR_FLAGS=$lt_AR_FLAGS
14205
14206 # How to feed a file listing to the archiver.
14207 archiver_list_spec=$lt_archiver_list_spec
14208
14209 # A symbol stripping program.
14210 STRIP=$lt_STRIP
14211
14212 # Commands used to install an old-style archive.
14213 RANLIB=$lt_RANLIB
14214 old_postinstall_cmds=$lt_old_postinstall_cmds
14215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14216
14217 # Whether to use a lock for old archive extraction.
14218 lock_old_archive_extraction=$lock_old_archive_extraction
14219
14220 # A C compiler.
14221 LTCC=$lt_CC
14222
14223 # LTCC compiler flags.
14224 LTCFLAGS=$lt_CFLAGS
14225
14226 # Take the output of nm and produce a listing of raw symbols and C names.
14227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14228
14229 # Transform the output of nm in a proper C declaration.
14230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14231
14232 # Transform the output of nm into a list of symbols to manually relocate.
14233 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14234
14235 # Transform the output of nm in a C name address pair.
14236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14237
14238 # Transform the output of nm in a C name address pair when lib prefix is needed.
14239 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14240
14241 # The name lister interface.
14242 nm_interface=$lt_lt_cv_nm_interface
14243
14244 # Specify filename containing input files for \$NM.
14245 nm_file_list_spec=$lt_nm_file_list_spec
14246
14247 # The root where to search for dependent libraries,and where our libraries should be installed.
14248 lt_sysroot=$lt_sysroot
14249
14250 # Command to truncate a binary pipe.
14251 lt_truncate_bin=$lt_lt_cv_truncate_bin
14252
14253 # The name of the directory that contains temporary libtool files.
14254 objdir=$objdir
14255
14256 # Used to examine libraries when file_magic_cmd begins with "file".
14257 MAGIC_CMD=$MAGIC_CMD
14258
14259 # Must we lock files when doing compilation?
14260 need_locks=$lt_need_locks
14261
14262 # Manifest tool.
14263 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14264
14265 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14266 DSYMUTIL=$lt_DSYMUTIL
14267
14268 # Tool to change global to local symbols on Mac OS X.
14269 NMEDIT=$lt_NMEDIT
14270
14271 # Tool to manipulate fat objects and archives on Mac OS X.
14272 LIPO=$lt_LIPO
14273
14274 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14275 OTOOL=$lt_OTOOL
14276
14277 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14278 OTOOL64=$lt_OTOOL64
14279
14280 # Old archive suffix (normally "a").
14281 libext=$libext
14282
14283 # Shared library suffix (normally ".so").
14284 shrext_cmds=$lt_shrext_cmds
14285
14286 # The commands to extract the exported symbol list from a shared archive.
14287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14288
14289 # Variables whose values should be saved in libtool wrapper scripts and
14290 # restored at link time.
14291 variables_saved_for_relink=$lt_variables_saved_for_relink
14292
14293 # Do we need the "lib" prefix for modules?
14294 need_lib_prefix=$need_lib_prefix
14295
14296 # Do we need a version for libraries?
14297 need_version=$need_version
14298
14299 # Library versioning type.
14300 version_type=$version_type
14301
14302 # Shared library runtime path variable.
14303 runpath_var=$runpath_var
14304
14305 # Shared library path variable.
14306 shlibpath_var=$shlibpath_var
14307
14308 # Is shlibpath searched before the hard-coded library search path?
14309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14310
14311 # Format of library name prefix.
14312 libname_spec=$lt_libname_spec
14313
14314 # List of archive names. First name is the real one, the rest are links.
14315 # The last name is the one that the linker finds with -lNAME
14316 library_names_spec=$lt_library_names_spec
14317
14318 # The coded name of the library, if different from the real name.
14319 soname_spec=$lt_soname_spec
14320
14321 # Permission mode override for installation of shared libraries.
14322 install_override_mode=$lt_install_override_mode
14323
14324 # Command to use after installation of a shared archive.
14325 postinstall_cmds=$lt_postinstall_cmds
14326
14327 # Command to use after uninstallation of a shared archive.
14328 postuninstall_cmds=$lt_postuninstall_cmds
14329
14330 # Commands used to finish a libtool library installation in a directory.
14331 finish_cmds=$lt_finish_cmds
14332
14333 # As "finish_cmds", except a single script fragment to be evaled but
14334 # not shown.
14335 finish_eval=$lt_finish_eval
14336
14337 # Whether we should hardcode library paths into libraries.
14338 hardcode_into_libs=$hardcode_into_libs
14339
14340 # Compile-time system search path for libraries.
14341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14342
14343 # Detected run-time system search path for libraries.
14344 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14345
14346 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14347 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14348
14349 # Whether dlopen is supported.
14350 dlopen_support=$enable_dlopen
14351
14352 # Whether dlopen of programs is supported.
14353 dlopen_self=$enable_dlopen_self
14354
14355 # Whether dlopen of statically linked programs is supported.
14356 dlopen_self_static=$enable_dlopen_self_static
14357
14358 # Commands to strip libraries.
14359 old_striplib=$lt_old_striplib
14360 striplib=$lt_striplib
14361
14362
14363 # The linker used to build libraries.
14364 LD=$lt_LD
14365
14366 # How to create reloadable object files.
14367 reload_flag=$lt_reload_flag
14368 reload_cmds=$lt_reload_cmds
14369
14370 # Commands used to build an old-style archive.
14371 old_archive_cmds=$lt_old_archive_cmds
14372
14373 # A language specific compiler.
14374 CC=$lt_compiler
14375
14376 # Is the compiler the GNU compiler?
14377 with_gcc=$GCC
14378
14379 # Compiler flag to turn off builtin functions.
14380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14381
14382 # Additional compiler flags for building library objects.
14383 pic_flag=$lt_lt_prog_compiler_pic
14384
14385 # How to pass a linker flag through the compiler.
14386 wl=$lt_lt_prog_compiler_wl
14387
14388 # Compiler flag to prevent dynamic linking.
14389 link_static_flag=$lt_lt_prog_compiler_static
14390
14391 # Does compiler simultaneously support -c and -o options?
14392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14393
14394 # Whether or not to add -lc for building shared libraries.
14395 build_libtool_need_lc=$archive_cmds_need_lc
14396
14397 # Whether or not to disallow shared libs when runtime libs are static.
14398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14399
14400 # Compiler flag to allow reflexive dlopens.
14401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14402
14403 # Compiler flag to generate shared objects directly from archives.
14404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14405
14406 # Whether the compiler copes with passing no objects directly.
14407 compiler_needs_object=$lt_compiler_needs_object
14408
14409 # Create an old-style archive from a shared archive.
14410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14411
14412 # Create a temporary old-style archive to link instead of a shared archive.
14413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14414
14415 # Commands used to build a shared archive.
14416 archive_cmds=$lt_archive_cmds
14417 archive_expsym_cmds=$lt_archive_expsym_cmds
14418
14419 # Commands used to build a loadable module if different from building
14420 # a shared archive.
14421 module_cmds=$lt_module_cmds
14422 module_expsym_cmds=$lt_module_expsym_cmds
14423
14424 # Whether we are building with GNU ld or not.
14425 with_gnu_ld=$lt_with_gnu_ld
14426
14427 # Flag that allows shared libraries with undefined symbols to be built.
14428 allow_undefined_flag=$lt_allow_undefined_flag
14429
14430 # Flag that enforces no undefined symbols.
14431 no_undefined_flag=$lt_no_undefined_flag
14432
14433 # Flag to hardcode \$libdir into a binary during linking.
14434 # This must work even if \$libdir does not exist
14435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14436
14437 # Whether we need a single "-rpath" flag with a separated argument.
14438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14439
14440 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14441 # DIR into the resulting binary.
14442 hardcode_direct=$hardcode_direct
14443
14444 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14445 # DIR into the resulting binary and the resulting library dependency is
14446 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14447 # library is relocated.
14448 hardcode_direct_absolute=$hardcode_direct_absolute
14449
14450 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14451 # into the resulting binary.
14452 hardcode_minus_L=$hardcode_minus_L
14453
14454 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14455 # into the resulting binary.
14456 hardcode_shlibpath_var=$hardcode_shlibpath_var
14457
14458 # Set to "yes" if building a shared library automatically hardcodes DIR
14459 # into the library and all subsequent libraries and executables linked
14460 # against it.
14461 hardcode_automatic=$hardcode_automatic
14462
14463 # Set to yes if linker adds runtime paths of dependent libraries
14464 # to runtime path list.
14465 inherit_rpath=$inherit_rpath
14466
14467 # Whether libtool must link a program against all its dependency libraries.
14468 link_all_deplibs=$link_all_deplibs
14469
14470 # Set to "yes" if exported symbols are required.
14471 always_export_symbols=$always_export_symbols
14472
14473 # The commands to list exported symbols.
14474 export_symbols_cmds=$lt_export_symbols_cmds
14475
14476 # Symbols that should not be listed in the preloaded symbols.
14477 exclude_expsyms=$lt_exclude_expsyms
14478
14479 # Symbols that must always be exported.
14480 include_expsyms=$lt_include_expsyms
14481
14482 # Commands necessary for linking programs (against libraries) with templates.
14483 prelink_cmds=$lt_prelink_cmds
14484
14485 # Commands necessary for finishing linking programs.
14486 postlink_cmds=$lt_postlink_cmds
14487
14488 # Specify filename containing input files.
14489 file_list_spec=$lt_file_list_spec
14490
14491 # How to hardcode a shared library path into an executable.
14492 hardcode_action=$hardcode_action
14493
14494 # ### END LIBTOOL CONFIG
14495
14496 _LT_EOF
14497
14498 cat <<'_LT_EOF' >> "$cfgfile"
14499
14500 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14501
14502 # func_munge_path_list VARIABLE PATH
14503 # -----------------------------------
14504 # VARIABLE is name of variable containing _space_ separated list of
14505 # directories to be munged by the contents of PATH, which is string
14506 # having a format:
14507 # "DIR[:DIR]:"
14508 # string "DIR[ DIR]" will be prepended to VARIABLE
14509 # ":DIR[:DIR]"
14510 # string "DIR[ DIR]" will be appended to VARIABLE
14511 # "DIRP[:DIRP]::[DIRA:]DIRA"
14512 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14513 # "DIRA[ DIRA]" will be appended to VARIABLE
14514 # "DIR[:DIR]"
14515 # VARIABLE will be replaced by "DIR[ DIR]"
14516 func_munge_path_list ()
14517 {
14518 case x$2 in
14519 x)
14520 ;;
14521 *:)
14522 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14523 ;;
14524 x:*)
14525 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14526 ;;
14527 *::*)
14528 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14529 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14530 ;;
14531 *)
14532 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14533 ;;
14534 esac
14535 }
14536
14537
14538 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14539 func_cc_basename ()
14540 {
14541 for cc_temp in $*""; do
14542 case $cc_temp in
14543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14545 \-*) ;;
14546 *) break;;
14547 esac
14548 done
14549 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14550 }
14551
14552
14553 # ### END FUNCTIONS SHARED WITH CONFIGURE
14554
14555 _LT_EOF
14556
14557 case $host_os in
14558 aix3*)
14559 cat <<\_LT_EOF >> "$cfgfile"
14560 # AIX sometimes has problems with the GCC collect2 program. For some
14561 # reason, if we set the COLLECT_NAMES environment variable, the problems
14562 # vanish in a puff of smoke.
14563 if test set != "${COLLECT_NAMES+set}"; then
14564 COLLECT_NAMES=
14565 export COLLECT_NAMES
14566 fi
14567 _LT_EOF
14568 ;;
14569 esac
14570
14571
14572 ltmain=$ac_aux_dir/ltmain.sh
14573
14574
14575 # We use sed instead of cat because bash on DJGPP gets confused if
14576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14577 # text mode, it properly converts lines to CR/LF. This bash problem
14578 # is reportedly fixed, but why not run on old versions too?
14579 sed '$q' "$ltmain" >> "$cfgfile" \
14580 || (rm -f "$cfgfile"; exit 1)
14581
14582 mv -f "$cfgfile" "$ofile" ||
14583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14584 chmod +x "$ofile"
14585
14586 ;;
14587
14588 esac
14589 done # for ac_tag
14590
14591
14592 as_fn_exit 0
14593 _ACEOF
14594 ac_clean_files=$ac_clean_files_save
14595
14596 test $ac_write_fail = 0 ||
14597 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14598
14599
14600 # configure is writing to config.log, and then calls config.status.
14601 # config.status does its own redirection, appending to config.log.
14602 # Unfortunately, on DOS this fails, as config.log is still kept open
14603 # by configure, so config.status won't be able to write to it; its
14604 # output is simply discarded. So we exec the FD to /dev/null,
14605 # effectively closing config.log, so it can be properly (re)opened and
14606 # appended to by config.status. When coming back to configure, we
14607 # need to make the FD available again.
14608 if test "$no_create" != yes; then
14609 ac_cs_success=:
14610 ac_config_status_args=
14611 test "$silent" = yes &&
14612 ac_config_status_args="$ac_config_status_args --quiet"
14613 exec 5>/dev/null
14614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14615 exec 5>>config.log
14616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14617 # would make configure fail if this is the last instruction.
14618 $ac_cs_success || as_fn_exit 1
14619 fi
14620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14623 fi
14624