Debian Codegraph @

libmetrics/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="libmetrics.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 OS
636 POW_LIB
637 LIBOBJS
638 CPP
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 LIBTOOL
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 am__nodep
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 with_sysroot
756 enable_libtool_lock
757 '
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
761 CC
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
790
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
816
817 ac_prev=
818 ac_dashdash=
819 for ac_option
820 do
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
826 fi
827
828 case $ac_option in
829 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *=) ac_optarg= ;;
831 *) ac_optarg=yes ;;
832 esac
833
834 # Accept the important Cygnus configure options, so we can diagnose typos.
835
836 case $ac_dashdash$ac_option in
837 --)
838 ac_dashdash=yes ;;
839
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
844
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
849
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
856
857 --config-cache | -C)
858 cache_file=config.cache ;;
859
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
864
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
871
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
887
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
892
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
897
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
913
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
922
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
926
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
933
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
938
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
944
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
951
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
956
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
961
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
968
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
973
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
980
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
985
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
989
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
993
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
997
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1006
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1011
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1018
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1025
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1042
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1047
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1052
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1056
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1062
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1073
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1078
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1083
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1090
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1095
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1098
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1101
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1117
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1133
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1137
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1144
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1151
1152 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1154 ;;
1155
1156 *=*)
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1162 esac
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1165
1166 *)
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 ;;
1173
1174 esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error $? "missing argument to $ac_option"
1180 fi
1181
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1184 no) ;;
1185 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1188 fi
1189
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1195 do
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
1208 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1224 fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error $? "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\).*/{
1264 s//\1/
1265 q
1266 }
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1271 fi
1272 else
1273 ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures this package to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking ...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1361
1362 cat <<\_ACEOF
1363
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1368
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376
1377 cat <<\_ACEOF
1378
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --enable-shared[=PKGS] build shared libraries [default=yes]
1386 --enable-static[=PKGS] build static libraries [default=yes]
1387 --enable-fast-install[=PKGS]
1388 optimize for fast installation [default=yes]
1389 --disable-libtool-lock avoid locking (might break parallel builds)
1390
1391 Optional Packages:
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1395 both]
1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1397 --with-sysroot=DIR Search for dependent libraries within DIR
1398 (or the compiler's sysroot if not specified).
1399
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1408 CPP C preprocessor
1409
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1412
1413 Report bugs to the package provider.
1414 _ACEOF
1415 ac_status=$?
1416 fi
1417
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
1424 ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1466 else
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1470 done
1471 fi
1472
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475 cat <<\_ACEOF
1476 configure
1477 generated by GNU Autoconf 2.69
1478
1479 Copyright (C) 2012 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483 exit
1484 fi
1485
1486 ## ------------------------ ##
1487 ## Autoconf initialization. ##
1488 ## ------------------------ ##
1489
1490 # ac_fn_c_try_compile LINENO
1491 # --------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_compile ()
1494 {
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1498 case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1510 fi
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1516 ac_retval=0
1517 else
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1520
1521 ac_retval=1
1522 fi
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1525
1526 } # ac_fn_c_try_compile
1527
1528 # ac_fn_c_try_link LINENO
1529 # -----------------------
1530 # Try to link conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_link ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext conftest$ac_exeext
1535 if { { ac_try="$ac_link"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_link") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest$ac_exeext && {
1554 test "$cross_compiling" = yes ||
1555 test -x conftest$ac_exeext
1556 }; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1565 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1566 # interfere with the next link command; also delete a directory that is
1567 # left behind by Apple's compiler. We do this before executing the actions.
1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_link
1573
1574 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1575 # -------------------------------------------------------
1576 # Tests whether HEADER exists and can be compiled using the include files in
1577 # INCLUDES, setting the cache variable VAR accordingly.
1578 ac_fn_c_check_header_compile ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if eval \${$3+:} false; then :
1584 $as_echo_n "(cached) " >&6
1585 else
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1588 $4
1589 #include <$2>
1590 _ACEOF
1591 if ac_fn_c_try_compile "$LINENO"; then :
1592 eval "$3=yes"
1593 else
1594 eval "$3=no"
1595 fi
1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 fi
1598 eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602
1603 } # ac_fn_c_check_header_compile
1604
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_cpp
1641
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1646 ac_fn_c_try_run ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=$ac_status
1677 fi
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_run
1683
1684 # ac_fn_c_check_func LINENO FUNC VAR
1685 # ----------------------------------
1686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1687 ac_fn_c_check_func ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1699 #define $2 innocuous_$2
1700
1701 /* System header to define __stub macros and hopefully few prototypes,
1702 which can conflict with char $2 (); below.
1703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1704 <limits.h> exists even on freestanding compilers. */
1705
1706 #ifdef __STDC__
1707 # include <limits.h>
1708 #else
1709 # include <assert.h>
1710 #endif
1711
1712 #undef $2
1713
1714 /* Override any GCC internal prototype to avoid an error.
1715 Use char because int might match the return type of a GCC
1716 builtin and then its argument prototype would still apply. */
1717 #ifdef __cplusplus
1718 extern "C"
1719 #endif
1720 char $2 ();
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined __stub_$2 || defined __stub___$2
1725 choke me
1726 #endif
1727
1728 int
1729 main ()
1730 {
1731 return $2 ();
1732 ;
1733 return 0;
1734 }
1735 _ACEOF
1736 if ac_fn_c_try_link "$LINENO"; then :
1737 eval "$3=yes"
1738 else
1739 eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext \
1742 conftest$ac_exeext conftest.$ac_ext
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_func
1750
1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1754 # the include files in INCLUDES and setting the cache variable VAR
1755 # accordingly.
1756 ac_fn_c_check_header_mongrel ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if eval \${$3+:} false; then :
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 else
1769 # Is the header compilable?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1771 $as_echo_n "checking $2 usability... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778 ac_header_compiler=yes
1779 else
1780 ac_header_compiler=no
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1784 $as_echo "$ac_header_compiler" >&6; }
1785
1786 # Is the header present?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1788 $as_echo_n "checking $2 presence... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_cpp "$LINENO"; then :
1794 ac_header_preproc=yes
1795 else
1796 ac_header_preproc=no
1797 fi
1798 rm -f conftest.err conftest.i conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1800 $as_echo "$ac_header_preproc" >&6; }
1801
1802 # So? What about this header?
1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804 yes:no: )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 ;;
1810 no:yes:* )
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1814 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1818 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 ;;
1822 esac
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 else
1828 eval "$3=\$ac_header_compiler"
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 fi
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835
1836 } # ac_fn_c_check_header_mongrel
1837
1838 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839 # -------------------------------------------
1840 # Tests whether TYPE exists after having included INCLUDES, setting cache
1841 # variable VAR accordingly.
1842 ac_fn_c_check_type ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 int
1855 main ()
1856 {
1857 if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 int
1868 main ()
1869 {
1870 if (sizeof (($2)))
1871 return 0;
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877
1878 else
1879 eval "$3=yes"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_type
1891 cat >config.log <<_ACEOF
1892 This file contains any messages produced by compilers while
1893 running configure, to aid debugging if configure makes a mistake.
1894
1895 It was created by $as_me, which was
1896 generated by GNU Autoconf 2.69. Invocation command line was
1897
1898 $ $0 $@
1899
1900 _ACEOF
1901 exec 5>>config.log
1902 {
1903 cat <<_ASUNAME
1904 ## --------- ##
1905 ## Platform. ##
1906 ## --------- ##
1907
1908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925 _ASUNAME
1926
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 $as_echo "PATH: $as_dir"
1933 done
1934 IFS=$as_save_IFS
1935
1936 } >&5
1937
1938 cat >&5 <<_ACEOF
1939
1940
1941 ## ----------- ##
1942 ## Core tests. ##
1943 ## ----------- ##
1944
1945 _ACEOF
1946
1947
1948 # Keep a trace of the command line.
1949 # Strip out --no-create and --no-recursion so they do not pile up.
1950 # Strip out --silent because we don't want to record it for future runs.
1951 # Also quote any args containing shell meta-characters.
1952 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_configure_args=
1954 ac_configure_args0=
1955 ac_configure_args1=
1956 ac_must_keep_next=false
1957 for ac_pass in 1 2
1958 do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 esac
1969 case $ac_pass in
1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 2)
1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
1988 as_fn_append ac_configure_args " '$ac_arg'"
1989 ;;
1990 esac
1991 done
1992 done
1993 { ac_configure_args0=; unset ac_configure_args0;}
1994 { ac_configure_args1=; unset ac_configure_args1;}
1995
1996 # When interrupted or exit'd, cleanup temporary files, and complete
1997 # config.log. We remove comments because anyway the quotes in there
1998 # would cause problems or look ugly.
1999 # WARNING: Use '\'' to represent an apostrophe within the trap.
2000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2001 trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 $as_echo "## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##"
2009 echo
2010 # The following way of writing the cache mishandles newlines in values,
2011 (
2012 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013 eval ac_val=\$$ac_var
2014 case $ac_val in #(
2015 *${as_nl}*)
2016 case $ac_var in #(
2017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2018 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 esac
2020 case $ac_var in #(
2021 _ | IFS | as_nl) ;; #(
2022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023 *) { eval $ac_var=; unset $ac_var;} ;;
2024 esac ;;
2025 esac
2026 done
2027 (set) 2>&1 |
2028 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029 *${as_nl}ac_space=\ *)
2030 sed -n \
2031 "s/'\''/'\''\\\\'\'''\''/g;
2032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 ;; #(
2034 *)
2035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036 ;;
2037 esac |
2038 sort
2039 )
2040 echo
2041
2042 $as_echo "## ----------------- ##
2043 ## Output variables. ##
2044 ## ----------------- ##"
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 $as_echo "## ------------------- ##
2058 ## File substitutions. ##
2059 ## ------------------- ##"
2060 echo
2061 for ac_var in $ac_subst_files
2062 do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in
2065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 esac
2067 $as_echo "$ac_var='\''$ac_val'\''"
2068 done | sort
2069 echo
2070 fi
2071
2072 if test -s confdefs.h; then
2073 $as_echo "## ----------- ##
2074 ## confdefs.h. ##
2075 ## ----------- ##"
2076 echo
2077 cat confdefs.h
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2083 } >&5
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 exit $exit_status
2087 ' 0
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2092
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2095
2096 $as_echo "/* confdefs.h */" > confdefs.h
2097
2098 # Predefined preprocessor variables.
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130 # We do not want a PATH search for config.site.
2131 case $CONFIG_SITE in #((
2132 -*) ac_site_file1=./$CONFIG_SITE;;
2133 */*) ac_site_file1=$CONFIG_SITE;;
2134 *) ac_site_file1=./$CONFIG_SITE;;
2135 esac
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_file1=$prefix/share/config.site
2138 ac_site_file2=$prefix/etc/config.site
2139 else
2140 ac_site_file1=$ac_default_prefix/share/config.site
2141 ac_site_file2=$ac_default_prefix/etc/config.site
2142 fi
2143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 do
2145 test "x$ac_site_file" = xNONE && continue
2146 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149 sed 's/^/| /' "$ac_site_file" >&5
2150 . "$ac_site_file" \
2151 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2153 as_fn_error $? "failed to load site script $ac_site_file
2154 See \`config.log' for more details" "$LINENO" 5; }
2155 fi
2156 done
2157
2158 if test -r "$cache_file"; then
2159 # Some versions of bash will fail to source /dev/null (special files
2160 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2161 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163 $as_echo "$as_me: loading cache $cache_file" >&6;}
2164 case $cache_file in
2165 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166 *) . "./$cache_file";;
2167 esac
2168 fi
2169 else
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171 $as_echo "$as_me: creating cache $cache_file" >&6;}
2172 >$cache_file
2173 fi
2174
2175 # Check that the precious variables saved in the cache have kept the same
2176 # value.
2177 ac_cache_corrupted=false
2178 for ac_var in $ac_precious_vars; do
2179 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180 eval ac_new_set=\$ac_env_${ac_var}_set
2181 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182 eval ac_new_val=\$ac_env_${ac_var}_value
2183 case $ac_old_set,$ac_new_set in
2184 set,)
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2188 ,set)
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2192 ,);;
2193 *)
2194 if test "x$ac_old_val" != "x$ac_new_val"; then
2195 # differences in whitespace do not lead to failure.
2196 ac_old_val_w=`echo x $ac_old_val`
2197 ac_new_val_w=`echo x $ac_new_val`
2198 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201 ac_cache_corrupted=:
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205 eval $ac_var=\$ac_old_val
2206 fi
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2208 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2210 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2211 fi;;
2212 esac
2213 # Pass precious variables to config.status.
2214 if test "$ac_new_set" = set; then
2215 case $ac_new_val in
2216 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 *) ac_arg=$ac_var=$ac_new_val ;;
2218 esac
2219 case " $ac_configure_args " in
2220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2221 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2222 esac
2223 fi
2224 done
2225 if $ac_cache_corrupted; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231 fi
2232 ## -------------------- ##
2233 ## Main body of script. ##
2234 ## -------------------- ##
2235
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241
2242
2243 ac_config_headers="$ac_config_headers config.h"
2244
2245 ac_aux_dir=
2246 for ac_dir in build "$srcdir"/build; do
2247 if test -f "$ac_dir/install-sh"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install-sh -c"
2250 break
2251 elif test -f "$ac_dir/install.sh"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install.sh -c"
2254 break
2255 elif test -f "$ac_dir/shtool"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/shtool install -c"
2258 break
2259 fi
2260 done
2261 if test -z "$ac_aux_dir"; then
2262 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2263 fi
2264
2265 # These three variables are undocumented and unsupported,
2266 # and are intended to be withdrawn in a future Autoconf release.
2267 # They can cause serious problems if a builder's source tree is in a directory
2268 # whose full name contains unusual characters.
2269 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2270 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2271 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2272
2273
2274 DATE_VERSION=`date +%Y%m%d%H%M`
2275 am__api_version='1.11'
2276
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2283 # AIX /bin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if ${ac_cv_path_install+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in #((
2304 ./ | .// | /[cC]/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307 /usr/ucb/* ) ;;
2308 *)
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2311 # by default.
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2318 :
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2322 :
2323 else
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2327 mkdir conftest.dir
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2332 then
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334 break 3
2335 fi
2336 fi
2337 fi
2338 done
2339 done
2340 ;;
2341 esac
2342
2343 done
2344 IFS=$as_save_IFS
2345
2346 rm -rf conftest.one conftest.two conftest.dir
2347
2348 fi
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2351 else
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2357 fi
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2361
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Just in case
2373 sleep 1
2374 echo timestamp > conftest.file
2375 # Reject unsafe characters in $srcdir or the absolute working directory
2376 # name. Accept space and tab only in the latter.
2377 am_lf='
2378 '
2379 case `pwd` in
2380 *[\\\"\#\$\&\'\`$am_lf]*)
2381 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2382 esac
2383 case $srcdir in
2384 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2385 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2386 esac
2387
2388 # Do `set' in a subshell so we don't clobber the current shell's
2389 # arguments. Must try -L first in case configure is actually a
2390 # symlink; some systems play weird games with the mod time of symlinks
2391 # (eg FreeBSD returns the mod time of the symlink's containing
2392 # directory).
2393 if (
2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395 if test "$*" = "X"; then
2396 # -L didn't work.
2397 set X `ls -t "$srcdir/configure" conftest.file`
2398 fi
2399 rm -f conftest.file
2400 if test "$*" != "X $srcdir/configure conftest.file" \
2401 && test "$*" != "X conftest.file $srcdir/configure"; then
2402
2403 # If neither matched, then we have a broken ls. This can happen
2404 # if, for instance, CONFIG_SHELL is bash and it inherits a
2405 # broken ls alias from the environment. This has actually
2406 # happened. Such a system could not be considered "sane".
2407 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2408 alias in your environment" "$LINENO" 5
2409 fi
2410
2411 test "$2" = conftest.file
2412 )
2413 then
2414 # Ok.
2415 :
2416 else
2417 as_fn_error $? "newly created file is older than distributed files!
2418 Check your system clock" "$LINENO" 5
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2421 $as_echo "yes" >&6; }
2422 test "$program_prefix" != NONE &&
2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424 # Use a double $ so make ignores it.
2425 test "$program_suffix" != NONE &&
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427 # Double any \ or $.
2428 # By default was `s,x,x', remove it if useless.
2429 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2431
2432 # expand $ac_aux_dir to an absolute path
2433 am_aux_dir=`cd $ac_aux_dir && pwd`
2434
2435 if test x"${MISSING+set}" != xset; then
2436 case $am_aux_dir in
2437 *\ * | *\ *)
2438 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2439 *)
2440 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2441 esac
2442 fi
2443 # Use eval to expand $SHELL
2444 if eval "$MISSING --run true"; then
2445 am_missing_run="$MISSING --run "
2446 else
2447 am_missing_run=
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2449 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2450 fi
2451
2452 if test x"${install_sh}" != xset; then
2453 case $am_aux_dir in
2454 *\ * | *\ *)
2455 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2456 *)
2457 install_sh="\${SHELL} $am_aux_dir/install-sh"
2458 esac
2459 fi
2460
2461 # Installed binaries are usually stripped using `strip' when the user
2462 # run `make install-strip'. However `strip' might not be the right
2463 # tool to use in cross-compilation environments, therefore Automake
2464 # will honor the `STRIP' environment variable to overrule this program.
2465 if test "$cross_compiling" != no; then
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}strip; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_STRIP+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$STRIP"; then
2475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 STRIP=$ac_cv_prog_STRIP
2495 if test -n "$STRIP"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2497 $as_echo "$STRIP" >&6; }
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 fi
2502
2503
2504 fi
2505 if test -z "$ac_cv_prog_STRIP"; then
2506 ac_ct_STRIP=$STRIP
2507 # Extract the first word of "strip", so it can be a program name with args.
2508 set dummy strip; ac_word=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 if test -n "$ac_ct_STRIP"; then
2515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_ac_ct_STRIP="strip"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2535 if test -n "$ac_ct_STRIP"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2537 $as_echo "$ac_ct_STRIP" >&6; }
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2541 fi
2542
2543 if test "x$ac_ct_STRIP" = x; then
2544 STRIP=":"
2545 else
2546 case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552 STRIP=$ac_ct_STRIP
2553 fi
2554 else
2555 STRIP="$ac_cv_prog_STRIP"
2556 fi
2557
2558 fi
2559 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2562 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2563 if test -z "$MKDIR_P"; then
2564 if ${ac_cv_path_mkdir+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_prog in mkdir gmkdir; do
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2575 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2576 'mkdir (GNU coreutils) '* | \
2577 'mkdir (coreutils) '* | \
2578 'mkdir (fileutils) '4.1*)
2579 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2580 break 3;;
2581 esac
2582 done
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588
2589 test -d ./--version && rmdir ./--version
2590 if test "${ac_cv_path_mkdir+set}" = set; then
2591 MKDIR_P="$ac_cv_path_mkdir -p"
2592 else
2593 # As a last resort, use the slow shell script. Don't cache a
2594 # value for MKDIR_P within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the value is a relative name.
2597 MKDIR_P="$ac_install_sh -d"
2598 fi
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2601 $as_echo "$MKDIR_P" >&6; }
2602
2603 mkdir_p="$MKDIR_P"
2604 case $mkdir_p in
2605 [\\/$]* | ?:[\\/]*) ;;
2606 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2607 esac
2608
2609 for ac_prog in gawk mawk nawk awk
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_AWK+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$AWK"; then
2619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_AWK="$ac_prog"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 AWK=$ac_cv_prog_AWK
2639 if test -n "$AWK"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2641 $as_echo "$AWK" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 test -n "$AWK" && break
2649 done
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2653 set x ${MAKE-make}
2654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2655 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 cat >conftest.make <<\_ACEOF
2659 SHELL = /bin/sh
2660 all:
2661 @echo '@@@%%%=$(MAKE)=@@@%%%'
2662 _ACEOF
2663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2665 *@@@%%%=?*=@@@%%%*)
2666 eval ac_cv_prog_make_${ac_make}_set=yes;;
2667 *)
2668 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 esac
2670 rm -f conftest.make
2671 fi
2672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 SET_MAKE=
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 SET_MAKE="MAKE=${MAKE-make}"
2680 fi
2681
2682 rm -rf .tst 2>/dev/null
2683 mkdir .tst 2>/dev/null
2684 if test -d .tst; then
2685 am__leading_dot=.
2686 else
2687 am__leading_dot=_
2688 fi
2689 rmdir .tst 2>/dev/null
2690
2691 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2692 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2693 # is not polluted with repeated "-I."
2694 am__isrc=' -I$(srcdir)'
2695 # test to see if srcdir already configured
2696 if test -f $srcdir/config.status; then
2697 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2698 fi
2699 fi
2700
2701 # test whether we have cygpath
2702 if test -z "$CYGPATH_W"; then
2703 if (cygpath --version) >/dev/null 2>/dev/null; then
2704 CYGPATH_W='cygpath -w'
2705 else
2706 CYGPATH_W=echo
2707 fi
2708 fi
2709
2710
2711 # Define the identity of the package.
2712 PACKAGE="libmetrics"
2713 VERSION=$DATE_VERSION
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE "$PACKAGE"
2718 _ACEOF
2719
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define VERSION "$VERSION"
2723 _ACEOF
2724
2725 # Some tools Automake needs.
2726
2727 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2728
2729
2730 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2731
2732
2733 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2734
2735
2736 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2737
2738
2739 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2740
2741 # We need awk for the "check" target. The system "awk" is bad on
2742 # some platforms.
2743 # Always define AMTAR for backward compatibility. Yes, it's still used
2744 # in the wild :-( We should find a proper way to deprecate it ...
2745 AMTAR='$${TAR-tar}'
2746
2747 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2748
2749
2750
2751
2752
2753
2754 # Make sure we can run config.sub.
2755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 $as_echo_n "checking build system type... " >&6; }
2760 if ${ac_cv_build+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 ac_build_alias=$build_alias
2764 test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766 test "x$ac_build_alias" = x &&
2767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2770
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2777 esac
2778 build=$ac_cv_build
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_build
2781 shift
2782 build_cpu=$1
2783 build_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 build_os=$*
2788 IFS=$ac_save_IFS
2789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793 $as_echo_n "checking host system type... " >&6; }
2794 if ${ac_cv_host+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2799 else
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2802 fi
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806 $as_echo "$ac_cv_host" >&6; }
2807 case $ac_cv_host in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2810 esac
2811 host=$ac_cv_host
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_host
2814 shift
2815 host_cpu=$1
2816 host_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 host_os=$*
2821 IFS=$ac_save_IFS
2822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2823
2824
2825
2826 # Checks for programs.
2827 ac_ext=c
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$ac_cv_prog_CC"; then
2872 ac_ct_CC=$CC
2873 # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC="gcc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901 if test -n "$ac_ct_CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903 $as_echo "$ac_ct_CC" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909 if test "x$ac_ct_CC" = x; then
2910 CC=""
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CC=$ac_ct_CC
2919 fi
2920 else
2921 CC="$ac_cv_prog_CC"
2922 fi
2923
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 fi
2965 if test -z "$CC"; then
2966 # Extract the first word of "cc", so it can be a program name with args.
2967 set dummy cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 ac_prog_rejected=no
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2985 ac_prog_rejected=yes
2986 continue
2987 fi
2988 ac_cv_prog_CC="cc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 if test $ac_prog_rejected = yes; then
2997 # We found a bogon in the path, so make sure we never use it.
2998 set dummy $ac_cv_prog_CC
2999 shift
3000 if test $# != 0; then
3001 # We chose a different compiler from the bogus one.
3002 # However, it has the same basename, so the bogon will be chosen
3003 # first if we set CC to just the basename; use the full file name.
3004 shift
3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3006 fi
3007 fi
3008 fi
3009 fi
3010 CC=$ac_cv_prog_CC
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3014 else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 fi
3018
3019
3020 fi
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 for ac_prog in cl.exe
3024 do
3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 test -n "$CC" && break
3063 done
3064 fi
3065 if test -z "$CC"; then
3066 ac_ct_CC=$CC
3067 for ac_prog in cl.exe
3068 do
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$ac_ct_CC"; then
3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_ac_ct_CC="$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3089 fi
3090 done
3091 done
3092 IFS=$as_save_IFS
3093
3094 fi
3095 fi
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 $as_echo "$ac_ct_CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 fi
3104
3105
3106 test -n "$ac_ct_CC" && break
3107 done
3108
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118 CC=$ac_ct_CC
3119 fi
3120 fi
3121
3122 fi
3123
3124
3125 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "no acceptable C compiler found in \$PATH
3128 See \`config.log' for more details" "$LINENO" 5; }
3129
3130 # Provide some information about the compiler.
3131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3132 set X $ac_compile
3133 ac_compiler=$2
3134 for ac_option in --version -v -V -qversion; do
3135 { { ac_try="$ac_compiler $ac_option >&5"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3143 ac_status=$?
3144 if test -s conftest.err; then
3145 sed '10a\
3146 ... rest of stderr output deleted ...
3147 10q' conftest.err >conftest.er1
3148 cat conftest.er1 >&5
3149 fi
3150 rm -f conftest.er1 conftest.err
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }
3153 done
3154
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 ac_clean_files_save=$ac_clean_files
3167 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3168 # Try to create an executable without -o first, disregard a.out.
3169 # It will help us diagnose broken compilers, and finding out an intuition
3170 # of exeext.
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3172 $as_echo_n "checking whether the C compiler works... " >&6; }
3173 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3174
3175 # The possible output files:
3176 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3177
3178 ac_rmfiles=
3179 for ac_file in $ac_files
3180 do
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3184 esac
3185 done
3186 rm -f $ac_rmfiles
3187
3188 if { { ac_try="$ac_link_default"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link_default") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3202 # so that the user can short-circuit this test for compilers unknown to
3203 # Autoconf.
3204 for ac_file in $ac_files ''
3205 do
3206 test -f "$ac_file" || continue
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3209 ;;
3210 [ab].out )
3211 # We found the default executable, but exeext='' is most
3212 # certainly right.
3213 break;;
3214 *.* )
3215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3216 then :; else
3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 fi
3219 # We set ac_cv_exeext here because the later test for it is not
3220 # safe: cross compilers may not add the suffix if given an `-o'
3221 # argument, so we may need to know it at that point already.
3222 # Even if this section looks crufty: it has the advantage of
3223 # actually working.
3224 break;;
3225 * )
3226 break;;
3227 esac
3228 done
3229 test "$ac_cv_exeext" = no && ac_cv_exeext=
3230
3231 else
3232 ac_file=''
3233 fi
3234 if test -z "$ac_file"; then :
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error 77 "C compiler cannot create executables
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3249 $as_echo_n "checking for C compiler default output file name... " >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3251 $as_echo "$ac_file" >&6; }
3252 ac_exeext=$ac_cv_exeext
3253
3254 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3255 ac_clean_files=$ac_clean_files_save
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3257 $as_echo_n "checking for suffix of executables... " >&6; }
3258 if { { ac_try="$ac_link"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3271 # work properly (i.e., refer to `conftest.exe'), while it won't with
3272 # `rm'.
3273 for ac_file in conftest.exe conftest conftest.*; do
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 break;;
3279 * ) break;;
3280 esac
3281 done
3282 else
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3286 See \`config.log' for more details" "$LINENO" 5; }
3287 fi
3288 rm -f conftest conftest$ac_cv_exeext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3290 $as_echo "$ac_cv_exeext" >&6; }
3291
3292 rm -f conftest.$ac_ext
3293 EXEEXT=$ac_cv_exeext
3294 ac_exeext=$EXEEXT
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297 #include <stdio.h>
3298 int
3299 main ()
3300 {
3301 FILE *f = fopen ("conftest.out", "w");
3302 return ferror (f) || fclose (f) != 0;
3303
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 ac_clean_files="$ac_clean_files conftest.out"
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3312 $as_echo_n "checking whether we are cross compiling... " >&6; }
3313 if test "$cross_compiling" != yes; then
3314 { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325 if { ac_try='./conftest$ac_cv_exeext'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3336 cross_compiling=no
3337 else
3338 if test "$cross_compiling" = maybe; then
3339 cross_compiling=yes
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 fi
3347 fi
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350 $as_echo "$cross_compiling" >&6; }
3351
3352 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3355 $as_echo_n "checking for suffix of object files... " >&6; }
3356 if ${ac_cv_objext+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.o conftest.obj
3371 if { { ac_try="$ac_compile"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_compile") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 for ac_file in conftest.o conftest.obj conftest.*; do
3383 test -f "$ac_file" || continue;
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3387 break;;
3388 esac
3389 done
3390 else
3391 $as_echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot compute suffix of object files: cannot compile
3397 See \`config.log' for more details" "$LINENO" 5; }
3398 fi
3399 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402 $as_echo "$ac_cv_objext" >&6; }
3403 OBJEXT=$ac_cv_objext
3404 ac_objext=$OBJEXT
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3407 if ${ac_cv_c_compiler_gnu+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416 #ifndef __GNUC__
3417 choke me
3418 #endif
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_compiler_gnu=yes
3426 else
3427 ac_compiler_gnu=no
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3435 if test $ac_compiler_gnu = yes; then
3436 GCC=yes
3437 else
3438 GCC=
3439 fi
3440 ac_test_CFLAGS=${CFLAGS+set}
3441 ac_save_CFLAGS=$CFLAGS
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3444 if ${ac_cv_prog_cc_g+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 ac_save_c_werror_flag=$ac_c_werror_flag
3448 ac_c_werror_flag=yes
3449 ac_cv_prog_cc_g=no
3450 CFLAGS="-g"
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_prog_cc_g=yes
3464 else
3465 CFLAGS=""
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478
3479 else
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3481 CFLAGS="-g"
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_cv_prog_cc_g=yes
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504 $as_echo "$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3512 fi
3513 else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3518 fi
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3522 if ${ac_cv_prog_cc_c89+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 ac_cv_prog_cc_c89=no
3526 ac_save_CC=$CC
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdarg.h>
3530 #include <stdio.h>
3531 struct stat;
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536 char **p;
3537 int i;
3538 {
3539 return p[i];
3540 }
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3542 {
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3549 }
3550
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3562 #define FOO(x) 'x'
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 int argc;
3570 char **argv;
3571 int
3572 main ()
3573 {
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3581 do
3582 CC="$ac_save_CC $ac_arg"
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_c89=$ac_arg
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext
3587 test "x$ac_cv_prog_cc_c89" != "xno" && break
3588 done
3589 rm -f conftest.$ac_ext
3590 CC=$ac_save_CC
3591
3592 fi
3593 # AC_CACHE_VAL
3594 case "x$ac_cv_prog_cc_c89" in
3595 x)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3597 $as_echo "none needed" >&6; } ;;
3598 xno)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3600 $as_echo "unsupported" >&6; } ;;
3601 *)
3602 CC="$CC $ac_cv_prog_cc_c89"
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3604 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3605 esac
3606 if test "x$ac_cv_prog_cc_c89" != xno; then :
3607
3608 fi
3609
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 DEPDIR="${am__leading_dot}deps"
3616
3617 ac_config_commands="$ac_config_commands depfiles"
3618
3619
3620 am_make=${MAKE-make}
3621 cat > confinc << 'END'
3622 am__doit:
3623 @echo this is the am__doit target
3624 .PHONY: am__doit
3625 END
3626 # If we don't find an include directive, just comment out the code.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3628 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3629 am__include="#"
3630 am__quote=
3631 _am_result=none
3632 # First try GNU make style include.
3633 echo "include confinc" > confmf
3634 # Ignore all kinds of additional output from `make'.
3635 case `$am_make -s -f confmf 2> /dev/null` in #(
3636 *the\ am__doit\ target*)
3637 am__include=include
3638 am__quote=
3639 _am_result=GNU
3640 ;;
3641 esac
3642 # Now try BSD make style include.
3643 if test "$am__include" = "#"; then
3644 echo '.include "confinc"' > confmf
3645 case `$am_make -s -f confmf 2> /dev/null` in #(
3646 *the\ am__doit\ target*)
3647 am__include=.include
3648 am__quote="\""
3649 _am_result=BSD
3650 ;;
3651 esac
3652 fi
3653
3654
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3656 $as_echo "$_am_result" >&6; }
3657 rm -f confinc confmf
3658
3659 # Check whether --enable-dependency-tracking was given.
3660 if test "${enable_dependency_tracking+set}" = set; then :
3661 enableval=$enable_dependency_tracking;
3662 fi
3663
3664 if test "x$enable_dependency_tracking" != xno; then
3665 am_depcomp="$ac_aux_dir/depcomp"
3666 AMDEPBACKSLASH='\'
3667 am__nodep='_no'
3668 fi
3669 if test "x$enable_dependency_tracking" != xno; then
3670 AMDEP_TRUE=
3671 AMDEP_FALSE='#'
3672 else
3673 AMDEP_TRUE='#'
3674 AMDEP_FALSE=
3675 fi
3676
3677
3678
3679 depcc="$CC" am_compiler_list=
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3682 $as_echo_n "checking dependency style of $depcc... " >&6; }
3683 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3687 # We make a subdir and do the tests there. Otherwise we can end up
3688 # making bogus files that we don't know about and never remove. For
3689 # instance it was reported that on HP-UX the gcc test will end up
3690 # making a dummy file named `D' -- because `-MD' means `put the output
3691 # in D'.
3692 rm -rf conftest.dir
3693 mkdir conftest.dir
3694 # Copy depcomp to subdir because otherwise we won't find it if we're
3695 # using a relative directory.
3696 cp "$am_depcomp" conftest.dir
3697 cd conftest.dir
3698 # We will build objects and dependencies in a subdirectory because
3699 # it helps to detect inapplicable dependency modes. For instance
3700 # both Tru64's cc and ICC support -MD to output dependencies as a
3701 # side effect of compilation, but ICC will put the dependencies in
3702 # the current directory while Tru64 will put them in the object
3703 # directory.
3704 mkdir sub
3705
3706 am_cv_CC_dependencies_compiler_type=none
3707 if test "$am_compiler_list" = ""; then
3708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3709 fi
3710 am__universal=false
3711 case " $depcc " in #(
3712 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3713 esac
3714
3715 for depmode in $am_compiler_list; do
3716 # Setup a source with many dependencies, because some compilers
3717 # like to wrap large dependency lists on column 80 (with \), and
3718 # we should not choose a depcomp mode which is confused by this.
3719 #
3720 # We need to recreate these files for each test, as the compiler may
3721 # overwrite some of them when testing with obscure command lines.
3722 # This happens at least with the AIX C compiler.
3723 : > sub/conftest.c
3724 for i in 1 2 3 4 5 6; do
3725 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3726 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3727 # Solaris 8's {/usr,}/bin/sh.
3728 touch sub/conftst$i.h
3729 done
3730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731
3732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3733 # mode. It turns out that the SunPro C++ compiler does not properly
3734 # handle `-M -o', and we need to detect this. Also, some Intel
3735 # versions had trouble with output in subdirs
3736 am__obj=sub/conftest.${OBJEXT-o}
3737 am__minus_obj="-o $am__obj"
3738 case $depmode in
3739 gcc)
3740 # This depmode causes a compiler race in universal mode.
3741 test "$am__universal" = false || continue
3742 ;;
3743 nosideeffect)
3744 # after this tag, mechanisms are not by side-effect, so they'll
3745 # only be used when explicitly requested
3746 if test "x$enable_dependency_tracking" = xyes; then
3747 continue
3748 else
3749 break
3750 fi
3751 ;;
3752 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3753 # This compiler won't grok `-c -o', but also, the minuso test has
3754 # not run yet. These depmodes are late enough in the game, and
3755 # so weak that their functioning should not be impacted.
3756 am__obj=conftest.${OBJEXT-o}
3757 am__minus_obj=
3758 ;;
3759 none) break ;;
3760 esac
3761 if depmode=$depmode \
3762 source=sub/conftest.c object=$am__obj \
3763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3764 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3765 >/dev/null 2>conftest.err &&
3766 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3768 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3770 # icc doesn't choke on unknown options, it will just issue warnings
3771 # or remarks (even with -Werror). So we grep stderr for any message
3772 # that says an option was ignored or not supported.
3773 # When given -MP, icc 7.0 and 7.1 complain thusly:
3774 # icc: Command line warning: ignoring option '-M'; no argument required
3775 # The diagnosis changed in icc 8.0:
3776 # icc: Command line remark: option '-MP' not supported
3777 if (grep 'ignoring option' conftest.err ||
3778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3779 am_cv_CC_dependencies_compiler_type=$depmode
3780 break
3781 fi
3782 fi
3783 done
3784
3785 cd ..
3786 rm -rf conftest.dir
3787 else
3788 am_cv_CC_dependencies_compiler_type=none
3789 fi
3790
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3793 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3795
3796 if
3797 test "x$enable_dependency_tracking" != xno \
3798 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3799 am__fastdepCC_TRUE=
3800 am__fastdepCC_FALSE='#'
3801 else
3802 am__fastdepCC_TRUE='#'
3803 am__fastdepCC_FALSE=
3804 fi
3805
3806
3807 case $ac_cv_prog_cc_stdc in #(
3808 no) :
3809 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3810 *) :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3812 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3813 if ${ac_cv_prog_cc_c99+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_cv_prog_cc_c99=no
3817 ac_save_CC=$CC
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <stdarg.h>
3821 #include <stdbool.h>
3822 #include <stdlib.h>
3823 #include <wchar.h>
3824 #include <stdio.h>
3825
3826 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3827 #define debug(...) fprintf (stderr, __VA_ARGS__)
3828 #define showlist(...) puts (#__VA_ARGS__)
3829 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3830 static void
3831 test_varargs_macros (void)
3832 {
3833 int x = 1234;
3834 int y = 5678;
3835 debug ("Flag");
3836 debug ("X = %d\n", x);
3837 showlist (The first, second, and third items.);
3838 report (x>y, "x is %d but y is %d", x, y);
3839 }
3840
3841 // Check long long types.
3842 #define BIG64 18446744073709551615ull
3843 #define BIG32 4294967295ul
3844 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3845 #if !BIG_OK
3846 your preprocessor is broken;
3847 #endif
3848 #if BIG_OK
3849 #else
3850 your preprocessor is broken;
3851 #endif
3852 static long long int bignum = -9223372036854775807LL;
3853 static unsigned long long int ubignum = BIG64;
3854
3855 struct incomplete_array
3856 {
3857 int datasize;
3858 double data[];
3859 };
3860
3861 struct named_init {
3862 int number;
3863 const wchar_t *name;
3864 double average;
3865 };
3866
3867 typedef const char *ccp;
3868
3869 static inline int
3870 test_restrict (ccp restrict text)
3871 {
3872 // See if C++-style comments work.
3873 // Iterate through items via the restricted pointer.
3874 // Also check for declarations in for loops.
3875 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3876 continue;
3877 return 0;
3878 }
3879
3880 // Check varargs and va_copy.
3881 static void
3882 test_varargs (const char *format, ...)
3883 {
3884 va_list args;
3885 va_start (args, format);
3886 va_list args_copy;
3887 va_copy (args_copy, args);
3888
3889 const char *str;
3890 int number;
3891 float fnumber;
3892
3893 while (*format)
3894 {
3895 switch (*format++)
3896 {
3897 case 's': // string
3898 str = va_arg (args_copy, const char *);
3899 break;
3900 case 'd': // int
3901 number = va_arg (args_copy, int);
3902 break;
3903 case 'f': // float
3904 fnumber = va_arg (args_copy, double);
3905 break;
3906 default:
3907 break;
3908 }
3909 }
3910 va_end (args_copy);
3911 va_end (args);
3912 }
3913
3914 int
3915 main ()
3916 {
3917
3918 // Check bool.
3919 _Bool success = false;
3920
3921 // Check restrict.
3922 if (test_restrict ("String literal") == 0)
3923 success = true;
3924 char *restrict newvar = "Another string";
3925
3926 // Check varargs.
3927 test_varargs ("s, d' f .", "string", 65, 34.234);
3928 test_varargs_macros ();
3929
3930 // Check flexible array members.
3931 struct incomplete_array *ia =
3932 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3933 ia->datasize = 10;
3934 for (int i = 0; i < ia->datasize; ++i)
3935 ia->data[i] = i * 1.234;
3936
3937 // Check named initializers.
3938 struct named_init ni = {
3939 .number = 34,
3940 .name = L"Test wide string",
3941 .average = 543.34343,
3942 };
3943
3944 ni.number = 58;
3945
3946 int dynamic_array[ni.number];
3947 dynamic_array[ni.number - 1] = 543;
3948
3949 // work around unused variable warnings
3950 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3951 || dynamic_array[ni.number - 1] != 543);
3952
3953 ;
3954 return 0;
3955 }
3956 _ACEOF
3957 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3958 do
3959 CC="$ac_save_CC $ac_arg"
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_prog_cc_c99=$ac_arg
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext
3964 test "x$ac_cv_prog_cc_c99" != "xno" && break
3965 done
3966 rm -f conftest.$ac_ext
3967 CC=$ac_save_CC
3968
3969 fi
3970 # AC_CACHE_VAL
3971 case "x$ac_cv_prog_cc_c99" in
3972 x)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3974 $as_echo "none needed" >&6; } ;;
3975 xno)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3977 $as_echo "unsupported" >&6; } ;;
3978 *)
3979 CC="$CC $ac_cv_prog_cc_c99"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3981 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3982 esac
3983 if test "x$ac_cv_prog_cc_c99" != xno; then :
3984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 struct stat;
3998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3999 struct buf { int x; };
4000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4001 static char *e (p, i)
4002 char **p;
4003 int i;
4004 {
4005 return p[i];
4006 }
4007 static char *f (char * (*g) (char **, int), char **p, ...)
4008 {
4009 char *s;
4010 va_list v;
4011 va_start (v,p);
4012 s = g (p, va_arg (v,int));
4013 va_end (v);
4014 return s;
4015 }
4016
4017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4018 function prototypes and stuff, but not '\xHH' hex character constants.
4019 These don't provoke an error unfortunately, instead are silently treated
4020 as 'x'. The following induces an error, until -std is added to get
4021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4022 array size at least. It's necessary to write '\x00'==0 to get something
4023 that's true only with -std. */
4024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025
4026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4027 inside strings and character constants. */
4028 #define FOO(x) 'x'
4029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030
4031 int test (int i, double x);
4032 struct s1 {int (*f) (int a);};
4033 struct s2 {int (*f) (double a);};
4034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4035 int argc;
4036 char **argv;
4037 int
4038 main ()
4039 {
4040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047 do
4048 CC="$ac_save_CC $ac_arg"
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_c89=$ac_arg
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext
4053 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 done
4055 rm -f conftest.$ac_ext
4056 CC=$ac_save_CC
4057
4058 fi
4059 # AC_CACHE_VAL
4060 case "x$ac_cv_prog_cc_c89" in
4061 x)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4063 $as_echo "none needed" >&6; } ;;
4064 xno)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4066 $as_echo "unsupported" >&6; } ;;
4067 *)
4068 CC="$CC $ac_cv_prog_cc_c89"
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 esac
4072 if test "x$ac_cv_prog_cc_c89" != xno; then :
4073 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4074 else
4075 ac_cv_prog_cc_stdc=no
4076 fi
4077
4078 fi
4079 ;;
4080 esac
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4082 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4083 if ${ac_cv_prog_cc_stdc+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 fi
4086
4087 case $ac_cv_prog_cc_stdc in #(
4088 no) :
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4090 $as_echo "unsupported" >&6; } ;; #(
4091 '') :
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4093 $as_echo "none needed" >&6; } ;; #(
4094 *) :
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4096 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4097 esac
4098
4099 case `pwd` in
4100 *\ * | *\ *)
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4102 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4103 esac
4104
4105
4106
4107 macro_version='2.4.2'
4108 macro_revision='1.3337'
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122 ltmain="$ac_aux_dir/ltmain.sh"
4123
4124 # Backslashify metacharacters that are still active within
4125 # double-quoted strings.
4126 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4127
4128 # Same as above, but do not quote variable references.
4129 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4130
4131 # Sed substitution to delay expansion of an escaped shell variable in a
4132 # double_quote_subst'ed string.
4133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4134
4135 # Sed substitution to delay expansion of an escaped single quote.
4136 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4137
4138 # Sed substitution to avoid accidental globbing in evaled expressions
4139 no_glob_subst='s/\*/\\\*/g'
4140
4141 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4142 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4143 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4146 $as_echo_n "checking how to print strings... " >&6; }
4147 # Test print first, because it will be a builtin if present.
4148 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4149 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4150 ECHO='print -r --'
4151 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4152 ECHO='printf %s\n'
4153 else
4154 # Use this function as a fallback that always works.
4155 func_fallback_echo ()
4156 {
4157 eval 'cat <<_LTECHO_EOF
4158 $1
4159 _LTECHO_EOF'
4160 }
4161 ECHO='func_fallback_echo'
4162 fi
4163
4164 # func_echo_all arg...
4165 # Invoke $ECHO with all args, space-separated.
4166 func_echo_all ()
4167 {
4168 $ECHO ""
4169 }
4170
4171 case "$ECHO" in
4172 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4173 $as_echo "printf" >&6; } ;;
4174 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4175 $as_echo "print -r" >&6; } ;;
4176 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4177 $as_echo "cat" >&6; } ;;
4178 esac
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4194 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4195 if ${ac_cv_path_SED+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4199 for ac_i in 1 2 3 4 5 6 7; do
4200 ac_script="$ac_script$as_nl$ac_script"
4201 done
4202 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4203 { ac_script=; unset ac_script;}
4204 if test -z "$SED"; then
4205 ac_path_SED_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in sed gsed; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4215 as_fn_executable_p "$ac_path_SED" || continue
4216 # Check for GNU ac_path_SED and select it if it is found.
4217 # Check for GNU $ac_path_SED
4218 case `"$ac_path_SED" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo '' >> "conftest.nl"
4230 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_SED_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_SED="$ac_path_SED"
4236 ac_path_SED_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_SED_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_SED"; then
4250 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_SED=$SED
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4258 $as_echo "$ac_cv_path_SED" >&6; }
4259 SED="$ac_cv_path_SED"
4260 rm -f conftest.sed
4261
4262 test -z "$SED" && SED=sed
4263 Xsed="$SED -e 1s/^X//"
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4277 if ${ac_cv_path_GREP+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -z "$GREP"; then
4281 ac_path_GREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in grep ggrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4291 as_fn_executable_p "$ac_path_GREP" || continue
4292 # Check for GNU ac_path_GREP and select it if it is found.
4293 # Check for GNU $ac_path_GREP
4294 case `"$ac_path_GREP" --version 2>&1` in
4295 *GNU*)
4296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4297 *)
4298 ac_count=0
4299 $as_echo_n 0123456789 >"conftest.in"
4300 while :
4301 do
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'GREP' >> "conftest.nl"
4306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 as_fn_arith $ac_count + 1 && ac_count=$as_val
4309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_GREP="$ac_path_GREP"
4312 ac_path_GREP_max=$ac_count
4313 fi
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4316 done
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4319
4320 $ac_path_GREP_found && break 3
4321 done
4322 done
4323 done
4324 IFS=$as_save_IFS
4325 if test -z "$ac_cv_path_GREP"; then
4326 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4327 fi
4328 else
4329 ac_cv_path_GREP=$GREP
4330 fi
4331
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4334 $as_echo "$ac_cv_path_GREP" >&6; }
4335 GREP="$ac_cv_path_GREP"
4336
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4339 $as_echo_n "checking for egrep... " >&6; }
4340 if ${ac_cv_path_EGREP+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4344 then ac_cv_path_EGREP="$GREP -E"
4345 else
4346 if test -z "$EGREP"; then
4347 ac_path_EGREP_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_prog in egrep; do
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4357 as_fn_executable_p "$ac_path_EGREP" || continue
4358 # Check for GNU ac_path_EGREP and select it if it is found.
4359 # Check for GNU $ac_path_EGREP
4360 case `"$ac_path_EGREP" --version 2>&1` in
4361 *GNU*)
4362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4363 *)
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4367 do
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo 'EGREP' >> "conftest.nl"
4372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_EGREP="$ac_path_EGREP"
4378 ac_path_EGREP_max=$ac_count
4379 fi
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384 esac
4385
4386 $ac_path_EGREP_found && break 3
4387 done
4388 done
4389 done
4390 IFS=$as_save_IFS
4391 if test -z "$ac_cv_path_EGREP"; then
4392 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393 fi
4394 else
4395 ac_cv_path_EGREP=$EGREP
4396 fi
4397
4398 fi
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4401 $as_echo "$ac_cv_path_EGREP" >&6; }
4402 EGREP="$ac_cv_path_EGREP"
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4406 $as_echo_n "checking for fgrep... " >&6; }
4407 if ${ac_cv_path_FGREP+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4411 then ac_cv_path_FGREP="$GREP -F"
4412 else
4413 if test -z "$FGREP"; then
4414 ac_path_FGREP_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in fgrep; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4424 as_fn_executable_p "$ac_path_FGREP" || continue
4425 # Check for GNU ac_path_FGREP and select it if it is found.
4426 # Check for GNU $ac_path_FGREP
4427 case `"$ac_path_FGREP" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4430 *)
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo 'FGREP' >> "conftest.nl"
4439 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_FGREP="$ac_path_FGREP"
4445 ac_path_FGREP_max=$ac_count
4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4452
4453 $ac_path_FGREP_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_FGREP"; then
4459 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4460 fi
4461 else
4462 ac_cv_path_FGREP=$FGREP
4463 fi
4464
4465 fi
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4468 $as_echo "$ac_cv_path_FGREP" >&6; }
4469 FGREP="$ac_cv_path_FGREP"
4470
4471
4472 test -z "$GREP" && GREP=grep
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 # Check whether --with-gnu-ld was given.
4493 if test "${with_gnu_ld+set}" = set; then :
4494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4495 else
4496 with_gnu_ld=no
4497 fi
4498
4499 ac_prog=ld
4500 if test "$GCC" = yes; then
4501 # Check if gcc -print-prog-name=ld gives a path.
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4503 $as_echo_n "checking for ld used by $CC... " >&6; }
4504 case $host in
4505 *-*-mingw*)
4506 # gcc leaves a trailing carriage return which upsets mingw
4507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508 *)
4509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510 esac
4511 case $ac_prog in
4512 # Accept absolute paths.
4513 [\\/]* | ?:[\\/]*)
4514 re_direlt='/[^/][^/]*/\.\./'
4515 # Canonicalize the pathname of ld
4516 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4517 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4518 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4519 done
4520 test -z "$LD" && LD="$ac_prog"
4521 ;;
4522 "")
4523 # If it fails, then pretend we aren't using GCC.
4524 ac_prog=ld
4525 ;;
4526 *)
4527 # If it is relative, then search for the first ld in PATH.
4528 with_gnu_ld=unknown
4529 ;;
4530 esac
4531 elif test "$with_gnu_ld" = yes; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4533 $as_echo_n "checking for GNU ld... " >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4536 $as_echo_n "checking for non-GNU ld... " >&6; }
4537 fi
4538 if ${lt_cv_path_LD+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$LD"; then
4542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4543 for ac_dir in $PATH; do
4544 IFS="$lt_save_ifs"
4545 test -z "$ac_dir" && ac_dir=.
4546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547 lt_cv_path_LD="$ac_dir/$ac_prog"
4548 # Check to see if the program is GNU ld. I'd rather use --version,
4549 # but apparently some variants of GNU ld only accept -v.
4550 # Break only if it was the GNU/non-GNU ld that we prefer.
4551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552 *GNU* | *'with BFD'*)
4553 test "$with_gnu_ld" != no && break
4554 ;;
4555 *)
4556 test "$with_gnu_ld" != yes && break
4557 ;;
4558 esac
4559 fi
4560 done
4561 IFS="$lt_save_ifs"
4562 else
4563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4564 fi
4565 fi
4566
4567 LD="$lt_cv_path_LD"
4568 if test -n "$LD"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4570 $as_echo "$LD" >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4578 if ${lt_cv_prog_gnu_ld+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4582 case `$LD -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584 lt_cv_prog_gnu_ld=yes
4585 ;;
4586 *)
4587 lt_cv_prog_gnu_ld=no
4588 ;;
4589 esac
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4593 with_gnu_ld=$lt_cv_prog_gnu_ld
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4605 if ${lt_cv_path_NM+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$NM"; then
4609 # Let the user override the test.
4610 lt_cv_path_NM="$NM"
4611 else
4612 lt_nm_to_check="${ac_tool_prefix}nm"
4613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614 lt_nm_to_check="$lt_nm_to_check nm"
4615 fi
4616 for lt_tmp_nm in $lt_nm_to_check; do
4617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619 IFS="$lt_save_ifs"
4620 test -z "$ac_dir" && ac_dir=.
4621 tmp_nm="$ac_dir/$lt_tmp_nm"
4622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623 # Check to see if the nm accepts a BSD-compat flag.
4624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625 # nm: unknown option "B" ignored
4626 # Tru64's nm complains that /dev/null is an invalid object file
4627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628 */dev/null* | *'Invalid file or object type'*)
4629 lt_cv_path_NM="$tmp_nm -B"
4630 break
4631 ;;
4632 *)
4633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634 */dev/null*)
4635 lt_cv_path_NM="$tmp_nm -p"
4636 break
4637 ;;
4638 *)
4639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640 continue # so that we can try to find one that supports BSD flags
4641 ;;
4642 esac
4643 ;;
4644 esac
4645 fi
4646 done
4647 IFS="$lt_save_ifs"
4648 done
4649 : ${lt_cv_path_NM=no}
4650 fi
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4653 $as_echo "$lt_cv_path_NM" >&6; }
4654 if test "$lt_cv_path_NM" != "no"; then
4655 NM="$lt_cv_path_NM"
4656 else
4657 # Didn't find any BSD compatible name lister, look for dumpbin.
4658 if test -n "$DUMPBIN"; then :
4659 # Let the user override the test.
4660 else
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in dumpbin "link -dump"
4663 do
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_DUMPBIN+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$DUMPBIN"; then
4672 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 DUMPBIN=$ac_cv_prog_DUMPBIN
4692 if test -n "$DUMPBIN"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4694 $as_echo "$DUMPBIN" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700
4701 test -n "$DUMPBIN" && break
4702 done
4703 fi
4704 if test -z "$DUMPBIN"; then
4705 ac_ct_DUMPBIN=$DUMPBIN
4706 for ac_prog in dumpbin "link -dump"
4707 do
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$ac_ct_DUMPBIN"; then
4716 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4738 $as_echo "$ac_ct_DUMPBIN" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 test -n "$ac_ct_DUMPBIN" && break
4746 done
4747
4748 if test "x$ac_ct_DUMPBIN" = x; then
4749 DUMPBIN=":"
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755 ac_tool_warned=yes ;;
4756 esac
4757 DUMPBIN=$ac_ct_DUMPBIN
4758 fi
4759 fi
4760
4761 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4762 *COFF*)
4763 DUMPBIN="$DUMPBIN -symbols"
4764 ;;
4765 *)
4766 DUMPBIN=:
4767 ;;
4768 esac
4769 fi
4770
4771 if test "$DUMPBIN" != ":"; then
4772 NM="$DUMPBIN"
4773 fi
4774 fi
4775 test -z "$NM" && NM=nm
4776
4777
4778
4779
4780
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4784 if ${lt_cv_nm_interface+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 lt_cv_nm_interface="BSD nm"
4788 echo "int some_variable = 0;" > conftest.$ac_ext
4789 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4790 (eval "$ac_compile" 2>conftest.err)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4793 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4794 cat conftest.err >&5
4795 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4796 cat conftest.out >&5
4797 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4798 lt_cv_nm_interface="MS dumpbin"
4799 fi
4800 rm -f conftest*
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4803 $as_echo "$lt_cv_nm_interface" >&6; }
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4806 $as_echo_n "checking whether ln -s works... " >&6; }
4807 LN_S=$as_ln_s
4808 if test "$LN_S" = "ln -s"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4813 $as_echo "no, using $LN_S" >&6; }
4814 fi
4815
4816 # find the maximum length of command line arguments
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4819 if ${lt_cv_sys_max_cmd_len+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 i=0
4823 teststring="ABCD"
4824
4825 case $build_os in
4826 msdosdjgpp*)
4827 # On DJGPP, this test can blow up pretty badly due to problems in libc
4828 # (any single argument exceeding 2000 bytes causes a buffer overrun
4829 # during glob expansion). Even if it were fixed, the result of this
4830 # check would be larger than it should be.
4831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4832 ;;
4833
4834 gnu*)
4835 # Under GNU Hurd, this test is not required because there is
4836 # no limit to the length of command line arguments.
4837 # Libtool will interpret -1 as no limit whatsoever
4838 lt_cv_sys_max_cmd_len=-1;
4839 ;;
4840
4841 cygwin* | mingw* | cegcc*)
4842 # On Win9x/ME, this test blows up -- it succeeds, but takes
4843 # about 5 minutes as the teststring grows exponentially.
4844 # Worse, since 9x/ME are not pre-emptively multitasking,
4845 # you end up with a "frozen" computer, even though with patience
4846 # the test eventually succeeds (with a max line length of 256k).
4847 # Instead, let's just punt: use the minimum linelength reported by
4848 # all of the supported platforms: 8192 (on NT/2K/XP).
4849 lt_cv_sys_max_cmd_len=8192;
4850 ;;
4851
4852 mint*)
4853 # On MiNT this can take a long time and run out of memory.
4854 lt_cv_sys_max_cmd_len=8192;
4855 ;;
4856
4857 amigaos*)
4858 # On AmigaOS with pdksh, this test takes hours, literally.
4859 # So we just punt and use a minimum line length of 8192.
4860 lt_cv_sys_max_cmd_len=8192;
4861 ;;
4862
4863 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4864 # This has been around since 386BSD, at least. Likely further.
4865 if test -x /sbin/sysctl; then
4866 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4867 elif test -x /usr/sbin/sysctl; then
4868 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4869 else
4870 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4871 fi
4872 # And add a safety zone
4873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4875 ;;
4876
4877 interix*)
4878 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4879 lt_cv_sys_max_cmd_len=196608
4880 ;;
4881
4882 os2*)
4883 # The test takes a long time on OS/2.
4884 lt_cv_sys_max_cmd_len=8192
4885 ;;
4886
4887 osf*)
4888 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4889 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4890 # nice to cause kernel panics so lets avoid the loop below.
4891 # First set a reasonable default.
4892 lt_cv_sys_max_cmd_len=16384
4893 #
4894 if test -x /sbin/sysconfig; then
4895 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4896 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4897 esac
4898 fi
4899 ;;
4900 sco3.2v5*)
4901 lt_cv_sys_max_cmd_len=102400
4902 ;;
4903 sysv5* | sco5v6* | sysv4.2uw2*)
4904 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4905 if test -n "$kargmax"; then
4906 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4907 else
4908 lt_cv_sys_max_cmd_len=32768
4909 fi
4910 ;;
4911 *)
4912 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4913 if test -n "$lt_cv_sys_max_cmd_len"; then
4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4916 else
4917 # Make teststring a little bigger before we do anything with it.
4918 # a 1K string should be a reasonable start.
4919 for i in 1 2 3 4 5 6 7 8 ; do
4920 teststring=$teststring$teststring
4921 done
4922 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4923 # If test is not a shell built-in, we'll probably end up computing a
4924 # maximum length that is only half of the actual maximum length, but
4925 # we can't tell.
4926 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4927 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4928 test $i != 17 # 1/2 MB should be enough
4929 do
4930 i=`expr $i + 1`
4931 teststring=$teststring$teststring
4932 done
4933 # Only check the string length outside the loop.
4934 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4935 teststring=
4936 # Add a significant safety factor because C++ compilers can tack on
4937 # massive amounts of additional arguments before passing them to the
4938 # linker. It appears as though 1/2 is a usable value.
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4940 fi
4941 ;;
4942 esac
4943
4944 fi
4945
4946 if test -n $lt_cv_sys_max_cmd_len ; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4948 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4951 $as_echo "none" >&6; }
4952 fi
4953 max_cmd_len=$lt_cv_sys_max_cmd_len
4954
4955
4956
4957
4958
4959
4960 : ${CP="cp -f"}
4961 : ${MV="mv -f"}
4962 : ${RM="rm -f"}
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4965 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4966 # Try some XSI features
4967 xsi_shell=no
4968 ( _lt_dummy="a/b/c"
4969 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4970 = c,a/b,b/c, \
4971 && eval 'test $(( 1 + 1 )) -eq 2 \
4972 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4973 && xsi_shell=yes
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4975 $as_echo "$xsi_shell" >&6; }
4976
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4979 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4980 lt_shell_append=no
4981 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4982 >/dev/null 2>&1 \
4983 && lt_shell_append=yes
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4985 $as_echo "$lt_shell_append" >&6; }
4986
4987
4988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4989 lt_unset=unset
4990 else
4991 lt_unset=false
4992 fi
4993
4994
4995
4996
4997
4998 # test EBCDIC or ASCII
4999 case `echo X|tr X '\101'` in
5000 A) # ASCII based system
5001 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5002 lt_SP2NL='tr \040 \012'
5003 lt_NL2SP='tr \015\012 \040\040'
5004 ;;
5005 *) # EBCDIC based system
5006 lt_SP2NL='tr \100 \n'
5007 lt_NL2SP='tr \r\n \100\100'
5008 ;;
5009 esac
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5020 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5021 if ${lt_cv_to_host_file_cmd+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 case $host in
5025 *-*-mingw* )
5026 case $build in
5027 *-*-mingw* ) # actually msys
5028 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5029 ;;
5030 *-*-cygwin* )
5031 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5032 ;;
5033 * ) # otherwise, assume *nix
5034 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5035 ;;
5036 esac
5037 ;;
5038 *-*-cygwin* )
5039 case $build in
5040 *-*-mingw* ) # actually msys
5041 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5042 ;;
5043 *-*-cygwin* )
5044 lt_cv_to_host_file_cmd=func_convert_file_noop
5045 ;;
5046 * ) # otherwise, assume *nix
5047 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5048 ;;
5049 esac
5050 ;;
5051 * ) # unhandled hosts (and "normal" native builds)
5052 lt_cv_to_host_file_cmd=func_convert_file_noop
5053 ;;
5054 esac
5055
5056 fi
5057
5058 to_host_file_cmd=$lt_cv_to_host_file_cmd
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5060 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5067 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5068 if ${lt_cv_to_tool_file_cmd+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 #assume ordinary cross tools, or native build.
5072 lt_cv_to_tool_file_cmd=func_convert_file_noop
5073 case $host in
5074 *-*-mingw* )
5075 case $build in
5076 *-*-mingw* ) # actually msys
5077 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5078 ;;
5079 esac
5080 ;;
5081 esac
5082
5083 fi
5084
5085 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5087 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5088
5089
5090
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5094 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5095 if ${lt_cv_ld_reload_flag+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 lt_cv_ld_reload_flag='-r'
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5101 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5102 reload_flag=$lt_cv_ld_reload_flag
5103 case $reload_flag in
5104 "" | " "*) ;;
5105 *) reload_flag=" $reload_flag" ;;
5106 esac
5107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5108 case $host_os in
5109 cygwin* | mingw* | pw32* | cegcc*)
5110 if test "$GCC" != yes; then
5111 reload_cmds=false
5112 fi
5113 ;;
5114 darwin*)
5115 if test "$GCC" = yes; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5117 else
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 fi
5120 ;;
5121 esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_OBJDUMP+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 OBJDUMP=$ac_cv_prog_OBJDUMP
5160 if test -n "$OBJDUMP"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5162 $as_echo "$OBJDUMP" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$ac_cv_prog_OBJDUMP"; then
5171 ac_ct_OBJDUMP=$OBJDUMP
5172 # Extract the first word of "objdump", so it can be a program name with args.
5173 set dummy objdump; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200 if test -n "$ac_ct_OBJDUMP"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5202 $as_echo "$ac_ct_OBJDUMP" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_ct_OBJDUMP" = x; then
5209 OBJDUMP="false"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 OBJDUMP=$ac_ct_OBJDUMP
5218 fi
5219 else
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5221 fi
5222
5223 test -z "$OBJDUMP" && OBJDUMP=objdump
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5234 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5235 if ${lt_cv_deplibs_check_method+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239 lt_cv_file_magic_test_file=
5240 lt_cv_deplibs_check_method='unknown'
5241 # Need to set the preceding variable on all platforms that support
5242 # interlibrary dependencies.
5243 # 'none' -- dependencies not supported.
5244 # `unknown' -- same as none, but documents that we really don't know.
5245 # 'pass_all' -- all dependencies passed with no checks.
5246 # 'test_compile' -- check by making test program.
5247 # 'file_magic [[regex]]' -- check by looking for files in library path
5248 # which responds to the $file_magic_cmd with a given extended regex.
5249 # If you have `file' or equivalent on your system and you're not sure
5250 # whether `pass_all' will *always* work, you probably want this one.
5251
5252 case $host_os in
5253 aix[4-9]*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 beos*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 bsdi[45]*)
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5263 lt_cv_file_magic_cmd='/usr/bin/file -L'
5264 lt_cv_file_magic_test_file=/shlib/libc.so
5265 ;;
5266
5267 cygwin*)
5268 # func_win32_libid is a shell function defined in ltmain.sh
5269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5270 lt_cv_file_magic_cmd='func_win32_libid'
5271 ;;
5272
5273 mingw* | pw32*)
5274 # Base MSYS/MinGW do not provide the 'file' command needed by
5275 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5276 # unless we find 'file', for example because we are cross-compiling.
5277 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5278 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5280 lt_cv_file_magic_cmd='func_win32_libid'
5281 else
5282 # Keep this pattern in sync with the one in func_win32_libid.
5283 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5284 lt_cv_file_magic_cmd='$OBJDUMP -f'
5285 fi
5286 ;;
5287
5288 cegcc*)
5289 # use the weaker test based on 'objdump'. See mingw*.
5290 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5291 lt_cv_file_magic_cmd='$OBJDUMP -f'
5292 ;;
5293
5294 darwin* | rhapsody*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 freebsd* | dragonfly*)
5299 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5300 case $host_cpu in
5301 i*86 )
5302 # Not sure whether the presence of OpenBSD here was a mistake.
5303 # Let's accept both of them until this is cleared up.
5304 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5305 lt_cv_file_magic_cmd=/usr/bin/file
5306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5307 ;;
5308 esac
5309 else
5310 lt_cv_deplibs_check_method=pass_all
5311 fi
5312 ;;
5313
5314 haiku*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318 hpux10.20* | hpux11*)
5319 lt_cv_file_magic_cmd=/usr/bin/file
5320 case $host_cpu in
5321 ia64*)
5322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5323 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5324 ;;
5325 hppa*64*)
5326 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]'
5327 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5328 ;;
5329 *)
5330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5331 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5332 ;;
5333 esac
5334 ;;
5335
5336 interix[3-9]*)
5337 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5339 ;;
5340
5341 irix5* | irix6* | nonstopux*)
5342 case $LD in
5343 *-32|*"-32 ") libmagic=32-bit;;
5344 *-n32|*"-n32 ") libmagic=N32;;
5345 *-64|*"-64 ") libmagic=64-bit;;
5346 *) libmagic=never-match;;
5347 esac
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351 # This must be glibc/ELF.
5352 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 netbsd* | netbsdelf*-gnu)
5357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5359 else
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5361 fi
5362 ;;
5363
5364 newos6*)
5365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5366 lt_cv_file_magic_cmd=/usr/bin/file
5367 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5368 ;;
5369
5370 *nto* | *qnx*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 openbsd*)
5375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5377 else
5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5379 fi
5380 ;;
5381
5382 osf3* | osf4* | osf5*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385
5386 rdos*)
5387 lt_cv_deplibs_check_method=pass_all
5388 ;;
5389
5390 solaris*)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5395 lt_cv_deplibs_check_method=pass_all
5396 ;;
5397
5398 sysv4 | sysv4.3*)
5399 case $host_vendor in
5400 motorola)
5401 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]'
5402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5403 ;;
5404 ncr)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407 sequent)
5408 lt_cv_file_magic_cmd='/bin/file'
5409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5410 ;;
5411 sni)
5412 lt_cv_file_magic_cmd='/bin/file'
5413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5414 lt_cv_file_magic_test_file=/lib/libc.so
5415 ;;
5416 siemens)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419 pc)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422 esac
5423 ;;
5424
5425 tpf*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428 esac
5429
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5432 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5433
5434 file_magic_glob=
5435 want_nocaseglob=no
5436 if test "$build" = "$host"; then
5437 case $host_os in
5438 mingw* | pw32*)
5439 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5440 want_nocaseglob=yes
5441 else
5442 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5443 fi
5444 ;;
5445 esac
5446 fi
5447
5448 file_magic_cmd=$lt_cv_file_magic_cmd
5449 deplibs_check_method=$lt_cv_deplibs_check_method
5450 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 if test -n "$ac_tool_prefix"; then
5474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5475 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_DLLTOOL+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$DLLTOOL"; then
5482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 DLLTOOL=$ac_cv_prog_DLLTOOL
5502 if test -n "$DLLTOOL"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5504 $as_echo "$DLLTOOL" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511 fi
5512 if test -z "$ac_cv_prog_DLLTOOL"; then
5513 ac_ct_DLLTOOL=$DLLTOOL
5514 # Extract the first word of "dlltool", so it can be a program name with args.
5515 set dummy dlltool; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$ac_ct_DLLTOOL"; then
5522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 fi
5540 fi
5541 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5542 if test -n "$ac_ct_DLLTOOL"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5544 $as_echo "$ac_ct_DLLTOOL" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 fi
5549
5550 if test "x$ac_ct_DLLTOOL" = x; then
5551 DLLTOOL="false"
5552 else
5553 case $cross_compiling:$ac_tool_warned in
5554 yes:)
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557 ac_tool_warned=yes ;;
5558 esac
5559 DLLTOOL=$ac_ct_DLLTOOL
5560 fi
5561 else
5562 DLLTOOL="$ac_cv_prog_DLLTOOL"
5563 fi
5564
5565 test -z "$DLLTOOL" && DLLTOOL=dlltool
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5577 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5578 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 lt_cv_sharedlib_from_linklib_cmd='unknown'
5582
5583 case $host_os in
5584 cygwin* | mingw* | pw32* | cegcc*)
5585 # two different shell functions defined in ltmain.sh
5586 # decide which to use based on capabilities of $DLLTOOL
5587 case `$DLLTOOL --help 2>&1` in
5588 *--identify-strict*)
5589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5590 ;;
5591 *)
5592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5593 ;;
5594 esac
5595 ;;
5596 *)
5597 # fallback: assume linklib IS sharedlib
5598 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5599 ;;
5600 esac
5601
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5604 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5605 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5606 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5607
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616 for ac_prog in ar
5617 do
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_AR+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$AR"; then
5626 ac_cv_prog_AR="$AR" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 AR=$ac_cv_prog_AR
5646 if test -n "$AR"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5648 $as_echo "$AR" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 test -n "$AR" && break
5656 done
5657 fi
5658 if test -z "$AR"; then
5659 ac_ct_AR=$AR
5660 for ac_prog in ar
5661 do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$ac_ct_AR"; then
5670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_AR="$ac_prog"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5690 if test -n "$ac_ct_AR"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5692 $as_echo "$ac_ct_AR" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 test -n "$ac_ct_AR" && break
5700 done
5701
5702 if test "x$ac_ct_AR" = x; then
5703 AR="false"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 AR=$ac_ct_AR
5712 fi
5713 fi
5714
5715 : ${AR=ar}
5716 : ${AR_FLAGS=cru}
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5729 $as_echo_n "checking for archiver @FILE support... " >&6; }
5730 if ${lt_cv_ar_at_file+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 lt_cv_ar_at_file=no
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736
5737 int
5738 main ()
5739 {
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 echo conftest.$ac_objext > conftest.lst
5747 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5749 (eval $lt_ar_try) 2>&5
5750 ac_status=$?
5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752 test $ac_status = 0; }
5753 if test "$ac_status" -eq 0; then
5754 # Ensure the archiver fails upon bogus file names.
5755 rm -f conftest.$ac_objext libconftest.a
5756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5757 (eval $lt_ar_try) 2>&5
5758 ac_status=$?
5759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5760 test $ac_status = 0; }
5761 if test "$ac_status" -ne 0; then
5762 lt_cv_ar_at_file=@
5763 fi
5764 fi
5765 rm -f conftest.* libconftest.a
5766
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5772 $as_echo "$lt_cv_ar_at_file" >&6; }
5773
5774 if test "x$lt_cv_ar_at_file" = xno; then
5775 archiver_list_spec=
5776 else
5777 archiver_list_spec=$lt_cv_ar_at_file
5778 fi
5779
5780
5781
5782
5783
5784
5785
5786 if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5788 set dummy ${ac_tool_prefix}strip; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_STRIP+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$STRIP"; then
5795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 STRIP=$ac_cv_prog_STRIP
5815 if test -n "$STRIP"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5817 $as_echo "$STRIP" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824 fi
5825 if test -z "$ac_cv_prog_STRIP"; then
5826 ac_ct_STRIP=$STRIP
5827 # Extract the first word of "strip", so it can be a program name with args.
5828 set dummy strip; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$ac_ct_STRIP"; then
5835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_STRIP="strip"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848 done
5849 done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5855 if test -n "$ac_ct_STRIP"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5857 $as_echo "$ac_ct_STRIP" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863 if test "x$ac_ct_STRIP" = x; then
5864 STRIP=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870 ac_tool_warned=yes ;;
5871 esac
5872 STRIP=$ac_ct_STRIP
5873 fi
5874 else
5875 STRIP="$ac_cv_prog_STRIP"
5876 fi
5877
5878 test -z "$STRIP" && STRIP=:
5879
5880
5881
5882
5883
5884
5885 if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_RANLIB+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$RANLIB"; then
5894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 RANLIB=$ac_cv_prog_RANLIB
5914 if test -n "$RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5916 $as_echo "$RANLIB" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923 fi
5924 if test -z "$ac_cv_prog_RANLIB"; then
5925 ac_ct_RANLIB=$RANLIB
5926 # Extract the first word of "ranlib", so it can be a program name with args.
5927 set dummy ranlib; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$ac_ct_RANLIB"; then
5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_RANLIB="ranlib"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954 if test -n "$ac_ct_RANLIB"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5956 $as_echo "$ac_ct_RANLIB" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962 if test "x$ac_ct_RANLIB" = x; then
5963 RANLIB=":"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971 RANLIB=$ac_ct_RANLIB
5972 fi
5973 else
5974 RANLIB="$ac_cv_prog_RANLIB"
5975 fi
5976
5977 test -z "$RANLIB" && RANLIB=:
5978
5979
5980
5981
5982
5983
5984 # Determine commands to create old-style static archives.
5985 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5986 old_postinstall_cmds='chmod 644 $oldlib'
5987 old_postuninstall_cmds=
5988
5989 if test -n "$RANLIB"; then
5990 case $host_os in
5991 openbsd*)
5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5993 ;;
5994 *)
5995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5996 ;;
5997 esac
5998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5999 fi
6000
6001 case $host_os in
6002 darwin*)
6003 lock_old_archive_extraction=yes ;;
6004 *)
6005 lock_old_archive_extraction=no ;;
6006 esac
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046 # If no C compiler was specified, use CC.
6047 LTCC=${LTCC-"$CC"}
6048
6049 # If no C compiler flags were specified, use CFLAGS.
6050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6051
6052 # Allow CC to be a program name with arguments.
6053 compiler=$CC
6054
6055
6056 # Check for command to grab the raw symbol name followed by C symbol from nm.
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6058 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6059 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062
6063 # These are sane defaults that work on at least a few old systems.
6064 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6065
6066 # Character class describing NM global symbol codes.
6067 symcode='[BCDEGRST]'
6068
6069 # Regexp to match symbols that can be accessed directly from C.
6070 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6071
6072 # Define system-specific variables.
6073 case $host_os in
6074 aix*)
6075 symcode='[BCDT]'
6076 ;;
6077 cygwin* | mingw* | pw32* | cegcc*)
6078 symcode='[ABCDGISTW]'
6079 ;;
6080 hpux*)
6081 if test "$host_cpu" = ia64; then
6082 symcode='[ABCDEGRST]'
6083 fi
6084 ;;
6085 irix* | nonstopux*)
6086 symcode='[BCDEGRST]'
6087 ;;
6088 osf*)
6089 symcode='[BCDEGQRST]'
6090 ;;
6091 solaris*)
6092 symcode='[BDRT]'
6093 ;;
6094 sco3.2v5*)
6095 symcode='[DT]'
6096 ;;
6097 sysv4.2uw2*)
6098 symcode='[DT]'
6099 ;;
6100 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6101 symcode='[ABDT]'
6102 ;;
6103 sysv4)
6104 symcode='[DFNSTU]'
6105 ;;
6106 esac
6107
6108 # If we're using GNU nm, then use its standard symbol codes.
6109 case `$NM -V 2>&1` in
6110 *GNU* | *'with BFD'*)
6111 symcode='[ABCDGIRSTW]' ;;
6112 esac
6113
6114 # Transform an extracted symbol line into a proper C declaration.
6115 # Some systems (esp. on ia64) link data and code symbols differently,
6116 # so use this general approach.
6117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6118
6119 # Transform an extracted symbol line into symbol name and symbol address
6120 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6122
6123 # Handle CRLF in mingw tool chain
6124 opt_cr=
6125 case $build_os in
6126 mingw*)
6127 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6128 ;;
6129 esac
6130
6131 # Try without a prefix underscore, then with it.
6132 for ac_symprfx in "" "_"; do
6133
6134 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6135 symxfrm="\\1 $ac_symprfx\\2 \\2"
6136
6137 # Write the raw and C identifiers.
6138 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139 # Fake it for dumpbin and say T for any non-static function
6140 # and D for any global variable.
6141 # Also find C++ and __fastcall symbols from MSVC++,
6142 # which start with @ or ?.
6143 lt_cv_sys_global_symbol_pipe="$AWK '"\
6144 " {last_section=section; section=\$ 3};"\
6145 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6146 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6147 " \$ 0!~/External *\|/{next};"\
6148 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6149 " {if(hide[section]) next};"\
6150 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6151 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6152 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6153 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6154 " ' prfx=^$ac_symprfx"
6155 else
6156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6157 fi
6158 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6159
6160 # Check to see that the pipe works correctly.
6161 pipe_works=no
6162
6163 rm -f conftest*
6164 cat > conftest.$ac_ext <<_LT_EOF
6165 #ifdef __cplusplus
6166 extern "C" {
6167 #endif
6168 char nm_test_var;
6169 void nm_test_func(void);
6170 void nm_test_func(void){}
6171 #ifdef __cplusplus
6172 }
6173 #endif
6174 int main(){nm_test_var='a';nm_test_func();return(0);}
6175 _LT_EOF
6176
6177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6178 (eval $ac_compile) 2>&5
6179 ac_status=$?
6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; }; then
6182 # Now try to grab the symbols.
6183 nlist=conftest.nm
6184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6185 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6186 ac_status=$?
6187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188 test $ac_status = 0; } && test -s "$nlist"; then
6189 # Try sorting and uniquifying the output.
6190 if sort "$nlist" | uniq > "$nlist"T; then
6191 mv -f "$nlist"T "$nlist"
6192 else
6193 rm -f "$nlist"T
6194 fi
6195
6196 # Make sure that we snagged all the symbols we need.
6197 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6198 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6199 cat <<_LT_EOF > conftest.$ac_ext
6200 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6201 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6202 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6203 relocations are performed -- see ld's documentation on pseudo-relocs. */
6204 # define LT_DLSYM_CONST
6205 #elif defined(__osf__)
6206 /* This system does not cope well with relocations in const data. */
6207 # define LT_DLSYM_CONST
6208 #else
6209 # define LT_DLSYM_CONST const
6210 #endif
6211
6212 #ifdef __cplusplus
6213 extern "C" {
6214 #endif
6215
6216 _LT_EOF
6217 # Now generate the symbol file.
6218 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6219
6220 cat <<_LT_EOF >> conftest.$ac_ext
6221
6222 /* The mapping between symbol names and symbols. */
6223 LT_DLSYM_CONST struct {
6224 const char *name;
6225 void *address;
6226 }
6227 lt__PROGRAM__LTX_preloaded_symbols[] =
6228 {
6229 { "@PROGRAM@", (void *) 0 },
6230 _LT_EOF
6231 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6232 cat <<\_LT_EOF >> conftest.$ac_ext
6233 {0, (void *) 0}
6234 };
6235
6236 /* This works around a problem in FreeBSD linker */
6237 #ifdef FREEBSD_WORKAROUND
6238 static const void *lt_preloaded_setup() {
6239 return lt__PROGRAM__LTX_preloaded_symbols;
6240 }
6241 #endif
6242
6243 #ifdef __cplusplus
6244 }
6245 #endif
6246 _LT_EOF
6247 # Now try linking the two files.
6248 mv conftest.$ac_objext conftstm.$ac_objext
6249 lt_globsym_save_LIBS=$LIBS
6250 lt_globsym_save_CFLAGS=$CFLAGS
6251 LIBS="conftstm.$ac_objext"
6252 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6254 (eval $ac_link) 2>&5
6255 ac_status=$?
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6258 pipe_works=yes
6259 fi
6260 LIBS=$lt_globsym_save_LIBS
6261 CFLAGS=$lt_globsym_save_CFLAGS
6262 else
6263 echo "cannot find nm_test_func in $nlist" >&5
6264 fi
6265 else
6266 echo "cannot find nm_test_var in $nlist" >&5
6267 fi
6268 else
6269 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6270 fi
6271 else
6272 echo "$progname: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 fi
6275 rm -rf conftest* conftst*
6276
6277 # Do not use the global_symbol_pipe unless it works.
6278 if test "$pipe_works" = yes; then
6279 break
6280 else
6281 lt_cv_sys_global_symbol_pipe=
6282 fi
6283 done
6284
6285 fi
6286
6287 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6288 lt_cv_sys_global_symbol_to_cdecl=
6289 fi
6290 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6292 $as_echo "failed" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6295 $as_echo "ok" >&6; }
6296 fi
6297
6298 # Response file support.
6299 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6300 nm_file_list_spec='@'
6301 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6302 nm_file_list_spec='@'
6303 fi
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6332 $as_echo_n "checking for sysroot... " >&6; }
6333
6334 # Check whether --with-sysroot was given.
6335 if test "${with_sysroot+set}" = set; then :
6336 withval=$with_sysroot;
6337 else
6338 with_sysroot=no
6339 fi
6340
6341
6342 lt_sysroot=
6343 case ${with_sysroot} in #(
6344 yes)
6345 if test "$GCC" = yes; then
6346 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6347 fi
6348 ;; #(
6349 /*)
6350 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6351 ;; #(
6352 no|'')
6353 ;; #(
6354 *)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6356 $as_echo "${with_sysroot}" >&6; }
6357 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6358 ;;
6359 esac
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6362 $as_echo "${lt_sysroot:-no}" >&6; }
6363
6364
6365
6366
6367
6368 # Check whether --enable-libtool-lock was given.
6369 if test "${enable_libtool_lock+set}" = set; then :
6370 enableval=$enable_libtool_lock;
6371 fi
6372
6373 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6374
6375 # Some flags need to be propagated to the compiler or linker for good
6376 # libtool support.
6377 case $host in
6378 ia64-*-hpux*)
6379 # Find out which ABI we are using.
6380 echo 'int i;' > conftest.$ac_ext
6381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382 (eval $ac_compile) 2>&5
6383 ac_status=$?
6384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385 test $ac_status = 0; }; then
6386 case `/usr/bin/file conftest.$ac_objext` in
6387 *ELF-32*)
6388 HPUX_IA64_MODE="32"
6389 ;;
6390 *ELF-64*)
6391 HPUX_IA64_MODE="64"
6392 ;;
6393 esac
6394 fi
6395 rm -rf conftest*
6396 ;;
6397 *-*-irix6*)
6398 # Find out which ABI we are using.
6399 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 if test "$lt_cv_prog_gnu_ld" = yes; then
6406 case `/usr/bin/file conftest.$ac_objext` in
6407 *32-bit*)
6408 LD="${LD-ld} -melf32bsmip"
6409 ;;
6410 *N32*)
6411 LD="${LD-ld} -melf32bmipn32"
6412 ;;
6413 *64-bit*)
6414 LD="${LD-ld} -melf64bmip"
6415 ;;
6416 esac
6417 else
6418 case `/usr/bin/file conftest.$ac_objext` in
6419 *32-bit*)
6420 LD="${LD-ld} -32"
6421 ;;
6422 *N32*)
6423 LD="${LD-ld} -n32"
6424 ;;
6425 *64-bit*)
6426 LD="${LD-ld} -64"
6427 ;;
6428 esac
6429 fi
6430 fi
6431 rm -rf conftest*
6432 ;;
6433
6434 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6435 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6436 # Find out which ABI we are using.
6437 echo 'int i;' > conftest.$ac_ext
6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; then
6443 case `/usr/bin/file conftest.o` in
6444 *32-bit*)
6445 case $host in
6446 x86_64-*kfreebsd*-gnu)
6447 LD="${LD-ld} -m elf_i386_fbsd"
6448 ;;
6449 x86_64-*linux*)
6450 LD="${LD-ld} -m elf_i386"
6451 ;;
6452 ppc64-*linux*|powerpc64-*linux*)
6453 LD="${LD-ld} -m elf32ppclinux"
6454 ;;
6455 s390x-*linux*)
6456 LD="${LD-ld} -m elf_s390"
6457 ;;
6458 sparc64-*linux*)
6459 LD="${LD-ld} -m elf32_sparc"
6460 ;;
6461 esac
6462 ;;
6463 *64-bit*)
6464 case $host in
6465 x86_64-*kfreebsd*-gnu)
6466 LD="${LD-ld} -m elf_x86_64_fbsd"
6467 ;;
6468 x86_64-*linux*)
6469 LD="${LD-ld} -m elf_x86_64"
6470 ;;
6471 ppc*-*linux*|powerpc*-*linux*)
6472 LD="${LD-ld} -m elf64ppc"
6473 ;;
6474 s390*-*linux*|s390*-*tpf*)
6475 LD="${LD-ld} -m elf64_s390"
6476 ;;
6477 sparc*-*linux*)
6478 LD="${LD-ld} -m elf64_sparc"
6479 ;;
6480 esac
6481 ;;
6482 esac
6483 fi
6484 rm -rf conftest*
6485 ;;
6486
6487 *-*-sco3.2v5*)
6488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6489 SAVE_CFLAGS="$CFLAGS"
6490 CFLAGS="$CFLAGS -belf"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6492 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6493 if ${lt_cv_cc_needs_belf+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 ac_ext=c
6497 ac_cpp='$CPP $CPPFLAGS'
6498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 lt_cv_cc_needs_belf=yes
6515 else
6516 lt_cv_cc_needs_belf=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 ac_ext=c
6521 ac_cpp='$CPP $CPPFLAGS'
6522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6528 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6531 CFLAGS="$SAVE_CFLAGS"
6532 fi
6533 ;;
6534 *-*solaris*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.o` in
6543 *64-bit*)
6544 case $lt_cv_prog_gnu_ld in
6545 yes*)
6546 case $host in
6547 i?86-*-solaris*)
6548 LD="${LD-ld} -m elf_x86_64"
6549 ;;
6550 sparc*-*-solaris*)
6551 LD="${LD-ld} -m elf64_sparc"
6552 ;;
6553 esac
6554 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6555 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6556 LD="${LD-ld}_sol2"
6557 fi
6558 ;;
6559 *)
6560 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6561 LD="${LD-ld} -64"
6562 fi
6563 ;;
6564 esac
6565 ;;
6566 esac
6567 fi
6568 rm -rf conftest*
6569 ;;
6570 esac
6571
6572 need_locks="$enable_libtool_lock"
6573
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}mt; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$MANIFEST_TOOL"; then
6583 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6603 if test -n "$MANIFEST_TOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6605 $as_echo "$MANIFEST_TOOL" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611
6612 fi
6613 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6614 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6615 # Extract the first word of "mt", so it can be a program name with args.
6616 set dummy mt; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if test -n "$ac_ct_MANIFEST_TOOL"; then
6623 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6643 if test -n "$ac_ct_MANIFEST_TOOL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6645 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6652 MANIFEST_TOOL=":"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6661 fi
6662 else
6663 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6664 fi
6665
6666 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6668 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6669 if ${lt_cv_path_mainfest_tool+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 lt_cv_path_mainfest_tool=no
6673 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6674 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6675 cat conftest.err >&5
6676 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6677 lt_cv_path_mainfest_tool=yes
6678 fi
6679 rm -f conftest*
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6682 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6683 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6684 MANIFEST_TOOL=:
6685 fi
6686
6687
6688
6689
6690
6691
6692 case $host_os in
6693 rhapsody* | darwin*)
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$DSYMUTIL"; then
6703 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6723 if test -n "$DSYMUTIL"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6725 $as_echo "$DSYMUTIL" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732 fi
6733 if test -z "$ac_cv_prog_DSYMUTIL"; then
6734 ac_ct_DSYMUTIL=$DSYMUTIL
6735 # Extract the first word of "dsymutil", so it can be a program name with args.
6736 set dummy dsymutil; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_DSYMUTIL"; then
6743 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6763 if test -n "$ac_ct_DSYMUTIL"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6765 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771 if test "x$ac_ct_DSYMUTIL" = x; then
6772 DSYMUTIL=":"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 DSYMUTIL=$ac_ct_DSYMUTIL
6781 fi
6782 else
6783 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6784 fi
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_NMEDIT+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$NMEDIT"; then
6795 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 NMEDIT=$ac_cv_prog_NMEDIT
6815 if test -n "$NMEDIT"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6817 $as_echo "$NMEDIT" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_NMEDIT"; then
6826 ac_ct_NMEDIT=$NMEDIT
6827 # Extract the first word of "nmedit", so it can be a program name with args.
6828 set dummy nmedit; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_NMEDIT"; then
6835 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6855 if test -n "$ac_ct_NMEDIT"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6857 $as_echo "$ac_ct_NMEDIT" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_NMEDIT" = x; then
6864 NMEDIT=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 NMEDIT=$ac_ct_NMEDIT
6873 fi
6874 else
6875 NMEDIT="$ac_cv_prog_NMEDIT"
6876 fi
6877
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_LIPO+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$LIPO"; then
6887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 LIPO=$ac_cv_prog_LIPO
6907 if test -n "$LIPO"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6909 $as_echo "$LIPO" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_LIPO"; then
6918 ac_ct_LIPO=$LIPO
6919 # Extract the first word of "lipo", so it can be a program name with args.
6920 set dummy lipo; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_LIPO"; then
6927 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936 ac_cv_prog_ac_ct_LIPO="lipo"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6947 if test -n "$ac_ct_LIPO"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6949 $as_echo "$ac_ct_LIPO" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955 if test "x$ac_ct_LIPO" = x; then
6956 LIPO=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 LIPO=$ac_ct_LIPO
6965 fi
6966 else
6967 LIPO="$ac_cv_prog_LIPO"
6968 fi
6969
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}otool; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_OTOOL+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$OTOOL"; then
6979 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 OTOOL=$ac_cv_prog_OTOOL
6999 if test -n "$OTOOL"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7001 $as_echo "$OTOOL" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007
7008 fi
7009 if test -z "$ac_cv_prog_OTOOL"; then
7010 ac_ct_OTOOL=$OTOOL
7011 # Extract the first word of "otool", so it can be a program name with args.
7012 set dummy otool; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 if test -n "$ac_ct_OTOOL"; then
7019 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_ac_ct_OTOOL="otool"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7039 if test -n "$ac_ct_OTOOL"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7041 $as_echo "$ac_ct_OTOOL" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047 if test "x$ac_ct_OTOOL" = x; then
7048 OTOOL=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051 yes:)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056 OTOOL=$ac_ct_OTOOL
7057 fi
7058 else
7059 OTOOL="$ac_cv_prog_OTOOL"
7060 fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_OTOOL64+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$OTOOL64"; then
7071 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 OTOOL64=$ac_cv_prog_OTOOL64
7091 if test -n "$OTOOL64"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7093 $as_echo "$OTOOL64" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_OTOOL64"; then
7102 ac_ct_OTOOL64=$OTOOL64
7103 # Extract the first word of "otool64", so it can be a program name with args.
7104 set dummy otool64; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 if test -n "$ac_ct_OTOOL64"; then
7111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_OTOOL64="otool64"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7131 if test -n "$ac_ct_OTOOL64"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7133 $as_echo "$ac_ct_OTOOL64" >&6; }
7134 else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139 if test "x$ac_ct_OTOOL64" = x; then
7140 OTOOL64=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 OTOOL64=$ac_ct_OTOOL64
7149 fi
7150 else
7151 OTOOL64="$ac_cv_prog_OTOOL64"
7152 fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7181 $as_echo_n "checking for -single_module linker flag... " >&6; }
7182 if ${lt_cv_apple_cc_single_mod+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 lt_cv_apple_cc_single_mod=no
7186 if test -z "${LT_MULTI_MODULE}"; then
7187 # By default we will add the -single_module flag. You can override
7188 # by either setting the environment variable LT_MULTI_MODULE
7189 # non-empty at configure time, or by adding -multi_module to the
7190 # link flags.
7191 rm -rf libconftest.dylib*
7192 echo "int foo(void){return 1;}" > conftest.c
7193 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7194 -dynamiclib -Wl,-single_module conftest.c" >&5
7195 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7196 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7197 _lt_result=$?
7198 # If there is a non-empty error log, and "single_module"
7199 # appears in it, assume the flag caused a linker warning
7200 if test -s conftest.err && $GREP single_module conftest.err; then
7201 cat conftest.err >&5
7202 # Otherwise, if the output was created with a 0 exit code from
7203 # the compiler, it worked.
7204 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7205 lt_cv_apple_cc_single_mod=yes
7206 else
7207 cat conftest.err >&5
7208 fi
7209 rm -rf libconftest.dylib*
7210 rm -f conftest.*
7211 fi
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7214 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7215
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7217 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7218 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 lt_cv_ld_exported_symbols_list=no
7222 save_LDFLAGS=$LDFLAGS
7223 echo "_main" > conftest.sym
7224 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227
7228 int
7229 main ()
7230 {
7231
7232 ;
7233 return 0;
7234 }
7235 _ACEOF
7236 if ac_fn_c_try_link "$LINENO"; then :
7237 lt_cv_ld_exported_symbols_list=yes
7238 else
7239 lt_cv_ld_exported_symbols_list=no
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext \
7242 conftest$ac_exeext conftest.$ac_ext
7243 LDFLAGS="$save_LDFLAGS"
7244
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7247 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7250 $as_echo_n "checking for -force_load linker flag... " >&6; }
7251 if ${lt_cv_ld_force_load+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 lt_cv_ld_force_load=no
7255 cat > conftest.c << _LT_EOF
7256 int forced_loaded() { return 2;}
7257 _LT_EOF
7258 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7259 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7260 echo "$AR cru libconftest.a conftest.o" >&5
7261 $AR cru libconftest.a conftest.o 2>&5
7262 echo "$RANLIB libconftest.a" >&5
7263 $RANLIB libconftest.a 2>&5
7264 cat > conftest.c << _LT_EOF
7265 int main() { return 0;}
7266 _LT_EOF
7267 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7268 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7269 _lt_result=$?
7270 if test -s conftest.err && $GREP force_load conftest.err; then
7271 cat conftest.err >&5
7272 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7273 lt_cv_ld_force_load=yes
7274 else
7275 cat conftest.err >&5
7276 fi
7277 rm -f conftest.err libconftest.a conftest conftest.c
7278 rm -rf conftest.dSYM
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7282 $as_echo "$lt_cv_ld_force_load" >&6; }
7283 case $host_os in
7284 rhapsody* | darwin1.[012])
7285 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7286 darwin1.*)
7287 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288 darwin*) # darwin 5.x on
7289 # if running on 10.5 or later, the deployment target defaults
7290 # to the OS version, if on x86, and 10.4, the deployment
7291 # target defaults to 10.4. Don't you love it?
7292 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7293 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7294 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7295 10.[012]*)
7296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297 10.*)
7298 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7299 esac
7300 ;;
7301 esac
7302 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7303 _lt_dar_single_mod='$single_module'
7304 fi
7305 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7306 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7307 else
7308 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7309 fi
7310 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7311 _lt_dsymutil='~$DSYMUTIL $lib || :'
7312 else
7313 _lt_dsymutil=
7314 fi
7315 ;;
7316 esac
7317
7318 ac_ext=c
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7325 # On Suns, sometimes $CPP names a directory.
7326 if test -n "$CPP" && test -d "$CPP"; then
7327 CPP=
7328 fi
7329 if test -z "$CPP"; then
7330 if ${ac_cv_prog_CPP+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 # Double quotes because CPP needs to be expanded
7334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7335 do
7336 ac_preproc_ok=false
7337 for ac_c_preproc_warn_flag in '' yes
7338 do
7339 # Use a header file that comes with gcc, so configuring glibc
7340 # with a fresh cross-compiler works.
7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342 # <limits.h> exists even on freestanding compilers.
7343 # On the NeXT, cc -E runs the code through the compiler's parser,
7344 # not just through cpp. "Syntax error" is here to catch this case.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #ifdef __STDC__
7348 # include <limits.h>
7349 #else
7350 # include <assert.h>
7351 #endif
7352 Syntax error
7353 _ACEOF
7354 if ac_fn_c_try_cpp "$LINENO"; then :
7355
7356 else
7357 # Broken: fails on valid input.
7358 continue
7359 fi
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7361
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if ac_fn_c_try_cpp "$LINENO"; then :
7369 # Broken: success on invalid input.
7370 continue
7371 else
7372 # Passes both tests.
7373 ac_preproc_ok=:
7374 break
7375 fi
7376 rm -f conftest.err conftest.i conftest.$ac_ext
7377
7378 done
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.i conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then :
7382 break
7383 fi
7384
7385 done
7386 ac_cv_prog_CPP=$CPP
7387
7388 fi
7389 CPP=$ac_cv_prog_CPP
7390 else
7391 ac_cv_prog_CPP=$CPP
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7394 $as_echo "$CPP" >&6; }
7395 ac_preproc_ok=false
7396 for ac_c_preproc_warn_flag in '' yes
7397 do
7398 # Use a header file that comes with gcc, so configuring glibc
7399 # with a fresh cross-compiler works.
7400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401 # <limits.h> exists even on freestanding compilers.
7402 # On the NeXT, cc -E runs the code through the compiler's parser,
7403 # not just through cpp. "Syntax error" is here to catch this case.
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #ifdef __STDC__
7407 # include <limits.h>
7408 #else
7409 # include <assert.h>
7410 #endif
7411 Syntax error
7412 _ACEOF
7413 if ac_fn_c_try_cpp "$LINENO"; then :
7414
7415 else
7416 # Broken: fails on valid input.
7417 continue
7418 fi
7419 rm -f conftest.err conftest.i conftest.$ac_ext
7420
7421 # OK, works on sane cases. Now check whether nonexistent headers
7422 # can be detected and how.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <ac_nonexistent.h>
7426 _ACEOF
7427 if ac_fn_c_try_cpp "$LINENO"; then :
7428 # Broken: success on invalid input.
7429 continue
7430 else
7431 # Passes both tests.
7432 ac_preproc_ok=:
7433 break
7434 fi
7435 rm -f conftest.err conftest.i conftest.$ac_ext
7436
7437 done
7438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7439 rm -f conftest.i conftest.err conftest.$ac_ext
7440 if $ac_preproc_ok; then :
7441
7442 else
7443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7445 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7446 See \`config.log' for more details" "$LINENO" 5; }
7447 fi
7448
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7457 $as_echo_n "checking for ANSI C header files... " >&6; }
7458 if ${ac_cv_header_stdc+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <stdlib.h>
7464 #include <stdarg.h>
7465 #include <string.h>
7466 #include <float.h>
7467
7468 int
7469 main ()
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 ac_cv_header_stdc=yes
7478 else
7479 ac_cv_header_stdc=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 if test $ac_cv_header_stdc = yes; then
7484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <string.h>
7488
7489 _ACEOF
7490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7491 $EGREP "memchr" >/dev/null 2>&1; then :
7492
7493 else
7494 ac_cv_header_stdc=no
7495 fi
7496 rm -f conftest*
7497
7498 fi
7499
7500 if test $ac_cv_header_stdc = yes; then
7501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <stdlib.h>
7505
7506 _ACEOF
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508 $EGREP "free" >/dev/null 2>&1; then :
7509
7510 else
7511 ac_cv_header_stdc=no
7512 fi
7513 rm -f conftest*
7514
7515 fi
7516
7517 if test $ac_cv_header_stdc = yes; then
7518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7519 if test "$cross_compiling" = yes; then :
7520 :
7521 else
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <ctype.h>
7525 #include <stdlib.h>
7526 #if ((' ' & 0x0FF) == 0x020)
7527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7529 #else
7530 # define ISLOWER(c) \
7531 (('a' <= (c) && (c) <= 'i') \
7532 || ('j' <= (c) && (c) <= 'r') \
7533 || ('s' <= (c) && (c) <= 'z'))
7534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7535 #endif
7536
7537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7538 int
7539 main ()
7540 {
7541 int i;
7542 for (i = 0; i < 256; i++)
7543 if (XOR (islower (i), ISLOWER (i))
7544 || toupper (i) != TOUPPER (i))
7545 return 2;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_run "$LINENO"; then :
7550
7551 else
7552 ac_cv_header_stdc=no
7553 fi
7554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7555 conftest.$ac_objext conftest.beam conftest.$ac_ext
7556 fi
7557
7558 fi
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7561 $as_echo "$ac_cv_header_stdc" >&6; }
7562 if test $ac_cv_header_stdc = yes; then
7563
7564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7565
7566 fi
7567
7568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7570 inttypes.h stdint.h unistd.h
7571 do :
7572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7574 "
7575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7576 cat >>confdefs.h <<_ACEOF
7577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7578 _ACEOF
7579
7580 fi
7581
7582 done
7583
7584
7585 for ac_header in dlfcn.h
7586 do :
7587 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7588 "
7589 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7590 cat >>confdefs.h <<_ACEOF
7591 #define HAVE_DLFCN_H 1
7592 _ACEOF
7593
7594 fi
7595
7596 done
7597
7598
7599
7600
7601
7602 # Set options
7603
7604
7605
7606 enable_dlopen=no
7607
7608
7609 enable_win32_dll=no
7610
7611
7612 # Check whether --enable-shared was given.
7613 if test "${enable_shared+set}" = set; then :
7614 enableval=$enable_shared; p=${PACKAGE-default}
7615 case $enableval in
7616 yes) enable_shared=yes ;;
7617 no) enable_shared=no ;;
7618 *)
7619 enable_shared=no
7620 # Look at the argument we got. We use all the common list separators.
7621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7622 for pkg in $enableval; do
7623 IFS="$lt_save_ifs"
7624 if test "X$pkg" = "X$p"; then
7625 enable_shared=yes
7626 fi
7627 done
7628 IFS="$lt_save_ifs"
7629 ;;
7630 esac
7631 else
7632 enable_shared=yes
7633 fi
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 # Check whether --enable-static was given.
7644 if test "${enable_static+set}" = set; then :
7645 enableval=$enable_static; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_static=yes ;;
7648 no) enable_static=no ;;
7649 *)
7650 enable_static=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7653 for pkg in $enableval; do
7654 IFS="$lt_save_ifs"
7655 if test "X$pkg" = "X$p"; then
7656 enable_static=yes
7657 fi
7658 done
7659 IFS="$lt_save_ifs"
7660 ;;
7661 esac
7662 else
7663 enable_static=yes
7664 fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --with-pic was given.
7676 if test "${with_pic+set}" = set; then :
7677 withval=$with_pic; lt_p=${PACKAGE-default}
7678 case $withval in
7679 yes|no) pic_mode=$withval ;;
7680 *)
7681 pic_mode=default
7682 # Look at the argument we got. We use all the common list separators.
7683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7684 for lt_pkg in $withval; do
7685 IFS="$lt_save_ifs"
7686 if test "X$lt_pkg" = "X$lt_p"; then
7687 pic_mode=yes
7688 fi
7689 done
7690 IFS="$lt_save_ifs"
7691 ;;
7692 esac
7693 else
7694 pic_mode=default
7695 fi
7696
7697
7698 test -z "$pic_mode" && pic_mode=default
7699
7700
7701
7702
7703
7704
7705
7706 # Check whether --enable-fast-install was given.
7707 if test "${enable_fast_install+set}" = set; then :
7708 enableval=$enable_fast_install; p=${PACKAGE-default}
7709 case $enableval in
7710 yes) enable_fast_install=yes ;;
7711 no) enable_fast_install=no ;;
7712 *)
7713 enable_fast_install=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for pkg in $enableval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$pkg" = "X$p"; then
7719 enable_fast_install=yes
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 ;;
7724 esac
7725 else
7726 enable_fast_install=yes
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739 # This can be used to rebuild libtool when needed
7740 LIBTOOL_DEPS="$ltmain"
7741
7742 # Always use our own libtool.
7743 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774 test -z "$LN_S" && LN_S="ln -s"
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 if test -n "${ZSH_VERSION+set}" ; then
7790 setopt NO_GLOB_SUBST
7791 fi
7792
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7794 $as_echo_n "checking for objdir... " >&6; }
7795 if ${lt_cv_objdir+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 rm -f .libs 2>/dev/null
7799 mkdir .libs 2>/dev/null
7800 if test -d .libs; then
7801 lt_cv_objdir=.libs
7802 else
7803 # MS-DOS does not allow filenames that begin with a dot.
7804 lt_cv_objdir=_libs
7805 fi
7806 rmdir .libs 2>/dev/null
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7809 $as_echo "$lt_cv_objdir" >&6; }
7810 objdir=$lt_cv_objdir
7811
7812
7813
7814
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define LT_OBJDIR "$lt_cv_objdir/"
7818 _ACEOF
7819
7820
7821
7822
7823 case $host_os in
7824 aix3*)
7825 # AIX sometimes has problems with the GCC collect2 program. For some
7826 # reason, if we set the COLLECT_NAMES environment variable, the problems
7827 # vanish in a puff of smoke.
7828 if test "X${COLLECT_NAMES+set}" != Xset; then
7829 COLLECT_NAMES=
7830 export COLLECT_NAMES
7831 fi
7832 ;;
7833 esac
7834
7835 # Global variables:
7836 ofile=libtool
7837 can_build_shared=yes
7838
7839 # All known linkers require a `.a' archive for static linking (except MSVC,
7840 # which needs '.lib').
7841 libext=a
7842
7843 with_gnu_ld="$lt_cv_prog_gnu_ld"
7844
7845 old_CC="$CC"
7846 old_CFLAGS="$CFLAGS"
7847
7848 # Set sane defaults for various variables
7849 test -z "$CC" && CC=cc
7850 test -z "$LTCC" && LTCC=$CC
7851 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7852 test -z "$LD" && LD=ld
7853 test -z "$ac_objext" && ac_objext=o
7854
7855 for cc_temp in $compiler""; do
7856 case $cc_temp in
7857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7859 \-*) ;;
7860 *) break;;
7861 esac
7862 done
7863 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7864
7865
7866 # Only perform the check for file, if the check method requires it
7867 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7868 case $deplibs_check_method in
7869 file_magic*)
7870 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7872 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7873 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 case $MAGIC_CMD in
7877 [\\/*] | ?:[\\/]*)
7878 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7879 ;;
7880 *)
7881 lt_save_MAGIC_CMD="$MAGIC_CMD"
7882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7883 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7884 for ac_dir in $ac_dummy; do
7885 IFS="$lt_save_ifs"
7886 test -z "$ac_dir" && ac_dir=.
7887 if test -f $ac_dir/${ac_tool_prefix}file; then
7888 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7889 if test -n "$file_magic_test_file"; then
7890 case $deplibs_check_method in
7891 "file_magic "*)
7892 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7895 $EGREP "$file_magic_regex" > /dev/null; then
7896 :
7897 else
7898 cat <<_LT_EOF 1>&2
7899
7900 *** Warning: the command libtool uses to detect shared libraries,
7901 *** $file_magic_cmd, produces output that libtool cannot recognize.
7902 *** The result is that libtool may fail to recognize shared libraries
7903 *** as such. This will affect the creation of libtool libraries that
7904 *** depend on shared libraries, but programs linked with such libtool
7905 *** libraries will work regardless of this problem. Nevertheless, you
7906 *** may want to report the problem to your system manager and/or to
7907 *** [email protected]
7908
7909 _LT_EOF
7910 fi ;;
7911 esac
7912 fi
7913 break
7914 fi
7915 done
7916 IFS="$lt_save_ifs"
7917 MAGIC_CMD="$lt_save_MAGIC_CMD"
7918 ;;
7919 esac
7920 fi
7921
7922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7923 if test -n "$MAGIC_CMD"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7925 $as_echo "$MAGIC_CMD" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932
7933
7934
7935 if test -z "$lt_cv_path_MAGIC_CMD"; then
7936 if test -n "$ac_tool_prefix"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7938 $as_echo_n "checking for file... " >&6; }
7939 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 case $MAGIC_CMD in
7943 [\\/*] | ?:[\\/]*)
7944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7945 ;;
7946 *)
7947 lt_save_MAGIC_CMD="$MAGIC_CMD"
7948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7950 for ac_dir in $ac_dummy; do
7951 IFS="$lt_save_ifs"
7952 test -z "$ac_dir" && ac_dir=.
7953 if test -f $ac_dir/file; then
7954 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7955 if test -n "$file_magic_test_file"; then
7956 case $deplibs_check_method in
7957 "file_magic "*)
7958 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7961 $EGREP "$file_magic_regex" > /dev/null; then
7962 :
7963 else
7964 cat <<_LT_EOF 1>&2
7965
7966 *** Warning: the command libtool uses to detect shared libraries,
7967 *** $file_magic_cmd, produces output that libtool cannot recognize.
7968 *** The result is that libtool may fail to recognize shared libraries
7969 *** as such. This will affect the creation of libtool libraries that
7970 *** depend on shared libraries, but programs linked with such libtool
7971 *** libraries will work regardless of this problem. Nevertheless, you
7972 *** may want to report the problem to your system manager and/or to
7973 *** [email protected]
7974
7975 _LT_EOF
7976 fi ;;
7977 esac
7978 fi
7979 break
7980 fi
7981 done
7982 IFS="$lt_save_ifs"
7983 MAGIC_CMD="$lt_save_MAGIC_CMD"
7984 ;;
7985 esac
7986 fi
7987
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if test -n "$MAGIC_CMD"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7991 $as_echo "$MAGIC_CMD" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997
7998 else
7999 MAGIC_CMD=:
8000 fi
8001 fi
8002
8003 fi
8004 ;;
8005 esac
8006
8007 # Use C for the default configuration in the libtool script
8008
8009 lt_save_CC="$CC"
8010 ac_ext=c
8011 ac_cpp='$CPP $CPPFLAGS'
8012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8015
8016
8017 # Source file extension for C test sources.
8018 ac_ext=c
8019
8020 # Object file extension for compiled C test sources.
8021 objext=o
8022 objext=$objext
8023
8024 # Code to be used in simple compile tests
8025 lt_simple_compile_test_code="int some_variable = 0;"
8026
8027 # Code to be used in simple link tests
8028 lt_simple_link_test_code='int main(){return(0);}'
8029
8030
8031
8032
8033
8034
8035
8036 # If no C compiler was specified, use CC.
8037 LTCC=${LTCC-"$CC"}
8038
8039 # If no C compiler flags were specified, use CFLAGS.
8040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8041
8042 # Allow CC to be a program name with arguments.
8043 compiler=$CC
8044
8045 # Save the default compiler, since it gets overwritten when the other
8046 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8047 compiler_DEFAULT=$CC
8048
8049 # save warnings/boilerplate of simple test code
8050 ac_outfile=conftest.$ac_objext
8051 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8053 _lt_compiler_boilerplate=`cat conftest.err`
8054 $RM conftest*
8055
8056 ac_outfile=conftest.$ac_objext
8057 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8058 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8059 _lt_linker_boilerplate=`cat conftest.err`
8060 $RM -r conftest*
8061
8062
8063 if test -n "$compiler"; then
8064
8065 lt_prog_compiler_no_builtin_flag=
8066
8067 if test "$GCC" = yes; then
8068 case $cc_basename in
8069 nvcc*)
8070 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8071 *)
8072 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8073 esac
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8076 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8077 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 lt_cv_prog_compiler_rtti_exceptions=no
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8083 lt_compiler_flag="-fno-rtti -fno-exceptions"
8084 # Insert the option either (1) after the last *FLAGS variable, or
8085 # (2) before a word containing "conftest.", or (3) at the end.
8086 # Note that $ac_compile itself does not contain backslashes and begins
8087 # with a dollar sign (not a hyphen), so the echo should work correctly.
8088 # The option is referenced via a variable to avoid confusing sed.
8089 lt_compile=`echo "$ac_compile" | $SED \
8090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8092 -e 's:$: $lt_compiler_flag:'`
8093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8094 (eval "$lt_compile" 2>conftest.err)
8095 ac_status=$?
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 if (exit $ac_status) && test -s "$ac_outfile"; then
8099 # The compiler can only warn and ignore the option if not recognized
8100 # So say no if there are warnings other than the usual output.
8101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8104 lt_cv_prog_compiler_rtti_exceptions=yes
8105 fi
8106 fi
8107 $RM conftest*
8108
8109 fi
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8111 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8112
8113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8115 else
8116 :
8117 fi
8118
8119 fi
8120
8121
8122
8123
8124
8125
8126 lt_prog_compiler_wl=
8127 lt_prog_compiler_pic=
8128 lt_prog_compiler_static=
8129
8130
8131 if test "$GCC" = yes; then
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_static='-static'
8134
8135 case $host_os in
8136 aix*)
8137 # All AIX code is PIC.
8138 if test "$host_cpu" = ia64; then
8139 # AIX 5 now supports IA64 processor
8140 lt_prog_compiler_static='-Bstatic'
8141 fi
8142 ;;
8143
8144 amigaos*)
8145 case $host_cpu in
8146 powerpc)
8147 # see comment about AmigaOS4 .so support
8148 lt_prog_compiler_pic='-fPIC'
8149 ;;
8150 m68k)
8151 # FIXME: we need at least 68020 code to build shared libraries, but
8152 # adding the `-m68020' flag to GCC prevents building anything better,
8153 # like `-m68040'.
8154 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8155 ;;
8156 esac
8157 ;;
8158
8159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8160 # PIC is the default for these OSes.
8161 ;;
8162
8163 mingw* | cygwin* | pw32* | os2* | cegcc*)
8164 # This hack is so that the source file can tell whether it is being
8165 # built for inclusion in a dll (and should export symbols for example).
8166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8167 # (--disable-auto-import) libraries
8168 lt_prog_compiler_pic='-DDLL_EXPORT'
8169 ;;
8170
8171 darwin* | rhapsody*)
8172 # PIC is the default on this platform
8173 # Common symbols not allowed in MH_DYLIB files
8174 lt_prog_compiler_pic='-fno-common'
8175 ;;
8176
8177 haiku*)
8178 # PIC is the default for Haiku.
8179 # The "-static" flag exists, but is broken.
8180 lt_prog_compiler_static=
8181 ;;
8182
8183 hpux*)
8184 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8185 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8186 # sets the default TLS model and affects inlining.
8187 case $host_cpu in
8188 hppa*64*)
8189 # +Z the default
8190 ;;
8191 *)
8192 lt_prog_compiler_pic='-fPIC'
8193 ;;
8194 esac
8195 ;;
8196
8197 interix[3-9]*)
8198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8199 # Instead, we relocate shared libraries at runtime.
8200 ;;
8201
8202 msdosdjgpp*)
8203 # Just because we use GCC doesn't mean we suddenly get shared libraries
8204 # on systems that don't support them.
8205 lt_prog_compiler_can_build_shared=no
8206 enable_shared=no
8207 ;;
8208
8209 *nto* | *qnx*)
8210 # QNX uses GNU C++, but need to define -shared option too, otherwise
8211 # it will coredump.
8212 lt_prog_compiler_pic='-fPIC -shared'
8213 ;;
8214
8215 sysv4*MP*)
8216 if test -d /usr/nec; then
8217 lt_prog_compiler_pic=-Kconform_pic
8218 fi
8219 ;;
8220
8221 *)
8222 lt_prog_compiler_pic='-fPIC'
8223 ;;
8224 esac
8225
8226 case $cc_basename in
8227 nvcc*) # Cuda Compiler Driver 2.2
8228 lt_prog_compiler_wl='-Xlinker '
8229 if test -n "$lt_prog_compiler_pic"; then
8230 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8231 fi
8232 ;;
8233 esac
8234 else
8235 # PORTME Check for flag to pass linker flags through the system compiler.
8236 case $host_os in
8237 aix*)
8238 lt_prog_compiler_wl='-Wl,'
8239 if test "$host_cpu" = ia64; then
8240 # AIX 5 now supports IA64 processor
8241 lt_prog_compiler_static='-Bstatic'
8242 else
8243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8244 fi
8245 ;;
8246
8247 mingw* | cygwin* | pw32* | os2* | cegcc*)
8248 # This hack is so that the source file can tell whether it is being
8249 # built for inclusion in a dll (and should export symbols for example).
8250 lt_prog_compiler_pic='-DDLL_EXPORT'
8251 ;;
8252
8253 hpux9* | hpux10* | hpux11*)
8254 lt_prog_compiler_wl='-Wl,'
8255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8256 # not for PA HP-UX.
8257 case $host_cpu in
8258 hppa*64*|ia64*)
8259 # +Z the default
8260 ;;
8261 *)
8262 lt_prog_compiler_pic='+Z'
8263 ;;
8264 esac
8265 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8266 lt_prog_compiler_static='${wl}-a ${wl}archive'
8267 ;;
8268
8269 irix5* | irix6* | nonstopux*)
8270 lt_prog_compiler_wl='-Wl,'
8271 # PIC (with -KPIC) is the default.
8272 lt_prog_compiler_static='-non_shared'
8273 ;;
8274
8275 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8276 case $cc_basename in
8277 # old Intel for x86_64 which still supported -KPIC.
8278 ecc*)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-KPIC'
8281 lt_prog_compiler_static='-static'
8282 ;;
8283 # icc used to be incompatible with GCC.
8284 # ICC 10 doesn't accept -KPIC any more.
8285 icc* | ifort*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-fPIC'
8288 lt_prog_compiler_static='-static'
8289 ;;
8290 # Lahey Fortran 8.1.
8291 lf95*)
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_pic='--shared'
8294 lt_prog_compiler_static='--static'
8295 ;;
8296 nagfor*)
8297 # NAG Fortran compiler
8298 lt_prog_compiler_wl='-Wl,-Wl,,'
8299 lt_prog_compiler_pic='-PIC'
8300 lt_prog_compiler_static='-Bstatic'
8301 ;;
8302 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8303 # Portland Group compilers (*not* the Pentium gcc compiler,
8304 # which looks to be a dead project)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-fpic'
8307 lt_prog_compiler_static='-Bstatic'
8308 ;;
8309 ccc*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # All Alpha code is PIC.
8312 lt_prog_compiler_static='-non_shared'
8313 ;;
8314 xl* | bgxl* | bgf* | mpixl*)
8315 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-qpic'
8318 lt_prog_compiler_static='-qstaticlink'
8319 ;;
8320 *)
8321 case `$CC -V 2>&1 | sed 5q` in
8322 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8323 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8324 lt_prog_compiler_pic='-KPIC'
8325 lt_prog_compiler_static='-Bstatic'
8326 lt_prog_compiler_wl=''
8327 ;;
8328 *Sun\ F* | *Sun*Fortran*)
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-Bstatic'
8331 lt_prog_compiler_wl='-Qoption ld '
8332 ;;
8333 *Sun\ C*)
8334 # Sun C 5.9
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl='-Wl,'
8338 ;;
8339 *Intel*\ [CF]*Compiler*)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fPIC'
8342 lt_prog_compiler_static='-static'
8343 ;;
8344 *Portland\ Group*)
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_pic='-fpic'
8347 lt_prog_compiler_static='-Bstatic'
8348 ;;
8349 esac
8350 ;;
8351 esac
8352 ;;
8353
8354 newsos6)
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358
8359 *nto* | *qnx*)
8360 # QNX uses GNU C++, but need to define -shared option too, otherwise
8361 # it will coredump.
8362 lt_prog_compiler_pic='-fPIC -shared'
8363 ;;
8364
8365 osf3* | osf4* | osf5*)
8366 lt_prog_compiler_wl='-Wl,'
8367 # All OSF/1 code is PIC.
8368 lt_prog_compiler_static='-non_shared'
8369 ;;
8370
8371 rdos*)
8372 lt_prog_compiler_static='-non_shared'
8373 ;;
8374
8375 solaris*)
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 case $cc_basename in
8379 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8380 lt_prog_compiler_wl='-Qoption ld ';;
8381 *)
8382 lt_prog_compiler_wl='-Wl,';;
8383 esac
8384 ;;
8385
8386 sunos4*)
8387 lt_prog_compiler_wl='-Qoption ld '
8388 lt_prog_compiler_pic='-PIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391
8392 sysv4 | sysv4.2uw2* | sysv4.3*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec ;then
8400 lt_prog_compiler_pic='-Kconform_pic'
8401 lt_prog_compiler_static='-Bstatic'
8402 fi
8403 ;;
8404
8405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 ;;
8410
8411 unicos*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_can_build_shared=no
8414 ;;
8415
8416 uts4*)
8417 lt_prog_compiler_pic='-pic'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420
8421 *)
8422 lt_prog_compiler_can_build_shared=no
8423 ;;
8424 esac
8425 fi
8426
8427 case $host_os in
8428 # For platforms which do not support PIC, -DPIC is meaningless:
8429 *djgpp*)
8430 lt_prog_compiler_pic=
8431 ;;
8432 *)
8433 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8434 ;;
8435 esac
8436
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8438 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8439 if ${lt_cv_prog_compiler_pic+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8443 fi
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8445 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8446 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8447
8448 #
8449 # Check to make sure the PIC flag actually works.
8450 #
8451 if test -n "$lt_prog_compiler_pic"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8453 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8454 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 lt_cv_prog_compiler_pic_works=no
8458 ac_outfile=conftest.$ac_objext
8459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8460 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8461 # Insert the option either (1) after the last *FLAGS variable, or
8462 # (2) before a word containing "conftest.", or (3) at the end.
8463 # Note that $ac_compile itself does not contain backslashes and begins
8464 # with a dollar sign (not a hyphen), so the echo should work correctly.
8465 # The option is referenced via a variable to avoid confusing sed.
8466 lt_compile=`echo "$ac_compile" | $SED \
8467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8469 -e 's:$: $lt_compiler_flag:'`
8470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8471 (eval "$lt_compile" 2>conftest.err)
8472 ac_status=$?
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 if (exit $ac_status) && test -s "$ac_outfile"; then
8476 # The compiler can only warn and ignore the option if not recognized
8477 # So say no if there are warnings other than the usual output.
8478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8481 lt_cv_prog_compiler_pic_works=yes
8482 fi
8483 fi
8484 $RM conftest*
8485
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8488 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8489
8490 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8491 case $lt_prog_compiler_pic in
8492 "" | " "*) ;;
8493 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8494 esac
8495 else
8496 lt_prog_compiler_pic=
8497 lt_prog_compiler_can_build_shared=no
8498 fi
8499
8500 fi
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512 #
8513 # Check to make sure the static flag actually works.
8514 #
8515 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8517 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8518 if ${lt_cv_prog_compiler_static_works+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_static_works=no
8522 save_LDFLAGS="$LDFLAGS"
8523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8526 # The linker can only warn and ignore the option if not recognized
8527 # So say no if there are warnings
8528 if test -s conftest.err; then
8529 # Append any errors to the config.log.
8530 cat conftest.err 1>&5
8531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8533 if diff conftest.exp conftest.er2 >/dev/null; then
8534 lt_cv_prog_compiler_static_works=yes
8535 fi
8536 else
8537 lt_cv_prog_compiler_static_works=yes
8538 fi
8539 fi
8540 $RM -r conftest*
8541 LDFLAGS="$save_LDFLAGS"
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8545 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8546
8547 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8548 :
8549 else
8550 lt_prog_compiler_static=
8551 fi
8552
8553
8554
8555
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8561 if ${lt_cv_prog_compiler_c_o+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 lt_cv_prog_compiler_c_o=no
8565 $RM -r conftest 2>/dev/null
8566 mkdir conftest
8567 cd conftest
8568 mkdir out
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 lt_compiler_flag="-o out/conftest2.$ac_objext"
8572 # Insert the option either (1) after the last *FLAGS variable, or
8573 # (2) before a word containing "conftest.", or (3) at the end.
8574 # Note that $ac_compile itself does not contain backslashes and begins
8575 # with a dollar sign (not a hyphen), so the echo should work correctly.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581 (eval "$lt_compile" 2>out/conftest.err)
8582 ac_status=$?
8583 cat out/conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8586 then
8587 # The compiler can only warn and ignore the option if not recognized
8588 # So say no if there are warnings
8589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8592 lt_cv_prog_compiler_c_o=yes
8593 fi
8594 fi
8595 chmod u+w . 2>&5
8596 $RM conftest*
8597 # SGI C++ compiler will create directory out/ii_files/ for
8598 # template instantiation
8599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8600 $RM out/* && rmdir out
8601 cd ..
8602 $RM -r conftest
8603 $RM conftest*
8604
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8607 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8608
8609
8610
8611
8612
8613
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8615 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8616 if ${lt_cv_prog_compiler_c_o+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 lt_cv_prog_compiler_c_o=no
8620 $RM -r conftest 2>/dev/null
8621 mkdir conftest
8622 cd conftest
8623 mkdir out
8624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625
8626 lt_compiler_flag="-o out/conftest2.$ac_objext"
8627 # Insert the option either (1) after the last *FLAGS variable, or
8628 # (2) before a word containing "conftest.", or (3) at the end.
8629 # Note that $ac_compile itself does not contain backslashes and begins
8630 # with a dollar sign (not a hyphen), so the echo should work correctly.
8631 lt_compile=`echo "$ac_compile" | $SED \
8632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634 -e 's:$: $lt_compiler_flag:'`
8635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8636 (eval "$lt_compile" 2>out/conftest.err)
8637 ac_status=$?
8638 cat out/conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8641 then
8642 # The compiler can only warn and ignore the option if not recognized
8643 # So say no if there are warnings
8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_c_o=yes
8648 fi
8649 fi
8650 chmod u+w . 2>&5
8651 $RM conftest*
8652 # SGI C++ compiler will create directory out/ii_files/ for
8653 # template instantiation
8654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8655 $RM out/* && rmdir out
8656 cd ..
8657 $RM -r conftest
8658 $RM conftest*
8659
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8662 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8663
8664
8665
8666
8667 hard_links="nottested"
8668 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8669 # do not overwrite the value of need_locks provided by the user
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8671 $as_echo_n "checking if we can lock with hard links... " >&6; }
8672 hard_links=yes
8673 $RM conftest*
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 touch conftest.a
8676 ln conftest.a conftest.b 2>&5 || hard_links=no
8677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8679 $as_echo "$hard_links" >&6; }
8680 if test "$hard_links" = no; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8682 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8683 need_locks=warn
8684 fi
8685 else
8686 need_locks=no
8687 fi
8688
8689
8690
8691
8692
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8696
8697 runpath_var=
8698 allow_undefined_flag=
8699 always_export_symbols=no
8700 archive_cmds=
8701 archive_expsym_cmds=
8702 compiler_needs_object=no
8703 enable_shared_with_static_runtimes=no
8704 export_dynamic_flag_spec=
8705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8706 hardcode_automatic=no
8707 hardcode_direct=no
8708 hardcode_direct_absolute=no
8709 hardcode_libdir_flag_spec=
8710 hardcode_libdir_separator=
8711 hardcode_minus_L=no
8712 hardcode_shlibpath_var=unsupported
8713 inherit_rpath=no
8714 link_all_deplibs=unknown
8715 module_cmds=
8716 module_expsym_cmds=
8717 old_archive_from_new_cmds=
8718 old_archive_from_expsyms_cmds=
8719 thread_safe_flag_spec=
8720 whole_archive_flag_spec=
8721 # include_expsyms should be a list of space-separated symbols to be *always*
8722 # included in the symbol list
8723 include_expsyms=
8724 # exclude_expsyms can be an extended regexp of symbols to exclude
8725 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8726 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8727 # as well as any symbol that contains `d'.
8728 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8729 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8730 # platforms (ab)use it in PIC code, but their linkers get confused if
8731 # the symbol is explicitly referenced. Since portable code cannot
8732 # rely on this symbol name, it's probably fine to never include it in
8733 # preloaded symbol tables.
8734 # Exclude shared library initialization/finalization symbols.
8735 extract_expsyms_cmds=
8736
8737 case $host_os in
8738 cygwin* | mingw* | pw32* | cegcc*)
8739 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8740 # When not using gcc, we currently assume that we are using
8741 # Microsoft Visual C++.
8742 if test "$GCC" != yes; then
8743 with_gnu_ld=no
8744 fi
8745 ;;
8746 interix*)
8747 # we just hope/assume this is gcc and not c89 (= MSVC++)
8748 with_gnu_ld=yes
8749 ;;
8750 openbsd*)
8751 with_gnu_ld=no
8752 ;;
8753 linux* | k*bsd*-gnu | gnu*)
8754 link_all_deplibs=no
8755 ;;
8756 esac
8757
8758 ld_shlibs=yes
8759
8760 # On some targets, GNU ld is compatible enough with the native linker
8761 # that we're better off using the native interface for both.
8762 lt_use_gnu_ld_interface=no
8763 if test "$with_gnu_ld" = yes; then
8764 case $host_os in
8765 aix*)
8766 # The AIX port of GNU ld has always aspired to compatibility
8767 # with the native linker. However, as the warning in the GNU ld
8768 # block says, versions before 2.19.5* couldn't really create working
8769 # shared libraries, regardless of the interface used.
8770 case `$LD -v 2>&1` in
8771 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8772 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8773 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8774 *)
8775 lt_use_gnu_ld_interface=yes
8776 ;;
8777 esac
8778 ;;
8779 *)
8780 lt_use_gnu_ld_interface=yes
8781 ;;
8782 esac
8783 fi
8784
8785 if test "$lt_use_gnu_ld_interface" = yes; then
8786 # If archive_cmds runs LD, not CC, wlarc should be empty
8787 wlarc='${wl}'
8788
8789 # Set some defaults for GNU ld with shared library support. These
8790 # are reset later if shared libraries are not supported. Putting them
8791 # here allows them to be overridden if necessary.
8792 runpath_var=LD_RUN_PATH
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 export_dynamic_flag_spec='${wl}--export-dynamic'
8795 # ancient GNU ld didn't support --whole-archive et. al.
8796 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8797 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8798 else
8799 whole_archive_flag_spec=
8800 fi
8801 supports_anon_versioning=no
8802 case `$LD -v 2>&1` in
8803 *GNU\ gold*) supports_anon_versioning=yes ;;
8804 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8805 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8806 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8807 *\ 2.11.*) ;; # other 2.11 versions
8808 *) supports_anon_versioning=yes ;;
8809 esac
8810
8811 # See if GNU ld supports shared libraries.
8812 case $host_os in
8813 aix[3-9]*)
8814 # On AIX/PPC, the GNU linker is very broken
8815 if test "$host_cpu" != ia64; then
8816 ld_shlibs=no
8817 cat <<_LT_EOF 1>&2
8818
8819 *** Warning: the GNU linker, at least up to release 2.19, is reported
8820 *** to be unable to reliably create shared libraries on AIX.
8821 *** Therefore, libtool is disabling shared libraries support. If you
8822 *** really care for shared libraries, you may want to install binutils
8823 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8824 *** You will then need to restart the configuration process.
8825
8826 _LT_EOF
8827 fi
8828 ;;
8829
8830 amigaos*)
8831 case $host_cpu in
8832 powerpc)
8833 # see comment about AmigaOS4 .so support
8834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds=''
8836 ;;
8837 m68k)
8838 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)'
8839 hardcode_libdir_flag_spec='-L$libdir'
8840 hardcode_minus_L=yes
8841 ;;
8842 esac
8843 ;;
8844
8845 beos*)
8846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8847 allow_undefined_flag=unsupported
8848 # Joseph Beckenbach <[email protected]> says some releases of gcc
8849 # support --undefined. This deserves some investigation. FIXME
8850 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 else
8852 ld_shlibs=no
8853 fi
8854 ;;
8855
8856 cygwin* | mingw* | pw32* | cegcc*)
8857 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8858 # as there is no search path for DLLs.
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 export_dynamic_flag_spec='${wl}--export-all-symbols'
8861 allow_undefined_flag=unsupported
8862 always_export_symbols=no
8863 enable_shared_with_static_runtimes=yes
8864 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'
8865 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8866
8867 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8869 # If the export-symbols file already is a .def file (1st line
8870 # is EXPORTS), use it as is; otherwise, prepend...
8871 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8872 cp $export_symbols $output_objdir/$soname.def;
8873 else
8874 echo EXPORTS > $output_objdir/$soname.def;
8875 cat $export_symbols >> $output_objdir/$soname.def;
8876 fi~
8877 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8878 else
8879 ld_shlibs=no
8880 fi
8881 ;;
8882
8883 haiku*)
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 link_all_deplibs=yes
8886 ;;
8887
8888 interix[3-9]*)
8889 hardcode_direct=no
8890 hardcode_shlibpath_var=no
8891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8892 export_dynamic_flag_spec='${wl}-E'
8893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8894 # Instead, shared libraries are loaded at an image base (0x10000000 by
8895 # default) and relocated if they conflict, which is a slow very memory
8896 # consuming and fragmenting process. To avoid this, we pick a random,
8897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8898 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8900 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'
8901 ;;
8902
8903 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8904 tmp_diet=no
8905 if test "$host_os" = linux-dietlibc; then
8906 case $cc_basename in
8907 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8908 esac
8909 fi
8910 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8911 && test "$tmp_diet" = no
8912 then
8913 tmp_addflag=' $pic_flag'
8914 tmp_sharedflag='-shared'
8915 case $cc_basename,$host_cpu in
8916 pgcc*) # Portland Group C compiler
8917 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'
8918 tmp_addflag=' $pic_flag'
8919 ;;
8920 pgf77* | pgf90* | pgf95* | pgfortran*)
8921 # Portland Group f77 and f90 compilers
8922 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'
8923 tmp_addflag=' $pic_flag -Mnomain' ;;
8924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8925 tmp_addflag=' -i_dynamic' ;;
8926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8927 tmp_addflag=' -i_dynamic -nofor_main' ;;
8928 ifc* | ifort*) # Intel Fortran compiler
8929 tmp_addflag=' -nofor_main' ;;
8930 lf95*) # Lahey Fortran 8.1
8931 whole_archive_flag_spec=
8932 tmp_sharedflag='--shared' ;;
8933 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8934 tmp_sharedflag='-qmkshrobj'
8935 tmp_addflag= ;;
8936 nvcc*) # Cuda Compiler Driver 2.2
8937 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'
8938 compiler_needs_object=yes
8939 ;;
8940 esac
8941 case `$CC -V 2>&1 | sed 5q` in
8942 *Sun\ C*) # Sun C 5.9
8943 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'
8944 compiler_needs_object=yes
8945 tmp_sharedflag='-G' ;;
8946 *Sun\ F*) # Sun Fortran 8.3
8947 tmp_sharedflag='-G' ;;
8948 esac
8949 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8956 fi
8957
8958 case $cc_basename in
8959 xlf* | bgf* | bgxlf* | mpixlf*)
8960 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8961 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8964 if test "x$supports_anon_versioning" = xyes; then
8965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8967 echo "local: *; };" >> $output_objdir/$libname.ver~
8968 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8969 fi
8970 ;;
8971 esac
8972 else
8973 ld_shlibs=no
8974 fi
8975 ;;
8976
8977 netbsd* | netbsdelf*-gnu)
8978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8979 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8980 wlarc=
8981 else
8982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 fi
8985 ;;
8986
8987 solaris*)
8988 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8989 ld_shlibs=no
8990 cat <<_LT_EOF 1>&2
8991
8992 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8993 *** create shared libraries on Solaris systems. Therefore, libtool
8994 *** is disabling shared libraries support. We urge you to upgrade GNU
8995 *** binutils to release 2.9.1 or newer. Another option is to modify
8996 *** your PATH or compiler configuration so that the native linker is
8997 *** used, and then restart.
8998
8999 _LT_EOF
9000 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9003 else
9004 ld_shlibs=no
9005 fi
9006 ;;
9007
9008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9009 case `$LD -v 2>&1` in
9010 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9015 *** reliably create shared libraries on SCO systems. Therefore, libtool
9016 *** is disabling shared libraries support. We urge you to upgrade GNU
9017 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9018 *** your PATH or compiler configuration so that the native linker is
9019 *** used, and then restart.
9020
9021 _LT_EOF
9022 ;;
9023 *)
9024 # For security reasons, it is highly recommended that you always
9025 # use absolute paths for naming shared libraries, and exclude the
9026 # DT_RUNPATH tag from executables and libraries. But doing so
9027 # requires that you compile everything twice, which is a pain.
9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
9036 esac
9037 ;;
9038
9039 sunos4*)
9040 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9041 wlarc=
9042 hardcode_direct=yes
9043 hardcode_shlibpath_var=no
9044 ;;
9045
9046 *)
9047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9050 else
9051 ld_shlibs=no
9052 fi
9053 ;;
9054 esac
9055
9056 if test "$ld_shlibs" = no; then
9057 runpath_var=
9058 hardcode_libdir_flag_spec=
9059 export_dynamic_flag_spec=
9060 whole_archive_flag_spec=
9061 fi
9062 else
9063 # PORTME fill in a description of your system's linker (not GNU ld)
9064 case $host_os in
9065 aix3*)
9066 allow_undefined_flag=unsupported
9067 always_export_symbols=yes
9068 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'
9069 # Note: this linker hardcodes the directories in LIBPATH if there
9070 # are no directories specified by -L.
9071 hardcode_minus_L=yes
9072 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9073 # Neither direct hardcoding nor static linking is supported with a
9074 # broken collect2.
9075 hardcode_direct=unsupported
9076 fi
9077 ;;
9078
9079 aix[4-9]*)
9080 if test "$host_cpu" = ia64; then
9081 # On IA64, the linker does run time linking by default, so we don't
9082 # have to do anything special.
9083 aix_use_runtimelinking=no
9084 exp_sym_flag='-Bexport'
9085 no_entry_flag=""
9086 else
9087 # If we're using GNU nm, then we don't want the "-C" option.
9088 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9089 # Also, AIX nm treats weak defined symbols like other global
9090 # defined symbols, whereas GNU nm marks them as "W".
9091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9092 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9093 else
9094 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9095 fi
9096 aix_use_runtimelinking=no
9097
9098 # Test if we are trying to use run time linking or normal
9099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9100 # need to do runtime linking.
9101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9102 for ld_flag in $LDFLAGS; do
9103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9104 aix_use_runtimelinking=yes
9105 break
9106 fi
9107 done
9108 ;;
9109 esac
9110
9111 exp_sym_flag='-bexport'
9112 no_entry_flag='-bnoentry'
9113 fi
9114
9115 # When large executables or shared objects are built, AIX ld can
9116 # have problems creating the table of contents. If linking a library
9117 # or program results in "error TOC overflow" add -mminimal-toc to
9118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9120
9121 archive_cmds=''
9122 hardcode_direct=yes
9123 hardcode_direct_absolute=yes
9124 hardcode_libdir_separator=':'
9125 link_all_deplibs=yes
9126 file_list_spec='${wl}-f,'
9127
9128 if test "$GCC" = yes; then
9129 case $host_os in aix4.[012]|aix4.[012].*)
9130 # We only want to do this on AIX 4.2 and lower, the check
9131 # below for broken collect2 doesn't work under 4.3+
9132 collect2name=`${CC} -print-prog-name=collect2`
9133 if test -f "$collect2name" &&
9134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9135 then
9136 # We have reworked collect2
9137 :
9138 else
9139 # We have old collect2
9140 hardcode_direct=unsupported
9141 # It fails to find uninstalled libraries when the uninstalled
9142 # path is not listed in the libpath. Setting hardcode_minus_L
9143 # to unsupported forces relinking
9144 hardcode_minus_L=yes
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_libdir_separator=
9147 fi
9148 ;;
9149 esac
9150 shared_flag='-shared'
9151 if test "$aix_use_runtimelinking" = yes; then
9152 shared_flag="$shared_flag "'${wl}-G'
9153 fi
9154 link_all_deplibs=no
9155 else
9156 # not using gcc
9157 if test "$host_cpu" = ia64; then
9158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9159 # chokes on -Wl,-G. The following line is correct:
9160 shared_flag='-G'
9161 else
9162 if test "$aix_use_runtimelinking" = yes; then
9163 shared_flag='${wl}-G'
9164 else
9165 shared_flag='${wl}-bM:SRE'
9166 fi
9167 fi
9168 fi
9169
9170 export_dynamic_flag_spec='${wl}-bexpall'
9171 # It seems that -bexpall does not export symbols beginning with
9172 # underscore (_), so it is better to generate a list of symbols to export.
9173 always_export_symbols=yes
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # Warning - without using the other runtime loading flags (-brtl),
9176 # -berok will link without error, but may produce a broken library.
9177 allow_undefined_flag='-berok'
9178 # Determine the default libpath from the value encoded in an
9179 # empty executable.
9180 if test "${lt_cv_aix_libpath+set}" = set; then
9181 aix_libpath=$lt_cv_aix_libpath
9182 else
9183 if ${lt_cv_aix_libpath_+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188
9189 int
9190 main ()
9191 {
9192
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"; then :
9198
9199 lt_aix_libpath_sed='
9200 /Import File Strings/,/^$/ {
9201 /^0/ {
9202 s/^0 *\([^ ]*\) *$/\1/
9203 p
9204 }
9205 }'
9206 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 # Check for a 64-bit object if we didn't find anything.
9208 if test -z "$lt_cv_aix_libpath_"; then
9209 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 fi
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 if test -z "$lt_cv_aix_libpath_"; then
9215 lt_cv_aix_libpath_="/usr/lib:/lib"
9216 fi
9217
9218 fi
9219
9220 aix_libpath=$lt_cv_aix_libpath_
9221 fi
9222
9223 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9224 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9225 else
9226 if test "$host_cpu" = ia64; then
9227 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9228 allow_undefined_flag="-z nodefs"
9229 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"
9230 else
9231 # Determine the default libpath from the value encoded in an
9232 # empty executable.
9233 if test "${lt_cv_aix_libpath+set}" = set; then
9234 aix_libpath=$lt_cv_aix_libpath
9235 else
9236 if ${lt_cv_aix_libpath_+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241
9242 int
9243 main ()
9244 {
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251
9252 lt_aix_libpath_sed='
9253 /Import File Strings/,/^$/ {
9254 /^0/ {
9255 s/^0 *\([^ ]*\) *$/\1/
9256 p
9257 }
9258 }'
9259 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260 # Check for a 64-bit object if we didn't find anything.
9261 if test -z "$lt_cv_aix_libpath_"; then
9262 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263 fi
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 if test -z "$lt_cv_aix_libpath_"; then
9268 lt_cv_aix_libpath_="/usr/lib:/lib"
9269 fi
9270
9271 fi
9272
9273 aix_libpath=$lt_cv_aix_libpath_
9274 fi
9275
9276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9277 # Warning - without using the other run time loading flags,
9278 # -berok will link without error, but may produce a broken library.
9279 no_undefined_flag=' ${wl}-bernotok'
9280 allow_undefined_flag=' ${wl}-berok'
9281 if test "$with_gnu_ld" = yes; then
9282 # We only use this code for GNU lds that support --whole-archive.
9283 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9284 else
9285 # Exported symbols can be pulled into shared objects from archives
9286 whole_archive_flag_spec='$convenience'
9287 fi
9288 archive_cmds_need_lc=yes
9289 # This is similar to how AIX traditionally builds its shared libraries.
9290 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9291 fi
9292 fi
9293 ;;
9294
9295 amigaos*)
9296 case $host_cpu in
9297 powerpc)
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9301 ;;
9302 m68k)
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9306 ;;
9307 esac
9308 ;;
9309
9310 bsdi[45]*)
9311 export_dynamic_flag_spec=-rdynamic
9312 ;;
9313
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # When not using gcc, we currently assume that we are using
9316 # Microsoft Visual C++.
9317 # hardcode_libdir_flag_spec is actually meaningless, as there is
9318 # no search path for DLLs.
9319 case $cc_basename in
9320 cl*)
9321 # Native MSVC
9322 hardcode_libdir_flag_spec=' '
9323 allow_undefined_flag=unsupported
9324 always_export_symbols=yes
9325 file_list_spec='@'
9326 # Tell ltmain to make .lib files, not .a files.
9327 libext=lib
9328 # Tell ltmain to make .dll files, not .so files.
9329 shrext_cmds=".dll"
9330 # FIXME: Setting linknames here is a bad hack.
9331 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9332 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9334 else
9335 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9336 fi~
9337 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9338 linknames='
9339 # The linker will not automatically build a static lib if we build a DLL.
9340 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9341 enable_shared_with_static_runtimes=yes
9342 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9344 # Don't use ranlib
9345 old_postinstall_cmds='chmod 644 $oldlib'
9346 postlink_cmds='lt_outputfile="@OUTPUT@"~
9347 lt_tool_outputfile="@TOOL_OUTPUT@"~
9348 case $lt_outputfile in
9349 *.exe|*.EXE) ;;
9350 *)
9351 lt_outputfile="$lt_outputfile.exe"
9352 lt_tool_outputfile="$lt_tool_outputfile.exe"
9353 ;;
9354 esac~
9355 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9356 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9357 $RM "$lt_outputfile.manifest";
9358 fi'
9359 ;;
9360 *)
9361 # Assume MSVC wrapper
9362 hardcode_libdir_flag_spec=' '
9363 allow_undefined_flag=unsupported
9364 # Tell ltmain to make .lib files, not .a files.
9365 libext=lib
9366 # Tell ltmain to make .dll files, not .so files.
9367 shrext_cmds=".dll"
9368 # FIXME: Setting linknames here is a bad hack.
9369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9370 # The linker will automatically build a .lib file if we build a DLL.
9371 old_archive_from_new_cmds='true'
9372 # FIXME: Should let the user specify the lib program.
9373 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9374 enable_shared_with_static_runtimes=yes
9375 ;;
9376 esac
9377 ;;
9378
9379 darwin* | rhapsody*)
9380
9381
9382 archive_cmds_need_lc=no
9383 hardcode_direct=no
9384 hardcode_automatic=yes
9385 hardcode_shlibpath_var=unsupported
9386 if test "$lt_cv_ld_force_load" = "yes"; then
9387 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\"`'
9388
9389 else
9390 whole_archive_flag_spec=''
9391 fi
9392 link_all_deplibs=yes
9393 allow_undefined_flag="$_lt_dar_allow_undefined"
9394 case $cc_basename in
9395 ifort*) _lt_dar_can_shared=yes ;;
9396 *) _lt_dar_can_shared=$GCC ;;
9397 esac
9398 if test "$_lt_dar_can_shared" = "yes"; then
9399 output_verbose_link_cmd=func_echo_all
9400 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9401 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9402 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}"
9403 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}"
9404
9405 else
9406 ld_shlibs=no
9407 fi
9408
9409 ;;
9410
9411 dgux*)
9412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9413 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_shlibpath_var=no
9415 ;;
9416
9417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9418 # support. Future versions do this automatically, but an explicit c++rt0.o
9419 # does not break anything, and helps significantly (at the cost of a little
9420 # extra space).
9421 freebsd2.2*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 hardcode_direct=yes
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9429 freebsd2.*)
9430 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9431 hardcode_direct=yes
9432 hardcode_minus_L=yes
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9437 freebsd* | dragonfly*)
9438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9439 hardcode_libdir_flag_spec='-R$libdir'
9440 hardcode_direct=yes
9441 hardcode_shlibpath_var=no
9442 ;;
9443
9444 hpux9*)
9445 if test "$GCC" = yes; then
9446 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9447 else
9448 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9449 fi
9450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9451 hardcode_libdir_separator=:
9452 hardcode_direct=yes
9453
9454 # hardcode_minus_L: Not really in the search PATH,
9455 # but as the default location of the library.
9456 hardcode_minus_L=yes
9457 export_dynamic_flag_spec='${wl}-E'
9458 ;;
9459
9460 hpux10*)
9461 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9462 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463 else
9464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9465 fi
9466 if test "$with_gnu_ld" = no; then
9467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469 hardcode_direct=yes
9470 hardcode_direct_absolute=yes
9471 export_dynamic_flag_spec='${wl}-E'
9472 # hardcode_minus_L: Not really in the search PATH,
9473 # but as the default location of the library.
9474 hardcode_minus_L=yes
9475 fi
9476 ;;
9477
9478 hpux11*)
9479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9480 case $host_cpu in
9481 hppa*64*)
9482 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 ;;
9484 ia64*)
9485 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9486 ;;
9487 *)
9488 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9489 ;;
9490 esac
9491 else
9492 case $host_cpu in
9493 hppa*64*)
9494 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 ;;
9496 ia64*)
9497 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9498 ;;
9499 *)
9500
9501 # Older versions of the 11.00 compiler do not understand -b yet
9502 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9504 $as_echo_n "checking if $CC understands -b... " >&6; }
9505 if ${lt_cv_prog_compiler__b+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 lt_cv_prog_compiler__b=no
9509 save_LDFLAGS="$LDFLAGS"
9510 LDFLAGS="$LDFLAGS -b"
9511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9513 # The linker can only warn and ignore the option if not recognized
9514 # So say no if there are warnings
9515 if test -s conftest.err; then
9516 # Append any errors to the config.log.
9517 cat conftest.err 1>&5
9518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9520 if diff conftest.exp conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler__b=yes
9522 fi
9523 else
9524 lt_cv_prog_compiler__b=yes
9525 fi
9526 fi
9527 $RM -r conftest*
9528 LDFLAGS="$save_LDFLAGS"
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9532 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9533
9534 if test x"$lt_cv_prog_compiler__b" = xyes; then
9535 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9536 else
9537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9538 fi
9539
9540 ;;
9541 esac
9542 fi
9543 if test "$with_gnu_ld" = no; then
9544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546
9547 case $host_cpu in
9548 hppa*64*|ia64*)
9549 hardcode_direct=no
9550 hardcode_shlibpath_var=no
9551 ;;
9552 *)
9553 hardcode_direct=yes
9554 hardcode_direct_absolute=yes
9555 export_dynamic_flag_spec='${wl}-E'
9556
9557 # hardcode_minus_L: Not really in the search PATH,
9558 # but as the default location of the library.
9559 hardcode_minus_L=yes
9560 ;;
9561 esac
9562 fi
9563 ;;
9564
9565 irix5* | irix6* | nonstopux*)
9566 if test "$GCC" = yes; then
9567 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'
9568 # Try to use the -exported_symbol ld option, if it does not
9569 # work, assume that -exports_file does not work either and
9570 # implicitly export all symbols.
9571 # This should be the same for all languages, so no per-tag cache variable.
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9573 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9574 if ${lt_cv_irix_exported_symbol+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 save_LDFLAGS="$LDFLAGS"
9578 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int foo (void) { return 0; }
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"; then :
9584 lt_cv_irix_exported_symbol=yes
9585 else
9586 lt_cv_irix_exported_symbol=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LDFLAGS="$save_LDFLAGS"
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9593 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9594 if test "$lt_cv_irix_exported_symbol" = yes; then
9595 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'
9596 fi
9597 else
9598 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'
9599 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'
9600 fi
9601 archive_cmds_need_lc='no'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 hardcode_libdir_separator=:
9604 inherit_rpath=yes
9605 link_all_deplibs=yes
9606 ;;
9607
9608 netbsd* | netbsdelf*-gnu)
9609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9611 else
9612 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9613 fi
9614 hardcode_libdir_flag_spec='-R$libdir'
9615 hardcode_direct=yes
9616 hardcode_shlibpath_var=no
9617 ;;
9618
9619 newsos6)
9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=yes
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
9624 hardcode_shlibpath_var=no
9625 ;;
9626
9627 *nto* | *qnx*)
9628 ;;
9629
9630 openbsd*)
9631 if test -f /usr/libexec/ld.so; then
9632 hardcode_direct=yes
9633 hardcode_shlibpath_var=no
9634 hardcode_direct_absolute=yes
9635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9639 export_dynamic_flag_spec='${wl}-E'
9640 else
9641 case $host_os in
9642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9644 hardcode_libdir_flag_spec='-R$libdir'
9645 ;;
9646 *)
9647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9649 ;;
9650 esac
9651 fi
9652 else
9653 ld_shlibs=no
9654 fi
9655 ;;
9656
9657 os2*)
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_minus_L=yes
9660 allow_undefined_flag=unsupported
9661 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9662 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9663 ;;
9664
9665 osf3*)
9666 if test "$GCC" = yes; then
9667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9668 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'
9669 else
9670 allow_undefined_flag=' -expect_unresolved \*'
9671 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'
9672 fi
9673 archive_cmds_need_lc='no'
9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9675 hardcode_libdir_separator=:
9676 ;;
9677
9678 osf4* | osf5*) # as osf3* with the addition of -msym flag
9679 if test "$GCC" = yes; then
9680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9681 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'
9682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9683 else
9684 allow_undefined_flag=' -expect_unresolved \*'
9685 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'
9686 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~
9687 $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'
9688
9689 # Both c and cxx compiler support -rpath directly
9690 hardcode_libdir_flag_spec='-rpath $libdir'
9691 fi
9692 archive_cmds_need_lc='no'
9693 hardcode_libdir_separator=:
9694 ;;
9695
9696 solaris*)
9697 no_undefined_flag=' -z defs'
9698 if test "$GCC" = yes; then
9699 wlarc='${wl}'
9700 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $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'
9703 else
9704 case `$CC -V 2>&1` in
9705 *"Compilers 5.0"*)
9706 wlarc=''
9707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9710 ;;
9711 *)
9712 wlarc='${wl}'
9713 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9715 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9716 ;;
9717 esac
9718 fi
9719 hardcode_libdir_flag_spec='-R$libdir'
9720 hardcode_shlibpath_var=no
9721 case $host_os in
9722 solaris2.[0-5] | solaris2.[0-5].*) ;;
9723 *)
9724 # The compiler driver will combine and reorder linker options,
9725 # but understands `-z linker_flag'. GCC discards it without `$wl',
9726 # but is careful enough not to reorder.
9727 # Supported since Solaris 2.6 (maybe 2.5.1?)
9728 if test "$GCC" = yes; then
9729 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9730 else
9731 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9732 fi
9733 ;;
9734 esac
9735 link_all_deplibs=yes
9736 ;;
9737
9738 sunos4*)
9739 if test "x$host_vendor" = xsequent; then
9740 # Use $CC to link under sequent, because it throws in some extra .o
9741 # files that make .init and .fini sections work.
9742 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9745 fi
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_direct=yes
9748 hardcode_minus_L=yes
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 sysv4)
9753 case $host_vendor in
9754 sni)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_direct=yes # is this really true???
9757 ;;
9758 siemens)
9759 ## LD is ld it makes a PLAMLIB
9760 ## CC just makes a GrossModule.
9761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9762 reload_cmds='$CC -r -o $output$reload_objs'
9763 hardcode_direct=no
9764 ;;
9765 motorola)
9766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9768 ;;
9769 esac
9770 runpath_var='LD_RUN_PATH'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 sysv4.3*)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 export_dynamic_flag_spec='-Bexport'
9778 ;;
9779
9780 sysv4*MP*)
9781 if test -d /usr/nec; then
9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 hardcode_shlibpath_var=no
9784 runpath_var=LD_RUN_PATH
9785 hardcode_runpath_var=yes
9786 ld_shlibs=yes
9787 fi
9788 ;;
9789
9790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9791 no_undefined_flag='${wl}-z,text'
9792 archive_cmds_need_lc=no
9793 hardcode_shlibpath_var=no
9794 runpath_var='LD_RUN_PATH'
9795
9796 if test "$GCC" = yes; then
9797 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 else
9800 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 fi
9803 ;;
9804
9805 sysv5* | sco3.2v5* | sco5v6*)
9806 # Note: We can NOT use -z defs as we might desire, because we do not
9807 # link with -lc, and that would cause any symbols used from libc to
9808 # always be unresolved, which means just about no library would
9809 # ever link correctly. If we're not using GNU ld we use -z text
9810 # though, which does catch some bad symbols but isn't as heavy-handed
9811 # as -z defs.
9812 no_undefined_flag='${wl}-z,text'
9813 allow_undefined_flag='${wl}-z,nodefs'
9814 archive_cmds_need_lc=no
9815 hardcode_shlibpath_var=no
9816 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9817 hardcode_libdir_separator=':'
9818 link_all_deplibs=yes
9819 export_dynamic_flag_spec='${wl}-Bexport'
9820 runpath_var='LD_RUN_PATH'
9821
9822 if test "$GCC" = yes; then
9823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 else
9826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 fi
9829 ;;
9830
9831 uts4*)
9832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec='-L$libdir'
9834 hardcode_shlibpath_var=no
9835 ;;
9836
9837 *)
9838 ld_shlibs=no
9839 ;;
9840 esac
9841
9842 if test x$host_vendor = xsni; then
9843 case $host in
9844 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9845 export_dynamic_flag_spec='${wl}-Blargedynsym'
9846 ;;
9847 esac
9848 fi
9849 fi
9850
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9852 $as_echo "$ld_shlibs" >&6; }
9853 test "$ld_shlibs" = no && can_build_shared=no
9854
9855 with_gnu_ld=$with_gnu_ld
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 #
9872 # Do we need to explicitly link libc?
9873 #
9874 case "x$archive_cmds_need_lc" in
9875 x|xyes)
9876 # Assume -lc should be added
9877 archive_cmds_need_lc=yes
9878
9879 if test "$enable_shared" = yes && test "$GCC" = yes; then
9880 case $archive_cmds in
9881 *'~'*)
9882 # FIXME: we may have to deal with multi-command sequences.
9883 ;;
9884 '$CC '*)
9885 # Test whether the compiler implicitly links with -lc since on some
9886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9887 # to ld, don't add -lc before -lgcc.
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9889 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9890 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 $RM conftest*
9894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9895
9896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9897 (eval $ac_compile) 2>&5
9898 ac_status=$?
9899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9900 test $ac_status = 0; } 2>conftest.err; then
9901 soname=conftest
9902 lib=conftest
9903 libobjs=conftest.$ac_objext
9904 deplibs=
9905 wl=$lt_prog_compiler_wl
9906 pic_flag=$lt_prog_compiler_pic
9907 compiler_flags=-v
9908 linker_flags=-v
9909 verstring=
9910 output_objdir=.
9911 libname=conftest
9912 lt_save_allow_undefined_flag=$allow_undefined_flag
9913 allow_undefined_flag=
9914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9915 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9916 ac_status=$?
9917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9918 test $ac_status = 0; }
9919 then
9920 lt_cv_archive_cmds_need_lc=no
9921 else
9922 lt_cv_archive_cmds_need_lc=yes
9923 fi
9924 allow_undefined_flag=$lt_save_allow_undefined_flag
9925 else
9926 cat conftest.err 1>&5
9927 fi
9928 $RM conftest*
9929
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9932 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9933 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9934 ;;
9935 esac
9936 fi
9937 ;;
9938 esac
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10092 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10093
10094 if test "$GCC" = yes; then
10095 case $host_os in
10096 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10097 *) lt_awk_arg="/^libraries:/" ;;
10098 esac
10099 case $host_os in
10100 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10101 *) lt_sed_strip_eq="s,=/,/,g" ;;
10102 esac
10103 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10104 case $lt_search_path_spec in
10105 *\;*)
10106 # if the path contains ";" then we assume it to be the separator
10107 # otherwise default to the standard path separator (i.e. ":") - it is
10108 # assumed that no part of a normal pathname contains ";" but that should
10109 # okay in the real world where ";" in dirpaths is itself problematic.
10110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10111 ;;
10112 *)
10113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10114 ;;
10115 esac
10116 # Ok, now we have the path, separated by spaces, we can step through it
10117 # and add multilib dir if necessary.
10118 lt_tmp_lt_search_path_spec=
10119 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10120 for lt_sys_path in $lt_search_path_spec; do
10121 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10122 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10123 else
10124 test -d "$lt_sys_path" && \
10125 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10126 fi
10127 done
10128 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10129 BEGIN {RS=" "; FS="/|\n";} {
10130 lt_foo="";
10131 lt_count=0;
10132 for (lt_i = NF; lt_i > 0; lt_i--) {
10133 if ($lt_i != "" && $lt_i != ".") {
10134 if ($lt_i == "..") {
10135 lt_count++;
10136 } else {
10137 if (lt_count == 0) {
10138 lt_foo="/" $lt_i lt_foo;
10139 } else {
10140 lt_count--;
10141 }
10142 }
10143 }
10144 }
10145 if (lt_foo != "") { lt_freq[lt_foo]++; }
10146 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10147 }'`
10148 # AWK program above erroneously prepends '/' to C:/dos/paths
10149 # for these hosts.
10150 case $host_os in
10151 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10152 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10153 esac
10154 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10155 else
10156 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10157 fi
10158 library_names_spec=
10159 libname_spec='lib$name'
10160 soname_spec=
10161 shrext_cmds=".so"
10162 postinstall_cmds=
10163 postuninstall_cmds=
10164 finish_cmds=
10165 finish_eval=
10166 shlibpath_var=
10167 shlibpath_overrides_runpath=unknown
10168 version_type=none
10169 dynamic_linker="$host_os ld.so"
10170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10171 need_lib_prefix=unknown
10172 hardcode_into_libs=no
10173
10174 # when you set need_version to no, make sure it does not cause -set_version
10175 # flags to be left without arguments
10176 need_version=unknown
10177
10178 case $host_os in
10179 aix3*)
10180 version_type=linux # correct to gnu/linux during the next big refactor
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10182 shlibpath_var=LIBPATH
10183
10184 # AIX 3 has no versioning support, so we append a major version to the name.
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 ;;
10187
10188 aix[4-9]*)
10189 version_type=linux # correct to gnu/linux during the next big refactor
10190 need_lib_prefix=no
10191 need_version=no
10192 hardcode_into_libs=yes
10193 if test "$host_cpu" = ia64; then
10194 # AIX 5 supports IA64
10195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 else
10198 # With GCC up to 2.95.x, collect2 would create an import file
10199 # for dependence libraries. The import file would start with
10200 # the line `#! .'. This would cause the generated library to
10201 # depend on `.', always an invalid library. This was fixed in
10202 # development snapshots of GCC prior to 3.0.
10203 case $host_os in
10204 aix4 | aix4.[01] | aix4.[01].*)
10205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10206 echo ' yes '
10207 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10208 :
10209 else
10210 can_build_shared=no
10211 fi
10212 ;;
10213 esac
10214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10215 # soname into executable. Probably we can add versioning support to
10216 # collect2, so additional links can be useful in future.
10217 if test "$aix_use_runtimelinking" = yes; then
10218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10219 # instead of lib<name>.a to let people know that these are not
10220 # typical AIX shared libraries.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 else
10223 # We preserve .a as extension for shared libraries through AIX4.2
10224 # and later when we are not doing run time linking.
10225 library_names_spec='${libname}${release}.a $libname.a'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 fi
10228 shlibpath_var=LIBPATH
10229 fi
10230 ;;
10231
10232 amigaos*)
10233 case $host_cpu in
10234 powerpc)
10235 # Since July 2007 AmigaOS4 officially supports .so libraries.
10236 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 ;;
10239 m68k)
10240 library_names_spec='$libname.ixlibrary $libname.a'
10241 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10242 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10243 ;;
10244 esac
10245 ;;
10246
10247 beos*)
10248 library_names_spec='${libname}${shared_ext}'
10249 dynamic_linker="$host_os ld.so"
10250 shlibpath_var=LIBRARY_PATH
10251 ;;
10252
10253 bsdi[45]*)
10254 version_type=linux # correct to gnu/linux during the next big refactor
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10262 # the default ld.so.conf also contains /usr/contrib/lib and
10263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10264 # libtool to hard-code these into programs
10265 ;;
10266
10267 cygwin* | mingw* | pw32* | cegcc*)
10268 version_type=windows
10269 shrext_cmds=".dll"
10270 need_version=no
10271 need_lib_prefix=no
10272
10273 case $GCC,$cc_basename in
10274 yes,*)
10275 # gcc
10276 library_names_spec='$libname.dll.a'
10277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10278 postinstall_cmds='base_file=`basename \${file}`~
10279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10280 dldir=$destdir/`dirname \$dlpath`~
10281 test -d \$dldir || mkdir -p \$dldir~
10282 $install_prog $dir/$dlname \$dldir/$dlname~
10283 chmod a+x \$dldir/$dlname~
10284 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10285 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10286 fi'
10287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10288 dlpath=$dir/\$dldll~
10289 $RM \$dlpath'
10290 shlibpath_overrides_runpath=yes
10291
10292 case $host_os in
10293 cygwin*)
10294 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10295 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10296
10297 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10298 ;;
10299 mingw* | cegcc*)
10300 # MinGW DLLs use traditional 'lib' prefix
10301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302 ;;
10303 pw32*)
10304 # pw32 DLLs use 'pw' prefix rather than 'lib'
10305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306 ;;
10307 esac
10308 dynamic_linker='Win32 ld.exe'
10309 ;;
10310
10311 *,cl*)
10312 # Native MSVC
10313 libname_spec='$name'
10314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10315 library_names_spec='${libname}.dll.lib'
10316
10317 case $build_os in
10318 mingw*)
10319 sys_lib_search_path_spec=
10320 lt_save_ifs=$IFS
10321 IFS=';'
10322 for lt_path in $LIB
10323 do
10324 IFS=$lt_save_ifs
10325 # Let DOS variable expansion print the short 8.3 style file name.
10326 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10327 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10328 done
10329 IFS=$lt_save_ifs
10330 # Convert to MSYS style.
10331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10332 ;;
10333 cygwin*)
10334 # Convert to unix form, then to dos form, then back to unix form
10335 # but this time dos style (no spaces!) so that the unix form looks
10336 # like /cygdrive/c/PROGRA~1:/cygdr...
10337 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10338 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10339 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10340 ;;
10341 *)
10342 sys_lib_search_path_spec="$LIB"
10343 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10344 # It is most probably a Windows format PATH.
10345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10346 else
10347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10348 fi
10349 # FIXME: find the short name or the path components, as spaces are
10350 # common. (e.g. "Program Files" -> "PROGRA~1")
10351 ;;
10352 esac
10353
10354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10355 postinstall_cmds='base_file=`basename \${file}`~
10356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10357 dldir=$destdir/`dirname \$dlpath`~
10358 test -d \$dldir || mkdir -p \$dldir~
10359 $install_prog $dir/$dlname \$dldir/$dlname'
10360 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10361 dlpath=$dir/\$dldll~
10362 $RM \$dlpath'
10363 shlibpath_overrides_runpath=yes
10364 dynamic_linker='Win32 link.exe'
10365 ;;
10366
10367 *)
10368 # Assume MSVC wrapper
10369 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10370 dynamic_linker='Win32 ld.exe'
10371 ;;
10372 esac
10373 # FIXME: first we should search . and the directory the executable is in
10374 shlibpath_var=PATH
10375 ;;
10376
10377 darwin* | rhapsody*)
10378 dynamic_linker="$host_os dyld"
10379 version_type=darwin
10380 need_lib_prefix=no
10381 need_version=no
10382 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10383 soname_spec='${libname}${release}${major}$shared_ext'
10384 shlibpath_overrides_runpath=yes
10385 shlibpath_var=DYLD_LIBRARY_PATH
10386 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10387
10388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10389 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10390 ;;
10391
10392 dgux*)
10393 version_type=linux # correct to gnu/linux during the next big refactor
10394 need_lib_prefix=no
10395 need_version=no
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 ;;
10400
10401 freebsd* | dragonfly*)
10402 # DragonFly does not have aout. When/if they implement a new
10403 # versioning mechanism, adjust this.
10404 if test -x /usr/bin/objformat; then
10405 objformat=`/usr/bin/objformat`
10406 else
10407 case $host_os in
10408 freebsd[23].*) objformat=aout ;;
10409 *) objformat=elf ;;
10410 esac
10411 fi
10412 version_type=freebsd-$objformat
10413 case $version_type in
10414 freebsd-elf*)
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 need_version=no
10417 need_lib_prefix=no
10418 ;;
10419 freebsd-*)
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10421 need_version=yes
10422 ;;
10423 esac
10424 shlibpath_var=LD_LIBRARY_PATH
10425 case $host_os in
10426 freebsd2.*)
10427 shlibpath_overrides_runpath=yes
10428 ;;
10429 freebsd3.[01]* | freebsdelf3.[01]*)
10430 shlibpath_overrides_runpath=yes
10431 hardcode_into_libs=yes
10432 ;;
10433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10435 shlibpath_overrides_runpath=no
10436 hardcode_into_libs=yes
10437 ;;
10438 *) # from 4.6 on, and DragonFly
10439 shlibpath_overrides_runpath=yes
10440 hardcode_into_libs=yes
10441 ;;
10442 esac
10443 ;;
10444
10445 haiku*)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 need_lib_prefix=no
10448 need_version=no
10449 dynamic_linker="$host_os runtime_loader"
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10455 hardcode_into_libs=yes
10456 ;;
10457
10458 hpux9* | hpux10* | hpux11*)
10459 # Give a soname corresponding to the major version so that dld.sl refuses to
10460 # link against other versions.
10461 version_type=sunos
10462 need_lib_prefix=no
10463 need_version=no
10464 case $host_cpu in
10465 ia64*)
10466 shrext_cmds='.so'
10467 hardcode_into_libs=yes
10468 dynamic_linker="$host_os dld.so"
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 if test "X$HPUX_IA64_MODE" = X32; then
10474 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10475 else
10476 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10477 fi
10478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479 ;;
10480 hppa*64*)
10481 shrext_cmds='.sl'
10482 hardcode_into_libs=yes
10483 dynamic_linker="$host_os dld.sl"
10484 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10490 ;;
10491 *)
10492 shrext_cmds='.sl'
10493 dynamic_linker="$host_os dld.sl"
10494 shlibpath_var=SHLIB_PATH
10495 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 ;;
10499 esac
10500 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10501 postinstall_cmds='chmod 555 $lib'
10502 # or fails outright, so override atomically:
10503 install_override_mode=555
10504 ;;
10505
10506 interix[3-9]*)
10507 version_type=linux # correct to gnu/linux during the next big refactor
10508 need_lib_prefix=no
10509 need_version=no
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 ;;
10517
10518 irix5* | irix6* | nonstopux*)
10519 case $host_os in
10520 nonstopux*) version_type=nonstopux ;;
10521 *)
10522 if test "$lt_cv_prog_gnu_ld" = yes; then
10523 version_type=linux # correct to gnu/linux during the next big refactor
10524 else
10525 version_type=irix
10526 fi ;;
10527 esac
10528 need_lib_prefix=no
10529 need_version=no
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10532 case $host_os in
10533 irix5* | nonstopux*)
10534 libsuff= shlibsuff=
10535 ;;
10536 *)
10537 case $LD in # libtool.m4 will add one of these switches to LD
10538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10539 libsuff= shlibsuff= libmagic=32-bit;;
10540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10541 libsuff=32 shlibsuff=N32 libmagic=N32;;
10542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10544 *) libsuff= shlibsuff= libmagic=never-match;;
10545 esac
10546 ;;
10547 esac
10548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10549 shlibpath_overrides_runpath=no
10550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10552 hardcode_into_libs=yes
10553 ;;
10554
10555 # No shared lib support for Linux oldld, aout, or coff.
10556 linux*oldld* | linux*aout* | linux*coff*)
10557 dynamic_linker=no
10558 ;;
10559
10560 # This must be glibc/ELF.
10561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10562 version_type=linux # correct to gnu/linux during the next big refactor
10563 need_lib_prefix=no
10564 need_version=no
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=no
10570
10571 # Some binutils ld are patched to set DT_RUNPATH
10572 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 lt_cv_shlibpath_overrides_runpath=no
10576 save_LDFLAGS=$LDFLAGS
10577 save_libdir=$libdir
10578 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10579 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582
10583 int
10584 main ()
10585 {
10586
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10593 lt_cv_shlibpath_overrides_runpath=yes
10594 fi
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LDFLAGS=$save_LDFLAGS
10599 libdir=$save_libdir
10600
10601 fi
10602
10603 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10604
10605 # This implies no fast_install, which is unacceptable.
10606 # Some rework will be needed to allow for fast_install
10607 # before this can be enabled.
10608 hardcode_into_libs=yes
10609
10610 # Append ld.so.conf contents to the search path
10611 if test -f /etc/ld.so.conf; then
10612 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' ' '`
10613 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10614 fi
10615
10616 # We used to test for /lib/ld.so.1 and disable shared libraries on
10617 # powerpc, because MkLinux only supported shared libraries with the
10618 # GNU dynamic linker. Since this was broken with cross compilers,
10619 # most powerpc-linux boxes support dynamic linking these days and
10620 # people can always --disable-shared, the test was removed, and we
10621 # assume the GNU/Linux dynamic linker is in use.
10622 dynamic_linker='GNU/Linux ld.so'
10623 ;;
10624
10625 netbsdelf*-gnu)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=no
10633 hardcode_into_libs=yes
10634 dynamic_linker='NetBSD ld.elf_so'
10635 ;;
10636
10637 netbsd*)
10638 version_type=sunos
10639 need_lib_prefix=no
10640 need_version=no
10641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10644 dynamic_linker='NetBSD (a.out) ld.so'
10645 else
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 dynamic_linker='NetBSD ld.elf_so'
10649 fi
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=yes
10652 hardcode_into_libs=yes
10653 ;;
10654
10655 newsos6)
10656 version_type=linux # correct to gnu/linux during the next big refactor
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes
10660 ;;
10661
10662 *nto* | *qnx*)
10663 version_type=qnx
10664 need_lib_prefix=no
10665 need_version=no
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10671 dynamic_linker='ldqnx.so'
10672 ;;
10673
10674 openbsd*)
10675 version_type=sunos
10676 sys_lib_dlsearch_path_spec="/usr/lib"
10677 need_lib_prefix=no
10678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10679 case $host_os in
10680 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10681 *) need_version=no ;;
10682 esac
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10687 case $host_os in
10688 openbsd2.[89] | openbsd2.[89].*)
10689 shlibpath_overrides_runpath=no
10690 ;;
10691 *)
10692 shlibpath_overrides_runpath=yes
10693 ;;
10694 esac
10695 else
10696 shlibpath_overrides_runpath=yes
10697 fi
10698 ;;
10699
10700 os2*)
10701 libname_spec='$name'
10702 shrext_cmds=".dll"
10703 need_lib_prefix=no
10704 library_names_spec='$libname${shared_ext} $libname.a'
10705 dynamic_linker='OS/2 ld.exe'
10706 shlibpath_var=LIBPATH
10707 ;;
10708
10709 osf3* | osf4* | osf5*)
10710 version_type=osf
10711 need_lib_prefix=no
10712 need_version=no
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10718 ;;
10719
10720 rdos*)
10721 dynamic_linker=no
10722 ;;
10723
10724 solaris*)
10725 version_type=linux # correct to gnu/linux during the next big refactor
10726 need_lib_prefix=no
10727 need_version=no
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10733 # ldd complains unless libraries are executable
10734 postinstall_cmds='chmod +x $lib'
10735 ;;
10736
10737 sunos4*)
10738 version_type=sunos
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes
10743 if test "$with_gnu_ld" = yes; then
10744 need_lib_prefix=no
10745 fi
10746 need_version=yes
10747 ;;
10748
10749 sysv4 | sysv4.3*)
10750 version_type=linux # correct to gnu/linux during the next big refactor
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 case $host_vendor in
10755 sni)
10756 shlibpath_overrides_runpath=no
10757 need_lib_prefix=no
10758 runpath_var=LD_RUN_PATH
10759 ;;
10760 siemens)
10761 need_lib_prefix=no
10762 ;;
10763 motorola)
10764 need_lib_prefix=no
10765 need_version=no
10766 shlibpath_overrides_runpath=no
10767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10768 ;;
10769 esac
10770 ;;
10771
10772 sysv4*MP*)
10773 if test -d /usr/nec ;then
10774 version_type=linux # correct to gnu/linux during the next big refactor
10775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10776 soname_spec='$libname${shared_ext}.$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 fi
10779 ;;
10780
10781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10782 version_type=freebsd-elf
10783 need_lib_prefix=no
10784 need_version=no
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=yes
10789 hardcode_into_libs=yes
10790 if test "$with_gnu_ld" = yes; then
10791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10792 else
10793 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10794 case $host_os in
10795 sco3.2v5*)
10796 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10797 ;;
10798 esac
10799 fi
10800 sys_lib_dlsearch_path_spec='/usr/lib'
10801 ;;
10802
10803 tpf*)
10804 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10805 version_type=linux # correct to gnu/linux during the next big refactor
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=no
10811 hardcode_into_libs=yes
10812 ;;
10813
10814 uts4*)
10815 version_type=linux # correct to gnu/linux during the next big refactor
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 ;;
10820
10821 *)
10822 dynamic_linker=no
10823 ;;
10824 esac
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10826 $as_echo "$dynamic_linker" >&6; }
10827 test "$dynamic_linker" = no && can_build_shared=no
10828
10829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10830 if test "$GCC" = yes; then
10831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10832 fi
10833
10834 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10835 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10836 fi
10837 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10838 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10839 fi
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10933 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10934 hardcode_action=
10935 if test -n "$hardcode_libdir_flag_spec" ||
10936 test -n "$runpath_var" ||
10937 test "X$hardcode_automatic" = "Xyes" ; then
10938
10939 # We can hardcode non-existent directories.
10940 if test "$hardcode_direct" != no &&
10941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10942 # have to relink, otherwise we might link with an installed library
10943 # when we should be linking with a yet-to-be-installed one
10944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10945 test "$hardcode_minus_L" != no; then
10946 # Linking always hardcodes the temporary library directory.
10947 hardcode_action=relink
10948 else
10949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10950 hardcode_action=immediate
10951 fi
10952 else
10953 # We cannot hardcode anything, or else we can only hardcode existing
10954 # directories.
10955 hardcode_action=unsupported
10956 fi
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10958 $as_echo "$hardcode_action" >&6; }
10959
10960 if test "$hardcode_action" = relink ||
10961 test "$inherit_rpath" = yes; then
10962 # Fast installation is not supported
10963 enable_fast_install=no
10964 elif test "$shlibpath_overrides_runpath" = yes ||
10965 test "$enable_shared" = no; then
10966 # Fast installation is not necessary
10967 enable_fast_install=needless
10968 fi
10969
10970
10971
10972
10973
10974
10975 if test "x$enable_dlopen" != xyes; then
10976 enable_dlopen=unknown
10977 enable_dlopen_self=unknown
10978 enable_dlopen_self_static=unknown
10979 else
10980 lt_cv_dlopen=no
10981 lt_cv_dlopen_libs=
10982
10983 case $host_os in
10984 beos*)
10985 lt_cv_dlopen="load_add_on"
10986 lt_cv_dlopen_libs=
10987 lt_cv_dlopen_self=yes
10988 ;;
10989
10990 mingw* | pw32* | cegcc*)
10991 lt_cv_dlopen="LoadLibrary"
10992 lt_cv_dlopen_libs=
10993 ;;
10994
10995 cygwin*)
10996 lt_cv_dlopen="dlopen"
10997 lt_cv_dlopen_libs=
10998 ;;
10999
11000 darwin*)
11001 # if libdl is installed we need to link against it
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11003 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11004 if ${ac_cv_lib_dl_dlopen+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 ac_check_lib_save_LIBS=$LIBS
11008 LIBS="-ldl $LIBS"
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char dlopen ();
11019 int
11020 main ()
11021 {
11022 return dlopen ();
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_link "$LINENO"; then :
11028 ac_cv_lib_dl_dlopen=yes
11029 else
11030 ac_cv_lib_dl_dlopen=no
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11035 fi
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11037 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11038 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11040 else
11041
11042 lt_cv_dlopen="dyld"
11043 lt_cv_dlopen_libs=
11044 lt_cv_dlopen_self=yes
11045
11046 fi
11047
11048 ;;
11049
11050 *)
11051 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11052 if test "x$ac_cv_func_shl_load" = xyes; then :
11053 lt_cv_dlopen="shl_load"
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11056 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11057 if ${ac_cv_lib_dld_shl_load+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 ac_check_lib_save_LIBS=$LIBS
11061 LIBS="-ldld $LIBS"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char shl_load ();
11072 int
11073 main ()
11074 {
11075 return shl_load ();
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 ac_cv_lib_dld_shl_load=yes
11082 else
11083 ac_cv_lib_dld_shl_load=no
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11090 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11091 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11092 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11093 else
11094 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11095 if test "x$ac_cv_func_dlopen" = xyes; then :
11096 lt_cv_dlopen="dlopen"
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11099 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11100 if ${ac_cv_lib_dl_dlopen+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-ldl $LIBS"
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11107
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111 #ifdef __cplusplus
11112 extern "C"
11113 #endif
11114 char dlopen ();
11115 int
11116 main ()
11117 {
11118 return dlopen ();
11119 ;
11120 return 0;
11121 }
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 ac_cv_lib_dl_dlopen=yes
11125 else
11126 ac_cv_lib_dl_dlopen=no
11127 fi
11128 rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11133 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11134 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11138 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11139 if ${ac_cv_lib_svld_dlopen+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_lib_save_LIBS=$LIBS
11143 LIBS="-lsvld $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char dlopen ();
11154 int
11155 main ()
11156 {
11157 return dlopen ();
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_svld_dlopen=yes
11164 else
11165 ac_cv_lib_svld_dlopen=no
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 LIBS=$ac_check_lib_save_LIBS
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11172 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11173 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11177 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11178 if ${ac_cv_lib_dld_dld_link+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-ldld $LIBS"
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char dld_link ();
11193 int
11194 main ()
11195 {
11196 return dld_link ();
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202 ac_cv_lib_dld_dld_link=yes
11203 else
11204 ac_cv_lib_dld_dld_link=no
11205 fi
11206 rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11211 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11212 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11213 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11214 fi
11215
11216
11217 fi
11218
11219
11220 fi
11221
11222
11223 fi
11224
11225
11226 fi
11227
11228
11229 fi
11230
11231 ;;
11232 esac
11233
11234 if test "x$lt_cv_dlopen" != xno; then
11235 enable_dlopen=yes
11236 else
11237 enable_dlopen=no
11238 fi
11239
11240 case $lt_cv_dlopen in
11241 dlopen)
11242 save_CPPFLAGS="$CPPFLAGS"
11243 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11244
11245 save_LDFLAGS="$LDFLAGS"
11246 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11247
11248 save_LIBS="$LIBS"
11249 LIBS="$lt_cv_dlopen_libs $LIBS"
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11252 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11253 if ${lt_cv_dlopen_self+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 if test "$cross_compiling" = yes; then :
11257 lt_cv_dlopen_self=cross
11258 else
11259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11260 lt_status=$lt_dlunknown
11261 cat > conftest.$ac_ext <<_LT_EOF
11262 #line $LINENO "configure"
11263 #include "confdefs.h"
11264
11265 #if HAVE_DLFCN_H
11266 #include <dlfcn.h>
11267 #endif
11268
11269 #include <stdio.h>
11270
11271 #ifdef RTLD_GLOBAL
11272 # define LT_DLGLOBAL RTLD_GLOBAL
11273 #else
11274 # ifdef DL_GLOBAL
11275 # define LT_DLGLOBAL DL_GLOBAL
11276 # else
11277 # define LT_DLGLOBAL 0
11278 # endif
11279 #endif
11280
11281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11282 find out it does not work in some platform. */
11283 #ifndef LT_DLLAZY_OR_NOW
11284 # ifdef RTLD_LAZY
11285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11286 # else
11287 # ifdef DL_LAZY
11288 # define LT_DLLAZY_OR_NOW DL_LAZY
11289 # else
11290 # ifdef RTLD_NOW
11291 # define LT_DLLAZY_OR_NOW RTLD_NOW
11292 # else
11293 # ifdef DL_NOW
11294 # define LT_DLLAZY_OR_NOW DL_NOW
11295 # else
11296 # define LT_DLLAZY_OR_NOW 0
11297 # endif
11298 # endif
11299 # endif
11300 # endif
11301 #endif
11302
11303 /* When -fvisbility=hidden is used, assume the code has been annotated
11304 correspondingly for the symbols needed. */
11305 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11306 int fnord () __attribute__((visibility("default")));
11307 #endif
11308
11309 int fnord () { return 42; }
11310 int main ()
11311 {
11312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11313 int status = $lt_dlunknown;
11314
11315 if (self)
11316 {
11317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11318 else
11319 {
11320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11321 else puts (dlerror ());
11322 }
11323 /* dlclose (self); */
11324 }
11325 else
11326 puts (dlerror ());
11327
11328 return status;
11329 }
11330 _LT_EOF
11331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11332 (eval $ac_link) 2>&5
11333 ac_status=$?
11334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11336 (./conftest; exit; ) >&5 2>/dev/null
11337 lt_status=$?
11338 case x$lt_status in
11339 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11340 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11341 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11342 esac
11343 else :
11344 # compilation failed
11345 lt_cv_dlopen_self=no
11346 fi
11347 fi
11348 rm -fr conftest*
11349
11350
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11353 $as_echo "$lt_cv_dlopen_self" >&6; }
11354
11355 if test "x$lt_cv_dlopen_self" = xyes; then
11356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11358 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11359 if ${lt_cv_dlopen_self_static+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 if test "$cross_compiling" = yes; then :
11363 lt_cv_dlopen_self_static=cross
11364 else
11365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11366 lt_status=$lt_dlunknown
11367 cat > conftest.$ac_ext <<_LT_EOF
11368 #line $LINENO "configure"
11369 #include "confdefs.h"
11370
11371 #if HAVE_DLFCN_H
11372 #include <dlfcn.h>
11373 #endif
11374
11375 #include <stdio.h>
11376
11377 #ifdef RTLD_GLOBAL
11378 # define LT_DLGLOBAL RTLD_GLOBAL
11379 #else
11380 # ifdef DL_GLOBAL
11381 # define LT_DLGLOBAL DL_GLOBAL
11382 # else
11383 # define LT_DLGLOBAL 0
11384 # endif
11385 #endif
11386
11387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11388 find out it does not work in some platform. */
11389 #ifndef LT_DLLAZY_OR_NOW
11390 # ifdef RTLD_LAZY
11391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11392 # else
11393 # ifdef DL_LAZY
11394 # define LT_DLLAZY_OR_NOW DL_LAZY
11395 # else
11396 # ifdef RTLD_NOW
11397 # define LT_DLLAZY_OR_NOW RTLD_NOW
11398 # else
11399 # ifdef DL_NOW
11400 # define LT_DLLAZY_OR_NOW DL_NOW
11401 # else
11402 # define LT_DLLAZY_OR_NOW 0
11403 # endif
11404 # endif
11405 # endif
11406 # endif
11407 #endif
11408
11409 /* When -fvisbility=hidden is used, assume the code has been annotated
11410 correspondingly for the symbols needed. */
11411 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11412 int fnord () __attribute__((visibility("default")));
11413 #endif
11414
11415 int fnord () { return 42; }
11416 int main ()
11417 {
11418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11419 int status = $lt_dlunknown;
11420
11421 if (self)
11422 {
11423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11424 else
11425 {
11426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11427 else puts (dlerror ());
11428 }
11429 /* dlclose (self); */
11430 }
11431 else
11432 puts (dlerror ());
11433
11434 return status;
11435 }
11436 _LT_EOF
11437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11438 (eval $ac_link) 2>&5
11439 ac_status=$?
11440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11441 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11442 (./conftest; exit; ) >&5 2>/dev/null
11443 lt_status=$?
11444 case x$lt_status in
11445 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11446 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11447 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11448 esac
11449 else :
11450 # compilation failed
11451 lt_cv_dlopen_self_static=no
11452 fi
11453 fi
11454 rm -fr conftest*
11455
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11459 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11460 fi
11461
11462 CPPFLAGS="$save_CPPFLAGS"
11463 LDFLAGS="$save_LDFLAGS"
11464 LIBS="$save_LIBS"
11465 ;;
11466 esac
11467
11468 case $lt_cv_dlopen_self in
11469 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11470 *) enable_dlopen_self=unknown ;;
11471 esac
11472
11473 case $lt_cv_dlopen_self_static in
11474 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11475 *) enable_dlopen_self_static=unknown ;;
11476 esac
11477 fi
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495 striplib=
11496 old_striplib=
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11498 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11499 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11500 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11501 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503 $as_echo "yes" >&6; }
11504 else
11505 # FIXME - insert some real tests, host_os isn't really good enough
11506 case $host_os in
11507 darwin*)
11508 if test -n "$STRIP" ; then
11509 striplib="$STRIP -x"
11510 old_striplib="$STRIP -S"
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 fi
11517 ;;
11518 *)
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 ;;
11522 esac
11523 fi
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536 # Report which library types will actually be built
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11538 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11540 $as_echo "$can_build_shared" >&6; }
11541
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11543 $as_echo_n "checking whether to build shared libraries... " >&6; }
11544 test "$can_build_shared" = "no" && enable_shared=no
11545
11546 # On AIX, shared libraries and static libraries use the same namespace, and
11547 # are all built from PIC.
11548 case $host_os in
11549 aix3*)
11550 test "$enable_shared" = yes && enable_static=no
11551 if test -n "$RANLIB"; then
11552 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11553 postinstall_cmds='$RANLIB $lib'
11554 fi
11555 ;;
11556
11557 aix[4-9]*)
11558 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11559 test "$enable_shared" = yes && enable_static=no
11560 fi
11561 ;;
11562 esac
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11564 $as_echo "$enable_shared" >&6; }
11565
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11567 $as_echo_n "checking whether to build static libraries... " >&6; }
11568 # Make sure either enable_shared or enable_static is yes.
11569 test "$enable_shared" = yes || enable_static=yes
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11571 $as_echo "$enable_static" >&6; }
11572
11573
11574
11575
11576 fi
11577 ac_ext=c
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11582
11583 CC="$lt_save_CC"
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 ac_config_commands="$ac_config_commands libtool"
11600
11601
11602
11603
11604 # Only expand once:
11605
11606
11607
11608 # Checks for libraries.
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kinfo_get_cpus in -lkinfo" >&5
11610 $as_echo_n "checking for kinfo_get_cpus in -lkinfo... " >&6; }
11611 if ${ac_cv_lib_kinfo_kinfo_get_cpus+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-lkinfo $LIBS"
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618
11619 /* Override any GCC internal prototype to avoid an error.
11620 Use char because int might match the return type of a GCC
11621 builtin and then its argument prototype would still apply. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char kinfo_get_cpus ();
11626 int
11627 main ()
11628 {
11629 return kinfo_get_cpus ();
11630 ;
11631 return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_c_try_link "$LINENO"; then :
11635 ac_cv_lib_kinfo_kinfo_get_cpus=yes
11636 else
11637 ac_cv_lib_kinfo_kinfo_get_cpus=no
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kinfo_kinfo_get_cpus" >&5
11644 $as_echo "$ac_cv_lib_kinfo_kinfo_get_cpus" >&6; }
11645 if test "x$ac_cv_lib_kinfo_kinfo_get_cpus" = xyes; then :
11646 cat >>confdefs.h <<_ACEOF
11647 #define HAVE_LIBKINFO 1
11648 _ACEOF
11649
11650 LIBS="-lkinfo $LIBS"
11651
11652 fi
11653
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11655 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11656 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lkstat $LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char kstat_open ();
11671 int
11672 main ()
11673 {
11674 return kstat_open ();
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 ac_cv_lib_kstat_kstat_open=yes
11681 else
11682 ac_cv_lib_kstat_kstat_open=no
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11689 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11690 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_LIBKSTAT 1
11693 _ACEOF
11694
11695 LIBS="-lkstat $LIBS"
11696
11697 fi
11698
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11700 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11701 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 ac_check_lib_save_LIBS=$LIBS
11705 LIBS="-lkvm $LIBS"
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char kvm_open ();
11716 int
11717 main ()
11718 {
11719 return kvm_open ();
11720 ;
11721 return 0;
11722 }
11723 _ACEOF
11724 if ac_fn_c_try_link "$LINENO"; then :
11725 ac_cv_lib_kvm_kvm_open=yes
11726 else
11727 ac_cv_lib_kvm_kvm_open=no
11728 fi
11729 rm -f core conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11734 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11735 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
11736 cat >>confdefs.h <<_ACEOF
11737 #define HAVE_LIBKVM 1
11738 _ACEOF
11739
11740 LIBS="-lkvm $LIBS"
11741
11742 fi
11743
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odm_initialize in -lodm" >&5
11745 $as_echo_n "checking for odm_initialize in -lodm... " >&6; }
11746 if ${ac_cv_lib_odm_odm_initialize+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-lodm $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char odm_initialize ();
11761 int
11762 main ()
11763 {
11764 return odm_initialize ();
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_odm_odm_initialize=yes
11771 else
11772 ac_cv_lib_odm_odm_initialize=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odm_odm_initialize" >&5
11779 $as_echo "$ac_cv_lib_odm_odm_initialize" >&6; }
11780 if test "x$ac_cv_lib_odm_odm_initialize" = xyes; then :
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_LIBODM 1
11783 _ACEOF
11784
11785 LIBS="-lodm $LIBS"
11786
11787 fi
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _system_configuration in -lcfg" >&5
11790 $as_echo_n "checking for _system_configuration in -lcfg... " >&6; }
11791 if ${ac_cv_lib_cfg__system_configuration+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lcfg $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char _system_configuration ();
11806 int
11807 main ()
11808 {
11809 return _system_configuration ();
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 ac_cv_lib_cfg__system_configuration=yes
11816 else
11817 ac_cv_lib_cfg__system_configuration=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_check_lib_save_LIBS
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfg__system_configuration" >&5
11824 $as_echo "$ac_cv_lib_cfg__system_configuration" >&6; }
11825 if test "x$ac_cv_lib_cfg__system_configuration" = xyes; then :
11826 cat >>confdefs.h <<_ACEOF
11827 #define HAVE_LIBCFG 1
11828 _ACEOF
11829
11830 LIBS="-lcfg $LIBS"
11831
11832 fi
11833
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
11835 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
11836 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 ac_check_lib_save_LIBS=$LIBS
11840 LIBS="-lperfstat $LIBS"
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843
11844 /* Override any GCC internal prototype to avoid an error.
11845 Use char because int might match the return type of a GCC
11846 builtin and then its argument prototype would still apply. */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char perfstat_cpu_total ();
11851 int
11852 main ()
11853 {
11854 return perfstat_cpu_total ();
11855 ;
11856 return 0;
11857 }
11858 _ACEOF
11859 if ac_fn_c_try_link "$LINENO"; then :
11860 ac_cv_lib_perfstat_perfstat_cpu_total=yes
11861 else
11862 ac_cv_lib_perfstat_perfstat_cpu_total=no
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_lib_save_LIBS
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
11869 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
11870 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_LIBPERFSTAT 1
11873 _ACEOF
11874
11875 LIBS="-lperfstat $LIBS"
11876
11877 fi
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
11880 $as_echo_n "checking for main in -lsocket... " >&6; }
11881 if ${ac_cv_lib_socket_main+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-lsocket $LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888
11889
11890 int
11891 main ()
11892 {
11893 return main ();
11894 ;
11895 return 0;
11896 }
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 ac_cv_lib_socket_main=yes
11900 else
11901 ac_cv_lib_socket_main=no
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
11908 $as_echo "$ac_cv_lib_socket_main" >&6; }
11909 if test "x$ac_cv_lib_socket_main" = xyes; then :
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_LIBSOCKET 1
11912 _ACEOF
11913
11914 LIBS="-lsocket $LIBS"
11915
11916 fi
11917 ac_cv_lib_socket=ac_cv_lib_socket_main
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
11920 $as_echo_n "checking for main in -lresolv... " >&6; }
11921 if ${ac_cv_lib_resolv_main+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-lresolv $LIBS"
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928
11929
11930 int
11931 main ()
11932 {
11933 return main ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_lib_resolv_main=yes
11940 else
11941 ac_cv_lib_resolv_main=no
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
11948 $as_echo "$ac_cv_lib_resolv_main" >&6; }
11949 if test "x$ac_cv_lib_resolv_main" = xyes; then :
11950 cat >>confdefs.h <<_ACEOF
11951 #define HAVE_LIBRESOLV 1
11952 _ACEOF
11953
11954 LIBS="-lresolv $LIBS"
11955
11956 fi
11957 ac_cv_lib_resolv=ac_cv_lib_resolv_main
11958
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
11960 $as_echo_n "checking for main in -lnsl... " >&6; }
11961 if ${ac_cv_lib_nsl_main+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 ac_check_lib_save_LIBS=$LIBS
11965 LIBS="-lnsl $LIBS"
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968
11969
11970 int
11971 main ()
11972 {
11973 return main ();
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 ac_cv_lib_nsl_main=yes
11980 else
11981 ac_cv_lib_nsl_main=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_lib_save_LIBS
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
11988 $as_echo "$ac_cv_lib_nsl_main" >&6; }
11989 if test "x$ac_cv_lib_nsl_main" = xyes; then :
11990 cat >>confdefs.h <<_ACEOF
11991 #define HAVE_LIBNSL 1
11992 _ACEOF
11993
11994 LIBS="-lnsl $LIBS"
11995
11996 fi
11997 ac_cv_lib_nsl=ac_cv_lib_nsl_main
11998
11999
12000 # Checks for header files.
12001 ac_header_dirent=no
12002 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12003 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12005 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12006 if eval \${$as_ac_Header+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <sys/types.h>
12012 #include <$ac_hdr>
12013
12014 int
12015 main ()
12016 {
12017 if ((DIR *) 0)
12018 return 0;
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_compile "$LINENO"; then :
12024 eval "$as_ac_Header=yes"
12025 else
12026 eval "$as_ac_Header=no"
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 eval ac_res=\$$as_ac_Header
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12032 $as_echo "$ac_res" >&6; }
12033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12034 cat >>confdefs.h <<_ACEOF
12035 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12036 _ACEOF
12037
12038 ac_header_dirent=$ac_hdr; break
12039 fi
12040
12041 done
12042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12043 if test $ac_header_dirent = dirent.h; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12045 $as_echo_n "checking for library containing opendir... " >&6; }
12046 if ${ac_cv_search_opendir+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 ac_func_search_save_LIBS=$LIBS
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 char opendir ();
12060 int
12061 main ()
12062 {
12063 return opendir ();
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 for ac_lib in '' dir; do
12069 if test -z "$ac_lib"; then
12070 ac_res="none required"
12071 else
12072 ac_res=-l$ac_lib
12073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12074 fi
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_search_opendir=$ac_res
12077 fi
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext
12080 if ${ac_cv_search_opendir+:} false; then :
12081 break
12082 fi
12083 done
12084 if ${ac_cv_search_opendir+:} false; then :
12085
12086 else
12087 ac_cv_search_opendir=no
12088 fi
12089 rm conftest.$ac_ext
12090 LIBS=$ac_func_search_save_LIBS
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12093 $as_echo "$ac_cv_search_opendir" >&6; }
12094 ac_res=$ac_cv_search_opendir
12095 if test "$ac_res" != no; then :
12096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12097
12098 fi
12099
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12102 $as_echo_n "checking for library containing opendir... " >&6; }
12103 if ${ac_cv_search_opendir+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 ac_func_search_save_LIBS=$LIBS
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char opendir ();
12117 int
12118 main ()
12119 {
12120 return opendir ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 for ac_lib in '' x; do
12126 if test -z "$ac_lib"; then
12127 ac_res="none required"
12128 else
12129 ac_res=-l$ac_lib
12130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12131 fi
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_search_opendir=$ac_res
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext
12137 if ${ac_cv_search_opendir+:} false; then :
12138 break
12139 fi
12140 done
12141 if ${ac_cv_search_opendir+:} false; then :
12142
12143 else
12144 ac_cv_search_opendir=no
12145 fi
12146 rm conftest.$ac_ext
12147 LIBS=$ac_func_search_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12150 $as_echo "$ac_cv_search_opendir" >&6; }
12151 ac_res=$ac_cv_search_opendir
12152 if test "$ac_res" != no; then :
12153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12154
12155 fi
12156
12157 fi
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12160 $as_echo_n "checking for ANSI C header files... " >&6; }
12161 if ${ac_cv_header_stdc+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <stdlib.h>
12167 #include <stdarg.h>
12168 #include <string.h>
12169 #include <float.h>
12170
12171 int
12172 main ()
12173 {
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_compile "$LINENO"; then :
12180 ac_cv_header_stdc=yes
12181 else
12182 ac_cv_header_stdc=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185
12186 if test $ac_cv_header_stdc = yes; then
12187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190 #include <string.h>
12191
12192 _ACEOF
12193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12194 $EGREP "memchr" >/dev/null 2>&1; then :
12195
12196 else
12197 ac_cv_header_stdc=no
12198 fi
12199 rm -f conftest*
12200
12201 fi
12202
12203 if test $ac_cv_header_stdc = yes; then
12204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <stdlib.h>
12208
12209 _ACEOF
12210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12211 $EGREP "free" >/dev/null 2>&1; then :
12212
12213 else
12214 ac_cv_header_stdc=no
12215 fi
12216 rm -f conftest*
12217
12218 fi
12219
12220 if test $ac_cv_header_stdc = yes; then
12221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12222 if test "$cross_compiling" = yes; then :
12223 :
12224 else
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 #include <ctype.h>
12228 #include <stdlib.h>
12229 #if ((' ' & 0x0FF) == 0x020)
12230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12232 #else
12233 # define ISLOWER(c) \
12234 (('a' <= (c) && (c) <= 'i') \
12235 || ('j' <= (c) && (c) <= 'r') \
12236 || ('s' <= (c) && (c) <= 'z'))
12237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12238 #endif
12239
12240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12241 int
12242 main ()
12243 {
12244 int i;
12245 for (i = 0; i < 256; i++)
12246 if (XOR (islower (i), ISLOWER (i))
12247 || toupper (i) != TOUPPER (i))
12248 return 2;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_run "$LINENO"; then :
12253
12254 else
12255 ac_cv_header_stdc=no
12256 fi
12257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12258 conftest.$ac_objext conftest.beam conftest.$ac_ext
12259 fi
12260
12261 fi
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12264 $as_echo "$ac_cv_header_stdc" >&6; }
12265 if test $ac_cv_header_stdc = yes; then
12266
12267 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12268
12269 fi
12270
12271 for ac_header in fcntl.h inttypes.h limits.h nlist.h paths.h stdlib.h strings.h sys/filsys.h sys/fs/s5param.h sys/mount.h sys/param.h sys/socket.h sys/statfs.h sys/statvfs.h sys/systeminfo.h sys/time.h sys/vfs.h unistd.h utmp.h sys/sockio.h
12272 do :
12273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12276 cat >>confdefs.h <<_ACEOF
12277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285 # Checks for typedefs, structures, and compiler characteristics.
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr{} has sa_len member" >&5
12288 $as_echo_n "checking if sockaddr{} has sa_len member... " >&6; }
12289 if ${ac_cv_sockaddr_has_sa_len+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 # include <sys/types.h>
12296 # include <sys/socket.h>
12297 int
12298 main ()
12299 {
12300 unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)
12301 ;
12302 return 0;
12303 }
12304 _ACEOF
12305 if ac_fn_c_try_compile "$LINENO"; then :
12306 ac_cv_sockaddr_has_sa_len=yes
12307 else
12308 ac_cv_sockaddr_has_sa_len=no
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_has_sa_len" >&5
12313 $as_echo "$ac_cv_sockaddr_has_sa_len" >&6; }
12314 if test $ac_cv_sockaddr_has_sa_len = yes ; then
12315
12316 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
12317
12318 fi
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12321 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12322 if ${ac_cv_c_const+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327
12328 int
12329 main ()
12330 {
12331
12332 #ifndef __cplusplus
12333 /* Ultrix mips cc rejects this sort of thing. */
12334 typedef int charset[2];
12335 const charset cs = { 0, 0 };
12336 /* SunOS 4.1.1 cc rejects this. */
12337 char const *const *pcpcc;
12338 char **ppc;
12339 /* NEC SVR4.0.2 mips cc rejects this. */
12340 struct point {int x, y;};
12341 static struct point const zero = {0,0};
12342 /* AIX XL C 1.02.0.0 rejects this.
12343 It does not let you subtract one const X* pointer from another in
12344 an arm of an if-expression whose if-part is not a constant
12345 expression */
12346 const char *g = "string";
12347 pcpcc = &g + (g ? g-g : 0);
12348 /* HPUX 7.0 cc rejects these. */
12349 ++pcpcc;
12350 ppc = (char**) pcpcc;
12351 pcpcc = (char const *const *) ppc;
12352 { /* SCO 3.2v4 cc rejects this sort of thing. */
12353 char tx;
12354 char *t = &tx;
12355 char const *s = 0 ? (char *) 0 : (char const *) 0;
12356
12357 *t++ = 0;
12358 if (s) return 0;
12359 }
12360 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12361 int x[] = {25, 17};
12362 const int *foo = &x[0];
12363 ++foo;
12364 }
12365 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12366 typedef const int *iptr;
12367 iptr p = 0;
12368 ++p;
12369 }
12370 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12371 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12372 struct s { int j; const int *ap[3]; } bx;
12373 struct s *b = &bx; b->j = 5;
12374 }
12375 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12376 const int foo = 10;
12377 if (!foo) return 0;
12378 }
12379 return !cs[0] && !zero.x;
12380 #endif
12381
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_compile "$LINENO"; then :
12387 ac_cv_c_const=yes
12388 else
12389 ac_cv_c_const=no
12390 fi
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12394 $as_echo "$ac_cv_c_const" >&6; }
12395 if test $ac_cv_c_const = no; then
12396
12397 $as_echo "#define const /**/" >>confdefs.h
12398
12399 fi
12400
12401 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12402 if test "x$ac_cv_type_off_t" = xyes; then :
12403
12404 else
12405
12406 cat >>confdefs.h <<_ACEOF
12407 #define off_t long int
12408 _ACEOF
12409
12410 fi
12411
12412 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12413 if test "x$ac_cv_type_pid_t" = xyes; then :
12414
12415 else
12416
12417 cat >>confdefs.h <<_ACEOF
12418 #define pid_t int
12419 _ACEOF
12420
12421 fi
12422
12423 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12424 if test "x$ac_cv_type_size_t" = xyes; then :
12425
12426 else
12427
12428 cat >>confdefs.h <<_ACEOF
12429 #define size_t unsigned int
12430 _ACEOF
12431
12432 fi
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12435 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12436 if ${ac_cv_header_time+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 #include <sys/types.h>
12442 #include <sys/time.h>
12443 #include <time.h>
12444
12445 int
12446 main ()
12447 {
12448 if ((struct tm *) 0)
12449 return 0;
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 ac_cv_header_time=yes
12456 else
12457 ac_cv_header_time=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12462 $as_echo "$ac_cv_header_time" >&6; }
12463 if test $ac_cv_header_time = yes; then
12464
12465 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12466
12467 fi
12468
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uchar_t defined" >&5
12471 $as_echo_n "checking if uchar_t defined... " >&6; }
12472 if ${ac_cv_type_uchar_t+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477
12478 #include "confdefs.h" /* the header built by configure so far */
12479 #ifdef HAVE_STDINT_H
12480 # include <stdint.h>
12481 #endif
12482 #ifdef HAVE_INTTYPES_H
12483 # include <inttypes.h>
12484 #endif
12485 #ifdef HAVE_SYS_TYPES_H
12486 # include <sys/types.h>
12487 #endif
12488 #ifdef HAVE_SYS_SOCKET_H
12489 # include <sys/socket.h>
12490 #endif
12491 #ifdef HAVE_SYS_TIME_H
12492 # include <sys/time.h>
12493 #endif
12494 #ifdef HAVE_NETINET_IN_H
12495 # include <netinet/in.h>
12496 #endif
12497 #ifdef HAVE_ARPA_INET_H
12498 # include <arpa/inet.h>
12499 #endif
12500 #ifdef HAVE_ERRNO_H
12501 # include <errno.h>
12502 #endif
12503 #ifdef HAVE_FCNTL_H
12504 # include <fcntl.h>
12505 #endif
12506 #ifdef HAVE_NETDB_H
12507 # include <netdb.h>
12508 #endif
12509 #ifdef HAVE_SIGNAL_H
12510 # include <signal.h>
12511 #endif
12512 #ifdef HAVE_STDIO_H
12513 # include <stdio.h>
12514 #endif
12515 #ifdef HAVE_STDLIB_H
12516 # include <stdlib.h>
12517 #endif
12518 #ifdef HAVE_STRING_H
12519 # include <string.h>
12520 #endif
12521 #ifdef HAVE_SYS_STAT_H
12522 # include <sys/stat.h>
12523 #endif
12524 #ifdef HAVE_SYS_UIO_H
12525 # include <sys/uio.h>
12526 #endif
12527 #ifdef HAVE_UNISTD_H
12528 # include <unistd.h>
12529 #endif
12530 #ifdef HAVE_SYS_WAIT_H
12531 # include <sys/wait.h>
12532 #endif
12533 #ifdef HAVE_SYS_UN_H
12534 # include <sys/un.h>
12535 #endif
12536 #ifdef HAVE_SYS_SELECT_H
12537 # include <sys/select.h>
12538 #endif
12539 #ifdef HAVE_STRINGS_H
12540 # include <strings.h>
12541 #endif
12542 #ifdef HAVE_SYS_IOCTL_H
12543 # include <sys/ioctl.h>
12544 #endif
12545 #ifdef HAVE_SYS_FILIO_H
12546 # include <sys/filio.h>
12547 #endif
12548 #ifdef HAVE_SYS_SOCKIO_H
12549 # include <sys/sockio.h>
12550 #endif
12551 #ifdef HAVE_PTHREAD_H
12552 # include <pthread.h>
12553 #endif
12554 int
12555 main ()
12556 {
12557 uchar_t foo
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 ac_cv_type_uchar_t=yes
12564 else
12565 ac_cv_type_uchar_t=no
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 fi
12569
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uchar_t" >&5
12571 $as_echo "$ac_cv_type_uchar_t" >&6; }
12572 if test $ac_cv_type_uchar_t = no ; then
12573
12574 $as_echo "#define uchar_t unsigned char" >>confdefs.h
12575
12576 fi
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int8_t defined" >&5
12579 $as_echo_n "checking if int8_t defined... " >&6; }
12580 if ${ac_cv_type_int8_t+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585
12586 #include "confdefs.h" /* the header built by configure so far */
12587 #ifdef HAVE_STDINT_H
12588 # include <stdint.h>
12589 #endif
12590 #ifdef HAVE_INTTYPES_H
12591 # include <inttypes.h>
12592 #endif
12593 #ifdef HAVE_SYS_TYPES_H
12594 # include <sys/types.h>
12595 #endif
12596 #ifdef HAVE_SYS_SOCKET_H
12597 # include <sys/socket.h>
12598 #endif
12599 #ifdef HAVE_SYS_TIME_H
12600 # include <sys/time.h>
12601 #endif
12602 #ifdef HAVE_NETINET_IN_H
12603 # include <netinet/in.h>
12604 #endif
12605 #ifdef HAVE_ARPA_INET_H
12606 # include <arpa/inet.h>
12607 #endif
12608 #ifdef HAVE_ERRNO_H
12609 # include <errno.h>
12610 #endif
12611 #ifdef HAVE_FCNTL_H
12612 # include <fcntl.h>
12613 #endif
12614 #ifdef HAVE_NETDB_H
12615 # include <netdb.h>
12616 #endif
12617 #ifdef HAVE_SIGNAL_H
12618 # include <signal.h>
12619 #endif
12620 #ifdef HAVE_STDIO_H
12621 # include <stdio.h>
12622 #endif
12623 #ifdef HAVE_STDLIB_H
12624 # include <stdlib.h>
12625 #endif
12626 #ifdef HAVE_STRING_H
12627 # include <string.h>
12628 #endif
12629 #ifdef HAVE_SYS_STAT_H
12630 # include <sys/stat.h>
12631 #endif
12632 #ifdef HAVE_SYS_UIO_H
12633 # include <sys/uio.h>
12634 #endif
12635 #ifdef HAVE_UNISTD_H
12636 # include <unistd.h>
12637 #endif
12638 #ifdef HAVE_SYS_WAIT_H
12639 # include <sys/wait.h>
12640 #endif
12641 #ifdef HAVE_SYS_UN_H
12642 # include <sys/un.h>
12643 #endif
12644 #ifdef HAVE_SYS_SELECT_H
12645 # include <sys/select.h>
12646 #endif
12647 #ifdef HAVE_STRINGS_H
12648 # include <strings.h>
12649 #endif
12650 #ifdef HAVE_SYS_IOCTL_H
12651 # include <sys/ioctl.h>
12652 #endif
12653 #ifdef HAVE_SYS_FILIO_H
12654 # include <sys/filio.h>
12655 #endif
12656 #ifdef HAVE_SYS_SOCKIO_H
12657 # include <sys/sockio.h>
12658 #endif
12659 #ifdef HAVE_PTHREAD_H
12660 # include <pthread.h>
12661 #endif
12662 int
12663 main ()
12664 {
12665 int8_t foo
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 ac_cv_type_int8_t=yes
12672 else
12673 ac_cv_type_int8_t=no
12674 fi
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 fi
12677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5
12679 $as_echo "$ac_cv_type_int8_t" >&6; }
12680 if test $ac_cv_type_int8_t = no ; then
12681
12682 $as_echo "#define int8_t signed char" >>confdefs.h
12683
12684 fi
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uint8_t defined" >&5
12687 $as_echo_n "checking if uint8_t defined... " >&6; }
12688 if ${ac_cv_type_uint8_t+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693
12694 #include "confdefs.h" /* the header built by configure so far */
12695 #ifdef HAVE_STDINT_H
12696 # include <stdint.h>
12697 #endif
12698 #ifdef HAVE_INTTYPES_H
12699 # include <inttypes.h>
12700 #endif
12701 #ifdef HAVE_SYS_TYPES_H
12702 # include <sys/types.h>
12703 #endif
12704 #ifdef HAVE_SYS_SOCKET_H
12705 # include <sys/socket.h>
12706 #endif
12707 #ifdef HAVE_SYS_TIME_H
12708 # include <sys/time.h>
12709 #endif
12710 #ifdef HAVE_NETINET_IN_H
12711 # include <netinet/in.h>
12712 #endif
12713 #ifdef HAVE_ARPA_INET_H
12714 # include <arpa/inet.h>
12715 #endif
12716 #ifdef HAVE_ERRNO_H
12717 # include <errno.h>
12718 #endif
12719 #ifdef HAVE_FCNTL_H
12720 # include <fcntl.h>
12721 #endif
12722 #ifdef HAVE_NETDB_H
12723 # include <netdb.h>
12724 #endif
12725 #ifdef HAVE_SIGNAL_H
12726 # include <signal.h>
12727 #endif
12728 #ifdef HAVE_STDIO_H
12729 # include <stdio.h>
12730 #endif
12731 #ifdef HAVE_STDLIB_H
12732 # include <stdlib.h>
12733 #endif
12734 #ifdef HAVE_STRING_H
12735 # include <string.h>
12736 #endif
12737 #ifdef HAVE_SYS_STAT_H
12738 # include <sys/stat.h>
12739 #endif
12740 #ifdef HAVE_SYS_UIO_H
12741 # include <sys/uio.h>
12742 #endif
12743 #ifdef HAVE_UNISTD_H
12744 # include <unistd.h>
12745 #endif
12746 #ifdef HAVE_SYS_WAIT_H
12747 # include <sys/wait.h>
12748 #endif
12749 #ifdef HAVE_SYS_UN_H
12750 # include <sys/un.h>
12751 #endif
12752 #ifdef HAVE_SYS_SELECT_H
12753 # include <sys/select.h>
12754 #endif
12755 #ifdef HAVE_STRINGS_H
12756 # include <strings.h>
12757 #endif
12758 #ifdef HAVE_SYS_IOCTL_H
12759 # include <sys/ioctl.h>
12760 #endif
12761 #ifdef HAVE_SYS_FILIO_H
12762 # include <sys/filio.h>
12763 #endif
12764 #ifdef HAVE_SYS_SOCKIO_H
12765 # include <sys/sockio.h>
12766 #endif
12767 #ifdef HAVE_PTHREAD_H
12768 # include <pthread.h>
12769 #endif
12770 int
12771 main ()
12772 {
12773 uint8_t foo
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779 ac_cv_type_uint8_t=yes
12780 else
12781 ac_cv_type_uint8_t=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 fi
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
12787 $as_echo "$ac_cv_type_uint8_t" >&6; }
12788 if test $ac_cv_type_uint8_t = no ; then
12789
12790 $as_echo "#define uint8_t unsigned char" >>confdefs.h
12791
12792 fi
12793
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int16_t defined" >&5
12795 $as_echo_n "checking if int16_t defined... " >&6; }
12796 if ${ac_cv_type_int16_t+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 #include "confdefs.h" /* the header built by configure so far */
12803 #ifdef HAVE_STDINT_H
12804 # include <stdint.h>
12805 #endif
12806 #ifdef HAVE_INTTYPES_H
12807 # include <inttypes.h>
12808 #endif
12809 #ifdef HAVE_SYS_TYPES_H
12810 # include <sys/types.h>
12811 #endif
12812 #ifdef HAVE_SYS_SOCKET_H
12813 # include <sys/socket.h>
12814 #endif
12815 #ifdef HAVE_SYS_TIME_H
12816 # include <sys/time.h>
12817 #endif
12818 #ifdef HAVE_NETINET_IN_H
12819 # include <netinet/in.h>
12820 #endif
12821 #ifdef HAVE_ARPA_INET_H
12822 # include <arpa/inet.h>
12823 #endif
12824 #ifdef HAVE_ERRNO_H
12825 # include <errno.h>
12826 #endif
12827 #ifdef HAVE_FCNTL_H
12828 # include <fcntl.h>
12829 #endif
12830 #ifdef HAVE_NETDB_H
12831 # include <netdb.h>
12832 #endif
12833 #ifdef HAVE_SIGNAL_H
12834 # include <signal.h>
12835 #endif
12836 #ifdef HAVE_STDIO_H
12837 # include <stdio.h>
12838 #endif
12839 #ifdef HAVE_STDLIB_H
12840 # include <stdlib.h>
12841 #endif
12842 #ifdef HAVE_STRING_H
12843 # include <string.h>
12844 #endif
12845 #ifdef HAVE_SYS_STAT_H
12846 # include <sys/stat.h>
12847 #endif
12848 #ifdef HAVE_SYS_UIO_H
12849 # include <sys/uio.h>
12850 #endif
12851 #ifdef HAVE_UNISTD_H
12852 # include <unistd.h>
12853 #endif
12854 #ifdef HAVE_SYS_WAIT_H
12855 # include <sys/wait.h>
12856 #endif
12857 #ifdef HAVE_SYS_UN_H
12858 # include <sys/un.h>
12859 #endif
12860 #ifdef HAVE_SYS_SELECT_H
12861 # include <sys/select.h>
12862 #endif
12863 #ifdef HAVE_STRINGS_H
12864 # include <strings.h>
12865 #endif
12866 #ifdef HAVE_SYS_IOCTL_H
12867 # include <sys/ioctl.h>
12868 #endif
12869 #ifdef HAVE_SYS_FILIO_H
12870 # include <sys/filio.h>
12871 #endif
12872 #ifdef HAVE_SYS_SOCKIO_H
12873 # include <sys/sockio.h>
12874 #endif
12875 #ifdef HAVE_PTHREAD_H
12876 # include <pthread.h>
12877 #endif
12878 int
12879 main ()
12880 {
12881 int16_t foo
12882 ;
12883 return 0;
12884 }
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887 ac_cv_type_int16_t=yes
12888 else
12889 ac_cv_type_int16_t=no
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 fi
12893
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5
12895 $as_echo "$ac_cv_type_int16_t" >&6; }
12896 if test $ac_cv_type_int16_t = no ; then
12897
12898 $as_echo "#define int16_t signed short" >>confdefs.h
12899
12900 fi
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uint16_t defined" >&5
12903 $as_echo_n "checking if uint16_t defined... " >&6; }
12904 if ${ac_cv_type_uint16_t+:} false; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909
12910 #include "confdefs.h" /* the header built by configure so far */
12911 #ifdef HAVE_STDINT_H
12912 # include <stdint.h>
12913 #endif
12914 #ifdef HAVE_INTTYPES_H
12915 # include <inttypes.h>
12916 #endif
12917 #ifdef HAVE_SYS_TYPES_H
12918 # include <sys/types.h>
12919 #endif
12920 #ifdef HAVE_SYS_SOCKET_H
12921 # include <sys/socket.h>
12922 #endif
12923 #ifdef HAVE_SYS_TIME_H
12924 # include <sys/time.h>
12925 #endif
12926 #ifdef HAVE_NETINET_IN_H
12927 # include <netinet/in.h>
12928 #endif
12929 #ifdef HAVE_ARPA_INET_H
12930 # include <arpa/inet.h>
12931 #endif
12932 #ifdef HAVE_ERRNO_H
12933 # include <errno.h>
12934 #endif
12935 #ifdef HAVE_FCNTL_H
12936 # include <fcntl.h>
12937 #endif
12938 #ifdef HAVE_NETDB_H
12939 # include <netdb.h>
12940 #endif
12941 #ifdef HAVE_SIGNAL_H
12942 # include <signal.h>
12943 #endif
12944 #ifdef HAVE_STDIO_H
12945 # include <stdio.h>
12946 #endif
12947 #ifdef HAVE_STDLIB_H
12948 # include <stdlib.h>
12949 #endif
12950 #ifdef HAVE_STRING_H
12951 # include <string.h>
12952 #endif
12953 #ifdef HAVE_SYS_STAT_H
12954 # include <sys/stat.h>
12955 #endif
12956 #ifdef HAVE_SYS_UIO_H
12957 # include <sys/uio.h>
12958 #endif
12959 #ifdef HAVE_UNISTD_H
12960 # include <unistd.h>
12961 #endif
12962 #ifdef HAVE_SYS_WAIT_H
12963 # include <sys/wait.h>
12964 #endif
12965 #ifdef HAVE_SYS_UN_H
12966 # include <sys/un.h>
12967 #endif
12968 #ifdef HAVE_SYS_SELECT_H
12969 # include <sys/select.h>
12970 #endif
12971 #ifdef HAVE_STRINGS_H
12972 # include <strings.h>
12973 #endif
12974 #ifdef HAVE_SYS_IOCTL_H
12975 # include <sys/ioctl.h>
12976 #endif
12977 #ifdef HAVE_SYS_FILIO_H
12978 # include <sys/filio.h>
12979 #endif
12980 #ifdef HAVE_SYS_SOCKIO_H
12981 # include <sys/sockio.h>
12982 #endif
12983 #ifdef HAVE_PTHREAD_H
12984 # include <pthread.h>
12985 #endif
12986 int
12987 main ()
12988 {
12989 uint16_t foo
12990 ;
12991 return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 ac_cv_type_uint16_t=yes
12996 else
12997 ac_cv_type_uint16_t=no
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
13003 $as_echo "$ac_cv_type_uint16_t" >&6; }
13004 if test $ac_cv_type_uint16_t = no ; then
13005
13006 $as_echo "#define uint16_t unsigned short" >>confdefs.h
13007
13008 fi
13009
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t defined" >&5
13011 $as_echo_n "checking if int32_t defined... " >&6; }
13012 if ${ac_cv_type_int32_t+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017
13018 #include "confdefs.h" /* the header built by configure so far */
13019 #ifdef HAVE_STDINT_H
13020 # include <stdint.h>
13021 #endif
13022 #ifdef HAVE_INTTYPES_H
13023 # include <inttypes.h>
13024 #endif
13025 #ifdef HAVE_SYS_TYPES_H
13026 # include <sys/types.h>
13027 #endif
13028 #ifdef HAVE_SYS_SOCKET_H
13029 # include <sys/socket.h>
13030 #endif
13031 #ifdef HAVE_SYS_TIME_H
13032 # include <sys/time.h>
13033 #endif
13034 #ifdef HAVE_NETINET_IN_H
13035 # include <netinet/in.h>
13036 #endif
13037 #ifdef HAVE_ARPA_INET_H
13038 # include <arpa/inet.h>
13039 #endif
13040 #ifdef HAVE_ERRNO_H
13041 # include <errno.h>
13042 #endif
13043 #ifdef HAVE_FCNTL_H
13044 # include <fcntl.h>
13045 #endif
13046 #ifdef HAVE_NETDB_H
13047 # include <netdb.h>
13048 #endif
13049 #ifdef HAVE_SIGNAL_H
13050 # include <signal.h>
13051 #endif
13052 #ifdef HAVE_STDIO_H
13053 # include <stdio.h>
13054 #endif
13055 #ifdef HAVE_STDLIB_H
13056 # include <stdlib.h>
13057 #endif
13058 #ifdef HAVE_STRING_H
13059 # include <string.h>
13060 #endif
13061 #ifdef HAVE_SYS_STAT_H
13062 # include <sys/stat.h>
13063 #endif
13064 #ifdef HAVE_SYS_UIO_H
13065 # include <sys/uio.h>
13066 #endif
13067 #ifdef HAVE_UNISTD_H
13068 # include <unistd.h>
13069 #endif
13070 #ifdef HAVE_SYS_WAIT_H
13071 # include <sys/wait.h>
13072 #endif
13073 #ifdef HAVE_SYS_UN_H
13074 # include <sys/un.h>
13075 #endif
13076 #ifdef HAVE_SYS_SELECT_H
13077 # include <sys/select.h>
13078 #endif
13079 #ifdef HAVE_STRINGS_H
13080 # include <strings.h>
13081 #endif
13082 #ifdef HAVE_SYS_IOCTL_H
13083 # include <sys/ioctl.h>
13084 #endif
13085 #ifdef HAVE_SYS_FILIO_H
13086 # include <sys/filio.h>
13087 #endif
13088 #ifdef HAVE_SYS_SOCKIO_H
13089 # include <sys/sockio.h>
13090 #endif
13091 #ifdef HAVE_PTHREAD_H
13092 # include <pthread.h>
13093 #endif
13094 int
13095 main ()
13096 {
13097 int32_t foo
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_compile "$LINENO"; then :
13103 ac_cv_type_int32_t=yes
13104 else
13105 ac_cv_type_int32_t=no
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108 fi
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5
13111 $as_echo "$ac_cv_type_int32_t" >&6; }
13112 if test $ac_cv_type_int32_t = no ; then
13113
13114 $as_echo "#define int32_t signed int" >>confdefs.h
13115
13116 fi
13117
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uint32_t defined" >&5
13119 $as_echo_n "checking if uint32_t defined... " >&6; }
13120 if ${ac_cv_type_uint32_t+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125
13126 #include "confdefs.h" /* the header built by configure so far */
13127 #ifdef HAVE_STDINT_H
13128 # include <stdint.h>
13129 #endif
13130 #ifdef HAVE_INTTYPES_H
13131 # include <inttypes.h>
13132 #endif
13133 #ifdef HAVE_SYS_TYPES_H
13134 # include <sys/types.h>
13135 #endif
13136 #ifdef HAVE_SYS_SOCKET_H
13137 # include <sys/socket.h>
13138 #endif
13139 #ifdef HAVE_SYS_TIME_H
13140 # include <sys/time.h>
13141 #endif
13142 #ifdef HAVE_NETINET_IN_H
13143 # include <netinet/in.h>
13144 #endif
13145 #ifdef HAVE_ARPA_INET_H
13146 # include <arpa/inet.h>
13147 #endif
13148 #ifdef HAVE_ERRNO_H
13149 # include <errno.h>
13150 #endif
13151 #ifdef HAVE_FCNTL_H
13152 # include <fcntl.h>
13153 #endif
13154 #ifdef HAVE_NETDB_H
13155 # include <netdb.h>
13156 #endif
13157 #ifdef HAVE_SIGNAL_H
13158 # include <signal.h>
13159 #endif
13160 #ifdef HAVE_STDIO_H
13161 # include <stdio.h>
13162 #endif
13163 #ifdef HAVE_STDLIB_H
13164 # include <stdlib.h>
13165 #endif
13166 #ifdef HAVE_STRING_H
13167 # include <string.h>
13168 #endif
13169 #ifdef HAVE_SYS_STAT_H
13170 # include <sys/stat.h>
13171 #endif
13172 #ifdef HAVE_SYS_UIO_H
13173 # include <sys/uio.h>
13174 #endif
13175 #ifdef HAVE_UNISTD_H
13176 # include <unistd.h>
13177 #endif
13178 #ifdef HAVE_SYS_WAIT_H
13179 # include <sys/wait.h>
13180 #endif
13181 #ifdef HAVE_SYS_UN_H
13182 # include <sys/un.h>
13183 #endif
13184 #ifdef HAVE_SYS_SELECT_H
13185 # include <sys/select.h>
13186 #endif
13187 #ifdef HAVE_STRINGS_H
13188 # include <strings.h>
13189 #endif
13190 #ifdef HAVE_SYS_IOCTL_H
13191 # include <sys/ioctl.h>
13192 #endif
13193 #ifdef HAVE_SYS_FILIO_H
13194 # include <sys/filio.h>
13195 #endif
13196 #ifdef HAVE_SYS_SOCKIO_H
13197 # include <sys/sockio.h>
13198 #endif
13199 #ifdef HAVE_PTHREAD_H
13200 # include <pthread.h>
13201 #endif
13202 int
13203 main ()
13204 {
13205 uint32_t foo
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 ac_cv_type_uint32_t=yes
13212 else
13213 ac_cv_type_uint32_t=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 fi
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
13219 $as_echo "$ac_cv_type_uint32_t" >&6; }
13220 if test $ac_cv_type_uint32_t = no ; then
13221
13222 $as_echo "#define uint32_t unsigned int" >>confdefs.h
13223
13224 fi
13225
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if size_t defined" >&5
13227 $as_echo_n "checking if size_t defined... " >&6; }
13228 if ${ac_cv_type_size_t+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233
13234 #include "confdefs.h" /* the header built by configure so far */
13235 #ifdef HAVE_STDINT_H
13236 # include <stdint.h>
13237 #endif
13238 #ifdef HAVE_INTTYPES_H
13239 # include <inttypes.h>
13240 #endif
13241 #ifdef HAVE_SYS_TYPES_H
13242 # include <sys/types.h>
13243 #endif
13244 #ifdef HAVE_SYS_SOCKET_H
13245 # include <sys/socket.h>
13246 #endif
13247 #ifdef HAVE_SYS_TIME_H
13248 # include <sys/time.h>
13249 #endif
13250 #ifdef HAVE_NETINET_IN_H
13251 # include <netinet/in.h>
13252 #endif
13253 #ifdef HAVE_ARPA_INET_H
13254 # include <arpa/inet.h>
13255 #endif
13256 #ifdef HAVE_ERRNO_H
13257 # include <errno.h>
13258 #endif
13259 #ifdef HAVE_FCNTL_H
13260 # include <fcntl.h>
13261 #endif
13262 #ifdef HAVE_NETDB_H
13263 # include <netdb.h>
13264 #endif
13265 #ifdef HAVE_SIGNAL_H
13266 # include <signal.h>
13267 #endif
13268 #ifdef HAVE_STDIO_H
13269 # include <stdio.h>
13270 #endif
13271 #ifdef HAVE_STDLIB_H
13272 # include <stdlib.h>
13273 #endif
13274 #ifdef HAVE_STRING_H
13275 # include <string.h>
13276 #endif
13277 #ifdef HAVE_SYS_STAT_H
13278 # include <sys/stat.h>
13279 #endif
13280 #ifdef HAVE_SYS_UIO_H
13281 # include <sys/uio.h>
13282 #endif
13283 #ifdef HAVE_UNISTD_H
13284 # include <unistd.h>
13285 #endif
13286 #ifdef HAVE_SYS_WAIT_H
13287 # include <sys/wait.h>
13288 #endif
13289 #ifdef HAVE_SYS_UN_H
13290 # include <sys/un.h>
13291 #endif
13292 #ifdef HAVE_SYS_SELECT_H
13293 # include <sys/select.h>
13294 #endif
13295 #ifdef HAVE_STRINGS_H
13296 # include <strings.h>
13297 #endif
13298 #ifdef HAVE_SYS_IOCTL_H
13299 # include <sys/ioctl.h>
13300 #endif
13301 #ifdef HAVE_SYS_FILIO_H
13302 # include <sys/filio.h>
13303 #endif
13304 #ifdef HAVE_SYS_SOCKIO_H
13305 # include <sys/sockio.h>
13306 #endif
13307 #ifdef HAVE_PTHREAD_H
13308 # include <pthread.h>
13309 #endif
13310 int
13311 main ()
13312 {
13313 size_t foo
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"; then :
13319 ac_cv_type_size_t=yes
13320 else
13321 ac_cv_type_size_t=no
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 fi
13325
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_size_t" >&5
13327 $as_echo "$ac_cv_type_size_t" >&6; }
13328 if test $ac_cv_type_size_t = no ; then
13329
13330 $as_echo "#define size_t unsigned int" >>confdefs.h
13331
13332 fi
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ssize_t defined" >&5
13335 $as_echo_n "checking if ssize_t defined... " >&6; }
13336 if ${ac_cv_type_ssize_t+:} false; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341
13342 #include "confdefs.h" /* the header built by configure so far */
13343 #ifdef HAVE_STDINT_H
13344 # include <stdint.h>
13345 #endif
13346 #ifdef HAVE_INTTYPES_H
13347 # include <inttypes.h>
13348 #endif
13349 #ifdef HAVE_SYS_TYPES_H
13350 # include <sys/types.h>
13351 #endif
13352 #ifdef HAVE_SYS_SOCKET_H
13353 # include <sys/socket.h>
13354 #endif
13355 #ifdef HAVE_SYS_TIME_H
13356 # include <sys/time.h>
13357 #endif
13358 #ifdef HAVE_NETINET_IN_H
13359 # include <netinet/in.h>
13360 #endif
13361 #ifdef HAVE_ARPA_INET_H
13362 # include <arpa/inet.h>
13363 #endif
13364 #ifdef HAVE_ERRNO_H
13365 # include <errno.h>
13366 #endif
13367 #ifdef HAVE_FCNTL_H
13368 # include <fcntl.h>
13369 #endif
13370 #ifdef HAVE_NETDB_H
13371 # include <netdb.h>
13372 #endif
13373 #ifdef HAVE_SIGNAL_H
13374 # include <signal.h>
13375 #endif
13376 #ifdef HAVE_STDIO_H
13377 # include <stdio.h>
13378 #endif
13379 #ifdef HAVE_STDLIB_H
13380 # include <stdlib.h>
13381 #endif
13382 #ifdef HAVE_STRING_H
13383 # include <string.h>
13384 #endif
13385 #ifdef HAVE_SYS_STAT_H
13386 # include <sys/stat.h>
13387 #endif
13388 #ifdef HAVE_SYS_UIO_H
13389 # include <sys/uio.h>
13390 #endif
13391 #ifdef HAVE_UNISTD_H
13392 # include <unistd.h>
13393 #endif
13394 #ifdef HAVE_SYS_WAIT_H
13395 # include <sys/wait.h>
13396 #endif
13397 #ifdef HAVE_SYS_UN_H
13398 # include <sys/un.h>
13399 #endif
13400 #ifdef HAVE_SYS_SELECT_H
13401 # include <sys/select.h>
13402 #endif
13403 #ifdef HAVE_STRINGS_H
13404 # include <strings.h>
13405 #endif
13406 #ifdef HAVE_SYS_IOCTL_H
13407 # include <sys/ioctl.h>
13408 #endif
13409 #ifdef HAVE_SYS_FILIO_H
13410 # include <sys/filio.h>
13411 #endif
13412 #ifdef HAVE_SYS_SOCKIO_H
13413 # include <sys/sockio.h>
13414 #endif
13415 #ifdef HAVE_PTHREAD_H
13416 # include <pthread.h>
13417 #endif
13418 int
13419 main ()
13420 {
13421 ssize_t foo
13422 ;
13423 return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427 ac_cv_type_ssize_t=yes
13428 else
13429 ac_cv_type_ssize_t=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5
13435 $as_echo "$ac_cv_type_ssize_t" >&6; }
13436 if test $ac_cv_type_ssize_t = no ; then
13437
13438 $as_echo "#define ssize_t signed int" >>confdefs.h
13439
13440 fi
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t defined" >&5
13443 $as_echo_n "checking if socklen_t defined... " >&6; }
13444 if ${ac_cv_type_socklen_t+:} false; then :
13445 $as_echo_n "(cached) " >&6
13446 else
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449
13450 #include "confdefs.h" /* the header built by configure so far */
13451 #ifdef HAVE_STDINT_H
13452 # include <stdint.h>
13453 #endif
13454 #ifdef HAVE_INTTYPES_H
13455 # include <inttypes.h>
13456 #endif
13457 #ifdef HAVE_SYS_TYPES_H
13458 # include <sys/types.h>
13459 #endif
13460 #ifdef HAVE_SYS_SOCKET_H
13461 # include <sys/socket.h>
13462 #endif
13463 #ifdef HAVE_SYS_TIME_H
13464 # include <sys/time.h>
13465 #endif
13466 #ifdef HAVE_NETINET_IN_H
13467 # include <netinet/in.h>
13468 #endif
13469 #ifdef HAVE_ARPA_INET_H
13470 # include <arpa/inet.h>
13471 #endif
13472 #ifdef HAVE_ERRNO_H
13473 # include <errno.h>
13474 #endif
13475 #ifdef HAVE_FCNTL_H
13476 # include <fcntl.h>
13477 #endif
13478 #ifdef HAVE_NETDB_H
13479 # include <netdb.h>
13480 #endif
13481 #ifdef HAVE_SIGNAL_H
13482 # include <signal.h>
13483 #endif
13484 #ifdef HAVE_STDIO_H
13485 # include <stdio.h>
13486 #endif
13487 #ifdef HAVE_STDLIB_H
13488 # include <stdlib.h>
13489 #endif
13490 #ifdef HAVE_STRING_H
13491 # include <string.h>
13492 #endif
13493 #ifdef HAVE_SYS_STAT_H
13494 # include <sys/stat.h>
13495 #endif
13496 #ifdef HAVE_SYS_UIO_H
13497 # include <sys/uio.h>
13498 #endif
13499 #ifdef HAVE_UNISTD_H
13500 # include <unistd.h>
13501 #endif
13502 #ifdef HAVE_SYS_WAIT_H
13503 # include <sys/wait.h>
13504 #endif
13505 #ifdef HAVE_SYS_UN_H
13506 # include <sys/un.h>
13507 #endif
13508 #ifdef HAVE_SYS_SELECT_H
13509 # include <sys/select.h>
13510 #endif
13511 #ifdef HAVE_STRINGS_H
13512 # include <strings.h>
13513 #endif
13514 #ifdef HAVE_SYS_IOCTL_H
13515 # include <sys/ioctl.h>
13516 #endif
13517 #ifdef HAVE_SYS_FILIO_H
13518 # include <sys/filio.h>
13519 #endif
13520 #ifdef HAVE_SYS_SOCKIO_H
13521 # include <sys/sockio.h>
13522 #endif
13523 #ifdef HAVE_PTHREAD_H
13524 # include <pthread.h>
13525 #endif
13526 int
13527 main ()
13528 {
13529 socklen_t foo
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 if ac_fn_c_try_compile "$LINENO"; then :
13535 ac_cv_type_socklen_t=yes
13536 else
13537 ac_cv_type_socklen_t=no
13538 fi
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 fi
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
13543 $as_echo "$ac_cv_type_socklen_t" >&6; }
13544 if test $ac_cv_type_socklen_t = no ; then
13545
13546 $as_echo "#define socklen_t unsigned int" >>confdefs.h
13547
13548 fi
13549
13550
13551 # Checks for library functions.
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13553 $as_echo_n "checking whether closedir returns void... " >&6; }
13554 if ${ac_cv_func_closedir_void+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 if test "$cross_compiling" = yes; then :
13558 ac_cv_func_closedir_void=yes
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 #include <$ac_header_dirent>
13564 #ifndef __cplusplus
13565 int closedir ();
13566 #endif
13567
13568 int
13569 main ()
13570 {
13571 return closedir (opendir (".")) != 0;
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_run "$LINENO"; then :
13577 ac_cv_func_closedir_void=no
13578 else
13579 ac_cv_func_closedir_void=yes
13580 fi
13581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13582 conftest.$ac_objext conftest.beam conftest.$ac_ext
13583 fi
13584
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13587 $as_echo "$ac_cv_func_closedir_void" >&6; }
13588 if test $ac_cv_func_closedir_void = yes; then
13589
13590 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
13591
13592 fi
13593
13594 if test $ac_cv_c_compiler_gnu = yes; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13596 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13597 if ${ac_cv_prog_gcc_traditional+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 ac_pattern="Autoconf.*'x'"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 #include <sgtty.h>
13604 Autoconf TIOCGETP
13605 _ACEOF
13606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13607 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13608 ac_cv_prog_gcc_traditional=yes
13609 else
13610 ac_cv_prog_gcc_traditional=no
13611 fi
13612 rm -f conftest*
13613
13614
13615 if test $ac_cv_prog_gcc_traditional = no; then
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <termio.h>
13619 Autoconf TCGETA
13620 _ACEOF
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13623 ac_cv_prog_gcc_traditional=yes
13624 fi
13625 rm -f conftest*
13626
13627 fi
13628 fi
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13630 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13631 if test $ac_cv_prog_gcc_traditional = yes; then
13632 CC="$CC -traditional"
13633 fi
13634 fi
13635
13636 for ac_header in stdlib.h
13637 do :
13638 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13639 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_STDLIB_H 1
13642 _ACEOF
13643
13644 fi
13645
13646 done
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13649 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13650 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 if test "$cross_compiling" = yes; then :
13654 ac_cv_func_malloc_0_nonnull=no
13655 else
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13659 # include <stdlib.h>
13660 #else
13661 char *malloc ();
13662 #endif
13663
13664 int
13665 main ()
13666 {
13667 return ! malloc (0);
13668 ;
13669 return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_run "$LINENO"; then :
13673 ac_cv_func_malloc_0_nonnull=yes
13674 else
13675 ac_cv_func_malloc_0_nonnull=no
13676 fi
13677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13678 conftest.$ac_objext conftest.beam conftest.$ac_ext
13679 fi
13680
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13683 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13684 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13685
13686 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13687
13688 else
13689 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13690
13691 case " $LIBOBJS " in
13692 *" malloc.$ac_objext "* ) ;;
13693 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13694 ;;
13695 esac
13696
13697
13698 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13699
13700 fi
13701
13702
13703 for ac_header in stdlib.h
13704 do :
13705 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13706 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13707 cat >>confdefs.h <<_ACEOF
13708 #define HAVE_STDLIB_H 1
13709 _ACEOF
13710
13711 fi
13712
13713 done
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13716 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
13717 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 if test "$cross_compiling" = yes; then :
13721 ac_cv_func_realloc_0_nonnull=no
13722 else
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13726 # include <stdlib.h>
13727 #else
13728 char *realloc ();
13729 #endif
13730
13731 int
13732 main ()
13733 {
13734 return ! realloc (0, 0);
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_c_try_run "$LINENO"; then :
13740 ac_cv_func_realloc_0_nonnull=yes
13741 else
13742 ac_cv_func_realloc_0_nonnull=no
13743 fi
13744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13745 conftest.$ac_objext conftest.beam conftest.$ac_ext
13746 fi
13747
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13750 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
13751 if test $ac_cv_func_realloc_0_nonnull = yes; then :
13752
13753 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
13754
13755 else
13756 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
13757
13758 case " $LIBOBJS " in
13759 *" realloc.$ac_objext "* ) ;;
13760 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13761 ;;
13762 esac
13763
13764
13765 $as_echo "#define realloc rpl_realloc" >>confdefs.h
13766
13767 fi
13768
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13771 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13772 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 rm -f conftest.sym conftest.file
13776 echo >conftest.file
13777 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13778 if test "$cross_compiling" = yes; then :
13779 ac_cv_func_lstat_dereferences_slashed_symlink=no
13780 else
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 $ac_includes_default
13784 int
13785 main ()
13786 {
13787 struct stat sbuf;
13788 /* Linux will dereference the symlink and fail, as required by POSIX.
13789 That is better in the sense that it means we will not
13790 have to compile and use the lstat wrapper. */
13791 return lstat ("conftest.sym/", &sbuf) == 0;
13792 ;
13793 return 0;
13794 }
13795 _ACEOF
13796 if ac_fn_c_try_run "$LINENO"; then :
13797 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13798 else
13799 ac_cv_func_lstat_dereferences_slashed_symlink=no
13800 fi
13801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13802 conftest.$ac_objext conftest.beam conftest.$ac_ext
13803 fi
13804
13805 else
13806 # If the `ln -s' command failed, then we probably don't even
13807 # have an lstat function.
13808 ac_cv_func_lstat_dereferences_slashed_symlink=no
13809 fi
13810 rm -f conftest.sym conftest.file
13811
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13814 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13815
13816 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13817
13818 cat >>confdefs.h <<_ACEOF
13819 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13820 _ACEOF
13821
13822
13823 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13824 case " $LIBOBJS " in
13825 *" lstat.$ac_objext "* ) ;;
13826 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13827 ;;
13828 esac
13829
13830 fi
13831
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13833 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13834 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 if test "$cross_compiling" = yes; then :
13838 ac_cv_func_stat_empty_string_bug=yes
13839 else
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 $ac_includes_default
13843 int
13844 main ()
13845 {
13846 struct stat sbuf;
13847 return stat ("", &sbuf) == 0;
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_run "$LINENO"; then :
13853 ac_cv_func_stat_empty_string_bug=no
13854 else
13855 ac_cv_func_stat_empty_string_bug=yes
13856 fi
13857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13858 conftest.$ac_objext conftest.beam conftest.$ac_ext
13859 fi
13860
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13863 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13864 if test $ac_cv_func_stat_empty_string_bug = yes; then
13865 case " $LIBOBJS " in
13866 *" stat.$ac_objext "* ) ;;
13867 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13868 ;;
13869 esac
13870
13871
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_STAT_EMPTY_STRING_BUG 1
13874 _ACEOF
13875
13876 fi
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
13879 $as_echo_n "checking for working strtod... " >&6; }
13880 if ${ac_cv_func_strtod+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 if test "$cross_compiling" = yes; then :
13884 ac_cv_func_strtod=no
13885 else
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888
13889 $ac_includes_default
13890 #ifndef strtod
13891 double strtod ();
13892 #endif
13893 int
13894 main()
13895 {
13896 {
13897 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13898 char *string = " +69";
13899 char *term;
13900 double value;
13901 value = strtod (string, &term);
13902 if (value != 69 || term != (string + 4))
13903 return 1;
13904 }
13905
13906 {
13907 /* Under Solaris 2.4, strtod returns the wrong value for the
13908 terminating character under some conditions. */
13909 char *string = "NaN";
13910 char *term;
13911 strtod (string, &term);
13912 if (term != string && *(term - 1) == 0)
13913 return 1;
13914 }
13915 return 0;
13916 }
13917
13918 _ACEOF
13919 if ac_fn_c_try_run "$LINENO"; then :
13920 ac_cv_func_strtod=yes
13921 else
13922 ac_cv_func_strtod=no
13923 fi
13924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13925 conftest.$ac_objext conftest.beam conftest.$ac_ext
13926 fi
13927
13928 fi
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
13930 $as_echo "$ac_cv_func_strtod" >&6; }
13931 if test $ac_cv_func_strtod = no; then
13932 case " $LIBOBJS " in
13933 *" strtod.$ac_objext "* ) ;;
13934 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
13935 ;;
13936 esac
13937
13938 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13939 if test "x$ac_cv_func_pow" = xyes; then :
13940
13941 fi
13942
13943 if test $ac_cv_func_pow = no; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13945 $as_echo_n "checking for pow in -lm... " >&6; }
13946 if ${ac_cv_lib_m_pow+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-lm $LIBS"
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13953
13954 /* Override any GCC internal prototype to avoid an error.
13955 Use char because int might match the return type of a GCC
13956 builtin and then its argument prototype would still apply. */
13957 #ifdef __cplusplus
13958 extern "C"
13959 #endif
13960 char pow ();
13961 int
13962 main ()
13963 {
13964 return pow ();
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 if ac_fn_c_try_link "$LINENO"; then :
13970 ac_cv_lib_m_pow=yes
13971 else
13972 ac_cv_lib_m_pow=no
13973 fi
13974 rm -f core conftest.err conftest.$ac_objext \
13975 conftest$ac_exeext conftest.$ac_ext
13976 LIBS=$ac_check_lib_save_LIBS
13977 fi
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13979 $as_echo "$ac_cv_lib_m_pow" >&6; }
13980 if test "x$ac_cv_lib_m_pow" = xyes; then :
13981 POW_LIB=-lm
13982 else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
13984 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13985 fi
13986
13987 fi
13988
13989 fi
13990
13991 for ac_func in getmntinfo getpagesize gettimeofday memset pstat_getdynamic strchr strdup strndup strpbrk strstr strtol strtoull sysinfo uname vsnprintf strlcat
13992 do :
13993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13998 _ACEOF
13999
14000 fi
14001 done
14002
14003
14004 if test x"$ac_cv_c_compiler_gnu" = xyes; then
14005 CFLAGS="$CFLAGS -Wall"
14006 fi
14007
14008 OS="unknown"
14009 case "$host" in
14010 *linux*)
14011 GEXEC=1
14012 OS="linux"
14013
14014 $as_echo "#define LINUX 1" >>confdefs.h
14015
14016
14017 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
14018
14019 ;;
14020 *ia64-*hpux*) OS="hpux"
14021 CFLAGS="$CFLAGS -D_PSTAT64 -D_HPUX_SOURCE"
14022
14023 $as_echo "#define IA64 1" >>confdefs.h
14024
14025
14026 $as_echo "#define HPUX 1" >>confdefs.h
14027
14028 ;;
14029 *aix*) OS="aix"
14030 CFLAGS="$CFLAGS -D_ALL_SOURCE -DAIX"
14031 LDFLAGS="$LDFLAGS -Wl,-bexpfull"
14032 if test "$ac_cv_lib_perfstat_perfstat_cpu_total" = yes ; then
14033 CFLAGS="$CFLAGS -DHAVE_PERFSTAT"
14034 else
14035 echo "libperfstat not detected."
14036 echo "For AIX 5 you need to install bos.perf.libperfstat"
14037 fi
14038
14039 $as_echo "#define AIX 1" >>confdefs.h
14040
14041 ;;
14042 *hpux*) OS="hpux"
14043 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
14044
14045 $as_echo "#define HPUX 1" >>confdefs.h
14046
14047 ;;
14048 *irix*) OS="irix"
14049 CFLAGS="$CFLAGS -D_IRIX_SOURCE"
14050
14051 $as_echo "#define IRIX 1" >>confdefs.h
14052
14053 ;;
14054 *osf*) OS="osf"
14055 CFLAGS="$CFLAGS -D_SOCKADDR_LEN"
14056
14057 $as_echo "#define OSF 1" >>confdefs.h
14058
14059 ;;
14060 *darwin*) OS="darwin"
14061
14062 $as_echo "#define DARWIN 1" >>confdefs.h
14063
14064 ;;
14065 *solaris*) OS="solaris"
14066 CFLAGS="$CFLAGS -DHAVE_STRERROR"
14067
14068 $as_echo "#define SOLARIS 1" >>confdefs.h
14069
14070 ;;
14071 *freebsd*) OS="freebsd"
14072
14073 $as_echo "#define FREEBSD 1" >>confdefs.h
14074
14075 ;;
14076 *dragonfly*) OS="dragonfly"
14077
14078 $as_echo "#define DRAGONFLYBSD 1" >>confdefs.h
14079
14080 ;;
14081 *netbsd*) OS="netbsd"
14082
14083 $as_echo "#define NETBSD 1" >>confdefs.h
14084
14085 ;;
14086 *openbsd*) OS="openbsd"
14087
14088 $as_echo "#define OPENBSD 1" >>confdefs.h
14089
14090 ;;
14091 *cygwin*) OS="cygwin"
14092
14093 $as_echo "#define CYGWIN 1" >>confdefs.h
14094
14095 ;;
14096 *mingw*) OS="mingw"
14097
14098 $as_echo "#define MINGW 1" >>confdefs.h
14099
14100 ;;
14101 esac
14102
14103
14104 ac_config_files="$ac_config_files Makefile tests/Makefile aix/Makefile cygwin/Makefile darwin/Makefile dragonfly/Makefile freebsd/Makefile hpux/Makefile irix/Makefile linux/Makefile mingw/Makefile netbsd/Makefile openbsd/Makefile osf/Makefile solaris/Makefile"
14105
14106 cat >confcache <<\_ACEOF
14107 # This file is a shell script that caches the results of configure
14108 # tests run on this system so they can be shared between configure
14109 # scripts and configure runs, see configure's option --config-cache.
14110 # It is not useful on other systems. If it contains results you don't
14111 # want to keep, you may remove or edit it.
14112 #
14113 # config.status only pays attention to the cache file if you give it
14114 # the --recheck option to rerun configure.
14115 #
14116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14118 # following values.
14119
14120 _ACEOF
14121
14122 # The following way of writing the cache mishandles newlines in values,
14123 # but we know of no workaround that is simple, portable, and efficient.
14124 # So, we kill variables containing newlines.
14125 # Ultrix sh set writes to stderr and can't be redirected directly,
14126 # and sets the high bit in the cache file unless we assign to the vars.
14127 (
14128 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14129 eval ac_val=\$$ac_var
14130 case $ac_val in #(
14131 *${as_nl}*)
14132 case $ac_var in #(
14133 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14135 esac
14136 case $ac_var in #(
14137 _ | IFS | as_nl) ;; #(
14138 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14139 *) { eval $ac_var=; unset $ac_var;} ;;
14140 esac ;;
14141 esac
14142 done
14143
14144 (set) 2>&1 |
14145 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14146 *${as_nl}ac_space=\ *)
14147 # `set' does not quote correctly, so add quotes: double-quote
14148 # substitution turns \\\\ into \\, and sed turns \\ into \.
14149 sed -n \
14150 "s/'/'\\\\''/g;
14151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14152 ;; #(
14153 *)
14154 # `set' quotes correctly as required by POSIX, so do not add quotes.
14155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14156 ;;
14157 esac |
14158 sort
14159 ) |
14160 sed '
14161 /^ac_cv_env_/b end
14162 t clear
14163 :clear
14164 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14165 t end
14166 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14167 :end' >>confcache
14168 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14169 if test -w "$cache_file"; then
14170 if test "x$cache_file" != "x/dev/null"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14172 $as_echo "$as_me: updating cache $cache_file" >&6;}
14173 if test ! -f "$cache_file" || test -h "$cache_file"; then
14174 cat confcache >"$cache_file"
14175 else
14176 case $cache_file in #(
14177 */* | ?:*)
14178 mv -f confcache "$cache_file"$$ &&
14179 mv -f "$cache_file"$$ "$cache_file" ;; #(
14180 *)
14181 mv -f confcache "$cache_file" ;;
14182 esac
14183 fi
14184 fi
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14187 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14188 fi
14189 fi
14190 rm -f confcache
14191
14192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14193 # Let make expand exec_prefix.
14194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14195
14196 DEFS=-DHAVE_CONFIG_H
14197
14198 ac_libobjs=
14199 ac_ltlibobjs=
14200 U=
14201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14202 # 1. Remove the extension, and $U if already installed.
14203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14206 # will be set to the directory where LIBOBJS objects are built.
14207 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14208 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14209 done
14210 LIBOBJS=$ac_libobjs
14211
14212 LTLIBOBJS=$ac_ltlibobjs
14213
14214
14215 if test -n "$EXEEXT"; then
14216 am__EXEEXT_TRUE=
14217 am__EXEEXT_FALSE='#'
14218 else
14219 am__EXEEXT_TRUE='#'
14220 am__EXEEXT_FALSE=
14221 fi
14222
14223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14224 as_fn_error $? "conditional \"AMDEP\" was never defined.
14225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14226 fi
14227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14228 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14230 fi
14231
14232 : "${CONFIG_STATUS=./config.status}"
14233 ac_write_fail=0
14234 ac_clean_files_save=$ac_clean_files
14235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14237 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14238 as_write_fail=0
14239 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14240 #! $SHELL
14241 # Generated by $as_me.
14242 # Run this file to recreate the current configuration.
14243 # Compiler output produced by configure, useful for debugging
14244 # configure, is in config.log if it exists.
14245
14246 debug=false
14247 ac_cs_recheck=false
14248 ac_cs_silent=false
14249
14250 SHELL=\${CONFIG_SHELL-$SHELL}
14251 export SHELL
14252 _ASEOF
14253 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14254 ## -------------------- ##
14255 ## M4sh Initialization. ##
14256 ## -------------------- ##
14257
14258 # Be more Bourne compatible
14259 DUALCASE=1; export DUALCASE # for MKS sh
14260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14261 emulate sh
14262 NULLCMD=:
14263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14264 # is contrary to our usage. Disable this feature.
14265 alias -g '${1+"$@"}'='"$@"'
14266 setopt NO_GLOB_SUBST
14267 else
14268 case `(set -o) 2>/dev/null` in #(
14269 *posix*) :
14270 set -o posix ;; #(
14271 *) :
14272 ;;
14273 esac
14274 fi
14275
14276
14277 as_nl='
14278 '
14279 export as_nl
14280 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14281 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14282 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14284 # Prefer a ksh shell builtin over an external printf program on Solaris,
14285 # but without wasting forks for bash or zsh.
14286 if test -z "$BASH_VERSION$ZSH_VERSION" \
14287 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14288 as_echo='print -r --'
14289 as_echo_n='print -rn --'
14290 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14291 as_echo='printf %s\n'
14292 as_echo_n='printf %s'
14293 else
14294 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14295 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14296 as_echo_n='/usr/ucb/echo -n'
14297 else
14298 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14299 as_echo_n_body='eval
14300 arg=$1;
14301 case $arg in #(
14302 *"$as_nl"*)
14303 expr "X$arg" : "X\\(.*\\)$as_nl";
14304 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14305 esac;
14306 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14307 '
14308 export as_echo_n_body
14309 as_echo_n='sh -c $as_echo_n_body as_echo'
14310 fi
14311 export as_echo_body
14312 as_echo='sh -c $as_echo_body as_echo'
14313 fi
14314
14315 # The user is always right.
14316 if test "${PATH_SEPARATOR+set}" != set; then
14317 PATH_SEPARATOR=:
14318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14320 PATH_SEPARATOR=';'
14321 }
14322 fi
14323
14324
14325 # IFS
14326 # We need space, tab and new line, in precisely that order. Quoting is
14327 # there to prevent editors from complaining about space-tab.
14328 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14329 # splitting by setting IFS to empty value.)
14330 IFS=" "" $as_nl"
14331
14332 # Find who we are. Look in the path if we contain no directory separator.
14333 as_myself=
14334 case $0 in #((
14335 *[\\/]* ) as_myself=$0 ;;
14336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14342 done
14343 IFS=$as_save_IFS
14344
14345 ;;
14346 esac
14347 # We did not find ourselves, most probably we were run as `sh COMMAND'
14348 # in which case we are not to be found in the path.
14349 if test "x$as_myself" = x; then
14350 as_myself=$0
14351 fi
14352 if test ! -f "$as_myself"; then
14353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14354 exit 1
14355 fi
14356
14357 # Unset variables that we do not need and which cause bugs (e.g. in
14358 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14359 # suppresses any "Segmentation fault" message there. '((' could
14360 # trigger a bug in pdksh 5.2.14.
14361 for as_var in BASH_ENV ENV MAIL MAILPATH
14362 do eval test x\${$as_var+set} = xset \
14363 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14364 done
14365 PS1='$ '
14366 PS2='> '
14367 PS4='+ '
14368
14369 # NLS nuisances.
14370 LC_ALL=C
14371 export LC_ALL
14372 LANGUAGE=C
14373 export LANGUAGE
14374
14375 # CDPATH.
14376 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14377
14378
14379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14380 # ----------------------------------------
14381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14383 # script with STATUS, using 1 if that was 0.
14384 as_fn_error ()
14385 {
14386 as_status=$1; test $as_status -eq 0 && as_status=1
14387 if test "$4"; then
14388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14390 fi
14391 $as_echo "$as_me: error: $2" >&2
14392 as_fn_exit $as_status
14393 } # as_fn_error
14394
14395
14396 # as_fn_set_status STATUS
14397 # -----------------------
14398 # Set $? to STATUS, without forking.
14399 as_fn_set_status ()
14400 {
14401 return $1
14402 } # as_fn_set_status
14403
14404 # as_fn_exit STATUS
14405 # -----------------
14406 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14407 as_fn_exit ()
14408 {
14409 set +e
14410 as_fn_set_status $1
14411 exit $1
14412 } # as_fn_exit
14413
14414 # as_fn_unset VAR
14415 # ---------------
14416 # Portably unset VAR.
14417 as_fn_unset ()
14418 {
14419 { eval $1=; unset $1;}
14420 }
14421 as_unset=as_fn_unset
14422 # as_fn_append VAR VALUE
14423 # ----------------------
14424 # Append the text in VALUE to the end of the definition contained in VAR. Take
14425 # advantage of any shell optimizations that allow amortized linear growth over
14426 # repeated appends, instead of the typical quadratic growth present in naive
14427 # implementations.
14428 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14429 eval 'as_fn_append ()
14430 {
14431 eval $1+=\$2
14432 }'
14433 else
14434 as_fn_append ()
14435 {
14436 eval $1=\$$1\$2
14437 }
14438 fi # as_fn_append
14439
14440 # as_fn_arith ARG...
14441 # ------------------
14442 # Perform arithmetic evaluation on the ARGs, and store the result in the
14443 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14444 # must be portable across $(()) and expr.
14445 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14446 eval 'as_fn_arith ()
14447 {
14448 as_val=$(( $* ))
14449 }'
14450 else
14451 as_fn_arith ()
14452 {
14453 as_val=`expr "$@" || test $? -eq 1`
14454 }
14455 fi # as_fn_arith
14456
14457
14458 if expr a : '\(a\)' >/dev/null 2>&1 &&
14459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14460 as_expr=expr
14461 else
14462 as_expr=false
14463 fi
14464
14465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14466 as_basename=basename
14467 else
14468 as_basename=false
14469 fi
14470
14471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14472 as_dirname=dirname
14473 else
14474 as_dirname=false
14475 fi
14476
14477 as_me=`$as_basename -- "$0" ||
14478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14479 X"$0" : 'X\(//\)$' \| \
14480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14481 $as_echo X/"$0" |
14482 sed '/^.*\/\([^/][^/]*\)\/*$/{
14483 s//\1/
14484 q
14485 }
14486 /^X\/\(\/\/\)$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\/\(\/\).*/{
14491 s//\1/
14492 q
14493 }
14494 s/.*/./; q'`
14495
14496 # Avoid depending upon Character Ranges.
14497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14500 as_cr_digits='0123456789'
14501 as_cr_alnum=$as_cr_Letters$as_cr_digits
14502
14503 ECHO_C= ECHO_N= ECHO_T=
14504 case `echo -n x` in #(((((
14505 -n*)
14506 case `echo 'xy\c'` in
14507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14508 xy) ECHO_C='\c';;
14509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14510 ECHO_T=' ';;
14511 esac;;
14512 *)
14513 ECHO_N='-n';;
14514 esac
14515
14516 rm -f conf$$ conf$$.exe conf$$.file
14517 if test -d conf$$.dir; then
14518 rm -f conf$$.dir/conf$$.file
14519 else
14520 rm -f conf$$.dir
14521 mkdir conf$$.dir 2>/dev/null
14522 fi
14523 if (echo >conf$$.file) 2>/dev/null; then
14524 if ln -s conf$$.file conf$$ 2>/dev/null; then
14525 as_ln_s='ln -s'
14526 # ... but there are two gotchas:
14527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14529 # In both cases, we have to default to `cp -pR'.
14530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14531 as_ln_s='cp -pR'
14532 elif ln conf$$.file conf$$ 2>/dev/null; then
14533 as_ln_s=ln
14534 else
14535 as_ln_s='cp -pR'
14536 fi
14537 else
14538 as_ln_s='cp -pR'
14539 fi
14540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14541 rmdir conf$$.dir 2>/dev/null
14542
14543
14544 # as_fn_mkdir_p
14545 # -------------
14546 # Create "$as_dir" as a directory, including parents if necessary.
14547 as_fn_mkdir_p ()
14548 {
14549
14550 case $as_dir in #(
14551 -*) as_dir=./$as_dir;;
14552 esac
14553 test -d "$as_dir" || eval $as_mkdir_p || {
14554 as_dirs=
14555 while :; do
14556 case $as_dir in #(
14557 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14558 *) as_qdir=$as_dir;;
14559 esac
14560 as_dirs="'$as_qdir' $as_dirs"
14561 as_dir=`$as_dirname -- "$as_dir" ||
14562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14563 X"$as_dir" : 'X\(//\)[^/]' \| \
14564 X"$as_dir" : 'X\(//\)$' \| \
14565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14566 $as_echo X"$as_dir" |
14567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14568 s//\1/
14569 q
14570 }
14571 /^X\(\/\/\)[^/].*/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\/\)$/{
14576 s//\1/
14577 q
14578 }
14579 /^X\(\/\).*/{
14580 s//\1/
14581 q
14582 }
14583 s/.*/./; q'`
14584 test -d "$as_dir" && break
14585 done
14586 test -z "$as_dirs" || eval "mkdir $as_dirs"
14587 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14588
14589
14590 } # as_fn_mkdir_p
14591 if mkdir -p . 2>/dev/null; then
14592 as_mkdir_p='mkdir -p "$as_dir"'
14593 else
14594 test -d ./-p && rmdir ./-p
14595 as_mkdir_p=false
14596 fi
14597
14598
14599 # as_fn_executable_p FILE
14600 # -----------------------
14601 # Test if FILE is an executable regular file.
14602 as_fn_executable_p ()
14603 {
14604 test -f "$1" && test -x "$1"
14605 } # as_fn_executable_p
14606 as_test_x='test -x'
14607 as_executable_p=as_fn_executable_p
14608
14609 # Sed expression to map a string onto a valid CPP name.
14610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14611
14612 # Sed expression to map a string onto a valid variable name.
14613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14614
14615
14616 exec 6>&1
14617 ## ----------------------------------- ##
14618 ## Main body of $CONFIG_STATUS script. ##
14619 ## ----------------------------------- ##
14620 _ASEOF
14621 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14622
14623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14624 # Save the log message, to keep $0 and so on meaningful, and to
14625 # report actual input values of CONFIG_FILES etc. instead of their
14626 # values after options handling.
14627 ac_log="
14628 This file was extended by $as_me, which was
14629 generated by GNU Autoconf 2.69. Invocation command line was
14630
14631 CONFIG_FILES = $CONFIG_FILES
14632 CONFIG_HEADERS = $CONFIG_HEADERS
14633 CONFIG_LINKS = $CONFIG_LINKS
14634 CONFIG_COMMANDS = $CONFIG_COMMANDS
14635 $ $0 $@
14636
14637 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14638 "
14639
14640 _ACEOF
14641
14642 case $ac_config_files in *"
14643 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14644 esac
14645
14646 case $ac_config_headers in *"
14647 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14648 esac
14649
14650
14651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14652 # Files that config.status was made for.
14653 config_files="$ac_config_files"
14654 config_headers="$ac_config_headers"
14655 config_commands="$ac_config_commands"
14656
14657 _ACEOF
14658
14659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14660 ac_cs_usage="\
14661 \`$as_me' instantiates files and other configuration actions
14662 from templates according to the current configuration. Unless the files
14663 and actions are specified as TAGs, all are instantiated by default.
14664
14665 Usage: $0 [OPTION]... [TAG]...
14666
14667 -h, --help print this help, then exit
14668 -V, --version print version number and configuration settings, then exit
14669 --config print configuration, then exit
14670 -q, --quiet, --silent
14671 do not print progress messages
14672 -d, --debug don't remove temporary files
14673 --recheck update $as_me by reconfiguring in the same conditions
14674 --file=FILE[:TEMPLATE]
14675 instantiate the configuration file FILE
14676 --header=FILE[:TEMPLATE]
14677 instantiate the configuration header FILE
14678
14679 Configuration files:
14680 $config_files
14681
14682 Configuration headers:
14683 $config_headers
14684
14685 Configuration commands:
14686 $config_commands
14687
14688 Report bugs to the package provider."
14689
14690 _ACEOF
14691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14692 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14693 ac_cs_version="\\
14694 config.status
14695 configured by $0, generated by GNU Autoconf 2.69,
14696 with options \\"\$ac_cs_config\\"
14697
14698 Copyright (C) 2012 Free Software Foundation, Inc.
14699 This config.status script is free software; the Free Software Foundation
14700 gives unlimited permission to copy, distribute and modify it."
14701
14702 ac_pwd='$ac_pwd'
14703 srcdir='$srcdir'
14704 INSTALL='$INSTALL'
14705 MKDIR_P='$MKDIR_P'
14706 AWK='$AWK'
14707 test -n "\$AWK" || AWK=awk
14708 _ACEOF
14709
14710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711 # The default lists apply if the user does not specify any file.
14712 ac_need_defaults=:
14713 while test $# != 0
14714 do
14715 case $1 in
14716 --*=?*)
14717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14718 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14719 ac_shift=:
14720 ;;
14721 --*=)
14722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14723 ac_optarg=
14724 ac_shift=:
14725 ;;
14726 *)
14727 ac_option=$1
14728 ac_optarg=$2
14729 ac_shift=shift
14730 ;;
14731 esac
14732
14733 case $ac_option in
14734 # Handling of the options.
14735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14736 ac_cs_recheck=: ;;
14737 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14738 $as_echo "$ac_cs_version"; exit ;;
14739 --config | --confi | --conf | --con | --co | --c )
14740 $as_echo "$ac_cs_config"; exit ;;
14741 --debug | --debu | --deb | --de | --d | -d )
14742 debug=: ;;
14743 --file | --fil | --fi | --f )
14744 $ac_shift
14745 case $ac_optarg in
14746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14747 '') as_fn_error $? "missing file argument" ;;
14748 esac
14749 as_fn_append CONFIG_FILES " '$ac_optarg'"
14750 ac_need_defaults=false;;
14751 --header | --heade | --head | --hea )
14752 $ac_shift
14753 case $ac_optarg in
14754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14755 esac
14756 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14757 ac_need_defaults=false;;
14758 --he | --h)
14759 # Conflict between --help and --header
14760 as_fn_error $? "ambiguous option: \`$1'
14761 Try \`$0 --help' for more information.";;
14762 --help | --hel | -h )
14763 $as_echo "$ac_cs_usage"; exit ;;
14764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14765 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14766 ac_cs_silent=: ;;
14767
14768 # This is an error.
14769 -*) as_fn_error $? "unrecognized option: \`$1'
14770 Try \`$0 --help' for more information." ;;
14771
14772 *) as_fn_append ac_config_targets " $1"
14773 ac_need_defaults=false ;;
14774
14775 esac
14776 shift
14777 done
14778
14779 ac_configure_extra_args=
14780
14781 if $ac_cs_silent; then
14782 exec 6>/dev/null
14783 ac_configure_extra_args="$ac_configure_extra_args --silent"
14784 fi
14785
14786 _ACEOF
14787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14788 if \$ac_cs_recheck; then
14789 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14790 shift
14791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14792 CONFIG_SHELL='$SHELL'
14793 export CONFIG_SHELL
14794 exec "\$@"
14795 fi
14796
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14799 exec 5>>config.log
14800 {
14801 echo
14802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14803 ## Running $as_me. ##
14804 _ASBOX
14805 $as_echo "$ac_log"
14806 } >&5
14807
14808 _ACEOF
14809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 #
14811 # INIT-COMMANDS
14812 #
14813 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14814
14815
14816 # The HP-UX ksh and POSIX shell print the target directory to stdout
14817 # if CDPATH is set.
14818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14819
14820 sed_quote_subst='$sed_quote_subst'
14821 double_quote_subst='$double_quote_subst'
14822 delay_variable_subst='$delay_variable_subst'
14823 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14824 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14825 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14826 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14827 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14828 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14829 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14830 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14831 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14832 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14833 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14834 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14835 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14836 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14837 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14838 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14839 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14840 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14841 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14842 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14843 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14844 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14845 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14846 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14847 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14848 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14849 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14850 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14851 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14852 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14853 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14854 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14855 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14856 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14857 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14858 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14859 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14860 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14861 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14862 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14863 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14864 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14865 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14866 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14867 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14868 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14869 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14870 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14871 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14872 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14873 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14874 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14875 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14876 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14877 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14878 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14879 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"`'
14880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14882 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14883 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14884 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14885 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14886 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14887 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14888 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14889 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14890 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14891 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14892 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14893 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14894 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14895 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14896 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14897 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14898 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14899 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14900 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14901 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14902 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14903 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14904 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14905 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14906 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14907 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14908 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14909 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14910 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14911 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14912 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14913 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14914 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14915 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14916 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14917 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14918 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14919 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14920 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14921 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14922 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14923 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14924 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14925 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14926 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14927 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14928 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14929 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14930 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14931 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14932 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14933 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14934 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14935 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14936 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14937 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14938 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14939 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14940 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14941 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14942 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14943 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14944 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14945 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14946 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14947 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14948 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14949 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14950 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14951 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14952 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14953
14954 LTCC='$LTCC'
14955 LTCFLAGS='$LTCFLAGS'
14956 compiler='$compiler_DEFAULT'
14957
14958 # A function that is used when there is no print builtin or printf.
14959 func_fallback_echo ()
14960 {
14961 eval 'cat <<_LTECHO_EOF
14962 \$1
14963 _LTECHO_EOF'
14964 }
14965
14966 # Quote evaled strings.
14967 for var in SHELL \
14968 ECHO \
14969 PATH_SEPARATOR \
14970 SED \
14971 GREP \
14972 EGREP \
14973 FGREP \
14974 LD \
14975 NM \
14976 LN_S \
14977 lt_SP2NL \
14978 lt_NL2SP \
14979 reload_flag \
14980 OBJDUMP \
14981 deplibs_check_method \
14982 file_magic_cmd \
14983 file_magic_glob \
14984 want_nocaseglob \
14985 DLLTOOL \
14986 sharedlib_from_linklib_cmd \
14987 AR \
14988 AR_FLAGS \
14989 archiver_list_spec \
14990 STRIP \
14991 RANLIB \
14992 CC \
14993 CFLAGS \
14994 compiler \
14995 lt_cv_sys_global_symbol_pipe \
14996 lt_cv_sys_global_symbol_to_cdecl \
14997 lt_cv_sys_global_symbol_to_c_name_address \
14998 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14999 nm_file_list_spec \
15000 lt_prog_compiler_no_builtin_flag \
15001 lt_prog_compiler_pic \
15002 lt_prog_compiler_wl \
15003 lt_prog_compiler_static \
15004 lt_cv_prog_compiler_c_o \
15005 need_locks \
15006 MANIFEST_TOOL \
15007 DSYMUTIL \
15008 NMEDIT \
15009 LIPO \
15010 OTOOL \
15011 OTOOL64 \
15012 shrext_cmds \
15013 export_dynamic_flag_spec \
15014 whole_archive_flag_spec \
15015 compiler_needs_object \
15016 with_gnu_ld \
15017 allow_undefined_flag \
15018 no_undefined_flag \
15019 hardcode_libdir_flag_spec \
15020 hardcode_libdir_separator \
15021 exclude_expsyms \
15022 include_expsyms \
15023 file_list_spec \
15024 variables_saved_for_relink \
15025 libname_spec \
15026 library_names_spec \
15027 soname_spec \
15028 install_override_mode \
15029 finish_eval \
15030 old_striplib \
15031 striplib; do
15032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15033 *[\\\\\\\`\\"\\\$]*)
15034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15035 ;;
15036 *)
15037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15038 ;;
15039 esac
15040 done
15041
15042 # Double-quote double-evaled strings.
15043 for var in reload_cmds \
15044 old_postinstall_cmds \
15045 old_postuninstall_cmds \
15046 old_archive_cmds \
15047 extract_expsyms_cmds \
15048 old_archive_from_new_cmds \
15049 old_archive_from_expsyms_cmds \
15050 archive_cmds \
15051 archive_expsym_cmds \
15052 module_cmds \
15053 module_expsym_cmds \
15054 export_symbols_cmds \
15055 prelink_cmds \
15056 postlink_cmds \
15057 postinstall_cmds \
15058 postuninstall_cmds \
15059 finish_cmds \
15060 sys_lib_search_path_spec \
15061 sys_lib_dlsearch_path_spec; do
15062 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15063 *[\\\\\\\`\\"\\\$]*)
15064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15065 ;;
15066 *)
15067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15068 ;;
15069 esac
15070 done
15071
15072 ac_aux_dir='$ac_aux_dir'
15073 xsi_shell='$xsi_shell'
15074 lt_shell_append='$lt_shell_append'
15075
15076 # See if we are running on zsh, and set the options which allow our
15077 # commands through without removal of \ escapes INIT.
15078 if test -n "\${ZSH_VERSION+set}" ; then
15079 setopt NO_GLOB_SUBST
15080 fi
15081
15082
15083 PACKAGE='$PACKAGE'
15084 VERSION='$VERSION'
15085 TIMESTAMP='$TIMESTAMP'
15086 RM='$RM'
15087 ofile='$ofile'
15088
15089
15090
15091
15092 _ACEOF
15093
15094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095
15096 # Handling of arguments.
15097 for ac_config_target in $ac_config_targets
15098 do
15099 case $ac_config_target in
15100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15102 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15104 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15105 "aix/Makefile") CONFIG_FILES="$CONFIG_FILES aix/Makefile" ;;
15106 "cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES cygwin/Makefile" ;;
15107 "darwin/Makefile") CONFIG_FILES="$CONFIG_FILES darwin/Makefile" ;;
15108 "dragonfly/Makefile") CONFIG_FILES="$CONFIG_FILES dragonfly/Makefile" ;;
15109 "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;;
15110 "hpux/Makefile") CONFIG_FILES="$CONFIG_FILES hpux/Makefile" ;;
15111 "irix/Makefile") CONFIG_FILES="$CONFIG_FILES irix/Makefile" ;;
15112 "linux/Makefile") CONFIG_FILES="$CONFIG_FILES linux/Makefile" ;;
15113 "mingw/Makefile") CONFIG_FILES="$CONFIG_FILES mingw/Makefile" ;;
15114 "netbsd/Makefile") CONFIG_FILES="$CONFIG_FILES netbsd/Makefile" ;;
15115 "openbsd/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd/Makefile" ;;
15116 "osf/Makefile") CONFIG_FILES="$CONFIG_FILES osf/Makefile" ;;
15117 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;;
15118
15119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15120 esac
15121 done
15122
15123
15124 # If the user did not use the arguments to specify the items to instantiate,
15125 # then the envvar interface is used. Set only those that are not.
15126 # We use the long form for the default assignment because of an extremely
15127 # bizarre bug on SunOS 4.1.3.
15128 if $ac_need_defaults; then
15129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15132 fi
15133
15134 # Have a temporary directory for convenience. Make it in the build tree
15135 # simply because there is no reason against having it here, and in addition,
15136 # creating and moving files from /tmp can sometimes cause problems.
15137 # Hook for its removal unless debugging.
15138 # Note that there is a small window in which the directory will not be cleaned:
15139 # after its creation but before its name has been assigned to `$tmp'.
15140 $debug ||
15141 {
15142 tmp= ac_tmp=
15143 trap 'exit_status=$?
15144 : "${ac_tmp:=$tmp}"
15145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15146 ' 0
15147 trap 'as_fn_exit 1' 1 2 13 15
15148 }
15149 # Create a (secure) tmp directory for tmp files.
15150
15151 {
15152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15153 test -d "$tmp"
15154 } ||
15155 {
15156 tmp=./conf$$-$RANDOM
15157 (umask 077 && mkdir "$tmp")
15158 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15159 ac_tmp=$tmp
15160
15161 # Set up the scripts for CONFIG_FILES section.
15162 # No need to generate them if there are no CONFIG_FILES.
15163 # This happens for instance with `./config.status config.h'.
15164 if test -n "$CONFIG_FILES"; then
15165
15166
15167 ac_cr=`echo X | tr X '\015'`
15168 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15169 # But we know of no other shell where ac_cr would be empty at this
15170 # point, so we can use a bashism as a fallback.
15171 if test "x$ac_cr" = x; then
15172 eval ac_cr=\$\'\\r\'
15173 fi
15174 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15176 ac_cs_awk_cr='\\r'
15177 else
15178 ac_cs_awk_cr=$ac_cr
15179 fi
15180
15181 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15182 _ACEOF
15183
15184
15185 {
15186 echo "cat >conf$$subs.awk <<_ACEOF" &&
15187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15188 echo "_ACEOF"
15189 } >conf$$subs.sh ||
15190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15191 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15192 ac_delim='%!_!# '
15193 for ac_last_try in false false false false false :; do
15194 . ./conf$$subs.sh ||
15195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15196
15197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15198 if test $ac_delim_n = $ac_delim_num; then
15199 break
15200 elif $ac_last_try; then
15201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15202 else
15203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15204 fi
15205 done
15206 rm -f conf$$subs.sh
15207
15208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15210 _ACEOF
15211 sed -n '
15212 h
15213 s/^/S["/; s/!.*/"]=/
15214 p
15215 g
15216 s/^[^!]*!//
15217 :repl
15218 t repl
15219 s/'"$ac_delim"'$//
15220 t delim
15221 :nl
15222 h
15223 s/\(.\{148\}\)..*/\1/
15224 t more1
15225 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15226 p
15227 n
15228 b repl
15229 :more1
15230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15231 p
15232 g
15233 s/.\{148\}//
15234 t nl
15235 :delim
15236 h
15237 s/\(.\{148\}\)..*/\1/
15238 t more2
15239 s/["\\]/\\&/g; s/^/"/; s/$/"/
15240 p
15241 b
15242 :more2
15243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15244 p
15245 g
15246 s/.\{148\}//
15247 t delim
15248 ' <conf$$subs.awk | sed '
15249 /^[^""]/{
15250 N
15251 s/\n//
15252 }
15253 ' >>$CONFIG_STATUS || ac_write_fail=1
15254 rm -f conf$$subs.awk
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 _ACAWK
15257 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15258 for (key in S) S_is_set[key] = 1
15259 FS = ""
15260
15261 }
15262 {
15263 line = $ 0
15264 nfields = split(line, field, "@")
15265 substed = 0
15266 len = length(field[1])
15267 for (i = 2; i < nfields; i++) {
15268 key = field[i]
15269 keylen = length(key)
15270 if (S_is_set[key]) {
15271 value = S[key]
15272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15273 len += length(value) + length(field[++i])
15274 substed = 1
15275 } else
15276 len += 1 + keylen
15277 }
15278
15279 print line
15280 }
15281
15282 _ACAWK
15283 _ACEOF
15284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15285 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15287 else
15288 cat
15289 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15291 _ACEOF
15292
15293 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15294 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15295 # trailing colons and then remove the whole line if VPATH becomes empty
15296 # (actually we leave an empty line to preserve line numbers).
15297 if test "x$srcdir" = x.; then
15298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15299 h
15300 s///
15301 s/^/:/
15302 s/[ ]*$/:/
15303 s/:\$(srcdir):/:/g
15304 s/:\${srcdir}:/:/g
15305 s/:@srcdir@:/:/g
15306 s/^:*//
15307 s/:*$//
15308 x
15309 s/\(=[ ]*\).*/\1/
15310 G
15311 s/\n//
15312 s/^[^=]*=[ ]*$//
15313 }'
15314 fi
15315
15316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15317 fi # test -n "$CONFIG_FILES"
15318
15319 # Set up the scripts for CONFIG_HEADERS section.
15320 # No need to generate them if there are no CONFIG_HEADERS.
15321 # This happens for instance with `./config.status Makefile'.
15322 if test -n "$CONFIG_HEADERS"; then
15323 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15324 BEGIN {
15325 _ACEOF
15326
15327 # Transform confdefs.h into an awk script `defines.awk', embedded as
15328 # here-document in config.status, that substitutes the proper values into
15329 # config.h.in to produce config.h.
15330
15331 # Create a delimiter string that does not exist in confdefs.h, to ease
15332 # handling of long lines.
15333 ac_delim='%!_!# '
15334 for ac_last_try in false false :; do
15335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15336 if test -z "$ac_tt"; then
15337 break
15338 elif $ac_last_try; then
15339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15340 else
15341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15342 fi
15343 done
15344
15345 # For the awk script, D is an array of macro values keyed by name,
15346 # likewise P contains macro parameters if any. Preserve backslash
15347 # newline sequences.
15348
15349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15350 sed -n '
15351 s/.\{148\}/&'"$ac_delim"'/g
15352 t rset
15353 :rset
15354 s/^[ ]*#[ ]*define[ ][ ]*/ /
15355 t def
15356 d
15357 :def
15358 s/\\$//
15359 t bsnl
15360 s/["\\]/\\&/g
15361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15362 D["\1"]=" \3"/p
15363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15364 d
15365 :bsnl
15366 s/["\\]/\\&/g
15367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15368 D["\1"]=" \3\\\\\\n"\\/p
15369 t cont
15370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15371 t cont
15372 d
15373 :cont
15374 n
15375 s/.\{148\}/&'"$ac_delim"'/g
15376 t clear
15377 :clear
15378 s/\\$//
15379 t bsnlc
15380 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15381 d
15382 :bsnlc
15383 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15384 b cont
15385 ' <confdefs.h | sed '
15386 s/'"$ac_delim"'/"\\\
15387 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15388
15389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15390 for (key in D) D_is_set[key] = 1
15391 FS = ""
15392 }
15393 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15394 line = \$ 0
15395 split(line, arg, " ")
15396 if (arg[1] == "#") {
15397 defundef = arg[2]
15398 mac1 = arg[3]
15399 } else {
15400 defundef = substr(arg[1], 2)
15401 mac1 = arg[2]
15402 }
15403 split(mac1, mac2, "(") #)
15404 macro = mac2[1]
15405 prefix = substr(line, 1, index(line, defundef) - 1)
15406 if (D_is_set[macro]) {
15407 # Preserve the white space surrounding the "#".
15408 print prefix "define", macro P[macro] D[macro]
15409 next
15410 } else {
15411 # Replace #undef with comments. This is necessary, for example,
15412 # in the case of _POSIX_SOURCE, which is predefined and required
15413 # on some systems where configure will not decide to define it.
15414 if (defundef == "undef") {
15415 print "/*", prefix defundef, macro, "*/"
15416 next
15417 }
15418 }
15419 }
15420 { print }
15421 _ACAWK
15422 _ACEOF
15423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15425 fi # test -n "$CONFIG_HEADERS"
15426
15427
15428 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15429 shift
15430 for ac_tag
15431 do
15432 case $ac_tag in
15433 :[FHLC]) ac_mode=$ac_tag; continue;;
15434 esac
15435 case $ac_mode$ac_tag in
15436 :[FHL]*:*);;
15437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15438 :[FH]-) ac_tag=-:-;;
15439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15440 esac
15441 ac_save_IFS=$IFS
15442 IFS=:
15443 set x $ac_tag
15444 IFS=$ac_save_IFS
15445 shift
15446 ac_file=$1
15447 shift
15448
15449 case $ac_mode in
15450 :L) ac_source=$1;;
15451 :[FH])
15452 ac_file_inputs=
15453 for ac_f
15454 do
15455 case $ac_f in
15456 -) ac_f="$ac_tmp/stdin";;
15457 *) # Look for the file first in the build tree, then in the source tree
15458 # (if the path is not absolute). The absolute path cannot be DOS-style,
15459 # because $ac_f cannot contain `:'.
15460 test -f "$ac_f" ||
15461 case $ac_f in
15462 [\\/$]*) false;;
15463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15464 esac ||
15465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15466 esac
15467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15468 as_fn_append ac_file_inputs " '$ac_f'"
15469 done
15470
15471 # Let's still pretend it is `configure' which instantiates (i.e., don't
15472 # use $as_me), people would be surprised to read:
15473 # /* config.h. Generated by config.status. */
15474 configure_input='Generated from '`
15475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15476 `' by configure.'
15477 if test x"$ac_file" != x-; then
15478 configure_input="$ac_file. $configure_input"
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15480 $as_echo "$as_me: creating $ac_file" >&6;}
15481 fi
15482 # Neutralize special characters interpreted by sed in replacement strings.
15483 case $configure_input in #(
15484 *\&* | *\|* | *\\* )
15485 ac_sed_conf_input=`$as_echo "$configure_input" |
15486 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15487 *) ac_sed_conf_input=$configure_input;;
15488 esac
15489
15490 case $ac_tag in
15491 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15493 esac
15494 ;;
15495 esac
15496
15497 ac_dir=`$as_dirname -- "$ac_file" ||
15498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15499 X"$ac_file" : 'X\(//\)[^/]' \| \
15500 X"$ac_file" : 'X\(//\)$' \| \
15501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15502 $as_echo X"$ac_file" |
15503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15504 s//\1/
15505 q
15506 }
15507 /^X\(\/\/\)[^/].*/{
15508 s//\1/
15509 q
15510 }
15511 /^X\(\/\/\)$/{
15512 s//\1/
15513 q
15514 }
15515 /^X\(\/\).*/{
15516 s//\1/
15517 q
15518 }
15519 s/.*/./; q'`
15520 as_dir="$ac_dir"; as_fn_mkdir_p
15521 ac_builddir=.
15522
15523 case "$ac_dir" in
15524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15525 *)
15526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15527 # A ".." for each directory in $ac_dir_suffix.
15528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15529 case $ac_top_builddir_sub in
15530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15532 esac ;;
15533 esac
15534 ac_abs_top_builddir=$ac_pwd
15535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15536 # for backward compatibility:
15537 ac_top_builddir=$ac_top_build_prefix
15538
15539 case $srcdir in
15540 .) # We are building in place.
15541 ac_srcdir=.
15542 ac_top_srcdir=$ac_top_builddir_sub
15543 ac_abs_top_srcdir=$ac_pwd ;;
15544 [\\/]* | ?:[\\/]* ) # Absolute name.
15545 ac_srcdir=$srcdir$ac_dir_suffix;
15546 ac_top_srcdir=$srcdir
15547 ac_abs_top_srcdir=$srcdir ;;
15548 *) # Relative name.
15549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15550 ac_top_srcdir=$ac_top_build_prefix$srcdir
15551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15552 esac
15553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15554
15555
15556 case $ac_mode in
15557 :F)
15558 #
15559 # CONFIG_FILE
15560 #
15561
15562 case $INSTALL in
15563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15565 esac
15566 ac_MKDIR_P=$MKDIR_P
15567 case $MKDIR_P in
15568 [\\/$]* | ?:[\\/]* ) ;;
15569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15570 esac
15571 _ACEOF
15572
15573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15574 # If the template does not know about datarootdir, expand it.
15575 # FIXME: This hack should be removed a few years after 2.60.
15576 ac_datarootdir_hack=; ac_datarootdir_seen=
15577 ac_sed_dataroot='
15578 /datarootdir/ {
15579 p
15580 q
15581 }
15582 /@datadir@/p
15583 /@docdir@/p
15584 /@infodir@/p
15585 /@localedir@/p
15586 /@mandir@/p'
15587 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15588 *datarootdir*) ac_datarootdir_seen=yes;;
15589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15591 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 ac_datarootdir_hack='
15595 s&@datadir@&$datadir&g
15596 s&@docdir@&$docdir&g
15597 s&@infodir@&$infodir&g
15598 s&@localedir@&$localedir&g
15599 s&@mandir@&$mandir&g
15600 s&\\\${datarootdir}&$datarootdir&g' ;;
15601 esac
15602 _ACEOF
15603
15604 # Neutralize VPATH when `$srcdir' = `.'.
15605 # Shell code in configure.ac might set extrasub.
15606 # FIXME: do we really want to maintain this feature?
15607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15608 ac_sed_extra="$ac_vpsub
15609 $extrasub
15610 _ACEOF
15611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15612 :t
15613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15614 s|@configure_input@|$ac_sed_conf_input|;t t
15615 s&@top_builddir@&$ac_top_builddir_sub&;t t
15616 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15617 s&@srcdir@&$ac_srcdir&;t t
15618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15619 s&@top_srcdir@&$ac_top_srcdir&;t t
15620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15621 s&@builddir@&$ac_builddir&;t t
15622 s&@abs_builddir@&$ac_abs_builddir&;t t
15623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15624 s&@INSTALL@&$ac_INSTALL&;t t
15625 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15626 $ac_datarootdir_hack
15627 "
15628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15630
15631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15634 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15636 which seems to be undefined. Please make sure it is defined" >&5
15637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638 which seems to be undefined. Please make sure it is defined" >&2;}
15639
15640 rm -f "$ac_tmp/stdin"
15641 case $ac_file in
15642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15644 esac \
15645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15646 ;;
15647 :H)
15648 #
15649 # CONFIG_HEADER
15650 #
15651 if test x"$ac_file" != x-; then
15652 {
15653 $as_echo "/* $configure_input */" \
15654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15655 } >"$ac_tmp/config.h" \
15656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15660 else
15661 rm -f "$ac_file"
15662 mv "$ac_tmp/config.h" "$ac_file" \
15663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15664 fi
15665 else
15666 $as_echo "/* $configure_input */" \
15667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15668 || as_fn_error $? "could not create -" "$LINENO" 5
15669 fi
15670 # Compute "$ac_file"'s index in $config_headers.
15671 _am_arg="$ac_file"
15672 _am_stamp_count=1
15673 for _am_header in $config_headers :; do
15674 case $_am_header in
15675 $_am_arg | $_am_arg:* )
15676 break ;;
15677 * )
15678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15679 esac
15680 done
15681 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15682 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683 X"$_am_arg" : 'X\(//\)[^/]' \| \
15684 X"$_am_arg" : 'X\(//\)$' \| \
15685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15686 $as_echo X"$_am_arg" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15688 s//\1/
15689 q
15690 }
15691 /^X\(\/\/\)[^/].*/{
15692 s//\1/
15693 q
15694 }
15695 /^X\(\/\/\)$/{
15696 s//\1/
15697 q
15698 }
15699 /^X\(\/\).*/{
15700 s//\1/
15701 q
15702 }
15703 s/.*/./; q'`/stamp-h$_am_stamp_count
15704 ;;
15705
15706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15707 $as_echo "$as_me: executing $ac_file commands" >&6;}
15708 ;;
15709 esac
15710
15711
15712 case $ac_file$ac_mode in
15713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15714 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15715 # are listed without --file. Let's play safe and only enable the eval
15716 # if we detect the quoting.
15717 case $CONFIG_FILES in
15718 *\'*) eval set x "$CONFIG_FILES" ;;
15719 *) set x $CONFIG_FILES ;;
15720 esac
15721 shift
15722 for mf
15723 do
15724 # Strip MF so we end up with the name of the file.
15725 mf=`echo "$mf" | sed -e 's/:.*$//'`
15726 # Check whether this is an Automake generated Makefile or not.
15727 # We used to match only the files named `Makefile.in', but
15728 # some people rename them; so instead we look at the file content.
15729 # Grep'ing the first line is not enough: some people post-process
15730 # each Makefile.in and add a new line on top of each file to say so.
15731 # Grep'ing the whole file is not good either: AIX grep has a line
15732 # limit of 2048, but all sed's we know have understand at least 4000.
15733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15734 dirpart=`$as_dirname -- "$mf" ||
15735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15736 X"$mf" : 'X\(//\)[^/]' \| \
15737 X"$mf" : 'X\(//\)$' \| \
15738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15739 $as_echo X"$mf" |
15740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15741 s//\1/
15742 q
15743 }
15744 /^X\(\/\/\)[^/].*/{
15745 s//\1/
15746 q
15747 }
15748 /^X\(\/\/\)$/{
15749 s//\1/
15750 q
15751 }
15752 /^X\(\/\).*/{
15753 s//\1/
15754 q
15755 }
15756 s/.*/./; q'`
15757 else
15758 continue
15759 fi
15760 # Extract the definition of DEPDIR, am__include, and am__quote
15761 # from the Makefile without running `make'.
15762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15763 test -z "$DEPDIR" && continue
15764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15765 test -z "am__include" && continue
15766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15767 # When using ansi2knr, U may be empty or an underscore; expand it
15768 U=`sed -n 's/^U = //p' < "$mf"`
15769 # Find all dependency output files, they are included files with
15770 # $(DEPDIR) in their names. We invoke sed twice because it is the
15771 # simplest approach to changing $(DEPDIR) to its actual value in the
15772 # expansion.
15773 for file in `sed -n "
15774 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15775 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15776 # Make sure the directory exists.
15777 test -f "$dirpart/$file" && continue
15778 fdir=`$as_dirname -- "$file" ||
15779 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15780 X"$file" : 'X\(//\)[^/]' \| \
15781 X"$file" : 'X\(//\)$' \| \
15782 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15783 $as_echo X"$file" |
15784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15785 s//\1/
15786 q
15787 }
15788 /^X\(\/\/\)[^/].*/{
15789 s//\1/
15790 q
15791 }
15792 /^X\(\/\/\)$/{
15793 s//\1/
15794 q
15795 }
15796 /^X\(\/\).*/{
15797 s//\1/
15798 q
15799 }
15800 s/.*/./; q'`
15801 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15802 # echo "creating $dirpart/$file"
15803 echo '# dummy' > "$dirpart/$file"
15804 done
15805 done
15806 }
15807 ;;
15808 "libtool":C)
15809
15810 # See if we are running on zsh, and set the options which allow our
15811 # commands through without removal of \ escapes.
15812 if test -n "${ZSH_VERSION+set}" ; then
15813 setopt NO_GLOB_SUBST
15814 fi
15815
15816 cfgfile="${ofile}T"
15817 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15818 $RM "$cfgfile"
15819
15820 cat <<_LT_EOF >> "$cfgfile"
15821 #! $SHELL
15822
15823 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15824 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15825 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15827 #
15828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15829 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15830 # Foundation, Inc.
15831 # Written by Gordon Matzigkeit, 1996
15832 #
15833 # This file is part of GNU Libtool.
15834 #
15835 # GNU Libtool is free software; you can redistribute it and/or
15836 # modify it under the terms of the GNU General Public License as
15837 # published by the Free Software Foundation; either version 2 of
15838 # the License, or (at your option) any later version.
15839 #
15840 # As a special exception to the GNU General Public License,
15841 # if you distribute this file as part of a program or library that
15842 # is built using GNU Libtool, you may include this file under the
15843 # same distribution terms that you use for the rest of that program.
15844 #
15845 # GNU Libtool is distributed in the hope that it will be useful,
15846 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15847 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15848 # GNU General Public License for more details.
15849 #
15850 # You should have received a copy of the GNU General Public License
15851 # along with GNU Libtool; see the file COPYING. If not, a copy
15852 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15853 # obtained by writing to the Free Software Foundation, Inc.,
15854 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15855
15856
15857 # The names of the tagged configurations supported by this script.
15858 available_tags=""
15859
15860 # ### BEGIN LIBTOOL CONFIG
15861
15862 # Which release of libtool.m4 was used?
15863 macro_version=$macro_version
15864 macro_revision=$macro_revision
15865
15866 # Whether or not to build shared libraries.
15867 build_libtool_libs=$enable_shared
15868
15869 # Whether or not to build static libraries.
15870 build_old_libs=$enable_static
15871
15872 # What type of objects to build.
15873 pic_mode=$pic_mode
15874
15875 # Whether or not to optimize for fast installation.
15876 fast_install=$enable_fast_install
15877
15878 # Shell to use when invoking shell scripts.
15879 SHELL=$lt_SHELL
15880
15881 # An echo program that protects backslashes.
15882 ECHO=$lt_ECHO
15883
15884 # The PATH separator for the build system.
15885 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15886
15887 # The host system.
15888 host_alias=$host_alias
15889 host=$host
15890 host_os=$host_os
15891
15892 # The build system.
15893 build_alias=$build_alias
15894 build=$build
15895 build_os=$build_os
15896
15897 # A sed program that does not truncate output.
15898 SED=$lt_SED
15899
15900 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15901 Xsed="\$SED -e 1s/^X//"
15902
15903 # A grep program that handles long lines.
15904 GREP=$lt_GREP
15905
15906 # An ERE matcher.
15907 EGREP=$lt_EGREP
15908
15909 # A literal string matcher.
15910 FGREP=$lt_FGREP
15911
15912 # A BSD- or MS-compatible name lister.
15913 NM=$lt_NM
15914
15915 # Whether we need soft or hard links.
15916 LN_S=$lt_LN_S
15917
15918 # What is the maximum length of a command?
15919 max_cmd_len=$max_cmd_len
15920
15921 # Object file suffix (normally "o").
15922 objext=$ac_objext
15923
15924 # Executable file suffix (normally "").
15925 exeext=$exeext
15926
15927 # whether the shell understands "unset".
15928 lt_unset=$lt_unset
15929
15930 # turn spaces into newlines.
15931 SP2NL=$lt_lt_SP2NL
15932
15933 # turn newlines into spaces.
15934 NL2SP=$lt_lt_NL2SP
15935
15936 # convert \$build file names to \$host format.
15937 to_host_file_cmd=$lt_cv_to_host_file_cmd
15938
15939 # convert \$build files to toolchain format.
15940 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15941
15942 # An object symbol dumper.
15943 OBJDUMP=$lt_OBJDUMP
15944
15945 # Method to check whether dependent libraries are shared objects.
15946 deplibs_check_method=$lt_deplibs_check_method
15947
15948 # Command to use when deplibs_check_method = "file_magic".
15949 file_magic_cmd=$lt_file_magic_cmd
15950
15951 # How to find potential files when deplibs_check_method = "file_magic".
15952 file_magic_glob=$lt_file_magic_glob
15953
15954 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15955 want_nocaseglob=$lt_want_nocaseglob
15956
15957 # DLL creation program.
15958 DLLTOOL=$lt_DLLTOOL
15959
15960 # Command to associate shared and link libraries.
15961 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15962
15963 # The archiver.
15964 AR=$lt_AR
15965
15966 # Flags to create an archive.
15967 AR_FLAGS=$lt_AR_FLAGS
15968
15969 # How to feed a file listing to the archiver.
15970 archiver_list_spec=$lt_archiver_list_spec
15971
15972 # A symbol stripping program.
15973 STRIP=$lt_STRIP
15974
15975 # Commands used to install an old-style archive.
15976 RANLIB=$lt_RANLIB
15977 old_postinstall_cmds=$lt_old_postinstall_cmds
15978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15979
15980 # Whether to use a lock for old archive extraction.
15981 lock_old_archive_extraction=$lock_old_archive_extraction
15982
15983 # A C compiler.
15984 LTCC=$lt_CC
15985
15986 # LTCC compiler flags.
15987 LTCFLAGS=$lt_CFLAGS
15988
15989 # Take the output of nm and produce a listing of raw symbols and C names.
15990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15991
15992 # Transform the output of nm in a proper C declaration.
15993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15994
15995 # Transform the output of nm in a C name address pair.
15996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15997
15998 # Transform the output of nm in a C name address pair when lib prefix is needed.
15999 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16000
16001 # Specify filename containing input files for \$NM.
16002 nm_file_list_spec=$lt_nm_file_list_spec
16003
16004 # The root where to search for dependent libraries,and in which our libraries should be installed.
16005 lt_sysroot=$lt_sysroot
16006
16007 # The name of the directory that contains temporary libtool files.
16008 objdir=$objdir
16009
16010 # Used to examine libraries when file_magic_cmd begins with "file".
16011 MAGIC_CMD=$MAGIC_CMD
16012
16013 # Must we lock files when doing compilation?
16014 need_locks=$lt_need_locks
16015
16016 # Manifest tool.
16017 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16018
16019 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16020 DSYMUTIL=$lt_DSYMUTIL
16021
16022 # Tool to change global to local symbols on Mac OS X.
16023 NMEDIT=$lt_NMEDIT
16024
16025 # Tool to manipulate fat objects and archives on Mac OS X.
16026 LIPO=$lt_LIPO
16027
16028 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16029 OTOOL=$lt_OTOOL
16030
16031 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16032 OTOOL64=$lt_OTOOL64
16033
16034 # Old archive suffix (normally "a").
16035 libext=$libext
16036
16037 # Shared library suffix (normally ".so").
16038 shrext_cmds=$lt_shrext_cmds
16039
16040 # The commands to extract the exported symbol list from a shared archive.
16041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16042
16043 # Variables whose values should be saved in libtool wrapper scripts and
16044 # restored at link time.
16045 variables_saved_for_relink=$lt_variables_saved_for_relink
16046
16047 # Do we need the "lib" prefix for modules?
16048 need_lib_prefix=$need_lib_prefix
16049
16050 # Do we need a version for libraries?
16051 need_version=$need_version
16052
16053 # Library versioning type.
16054 version_type=$version_type
16055
16056 # Shared library runtime path variable.
16057 runpath_var=$runpath_var
16058
16059 # Shared library path variable.
16060 shlibpath_var=$shlibpath_var
16061
16062 # Is shlibpath searched before the hard-coded library search path?
16063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16064
16065 # Format of library name prefix.
16066 libname_spec=$lt_libname_spec
16067
16068 # List of archive names. First name is the real one, the rest are links.
16069 # The last name is the one that the linker finds with -lNAME
16070 library_names_spec=$lt_library_names_spec
16071
16072 # The coded name of the library, if different from the real name.
16073 soname_spec=$lt_soname_spec
16074
16075 # Permission mode override for installation of shared libraries.
16076 install_override_mode=$lt_install_override_mode
16077
16078 # Command to use after installation of a shared archive.
16079 postinstall_cmds=$lt_postinstall_cmds
16080
16081 # Command to use after uninstallation of a shared archive.
16082 postuninstall_cmds=$lt_postuninstall_cmds
16083
16084 # Commands used to finish a libtool library installation in a directory.
16085 finish_cmds=$lt_finish_cmds
16086
16087 # As "finish_cmds", except a single script fragment to be evaled but
16088 # not shown.
16089 finish_eval=$lt_finish_eval
16090
16091 # Whether we should hardcode library paths into libraries.
16092 hardcode_into_libs=$hardcode_into_libs
16093
16094 # Compile-time system search path for libraries.
16095 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16096
16097 # Run-time system search path for libraries.
16098 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16099
16100 # Whether dlopen is supported.
16101 dlopen_support=$enable_dlopen
16102
16103 # Whether dlopen of programs is supported.
16104 dlopen_self=$enable_dlopen_self
16105
16106 # Whether dlopen of statically linked programs is supported.
16107 dlopen_self_static=$enable_dlopen_self_static
16108
16109 # Commands to strip libraries.
16110 old_striplib=$lt_old_striplib
16111 striplib=$lt_striplib
16112
16113
16114 # The linker used to build libraries.
16115 LD=$lt_LD
16116
16117 # How to create reloadable object files.
16118 reload_flag=$lt_reload_flag
16119 reload_cmds=$lt_reload_cmds
16120
16121 # Commands used to build an old-style archive.
16122 old_archive_cmds=$lt_old_archive_cmds
16123
16124 # A language specific compiler.
16125 CC=$lt_compiler
16126
16127 # Is the compiler the GNU compiler?
16128 with_gcc=$GCC
16129
16130 # Compiler flag to turn off builtin functions.
16131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16132
16133 # Additional compiler flags for building library objects.
16134 pic_flag=$lt_lt_prog_compiler_pic
16135
16136 # How to pass a linker flag through the compiler.
16137 wl=$lt_lt_prog_compiler_wl
16138
16139 # Compiler flag to prevent dynamic linking.
16140 link_static_flag=$lt_lt_prog_compiler_static
16141
16142 # Does compiler simultaneously support -c and -o options?
16143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16144
16145 # Whether or not to add -lc for building shared libraries.
16146 build_libtool_need_lc=$archive_cmds_need_lc
16147
16148 # Whether or not to disallow shared libs when runtime libs are static.
16149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16150
16151 # Compiler flag to allow reflexive dlopens.
16152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16153
16154 # Compiler flag to generate shared objects directly from archives.
16155 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16156
16157 # Whether the compiler copes with passing no objects directly.
16158 compiler_needs_object=$lt_compiler_needs_object
16159
16160 # Create an old-style archive from a shared archive.
16161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16162
16163 # Create a temporary old-style archive to link instead of a shared archive.
16164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16165
16166 # Commands used to build a shared archive.
16167 archive_cmds=$lt_archive_cmds
16168 archive_expsym_cmds=$lt_archive_expsym_cmds
16169
16170 # Commands used to build a loadable module if different from building
16171 # a shared archive.
16172 module_cmds=$lt_module_cmds
16173 module_expsym_cmds=$lt_module_expsym_cmds
16174
16175 # Whether we are building with GNU ld or not.
16176 with_gnu_ld=$lt_with_gnu_ld
16177
16178 # Flag that allows shared libraries with undefined symbols to be built.
16179 allow_undefined_flag=$lt_allow_undefined_flag
16180
16181 # Flag that enforces no undefined symbols.
16182 no_undefined_flag=$lt_no_undefined_flag
16183
16184 # Flag to hardcode \$libdir into a binary during linking.
16185 # This must work even if \$libdir does not exist
16186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16187
16188 # Whether we need a single "-rpath" flag with a separated argument.
16189 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16190
16191 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16192 # DIR into the resulting binary.
16193 hardcode_direct=$hardcode_direct
16194
16195 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16196 # DIR into the resulting binary and the resulting library dependency is
16197 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16198 # library is relocated.
16199 hardcode_direct_absolute=$hardcode_direct_absolute
16200
16201 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16202 # into the resulting binary.
16203 hardcode_minus_L=$hardcode_minus_L
16204
16205 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16206 # into the resulting binary.
16207 hardcode_shlibpath_var=$hardcode_shlibpath_var
16208
16209 # Set to "yes" if building a shared library automatically hardcodes DIR
16210 # into the library and all subsequent libraries and executables linked
16211 # against it.
16212 hardcode_automatic=$hardcode_automatic
16213
16214 # Set to yes if linker adds runtime paths of dependent libraries
16215 # to runtime path list.
16216 inherit_rpath=$inherit_rpath
16217
16218 # Whether libtool must link a program against all its dependency libraries.
16219 link_all_deplibs=$link_all_deplibs
16220
16221 # Set to "yes" if exported symbols are required.
16222 always_export_symbols=$always_export_symbols
16223
16224 # The commands to list exported symbols.
16225 export_symbols_cmds=$lt_export_symbols_cmds
16226
16227 # Symbols that should not be listed in the preloaded symbols.
16228 exclude_expsyms=$lt_exclude_expsyms
16229
16230 # Symbols that must always be exported.
16231 include_expsyms=$lt_include_expsyms
16232
16233 # Commands necessary for linking programs (against libraries) with templates.
16234 prelink_cmds=$lt_prelink_cmds
16235
16236 # Commands necessary for finishing linking programs.
16237 postlink_cmds=$lt_postlink_cmds
16238
16239 # Specify filename containing input files.
16240 file_list_spec=$lt_file_list_spec
16241
16242 # How to hardcode a shared library path into an executable.
16243 hardcode_action=$hardcode_action
16244
16245 # ### END LIBTOOL CONFIG
16246
16247 _LT_EOF
16248
16249 case $host_os in
16250 aix3*)
16251 cat <<\_LT_EOF >> "$cfgfile"
16252 # AIX sometimes has problems with the GCC collect2 program. For some
16253 # reason, if we set the COLLECT_NAMES environment variable, the problems
16254 # vanish in a puff of smoke.
16255 if test "X${COLLECT_NAMES+set}" != Xset; then
16256 COLLECT_NAMES=
16257 export COLLECT_NAMES
16258 fi
16259 _LT_EOF
16260 ;;
16261 esac
16262
16263
16264 ltmain="$ac_aux_dir/ltmain.sh"
16265
16266
16267 # We use sed instead of cat because bash on DJGPP gets confused if
16268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16269 # text mode, it properly converts lines to CR/LF. This bash problem
16270 # is reportedly fixed, but why not run on old versions too?
16271 sed '$q' "$ltmain" >> "$cfgfile" \
16272 || (rm -f "$cfgfile"; exit 1)
16273
16274 if test x"$xsi_shell" = xyes; then
16275 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16276 func_dirname ()\
16277 {\
16278 \ case ${1} in\
16279 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16280 \ * ) func_dirname_result="${3}" ;;\
16281 \ esac\
16282 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16283 && mv -f "$cfgfile.tmp" "$cfgfile" \
16284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16285 test 0 -eq $? || _lt_function_replace_fail=:
16286
16287
16288 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16289 func_basename ()\
16290 {\
16291 \ func_basename_result="${1##*/}"\
16292 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16293 && mv -f "$cfgfile.tmp" "$cfgfile" \
16294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16295 test 0 -eq $? || _lt_function_replace_fail=:
16296
16297
16298 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16299 func_dirname_and_basename ()\
16300 {\
16301 \ case ${1} in\
16302 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16303 \ * ) func_dirname_result="${3}" ;;\
16304 \ esac\
16305 \ func_basename_result="${1##*/}"\
16306 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16307 && mv -f "$cfgfile.tmp" "$cfgfile" \
16308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16309 test 0 -eq $? || _lt_function_replace_fail=:
16310
16311
16312 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16313 func_stripname ()\
16314 {\
16315 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16316 \ # positional parameters, so assign one to ordinary parameter first.\
16317 \ func_stripname_result=${3}\
16318 \ func_stripname_result=${func_stripname_result#"${1}"}\
16319 \ func_stripname_result=${func_stripname_result%"${2}"}\
16320 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16321 && mv -f "$cfgfile.tmp" "$cfgfile" \
16322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16323 test 0 -eq $? || _lt_function_replace_fail=:
16324
16325
16326 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16327 func_split_long_opt ()\
16328 {\
16329 \ func_split_long_opt_name=${1%%=*}\
16330 \ func_split_long_opt_arg=${1#*=}\
16331 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16332 && mv -f "$cfgfile.tmp" "$cfgfile" \
16333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16334 test 0 -eq $? || _lt_function_replace_fail=:
16335
16336
16337 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16338 func_split_short_opt ()\
16339 {\
16340 \ func_split_short_opt_arg=${1#??}\
16341 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16342 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16343 && mv -f "$cfgfile.tmp" "$cfgfile" \
16344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16345 test 0 -eq $? || _lt_function_replace_fail=:
16346
16347
16348 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16349 func_lo2o ()\
16350 {\
16351 \ case ${1} in\
16352 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16353 \ *) func_lo2o_result=${1} ;;\
16354 \ esac\
16355 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16356 && mv -f "$cfgfile.tmp" "$cfgfile" \
16357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16358 test 0 -eq $? || _lt_function_replace_fail=:
16359
16360
16361 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16362 func_xform ()\
16363 {\
16364 func_xform_result=${1%.*}.lo\
16365 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16366 && mv -f "$cfgfile.tmp" "$cfgfile" \
16367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16368 test 0 -eq $? || _lt_function_replace_fail=:
16369
16370
16371 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16372 func_arith ()\
16373 {\
16374 func_arith_result=$(( $* ))\
16375 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16376 && mv -f "$cfgfile.tmp" "$cfgfile" \
16377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16378 test 0 -eq $? || _lt_function_replace_fail=:
16379
16380
16381 sed -e '/^func_len ()$/,/^} # func_len /c\
16382 func_len ()\
16383 {\
16384 func_len_result=${#1}\
16385 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16386 && mv -f "$cfgfile.tmp" "$cfgfile" \
16387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16388 test 0 -eq $? || _lt_function_replace_fail=:
16389
16390 fi
16391
16392 if test x"$lt_shell_append" = xyes; then
16393 sed -e '/^func_append ()$/,/^} # func_append /c\
16394 func_append ()\
16395 {\
16396 eval "${1}+=\\${2}"\
16397 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16398 && mv -f "$cfgfile.tmp" "$cfgfile" \
16399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16400 test 0 -eq $? || _lt_function_replace_fail=:
16401
16402
16403 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16404 func_append_quoted ()\
16405 {\
16406 \ func_quote_for_eval "${2}"\
16407 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16408 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16409 && mv -f "$cfgfile.tmp" "$cfgfile" \
16410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16411 test 0 -eq $? || _lt_function_replace_fail=:
16412
16413
16414 # Save a `func_append' function call where possible by direct use of '+='
16415 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16416 && mv -f "$cfgfile.tmp" "$cfgfile" \
16417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16418 test 0 -eq $? || _lt_function_replace_fail=:
16419 else
16420 # Save a `func_append' function call even when '+=' is not available
16421 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16422 && mv -f "$cfgfile.tmp" "$cfgfile" \
16423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16424 test 0 -eq $? || _lt_function_replace_fail=:
16425 fi
16426
16427 if test x"$_lt_function_replace_fail" = x":"; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16429 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16430 fi
16431
16432
16433 mv -f "$cfgfile" "$ofile" ||
16434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16435 chmod +x "$ofile"
16436
16437 ;;
16438
16439 esac
16440 done # for ac_tag
16441
16442
16443 as_fn_exit 0
16444 _ACEOF
16445 ac_clean_files=$ac_clean_files_save
16446
16447 test $ac_write_fail = 0 ||
16448 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16449
16450
16451 # configure is writing to config.log, and then calls config.status.
16452 # config.status does its own redirection, appending to config.log.
16453 # Unfortunately, on DOS this fails, as config.log is still kept open
16454 # by configure, so config.status won't be able to write to it; its
16455 # output is simply discarded. So we exec the FD to /dev/null,
16456 # effectively closing config.log, so it can be properly (re)opened and
16457 # appended to by config.status. When coming back to configure, we
16458 # need to make the FD available again.
16459 if test "$no_create" != yes; then
16460 ac_cs_success=:
16461 ac_config_status_args=
16462 test "$silent" = yes &&
16463 ac_config_status_args="$ac_config_status_args --quiet"
16464 exec 5>/dev/null
16465 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16466 exec 5>>config.log
16467 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16468 # would make configure fail if this is the last instruction.
16469 $ac_cs_success || as_fn_exit 1
16470 fi
16471 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16473 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16474 fi
16475