Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ganglia-modules-linux 1.3.6.
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='ganglia-modules-linux'
589 PACKAGE_TARNAME='ganglia-modules-linux'
590 PACKAGE_VERSION='1.3.6'
591 PACKAGE_STRING='ganglia-modules-linux 1.3.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="example/mod_example.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ganglia_sysconfdir
637 cfg_libdir
638 varstatedir
639 EXPORT_SYMBOLS
640 OS
641 CPP
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 MANIFEST_TOOL
648 RANLIB
649 ac_ct_AR
650 AR
651 DLLTOOL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 LIBTOOL
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 STATIC_BUILD_FALSE
681 STATIC_BUILD_TRUE
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_static_build
755 enable_dependency_tracking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 with_sysroot
762 enable_libtool_lock
763 '
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
767 CC
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
772 CPP'
773
774
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
796
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
832 fi
833
834 case $ac_option in
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *=) ac_optarg= ;;
837 *) ac_optarg=yes ;;
838 esac
839
840 # Accept the important Cygnus configure options, so we can diagnose typos.
841
842 case $ac_dashdash$ac_option in
843 --)
844 ac_dashdash=yes ;;
845
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
850
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
855
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
862
863 --config-cache | -C)
864 cache_file=config.cache ;;
865
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
870
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
877
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
893
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
898
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
903
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
939
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
944
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
974
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
991
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1012
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1048
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1079
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1084
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1089
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1096
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1107
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1123
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1139
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1143
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1150
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1157
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1171
1172 *)
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 ;;
1179
1180 esac
1181 done
1182
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1186 fi
1187
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1194 fi
1195
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1201 do
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278 else
1279 ac_srcdir_defaulted=no
1280 fi
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 fi
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures ganglia-modules-linux 1.3.6 to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root
1362 [DATAROOTDIR/doc/ganglia-modules-linux]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1367 _ACEOF
1368
1369 cat <<\_ACEOF
1370
1371 Program names:
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of ganglia-modules-linux 1.3.6:";;
1385 esac
1386 cat <<\_ACEOF
1387
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-static-build Generate objects for static linking to gmond
1393 --disable-dependency-tracking speeds up one-time build
1394 --enable-dependency-tracking do not reject slow dependency extractors
1395 --enable-shared[=PKGS] build shared libraries [default=yes]
1396 --enable-static[=PKGS] build static libraries [default=yes]
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1400
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1407 --with-sysroot=DIR Search for dependent libraries within DIR
1408 (or the compiler's sysroot if not specified).
1409
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to the package provider.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 ganglia-modules-linux configure 1.3.6
1487 generated by GNU Autoconf 2.69
1488
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_c_try_link LINENO
1539 # -----------------------
1540 # Try to link conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_link ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext conftest$ac_exeext
1545 if { { ac_try="$ac_link"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_link") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest$ac_exeext && {
1564 test "$cross_compiling" = yes ||
1565 test -x conftest$ac_exeext
1566 }; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1575 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1576 # interfere with the next link command; also delete a directory that is
1577 # left behind by Apple's compiler. We do this before executing the actions.
1578 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_link
1583
1584 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists and can be compiled using the include files in
1587 # INCLUDES, setting the cache variable VAR accordingly.
1588 ac_fn_c_check_header_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1595 else
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1598 $4
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 eval "$3=yes"
1603 else
1604 eval "$3=no"
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 fi
1608 eval ac_res=\$$3
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610 $as_echo "$ac_res" >&6; }
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612
1613 } # ac_fn_c_check_header_compile
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1656 ac_fn_c_try_run ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
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_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=$ac_status
1687 fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_run
1693
1694 # ac_fn_c_check_func LINENO FUNC VAR
1695 # ----------------------------------
1696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1697 ac_fn_c_check_func ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1709 #define $2 innocuous_$2
1710
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $2 (); below.
1713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1714 <limits.h> exists even on freestanding compilers. */
1715
1716 #ifdef __STDC__
1717 # include <limits.h>
1718 #else
1719 # include <assert.h>
1720 #endif
1721
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 ();
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main ()
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"; then :
1747 eval "$3=yes"
1748 else
1749 eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext \
1752 conftest$ac_exeext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_func
1760 cat >config.log <<_ACEOF
1761 This file contains any messages produced by compilers while
1762 running configure, to aid debugging if configure makes a mistake.
1763
1764 It was created by ganglia-modules-linux $as_me 1.3.6, which was
1765 generated by GNU Autoconf 2.69. Invocation command line was
1766
1767 $ $0 $@
1768
1769 _ACEOF
1770 exec 5>>config.log
1771 {
1772 cat <<_ASUNAME
1773 ## --------- ##
1774 ## Platform. ##
1775 ## --------- ##
1776
1777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1782
1783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1785
1786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1793
1794 _ASUNAME
1795
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 $as_echo "PATH: $as_dir"
1802 done
1803 IFS=$as_save_IFS
1804
1805 } >&5
1806
1807 cat >&5 <<_ACEOF
1808
1809
1810 ## ----------- ##
1811 ## Core tests. ##
1812 ## ----------- ##
1813
1814 _ACEOF
1815
1816
1817 # Keep a trace of the command line.
1818 # Strip out --no-create and --no-recursion so they do not pile up.
1819 # Strip out --silent because we don't want to record it for future runs.
1820 # Also quote any args containing shell meta-characters.
1821 # Make two passes to allow for proper duplicate-argument suppression.
1822 ac_configure_args=
1823 ac_configure_args0=
1824 ac_configure_args1=
1825 ac_must_keep_next=false
1826 for ac_pass in 1 2
1827 do
1828 for ac_arg
1829 do
1830 case $ac_arg in
1831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1833 | -silent | --silent | --silen | --sile | --sil)
1834 continue ;;
1835 *\'*)
1836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 esac
1838 case $ac_pass in
1839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1840 2)
1841 as_fn_append ac_configure_args1 " '$ac_arg'"
1842 if test $ac_must_keep_next = true; then
1843 ac_must_keep_next=false # Got value, back to normal.
1844 else
1845 case $ac_arg in
1846 *=* | --config-cache | -C | -disable-* | --disable-* \
1847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1849 | -with-* | --with-* | -without-* | --without-* | --x)
1850 case "$ac_configure_args0 " in
1851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1852 esac
1853 ;;
1854 -* ) ac_must_keep_next=true ;;
1855 esac
1856 fi
1857 as_fn_append ac_configure_args " '$ac_arg'"
1858 ;;
1859 esac
1860 done
1861 done
1862 { ac_configure_args0=; unset ac_configure_args0;}
1863 { ac_configure_args1=; unset ac_configure_args1;}
1864
1865 # When interrupted or exit'd, cleanup temporary files, and complete
1866 # config.log. We remove comments because anyway the quotes in there
1867 # would cause problems or look ugly.
1868 # WARNING: Use '\'' to represent an apostrophe within the trap.
1869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1870 trap 'exit_status=$?
1871 # Save into config.log some information that might help in debugging.
1872 {
1873 echo
1874
1875 $as_echo "## ---------------- ##
1876 ## Cache variables. ##
1877 ## ---------------- ##"
1878 echo
1879 # The following way of writing the cache mishandles newlines in values,
1880 (
1881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1882 eval ac_val=\$$ac_var
1883 case $ac_val in #(
1884 *${as_nl}*)
1885 case $ac_var in #(
1886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1888 esac
1889 case $ac_var in #(
1890 _ | IFS | as_nl) ;; #(
1891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1892 *) { eval $ac_var=; unset $ac_var;} ;;
1893 esac ;;
1894 esac
1895 done
1896 (set) 2>&1 |
1897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1898 *${as_nl}ac_space=\ *)
1899 sed -n \
1900 "s/'\''/'\''\\\\'\'''\''/g;
1901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1902 ;; #(
1903 *)
1904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1905 ;;
1906 esac |
1907 sort
1908 )
1909 echo
1910
1911 $as_echo "## ----------------- ##
1912 ## Output variables. ##
1913 ## ----------------- ##"
1914 echo
1915 for ac_var in $ac_subst_vars
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924
1925 if test -n "$ac_subst_files"; then
1926 $as_echo "## ------------------- ##
1927 ## File substitutions. ##
1928 ## ------------------- ##"
1929 echo
1930 for ac_var in $ac_subst_files
1931 do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in
1934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 esac
1936 $as_echo "$ac_var='\''$ac_val'\''"
1937 done | sort
1938 echo
1939 fi
1940
1941 if test -s confdefs.h; then
1942 $as_echo "## ----------- ##
1943 ## confdefs.h. ##
1944 ## ----------- ##"
1945 echo
1946 cat confdefs.h
1947 echo
1948 fi
1949 test "$ac_signal" != 0 &&
1950 $as_echo "$as_me: caught signal $ac_signal"
1951 $as_echo "$as_me: exit $exit_status"
1952 } >&5
1953 rm -f core *.core core.conftest.* &&
1954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1955 exit $exit_status
1956 ' 0
1957 for ac_signal in 1 2 13 15; do
1958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1959 done
1960 ac_signal=0
1961
1962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1963 rm -f -r conftest* confdefs.h
1964
1965 $as_echo "/* confdefs.h */" > confdefs.h
1966
1967 # Predefined preprocessor variables.
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_NAME "$PACKAGE_NAME"
1971 _ACEOF
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1975 _ACEOF
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_STRING "$PACKAGE_STRING"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1987 _ACEOF
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_URL "$PACKAGE_URL"
1991 _ACEOF
1992
1993
1994 # Let the site file select an alternate cache file if it wants to.
1995 # Prefer an explicitly selected file to automatically selected ones.
1996 ac_site_file1=NONE
1997 ac_site_file2=NONE
1998 if test -n "$CONFIG_SITE"; then
1999 # We do not want a PATH search for config.site.
2000 case $CONFIG_SITE in #((
2001 -*) ac_site_file1=./$CONFIG_SITE;;
2002 */*) ac_site_file1=$CONFIG_SITE;;
2003 *) ac_site_file1=./$CONFIG_SITE;;
2004 esac
2005 elif test "x$prefix" != xNONE; then
2006 ac_site_file1=$prefix/share/config.site
2007 ac_site_file2=$prefix/etc/config.site
2008 else
2009 ac_site_file1=$ac_default_prefix/share/config.site
2010 ac_site_file2=$ac_default_prefix/etc/config.site
2011 fi
2012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2013 do
2014 test "x$ac_site_file" = xNONE && continue
2015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2018 sed 's/^/| /' "$ac_site_file" >&5
2019 . "$ac_site_file" \
2020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2022 as_fn_error $? "failed to load site script $ac_site_file
2023 See \`config.log' for more details" "$LINENO" 5; }
2024 fi
2025 done
2026
2027 if test -r "$cache_file"; then
2028 # Some versions of bash will fail to source /dev/null (special files
2029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2032 $as_echo "$as_me: loading cache $cache_file" >&6;}
2033 case $cache_file in
2034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035 *) . "./$cache_file";;
2036 esac
2037 fi
2038 else
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2040 $as_echo "$as_me: creating cache $cache_file" >&6;}
2041 >$cache_file
2042 fi
2043
2044 # Check that the precious variables saved in the cache have kept the same
2045 # value.
2046 ac_cache_corrupted=false
2047 for ac_var in $ac_precious_vars; do
2048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2049 eval ac_new_set=\$ac_env_${ac_var}_set
2050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2051 eval ac_new_val=\$ac_env_${ac_var}_value
2052 case $ac_old_set,$ac_new_set in
2053 set,)
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2056 ac_cache_corrupted=: ;;
2057 ,set)
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2060 ac_cache_corrupted=: ;;
2061 ,);;
2062 *)
2063 if test "x$ac_old_val" != "x$ac_new_val"; then
2064 # differences in whitespace do not lead to failure.
2065 ac_old_val_w=`echo x $ac_old_val`
2066 ac_new_val_w=`echo x $ac_new_val`
2067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2070 ac_cache_corrupted=:
2071 else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2074 eval $ac_var=\$ac_old_val
2075 fi
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2077 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2079 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2080 fi;;
2081 esac
2082 # Pass precious variables to config.status.
2083 if test "$ac_new_set" = set; then
2084 case $ac_new_val in
2085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 *) ac_arg=$ac_var=$ac_new_val ;;
2087 esac
2088 case " $ac_configure_args " in
2089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2090 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2091 esac
2092 fi
2093 done
2094 if $ac_cache_corrupted; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2099 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2100 fi
2101 ## -------------------- ##
2102 ## Main body of script. ##
2103 ## -------------------- ##
2104
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112
2113 am__api_version='1.11'
2114
2115 ac_aux_dir=
2116 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2117 if test -f "$ac_dir/install-sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 break
2121 elif test -f "$ac_dir/install.sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 break
2125 elif test -f "$ac_dir/shtool"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 break
2129 fi
2130 done
2131 if test -z "$ac_aux_dir"; then
2132 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2133 fi
2134
2135 # These three variables are undocumented and unsupported,
2136 # and are intended to be withdrawn in a future Autoconf release.
2137 # They can cause serious problems if a builder's source tree is in a directory
2138 # whose full name contains unusual characters.
2139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142
2143
2144 # Find a good install program. We prefer a C program (faster),
2145 # so one script is as good as another. But avoid the broken or
2146 # incompatible versions:
2147 # SysV /etc/install, /usr/sbin/install
2148 # SunOS /usr/etc/install
2149 # IRIX /sbin/install
2150 # AIX /bin/install
2151 # AmigaOS /C/install, which installs bootblocks on floppy discs
2152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2155 # OS/2's system install, which has a completely different semantic
2156 # ./install, which can be erroneously created by make from ./install.sh.
2157 # Reject install programs that cannot install multiple files.
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2160 if test -z "$INSTALL"; then
2161 if ${ac_cv_path_install+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 # Account for people who put trailing slashes in PATH elements.
2170 case $as_dir/ in #((
2171 ./ | .// | /[cC]/* | \
2172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2174 /usr/ucb/* ) ;;
2175 *)
2176 # OSF1 and SCO ODT 3.0 have their own names for install.
2177 # Don't use installbsd from OSF since it installs stuff as root
2178 # by default.
2179 for ac_prog in ginstall scoinst install; do
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2182 if test $ac_prog = install &&
2183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2184 # AIX install. It has an incompatible calling convention.
2185 :
2186 elif test $ac_prog = install &&
2187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188 # program-specific install script used by HP pwplus--don't use.
2189 :
2190 else
2191 rm -rf conftest.one conftest.two conftest.dir
2192 echo one > conftest.one
2193 echo two > conftest.two
2194 mkdir conftest.dir
2195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2196 test -s conftest.one && test -s conftest.two &&
2197 test -s conftest.dir/conftest.one &&
2198 test -s conftest.dir/conftest.two
2199 then
2200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2201 break 3
2202 fi
2203 fi
2204 fi
2205 done
2206 done
2207 ;;
2208 esac
2209
2210 done
2211 IFS=$as_save_IFS
2212
2213 rm -rf conftest.one conftest.two conftest.dir
2214
2215 fi
2216 if test "${ac_cv_path_install+set}" = set; then
2217 INSTALL=$ac_cv_path_install
2218 else
2219 # As a last resort, use the slow shell script. Don't cache a
2220 # value for INSTALL within a source directory, because that will
2221 # break other packages using the cache if that directory is
2222 # removed, or if the value is a relative name.
2223 INSTALL=$ac_install_sh
2224 fi
2225 fi
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2227 $as_echo "$INSTALL" >&6; }
2228
2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230 # It thinks the first close brace ends the variable substitution.
2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2232
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2234
2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2236
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2238 $as_echo_n "checking whether build environment is sane... " >&6; }
2239 # Just in case
2240 sleep 1
2241 echo timestamp > conftest.file
2242 # Reject unsafe characters in $srcdir or the absolute working directory
2243 # name. Accept space and tab only in the latter.
2244 am_lf='
2245 '
2246 case `pwd` in
2247 *[\\\"\#\$\&\'\`$am_lf]*)
2248 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2249 esac
2250 case $srcdir in
2251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2252 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2253 esac
2254
2255 # Do `set' in a subshell so we don't clobber the current shell's
2256 # arguments. Must try -L first in case configure is actually a
2257 # symlink; some systems play weird games with the mod time of symlinks
2258 # (eg FreeBSD returns the mod time of the symlink's containing
2259 # directory).
2260 if (
2261 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2262 if test "$*" = "X"; then
2263 # -L didn't work.
2264 set X `ls -t "$srcdir/configure" conftest.file`
2265 fi
2266 rm -f conftest.file
2267 if test "$*" != "X $srcdir/configure conftest.file" \
2268 && test "$*" != "X conftest.file $srcdir/configure"; then
2269
2270 # If neither matched, then we have a broken ls. This can happen
2271 # if, for instance, CONFIG_SHELL is bash and it inherits a
2272 # broken ls alias from the environment. This has actually
2273 # happened. Such a system could not be considered "sane".
2274 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2275 alias in your environment" "$LINENO" 5
2276 fi
2277
2278 test "$2" = conftest.file
2279 )
2280 then
2281 # Ok.
2282 :
2283 else
2284 as_fn_error $? "newly created file is older than distributed files!
2285 Check your system clock" "$LINENO" 5
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2288 $as_echo "yes" >&6; }
2289 test "$program_prefix" != NONE &&
2290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2291 # Use a double $ so make ignores it.
2292 test "$program_suffix" != NONE &&
2293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2294 # Double any \ or $.
2295 # By default was `s,x,x', remove it if useless.
2296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2298
2299 # expand $ac_aux_dir to an absolute path
2300 am_aux_dir=`cd $ac_aux_dir && pwd`
2301
2302 if test x"${MISSING+set}" != xset; then
2303 case $am_aux_dir in
2304 *\ * | *\ *)
2305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2306 *)
2307 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2308 esac
2309 fi
2310 # Use eval to expand $SHELL
2311 if eval "$MISSING --run true"; then
2312 am_missing_run="$MISSING --run "
2313 else
2314 am_missing_run=
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2317 fi
2318
2319 if test x"${install_sh}" != xset; then
2320 case $am_aux_dir in
2321 *\ * | *\ *)
2322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2323 *)
2324 install_sh="\${SHELL} $am_aux_dir/install-sh"
2325 esac
2326 fi
2327
2328 # Installed binaries are usually stripped using `strip' when the user
2329 # run `make install-strip'. However `strip' might not be the right
2330 # tool to use in cross-compilation environments, therefore Automake
2331 # will honor the `STRIP' environment variable to overrule this program.
2332 if test "$cross_compiling" != no; then
2333 if test -n "$ac_tool_prefix"; then
2334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2335 set dummy ${ac_tool_prefix}strip; ac_word=$2
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337 $as_echo_n "checking for $ac_word... " >&6; }
2338 if ${ac_cv_prog_STRIP+:} false; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 if test -n "$STRIP"; then
2342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355 done
2356 done
2357 IFS=$as_save_IFS
2358
2359 fi
2360 fi
2361 STRIP=$ac_cv_prog_STRIP
2362 if test -n "$STRIP"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2364 $as_echo "$STRIP" >&6; }
2365 else
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367 $as_echo "no" >&6; }
2368 fi
2369
2370
2371 fi
2372 if test -z "$ac_cv_prog_STRIP"; then
2373 ac_ct_STRIP=$STRIP
2374 # Extract the first word of "strip", so it can be a program name with args.
2375 set dummy strip; ac_word=$2
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 if test -n "$ac_ct_STRIP"; then
2382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ac_ct_STRIP="strip"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400 fi
2401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2402 if test -n "$ac_ct_STRIP"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2404 $as_echo "$ac_ct_STRIP" >&6; }
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2408 fi
2409
2410 if test "x$ac_ct_STRIP" = x; then
2411 STRIP=":"
2412 else
2413 case $cross_compiling:$ac_tool_warned in
2414 yes:)
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2417 ac_tool_warned=yes ;;
2418 esac
2419 STRIP=$ac_ct_STRIP
2420 fi
2421 else
2422 STRIP="$ac_cv_prog_STRIP"
2423 fi
2424
2425 fi
2426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2430 if test -z "$MKDIR_P"; then
2431 if ${ac_cv_path_mkdir+:} false; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2436 do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_prog in mkdir gmkdir; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2443 'mkdir (GNU coreutils) '* | \
2444 'mkdir (coreutils) '* | \
2445 'mkdir (fileutils) '4.1*)
2446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2447 break 3;;
2448 esac
2449 done
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455
2456 test -d ./--version && rmdir ./--version
2457 if test "${ac_cv_path_mkdir+set}" = set; then
2458 MKDIR_P="$ac_cv_path_mkdir -p"
2459 else
2460 # As a last resort, use the slow shell script. Don't cache a
2461 # value for MKDIR_P within a source directory, because that will
2462 # break other packages using the cache if that directory is
2463 # removed, or if the value is a relative name.
2464 MKDIR_P="$ac_install_sh -d"
2465 fi
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2468 $as_echo "$MKDIR_P" >&6; }
2469
2470 mkdir_p="$MKDIR_P"
2471 case $mkdir_p in
2472 [\\/$]* | ?:[\\/]*) ;;
2473 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2474 esac
2475
2476 for ac_prog in gawk mawk nawk awk
2477 do
2478 # Extract the first word of "$ac_prog", so it can be a program name with args.
2479 set dummy $ac_prog; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_AWK+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 if test -n "$AWK"; then
2486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_AWK="$ac_prog"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 AWK=$ac_cv_prog_AWK
2506 if test -n "$AWK"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2508 $as_echo "$AWK" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514
2515 test -n "$AWK" && break
2516 done
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2520 set x ${MAKE-make}
2521 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2522 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat >conftest.make <<\_ACEOF
2526 SHELL = /bin/sh
2527 all:
2528 @echo '@@@%%%=$(MAKE)=@@@%%%'
2529 _ACEOF
2530 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2531 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2532 *@@@%%%=?*=@@@%%%*)
2533 eval ac_cv_prog_make_${ac_make}_set=yes;;
2534 *)
2535 eval ac_cv_prog_make_${ac_make}_set=no;;
2536 esac
2537 rm -f conftest.make
2538 fi
2539 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2542 SET_MAKE=
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 SET_MAKE="MAKE=${MAKE-make}"
2547 fi
2548
2549 rm -rf .tst 2>/dev/null
2550 mkdir .tst 2>/dev/null
2551 if test -d .tst; then
2552 am__leading_dot=.
2553 else
2554 am__leading_dot=_
2555 fi
2556 rmdir .tst 2>/dev/null
2557
2558 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2560 # is not polluted with repeated "-I."
2561 am__isrc=' -I$(srcdir)'
2562 # test to see if srcdir already configured
2563 if test -f $srcdir/config.status; then
2564 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2565 fi
2566 fi
2567
2568 # test whether we have cygpath
2569 if test -z "$CYGPATH_W"; then
2570 if (cygpath --version) >/dev/null 2>/dev/null; then
2571 CYGPATH_W='cygpath -w'
2572 else
2573 CYGPATH_W=echo
2574 fi
2575 fi
2576
2577
2578 # Define the identity of the package.
2579 PACKAGE='ganglia-modules-linux'
2580 VERSION='1.3.6'
2581
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE "$PACKAGE"
2585 _ACEOF
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define VERSION "$VERSION"
2590 _ACEOF
2591
2592 # Some tools Automake needs.
2593
2594 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2595
2596
2597 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2598
2599
2600 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2601
2602
2603 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2604
2605
2606 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2607
2608 # We need awk for the "check" target. The system "awk" is bad on
2609 # some platforms.
2610 # Always define AMTAR for backward compatibility. Yes, it's still used
2611 # in the wild :-( We should find a proper way to deprecate it ...
2612 AMTAR='$${TAR-tar}'
2613
2614 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2615
2616
2617
2618
2619
2620
2621
2622
2623 # Make sure we can run config.sub.
2624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if ${ac_cv_build+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 ac_build_alias=$build_alias
2633 test "x$ac_build_alias" = x &&
2634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x &&
2636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2639
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2642 $as_echo "$ac_cv_build" >&6; }
2643 case $ac_cv_build in
2644 *-*-*) ;;
2645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2646 esac
2647 build=$ac_cv_build
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_build
2650 shift
2651 build_cpu=$1
2652 build_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 build_os=$*
2657 IFS=$ac_save_IFS
2658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2659
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2662 $as_echo_n "checking host system type... " >&6; }
2663 if ${ac_cv_host+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test "x$host_alias" = x; then
2667 ac_cv_host=$ac_cv_build
2668 else
2669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2671 fi
2672
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2675 $as_echo "$ac_cv_host" >&6; }
2676 case $ac_cv_host in
2677 *-*-*) ;;
2678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2679 esac
2680 host=$ac_cv_host
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_host
2683 shift
2684 host_cpu=$1
2685 host_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 host_os=$*
2690 IFS=$ac_save_IFS
2691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2692
2693
2694 ac_config_headers="$ac_config_headers config.h"
2695
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define HOST_OS "$HOST_OS"
2700 _ACEOF
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define CPU_VENDOR_OS "$HOST"
2705 _ACEOF
2706
2707
2708 # Check whether --enable-static-build was given.
2709 if test "${enable_static_build+set}" = set; then :
2710 enableval=$enable_static_build; enable_static_build=yes
2711 else
2712 enable_static_build=no
2713 fi
2714
2715
2716 if test x"$enable_static_build" = xyes; then
2717 STATIC_BUILD_TRUE=
2718 STATIC_BUILD_FALSE='#'
2719 else
2720 STATIC_BUILD_TRUE='#'
2721 STATIC_BUILD_FALSE=
2722 fi
2723
2724
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 fi
2766
2767
2768 fi
2769 if test -z "$ac_cv_prog_CC"; then
2770 ac_ct_CC=$CC
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801 $as_echo "$ac_ct_CC" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816 CC=$ac_ct_CC
2817 fi
2818 else
2819 CC="$ac_cv_prog_CC"
2820 fi
2821
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_CC="${ac_tool_prefix}cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 fi
2863 if test -z "$CC"; then
2864 # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 ac_prog_rejected=no
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883 ac_prog_rejected=yes
2884 continue
2885 fi
2886 ac_cv_prog_CC="cc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 if test $ac_prog_rejected = yes; then
2895 # We found a bogon in the path, so make sure we never use it.
2896 set dummy $ac_cv_prog_CC
2897 shift
2898 if test $# != 0; then
2899 # We chose a different compiler from the bogus one.
2900 # However, it has the same basename, so the bogon will be chosen
2901 # first if we set CC to just the basename; use the full file name.
2902 shift
2903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904 fi
2905 fi
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$CC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 for ac_prog in cl.exe
2922 do
2923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 test -n "$CC" && break
2961 done
2962 fi
2963 if test -z "$CC"; then
2964 ac_ct_CC=$CC
2965 for ac_prog in cl.exe
2966 do
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
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 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 fi
3002
3003
3004 test -n "$ac_ct_CC" && break
3005 done
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 fi
3019
3020 fi
3021
3022
3023 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $? "no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details" "$LINENO" 5; }
3027
3028 # Provide some information about the compiler.
3029 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030 set X $ac_compile
3031 ac_compiler=$2
3032 for ac_option in --version -v -V -qversion; do
3033 { { ac_try="$ac_compiler $ac_option >&5"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3041 ac_status=$?
3042 if test -s conftest.err; then
3043 sed '10a\
3044 ... rest of stderr output deleted ...
3045 10q' conftest.err >conftest.er1
3046 cat conftest.er1 >&5
3047 fi
3048 rm -f conftest.er1 conftest.err
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3051 done
3052
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3070 $as_echo_n "checking whether the C compiler works... " >&6; }
3071 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072
3073 # The possible output files:
3074 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075
3076 ac_rmfiles=
3077 for ac_file in $ac_files
3078 do
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082 esac
3083 done
3084 rm -f $ac_rmfiles
3085
3086 if { { ac_try="$ac_link_default"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_link_default") 2>&5
3094 ac_status=$?
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; then :
3097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100 # so that the user can short-circuit this test for compilers unknown to
3101 # Autoconf.
3102 for ac_file in $ac_files ''
3103 do
3104 test -f "$ac_file" || continue
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107 ;;
3108 [ab].out )
3109 # We found the default executable, but exeext='' is most
3110 # certainly right.
3111 break;;
3112 *.* )
3113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114 then :; else
3115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116 fi
3117 # We set ac_cv_exeext here because the later test for it is not
3118 # safe: cross compilers may not add the suffix if given an `-o'
3119 # argument, so we may need to know it at that point already.
3120 # Even if this section looks crufty: it has the advantage of
3121 # actually working.
3122 break;;
3123 * )
3124 break;;
3125 esac
3126 done
3127 test "$ac_cv_exeext" = no && ac_cv_exeext=
3128
3129 else
3130 ac_file=''
3131 fi
3132 if test -z "$ac_file"; then :
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error 77 "C compiler cannot create executables
3141 See \`config.log' for more details" "$LINENO" 5; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3147 $as_echo_n "checking for C compiler default output file name... " >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3149 $as_echo "$ac_file" >&6; }
3150 ac_exeext=$ac_cv_exeext
3151
3152 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153 ac_clean_files=$ac_clean_files_save
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3155 $as_echo_n "checking for suffix of executables... " >&6; }
3156 if { { ac_try="$ac_link"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link") 2>&5
3164 ac_status=$?
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3168 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3169 # work properly (i.e., refer to `conftest.exe'), while it won't with
3170 # `rm'.
3171 for ac_file in conftest.exe conftest conftest.*; do
3172 test -f "$ac_file" || continue
3173 case $ac_file in
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 break;;
3177 * ) break;;
3178 esac
3179 done
3180 else
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3184 See \`config.log' for more details" "$LINENO" 5; }
3185 fi
3186 rm -f conftest conftest$ac_cv_exeext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3188 $as_echo "$ac_cv_exeext" >&6; }
3189
3190 rm -f conftest.$ac_ext
3191 EXEEXT=$ac_cv_exeext
3192 ac_exeext=$EXEEXT
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3195 #include <stdio.h>
3196 int
3197 main ()
3198 {
3199 FILE *f = fopen ("conftest.out", "w");
3200 return ferror (f) || fclose (f) != 0;
3201
3202 ;
3203 return 0;
3204 }
3205 _ACEOF
3206 ac_clean_files="$ac_clean_files conftest.out"
3207 # Check that the compiler produces executables we can run. If not, either
3208 # the compiler is broken, or we cross compile.
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210 $as_echo_n "checking whether we are cross compiling... " >&6; }
3211 if test "$cross_compiling" != yes; then
3212 { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 if { ac_try='./conftest$ac_cv_exeext'
3224 { { case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_try") 2>&5
3231 ac_status=$?
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; }; then
3234 cross_compiling=no
3235 else
3236 if test "$cross_compiling" = maybe; then
3237 cross_compiling=yes
3238 else
3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "cannot run C compiled programs.
3242 If you meant to cross compile, use \`--host'.
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 fi
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3248 $as_echo "$cross_compiling" >&6; }
3249
3250 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3251 ac_clean_files=$ac_clean_files_save
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3253 $as_echo_n "checking for suffix of object files... " >&6; }
3254 if ${ac_cv_objext+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3259
3260 int
3261 main ()
3262 {
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.o conftest.obj
3269 if { { ac_try="$ac_compile"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compile") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 for ac_file in conftest.o conftest.obj conftest.*; do
3281 test -f "$ac_file" || continue;
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3285 break;;
3286 esac
3287 done
3288 else
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details" "$LINENO" 5; }
3296 fi
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3300 $as_echo "$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3302 ac_objext=$OBJEXT
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3304 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3305 if ${ac_cv_c_compiler_gnu+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314 #ifndef __GNUC__
3315 choke me
3316 #endif
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_compiler_gnu=yes
3324 else
3325 ac_compiler_gnu=no
3326 fi
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329
3330 fi
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3332 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3333 if test $ac_compiler_gnu = yes; then
3334 GCC=yes
3335 else
3336 GCC=
3337 fi
3338 ac_test_CFLAGS=${CFLAGS+set}
3339 ac_save_CFLAGS=$CFLAGS
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3341 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3342 if ${ac_cv_prog_cc_g+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 ac_save_c_werror_flag=$ac_c_werror_flag
3346 ac_c_werror_flag=yes
3347 ac_cv_prog_cc_g=no
3348 CFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_prog_cc_g=yes
3362 else
3363 CFLAGS=""
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366
3367 int
3368 main ()
3369 {
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376
3377 else
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3379 CFLAGS="-g"
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392 ac_cv_prog_cc_g=yes
3393 fi
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_c_werror_flag=$ac_save_c_werror_flag
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3402 $as_echo "$ac_cv_prog_cc_g" >&6; }
3403 if test "$ac_test_CFLAGS" = set; then
3404 CFLAGS=$ac_save_CFLAGS
3405 elif test $ac_cv_prog_cc_g = yes; then
3406 if test "$GCC" = yes; then
3407 CFLAGS="-g -O2"
3408 else
3409 CFLAGS="-g"
3410 fi
3411 else
3412 if test "$GCC" = yes; then
3413 CFLAGS="-O2"
3414 else
3415 CFLAGS=
3416 fi
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3419 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3420 if ${ac_cv_prog_cc_c89+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 ac_cv_prog_cc_c89=no
3424 ac_save_CC=$CC
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #include <stdarg.h>
3428 #include <stdio.h>
3429 struct stat;
3430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3431 struct buf { int x; };
3432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3433 static char *e (p, i)
3434 char **p;
3435 int i;
3436 {
3437 return p[i];
3438 }
3439 static char *f (char * (*g) (char **, int), char **p, ...)
3440 {
3441 char *s;
3442 va_list v;
3443 va_start (v,p);
3444 s = g (p, va_arg (v,int));
3445 va_end (v);
3446 return s;
3447 }
3448
3449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3450 function prototypes and stuff, but not '\xHH' hex character constants.
3451 These don't provoke an error unfortunately, instead are silently treated
3452 as 'x'. The following induces an error, until -std is added to get
3453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3454 array size at least. It's necessary to write '\x00'==0 to get something
3455 that's true only with -std. */
3456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457
3458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3459 inside strings and character constants. */
3460 #define FOO(x) 'x'
3461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3462
3463 int test (int i, double x);
3464 struct s1 {int (*f) (int a);};
3465 struct s2 {int (*f) (double a);};
3466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467 int argc;
3468 char **argv;
3469 int
3470 main ()
3471 {
3472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479 do
3480 CC="$ac_save_CC $ac_arg"
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_cv_prog_cc_c89=$ac_arg
3483 fi
3484 rm -f core conftest.err conftest.$ac_objext
3485 test "x$ac_cv_prog_cc_c89" != "xno" && break
3486 done
3487 rm -f conftest.$ac_ext
3488 CC=$ac_save_CC
3489
3490 fi
3491 # AC_CACHE_VAL
3492 case "x$ac_cv_prog_cc_c89" in
3493 x)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495 $as_echo "none needed" >&6; } ;;
3496 xno)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 $as_echo "unsupported" >&6; } ;;
3499 *)
3500 CC="$CC $ac_cv_prog_cc_c89"
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3503 esac
3504 if test "x$ac_cv_prog_cc_c89" != xno; then :
3505
3506 fi
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 DEPDIR="${am__leading_dot}deps"
3514
3515 ac_config_commands="$ac_config_commands depfiles"
3516
3517
3518 am_make=${MAKE-make}
3519 cat > confinc << 'END'
3520 am__doit:
3521 @echo this is the am__doit target
3522 .PHONY: am__doit
3523 END
3524 # If we don't find an include directive, just comment out the code.
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3526 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3527 am__include="#"
3528 am__quote=
3529 _am_result=none
3530 # First try GNU make style include.
3531 echo "include confinc" > confmf
3532 # Ignore all kinds of additional output from `make'.
3533 case `$am_make -s -f confmf 2> /dev/null` in #(
3534 *the\ am__doit\ target*)
3535 am__include=include
3536 am__quote=
3537 _am_result=GNU
3538 ;;
3539 esac
3540 # Now try BSD make style include.
3541 if test "$am__include" = "#"; then
3542 echo '.include "confinc"' > confmf
3543 case `$am_make -s -f confmf 2> /dev/null` in #(
3544 *the\ am__doit\ target*)
3545 am__include=.include
3546 am__quote="\""
3547 _am_result=BSD
3548 ;;
3549 esac
3550 fi
3551
3552
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3554 $as_echo "$_am_result" >&6; }
3555 rm -f confinc confmf
3556
3557 # Check whether --enable-dependency-tracking was given.
3558 if test "${enable_dependency_tracking+set}" = set; then :
3559 enableval=$enable_dependency_tracking;
3560 fi
3561
3562 if test "x$enable_dependency_tracking" != xno; then
3563 am_depcomp="$ac_aux_dir/depcomp"
3564 AMDEPBACKSLASH='\'
3565 am__nodep='_no'
3566 fi
3567 if test "x$enable_dependency_tracking" != xno; then
3568 AMDEP_TRUE=
3569 AMDEP_FALSE='#'
3570 else
3571 AMDEP_TRUE='#'
3572 AMDEP_FALSE=
3573 fi
3574
3575
3576
3577 depcc="$CC" am_compiler_list=
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3580 $as_echo_n "checking dependency style of $depcc... " >&6; }
3581 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3585 # We make a subdir and do the tests there. Otherwise we can end up
3586 # making bogus files that we don't know about and never remove. For
3587 # instance it was reported that on HP-UX the gcc test will end up
3588 # making a dummy file named `D' -- because `-MD' means `put the output
3589 # in D'.
3590 rm -rf conftest.dir
3591 mkdir conftest.dir
3592 # Copy depcomp to subdir because otherwise we won't find it if we're
3593 # using a relative directory.
3594 cp "$am_depcomp" conftest.dir
3595 cd conftest.dir
3596 # We will build objects and dependencies in a subdirectory because
3597 # it helps to detect inapplicable dependency modes. For instance
3598 # both Tru64's cc and ICC support -MD to output dependencies as a
3599 # side effect of compilation, but ICC will put the dependencies in
3600 # the current directory while Tru64 will put them in the object
3601 # directory.
3602 mkdir sub
3603
3604 am_cv_CC_dependencies_compiler_type=none
3605 if test "$am_compiler_list" = ""; then
3606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3607 fi
3608 am__universal=false
3609 case " $depcc " in #(
3610 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3611 esac
3612
3613 for depmode in $am_compiler_list; do
3614 # Setup a source with many dependencies, because some compilers
3615 # like to wrap large dependency lists on column 80 (with \), and
3616 # we should not choose a depcomp mode which is confused by this.
3617 #
3618 # We need to recreate these files for each test, as the compiler may
3619 # overwrite some of them when testing with obscure command lines.
3620 # This happens at least with the AIX C compiler.
3621 : > sub/conftest.c
3622 for i in 1 2 3 4 5 6; do
3623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3624 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3625 # Solaris 8's {/usr,}/bin/sh.
3626 touch sub/conftst$i.h
3627 done
3628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3629
3630 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3631 # mode. It turns out that the SunPro C++ compiler does not properly
3632 # handle `-M -o', and we need to detect this. Also, some Intel
3633 # versions had trouble with output in subdirs
3634 am__obj=sub/conftest.${OBJEXT-o}
3635 am__minus_obj="-o $am__obj"
3636 case $depmode in
3637 gcc)
3638 # This depmode causes a compiler race in universal mode.
3639 test "$am__universal" = false || continue
3640 ;;
3641 nosideeffect)
3642 # after this tag, mechanisms are not by side-effect, so they'll
3643 # only be used when explicitly requested
3644 if test "x$enable_dependency_tracking" = xyes; then
3645 continue
3646 else
3647 break
3648 fi
3649 ;;
3650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3651 # This compiler won't grok `-c -o', but also, the minuso test has
3652 # not run yet. These depmodes are late enough in the game, and
3653 # so weak that their functioning should not be impacted.
3654 am__obj=conftest.${OBJEXT-o}
3655 am__minus_obj=
3656 ;;
3657 none) break ;;
3658 esac
3659 if depmode=$depmode \
3660 source=sub/conftest.c object=$am__obj \
3661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3663 >/dev/null 2>conftest.err &&
3664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
3669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677 am_cv_CC_dependencies_compiler_type=$depmode
3678 break
3679 fi
3680 fi
3681 done
3682
3683 cd ..
3684 rm -rf conftest.dir
3685 else
3686 am_cv_CC_dependencies_compiler_type=none
3687 fi
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3692 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3693
3694 if
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCC_TRUE=
3698 am__fastdepCC_FALSE='#'
3699 else
3700 am__fastdepCC_TRUE='#'
3701 am__fastdepCC_FALSE=
3702 fi
3703
3704
3705
3706
3707
3708 case `pwd` in
3709 *\ * | *\ *)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3712 esac
3713
3714
3715
3716 macro_version='2.4.2'
3717 macro_revision='1.3337'
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731 ltmain="$ac_aux_dir/ltmain.sh"
3732
3733 # Backslashify metacharacters that are still active within
3734 # double-quoted strings.
3735 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3736
3737 # Same as above, but do not quote variable references.
3738 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3739
3740 # Sed substitution to delay expansion of an escaped shell variable in a
3741 # double_quote_subst'ed string.
3742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3743
3744 # Sed substitution to delay expansion of an escaped single quote.
3745 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3746
3747 # Sed substitution to avoid accidental globbing in evaled expressions
3748 no_glob_subst='s/\*/\\\*/g'
3749
3750 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3751 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3752 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3755 $as_echo_n "checking how to print strings... " >&6; }
3756 # Test print first, because it will be a builtin if present.
3757 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3759 ECHO='print -r --'
3760 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3761 ECHO='printf %s\n'
3762 else
3763 # Use this function as a fallback that always works.
3764 func_fallback_echo ()
3765 {
3766 eval 'cat <<_LTECHO_EOF
3767 $1
3768 _LTECHO_EOF'
3769 }
3770 ECHO='func_fallback_echo'
3771 fi
3772
3773 # func_echo_all arg...
3774 # Invoke $ECHO with all args, space-separated.
3775 func_echo_all ()
3776 {
3777 $ECHO ""
3778 }
3779
3780 case "$ECHO" in
3781 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3782 $as_echo "printf" >&6; } ;;
3783 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3784 $as_echo "print -r" >&6; } ;;
3785 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3786 $as_echo "cat" >&6; } ;;
3787 esac
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3803 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3804 if ${ac_cv_path_SED+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3808 for ac_i in 1 2 3 4 5 6 7; do
3809 ac_script="$ac_script$as_nl$ac_script"
3810 done
3811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3812 { ac_script=; unset ac_script;}
3813 if test -z "$SED"; then
3814 ac_path_SED_found=false
3815 # Loop through the user's path and test for each of PROGNAME-LIST
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_prog in sed gsed; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3824 as_fn_executable_p "$ac_path_SED" || continue
3825 # Check for GNU ac_path_SED and select it if it is found.
3826 # Check for GNU $ac_path_SED
3827 case `"$ac_path_SED" --version 2>&1` in
3828 *GNU*)
3829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3830 *)
3831 ac_count=0
3832 $as_echo_n 0123456789 >"conftest.in"
3833 while :
3834 do
3835 cat "conftest.in" "conftest.in" >"conftest.tmp"
3836 mv "conftest.tmp" "conftest.in"
3837 cp "conftest.in" "conftest.nl"
3838 $as_echo '' >> "conftest.nl"
3839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3841 as_fn_arith $ac_count + 1 && ac_count=$as_val
3842 if test $ac_count -gt ${ac_path_SED_max-0}; then
3843 # Best one so far, save it but keep looking for a better one
3844 ac_cv_path_SED="$ac_path_SED"
3845 ac_path_SED_max=$ac_count
3846 fi
3847 # 10*(2^10) chars as input seems more than enough
3848 test $ac_count -gt 10 && break
3849 done
3850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3851 esac
3852
3853 $ac_path_SED_found && break 3
3854 done
3855 done
3856 done
3857 IFS=$as_save_IFS
3858 if test -z "$ac_cv_path_SED"; then
3859 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3860 fi
3861 else
3862 ac_cv_path_SED=$SED
3863 fi
3864
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3867 $as_echo "$ac_cv_path_SED" >&6; }
3868 SED="$ac_cv_path_SED"
3869 rm -f conftest.sed
3870
3871 test -z "$SED" && SED=sed
3872 Xsed="$SED -e 1s/^X//"
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886 if ${ac_cv_path_GREP+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 as_fn_executable_p "$ac_path_GREP" || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3936 fi
3937 else
3938 ac_cv_path_GREP=$GREP
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943 $as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
3945
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948 $as_echo_n "checking for egrep... " >&6; }
3949 if ${ac_cv_path_EGREP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3954 else
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 as_fn_executable_p "$ac_path_EGREP" || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972 *)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995 $ac_path_EGREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
4003 else
4004 ac_cv_path_EGREP=$EGREP
4005 fi
4006
4007 fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010 $as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP="$ac_cv_path_EGREP"
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4015 $as_echo_n "checking for fgrep... " >&6; }
4016 if ${ac_cv_path_FGREP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4020 then ac_cv_path_FGREP="$GREP -F"
4021 else
4022 if test -z "$FGREP"; then
4023 ac_path_FGREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in fgrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4033 as_fn_executable_p "$ac_path_FGREP" || continue
4034 # Check for GNU ac_path_FGREP and select it if it is found.
4035 # Check for GNU $ac_path_FGREP
4036 case `"$ac_path_FGREP" --version 2>&1` in
4037 *GNU*)
4038 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4039 *)
4040 ac_count=0
4041 $as_echo_n 0123456789 >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'FGREP' >> "conftest.nl"
4048 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_FGREP="$ac_path_FGREP"
4054 ac_path_FGREP_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062 $ac_path_FGREP_found && break 3
4063 done
4064 done
4065 done
4066 IFS=$as_save_IFS
4067 if test -z "$ac_cv_path_FGREP"; then
4068 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 fi
4070 else
4071 ac_cv_path_FGREP=$FGREP
4072 fi
4073
4074 fi
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4077 $as_echo "$ac_cv_path_FGREP" >&6; }
4078 FGREP="$ac_cv_path_FGREP"
4079
4080
4081 test -z "$GREP" && GREP=grep
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then :
4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4104 else
4105 with_gnu_ld=no
4106 fi
4107
4108 ac_prog=ld
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4112 $as_echo_n "checking for ld used by $CC... " >&6; }
4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117 *)
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4130 ;;
4131 "")
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4134 ;;
4135 *)
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4138 ;;
4139 esac
4140 elif test "$with_gnu_ld" = yes; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4142 $as_echo_n "checking for GNU ld... " >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4145 $as_echo_n "checking for non-GNU ld... " >&6; }
4146 fi
4147 if ${lt_cv_path_LD+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4163 ;;
4164 *)
4165 test "$with_gnu_ld" != yes && break
4166 ;;
4167 esac
4168 fi
4169 done
4170 IFS="$lt_save_ifs"
4171 else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173 fi
4174 fi
4175
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4179 $as_echo "$LD" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4187 if ${lt_cv_prog_gnu_ld+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4191 case `$LD -v 2>&1 </dev/null` in
4192 *GNU* | *'with BFD'*)
4193 lt_cv_prog_gnu_ld=yes
4194 ;;
4195 *)
4196 lt_cv_prog_gnu_ld=no
4197 ;;
4198 esac
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4202 with_gnu_ld=$lt_cv_prog_gnu_ld
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4213 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4214 if ${lt_cv_path_NM+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$NM"; then
4218 # Let the user override the test.
4219 lt_cv_path_NM="$NM"
4220 else
4221 lt_nm_to_check="${ac_tool_prefix}nm"
4222 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4223 lt_nm_to_check="$lt_nm_to_check nm"
4224 fi
4225 for lt_tmp_nm in $lt_nm_to_check; do
4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4228 IFS="$lt_save_ifs"
4229 test -z "$ac_dir" && ac_dir=.
4230 tmp_nm="$ac_dir/$lt_tmp_nm"
4231 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4232 # Check to see if the nm accepts a BSD-compat flag.
4233 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4234 # nm: unknown option "B" ignored
4235 # Tru64's nm complains that /dev/null is an invalid object file
4236 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4237 */dev/null* | *'Invalid file or object type'*)
4238 lt_cv_path_NM="$tmp_nm -B"
4239 break
4240 ;;
4241 *)
4242 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4243 */dev/null*)
4244 lt_cv_path_NM="$tmp_nm -p"
4245 break
4246 ;;
4247 *)
4248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4249 continue # so that we can try to find one that supports BSD flags
4250 ;;
4251 esac
4252 ;;
4253 esac
4254 fi
4255 done
4256 IFS="$lt_save_ifs"
4257 done
4258 : ${lt_cv_path_NM=no}
4259 fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4262 $as_echo "$lt_cv_path_NM" >&6; }
4263 if test "$lt_cv_path_NM" != "no"; then
4264 NM="$lt_cv_path_NM"
4265 else
4266 # Didn't find any BSD compatible name lister, look for dumpbin.
4267 if test -n "$DUMPBIN"; then :
4268 # Let the user override the test.
4269 else
4270 if test -n "$ac_tool_prefix"; then
4271 for ac_prog in dumpbin "link -dump"
4272 do
4273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_DUMPBIN+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 if test -n "$DUMPBIN"; then
4281 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 DUMPBIN=$ac_cv_prog_DUMPBIN
4301 if test -n "$DUMPBIN"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4303 $as_echo "$DUMPBIN" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310 test -n "$DUMPBIN" && break
4311 done
4312 fi
4313 if test -z "$DUMPBIN"; then
4314 ac_ct_DUMPBIN=$DUMPBIN
4315 for ac_prog in dumpbin "link -dump"
4316 do
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$ac_ct_DUMPBIN"; then
4325 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4345 if test -n "$ac_ct_DUMPBIN"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4347 $as_echo "$ac_ct_DUMPBIN" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 test -n "$ac_ct_DUMPBIN" && break
4355 done
4356
4357 if test "x$ac_ct_DUMPBIN" = x; then
4358 DUMPBIN=":"
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361 yes:)
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4365 esac
4366 DUMPBIN=$ac_ct_DUMPBIN
4367 fi
4368 fi
4369
4370 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4371 *COFF*)
4372 DUMPBIN="$DUMPBIN -symbols"
4373 ;;
4374 *)
4375 DUMPBIN=:
4376 ;;
4377 esac
4378 fi
4379
4380 if test "$DUMPBIN" != ":"; then
4381 NM="$DUMPBIN"
4382 fi
4383 fi
4384 test -z "$NM" && NM=nm
4385
4386
4387
4388
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4392 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4393 if ${lt_cv_nm_interface+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 lt_cv_nm_interface="BSD nm"
4397 echo "int some_variable = 0;" > conftest.$ac_ext
4398 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4399 (eval "$ac_compile" 2>conftest.err)
4400 cat conftest.err >&5
4401 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4402 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4403 cat conftest.err >&5
4404 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4405 cat conftest.out >&5
4406 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4407 lt_cv_nm_interface="MS dumpbin"
4408 fi
4409 rm -f conftest*
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4412 $as_echo "$lt_cv_nm_interface" >&6; }
4413
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4415 $as_echo_n "checking whether ln -s works... " >&6; }
4416 LN_S=$as_ln_s
4417 if test "$LN_S" = "ln -s"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4422 $as_echo "no, using $LN_S" >&6; }
4423 fi
4424
4425 # find the maximum length of command line arguments
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4427 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4428 if ${lt_cv_sys_max_cmd_len+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 i=0
4432 teststring="ABCD"
4433
4434 case $build_os in
4435 msdosdjgpp*)
4436 # On DJGPP, this test can blow up pretty badly due to problems in libc
4437 # (any single argument exceeding 2000 bytes causes a buffer overrun
4438 # during glob expansion). Even if it were fixed, the result of this
4439 # check would be larger than it should be.
4440 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4441 ;;
4442
4443 gnu*)
4444 # Under GNU Hurd, this test is not required because there is
4445 # no limit to the length of command line arguments.
4446 # Libtool will interpret -1 as no limit whatsoever
4447 lt_cv_sys_max_cmd_len=-1;
4448 ;;
4449
4450 cygwin* | mingw* | cegcc*)
4451 # On Win9x/ME, this test blows up -- it succeeds, but takes
4452 # about 5 minutes as the teststring grows exponentially.
4453 # Worse, since 9x/ME are not pre-emptively multitasking,
4454 # you end up with a "frozen" computer, even though with patience
4455 # the test eventually succeeds (with a max line length of 256k).
4456 # Instead, let's just punt: use the minimum linelength reported by
4457 # all of the supported platforms: 8192 (on NT/2K/XP).
4458 lt_cv_sys_max_cmd_len=8192;
4459 ;;
4460
4461 mint*)
4462 # On MiNT this can take a long time and run out of memory.
4463 lt_cv_sys_max_cmd_len=8192;
4464 ;;
4465
4466 amigaos*)
4467 # On AmigaOS with pdksh, this test takes hours, literally.
4468 # So we just punt and use a minimum line length of 8192.
4469 lt_cv_sys_max_cmd_len=8192;
4470 ;;
4471
4472 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4473 # This has been around since 386BSD, at least. Likely further.
4474 if test -x /sbin/sysctl; then
4475 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4476 elif test -x /usr/sbin/sysctl; then
4477 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4478 else
4479 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4480 fi
4481 # And add a safety zone
4482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4484 ;;
4485
4486 interix*)
4487 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4488 lt_cv_sys_max_cmd_len=196608
4489 ;;
4490
4491 os2*)
4492 # The test takes a long time on OS/2.
4493 lt_cv_sys_max_cmd_len=8192
4494 ;;
4495
4496 osf*)
4497 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4498 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4499 # nice to cause kernel panics so lets avoid the loop below.
4500 # First set a reasonable default.
4501 lt_cv_sys_max_cmd_len=16384
4502 #
4503 if test -x /sbin/sysconfig; then
4504 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4505 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4506 esac
4507 fi
4508 ;;
4509 sco3.2v5*)
4510 lt_cv_sys_max_cmd_len=102400
4511 ;;
4512 sysv5* | sco5v6* | sysv4.2uw2*)
4513 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4514 if test -n "$kargmax"; then
4515 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4516 else
4517 lt_cv_sys_max_cmd_len=32768
4518 fi
4519 ;;
4520 *)
4521 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4522 if test -n "$lt_cv_sys_max_cmd_len"; then
4523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4525 else
4526 # Make teststring a little bigger before we do anything with it.
4527 # a 1K string should be a reasonable start.
4528 for i in 1 2 3 4 5 6 7 8 ; do
4529 teststring=$teststring$teststring
4530 done
4531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4532 # If test is not a shell built-in, we'll probably end up computing a
4533 # maximum length that is only half of the actual maximum length, but
4534 # we can't tell.
4535 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4536 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4537 test $i != 17 # 1/2 MB should be enough
4538 do
4539 i=`expr $i + 1`
4540 teststring=$teststring$teststring
4541 done
4542 # Only check the string length outside the loop.
4543 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4544 teststring=
4545 # Add a significant safety factor because C++ compilers can tack on
4546 # massive amounts of additional arguments before passing them to the
4547 # linker. It appears as though 1/2 is a usable value.
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4549 fi
4550 ;;
4551 esac
4552
4553 fi
4554
4555 if test -n $lt_cv_sys_max_cmd_len ; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4557 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4560 $as_echo "none" >&6; }
4561 fi
4562 max_cmd_len=$lt_cv_sys_max_cmd_len
4563
4564
4565
4566
4567
4568
4569 : ${CP="cp -f"}
4570 : ${MV="mv -f"}
4571 : ${RM="rm -f"}
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4574 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4575 # Try some XSI features
4576 xsi_shell=no
4577 ( _lt_dummy="a/b/c"
4578 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4579 = c,a/b,b/c, \
4580 && eval 'test $(( 1 + 1 )) -eq 2 \
4581 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4582 && xsi_shell=yes
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4584 $as_echo "$xsi_shell" >&6; }
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4588 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4589 lt_shell_append=no
4590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4591 >/dev/null 2>&1 \
4592 && lt_shell_append=yes
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4594 $as_echo "$lt_shell_append" >&6; }
4595
4596
4597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4598 lt_unset=unset
4599 else
4600 lt_unset=false
4601 fi
4602
4603
4604
4605
4606
4607 # test EBCDIC or ASCII
4608 case `echo X|tr X '\101'` in
4609 A) # ASCII based system
4610 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4611 lt_SP2NL='tr \040 \012'
4612 lt_NL2SP='tr \015\012 \040\040'
4613 ;;
4614 *) # EBCDIC based system
4615 lt_SP2NL='tr \100 \n'
4616 lt_NL2SP='tr \r\n \100\100'
4617 ;;
4618 esac
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4629 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4630 if ${lt_cv_to_host_file_cmd+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 case $host in
4634 *-*-mingw* )
4635 case $build in
4636 *-*-mingw* ) # actually msys
4637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4638 ;;
4639 *-*-cygwin* )
4640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4641 ;;
4642 * ) # otherwise, assume *nix
4643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4644 ;;
4645 esac
4646 ;;
4647 *-*-cygwin* )
4648 case $build in
4649 *-*-mingw* ) # actually msys
4650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4651 ;;
4652 *-*-cygwin* )
4653 lt_cv_to_host_file_cmd=func_convert_file_noop
4654 ;;
4655 * ) # otherwise, assume *nix
4656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4657 ;;
4658 esac
4659 ;;
4660 * ) # unhandled hosts (and "normal" native builds)
4661 lt_cv_to_host_file_cmd=func_convert_file_noop
4662 ;;
4663 esac
4664
4665 fi
4666
4667 to_host_file_cmd=$lt_cv_to_host_file_cmd
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4669 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4670
4671
4672
4673
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4676 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4677 if ${lt_cv_to_tool_file_cmd+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 #assume ordinary cross tools, or native build.
4681 lt_cv_to_tool_file_cmd=func_convert_file_noop
4682 case $host in
4683 *-*-mingw* )
4684 case $build in
4685 *-*-mingw* ) # actually msys
4686 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4687 ;;
4688 esac
4689 ;;
4690 esac
4691
4692 fi
4693
4694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4696 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4697
4698
4699
4700
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4704 if ${lt_cv_ld_reload_flag+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 lt_cv_ld_reload_flag='-r'
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4711 reload_flag=$lt_cv_ld_reload_flag
4712 case $reload_flag in
4713 "" | " "*) ;;
4714 *) reload_flag=" $reload_flag" ;;
4715 esac
4716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4717 case $host_os in
4718 cygwin* | mingw* | pw32* | cegcc*)
4719 if test "$GCC" != yes; then
4720 reload_cmds=false
4721 fi
4722 ;;
4723 darwin*)
4724 if test "$GCC" = yes; then
4725 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4726 else
4727 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4728 fi
4729 ;;
4730 esac
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_OBJDUMP+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -n "$OBJDUMP"; then
4749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 OBJDUMP=$ac_cv_prog_OBJDUMP
4769 if test -n "$OBJDUMP"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4771 $as_echo "$OBJDUMP" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 fi
4779 if test -z "$ac_cv_prog_OBJDUMP"; then
4780 ac_ct_OBJDUMP=$OBJDUMP
4781 # Extract the first word of "objdump", so it can be a program name with args.
4782 set dummy objdump; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$ac_ct_OBJDUMP"; then
4789 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806 fi
4807 fi
4808 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4809 if test -n "$ac_ct_OBJDUMP"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4811 $as_echo "$ac_ct_OBJDUMP" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 fi
4816
4817 if test "x$ac_ct_OBJDUMP" = x; then
4818 OBJDUMP="false"
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821 yes:)
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824 ac_tool_warned=yes ;;
4825 esac
4826 OBJDUMP=$ac_ct_OBJDUMP
4827 fi
4828 else
4829 OBJDUMP="$ac_cv_prog_OBJDUMP"
4830 fi
4831
4832 test -z "$OBJDUMP" && OBJDUMP=objdump
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4843 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4844 if ${lt_cv_deplibs_check_method+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 lt_cv_file_magic_cmd='$MAGIC_CMD'
4848 lt_cv_file_magic_test_file=
4849 lt_cv_deplibs_check_method='unknown'
4850 # Need to set the preceding variable on all platforms that support
4851 # interlibrary dependencies.
4852 # 'none' -- dependencies not supported.
4853 # `unknown' -- same as none, but documents that we really don't know.
4854 # 'pass_all' -- all dependencies passed with no checks.
4855 # 'test_compile' -- check by making test program.
4856 # 'file_magic [[regex]]' -- check by looking for files in library path
4857 # which responds to the $file_magic_cmd with a given extended regex.
4858 # If you have `file' or equivalent on your system and you're not sure
4859 # whether `pass_all' will *always* work, you probably want this one.
4860
4861 case $host_os in
4862 aix[4-9]*)
4863 lt_cv_deplibs_check_method=pass_all
4864 ;;
4865
4866 beos*)
4867 lt_cv_deplibs_check_method=pass_all
4868 ;;
4869
4870 bsdi[45]*)
4871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4872 lt_cv_file_magic_cmd='/usr/bin/file -L'
4873 lt_cv_file_magic_test_file=/shlib/libc.so
4874 ;;
4875
4876 cygwin*)
4877 # func_win32_libid is a shell function defined in ltmain.sh
4878 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4879 lt_cv_file_magic_cmd='func_win32_libid'
4880 ;;
4881
4882 mingw* | pw32*)
4883 # Base MSYS/MinGW do not provide the 'file' command needed by
4884 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4885 # unless we find 'file', for example because we are cross-compiling.
4886 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4887 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4889 lt_cv_file_magic_cmd='func_win32_libid'
4890 else
4891 # Keep this pattern in sync with the one in func_win32_libid.
4892 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4893 lt_cv_file_magic_cmd='$OBJDUMP -f'
4894 fi
4895 ;;
4896
4897 cegcc*)
4898 # use the weaker test based on 'objdump'. See mingw*.
4899 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4900 lt_cv_file_magic_cmd='$OBJDUMP -f'
4901 ;;
4902
4903 darwin* | rhapsody*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
4906
4907 freebsd* | dragonfly*)
4908 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4909 case $host_cpu in
4910 i*86 )
4911 # Not sure whether the presence of OpenBSD here was a mistake.
4912 # Let's accept both of them until this is cleared up.
4913 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4914 lt_cv_file_magic_cmd=/usr/bin/file
4915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4916 ;;
4917 esac
4918 else
4919 lt_cv_deplibs_check_method=pass_all
4920 fi
4921 ;;
4922
4923 haiku*)
4924 lt_cv_deplibs_check_method=pass_all
4925 ;;
4926
4927 hpux10.20* | hpux11*)
4928 lt_cv_file_magic_cmd=/usr/bin/file
4929 case $host_cpu in
4930 ia64*)
4931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4932 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4933 ;;
4934 hppa*64*)
4935 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]'
4936 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4937 ;;
4938 *)
4939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4940 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4941 ;;
4942 esac
4943 ;;
4944
4945 interix[3-9]*)
4946 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4948 ;;
4949
4950 irix5* | irix6* | nonstopux*)
4951 case $LD in
4952 *-32|*"-32 ") libmagic=32-bit;;
4953 *-n32|*"-n32 ") libmagic=N32;;
4954 *-64|*"-64 ") libmagic=64-bit;;
4955 *) libmagic=never-match;;
4956 esac
4957 lt_cv_deplibs_check_method=pass_all
4958 ;;
4959
4960 # This must be glibc/ELF.
4961 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4964
4965 netbsd* | netbsdelf*-gnu)
4966 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968 else
4969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4970 fi
4971 ;;
4972
4973 newos6*)
4974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4975 lt_cv_file_magic_cmd=/usr/bin/file
4976 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4977 ;;
4978
4979 *nto* | *qnx*)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982
4983 openbsd*)
4984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4986 else
4987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4988 fi
4989 ;;
4990
4991 osf3* | osf4* | osf5*)
4992 lt_cv_deplibs_check_method=pass_all
4993 ;;
4994
4995 rdos*)
4996 lt_cv_deplibs_check_method=pass_all
4997 ;;
4998
4999 solaris*)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
5002
5003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
5006
5007 sysv4 | sysv4.3*)
5008 case $host_vendor in
5009 motorola)
5010 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]'
5011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5012 ;;
5013 ncr)
5014 lt_cv_deplibs_check_method=pass_all
5015 ;;
5016 sequent)
5017 lt_cv_file_magic_cmd='/bin/file'
5018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5019 ;;
5020 sni)
5021 lt_cv_file_magic_cmd='/bin/file'
5022 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5023 lt_cv_file_magic_test_file=/lib/libc.so
5024 ;;
5025 siemens)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028 pc)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031 esac
5032 ;;
5033
5034 tpf*)
5035 lt_cv_deplibs_check_method=pass_all
5036 ;;
5037 esac
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5041 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5042
5043 file_magic_glob=
5044 want_nocaseglob=no
5045 if test "$build" = "$host"; then
5046 case $host_os in
5047 mingw* | pw32*)
5048 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5049 want_nocaseglob=yes
5050 else
5051 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5052 fi
5053 ;;
5054 esac
5055 fi
5056
5057 file_magic_cmd=$lt_cv_file_magic_cmd
5058 deplibs_check_method=$lt_cv_deplibs_check_method
5059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_DLLTOOL+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$DLLTOOL"; then
5091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 DLLTOOL=$ac_cv_prog_DLLTOOL
5111 if test -n "$DLLTOOL"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5113 $as_echo "$DLLTOOL" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 fi
5121 if test -z "$ac_cv_prog_DLLTOOL"; then
5122 ac_ct_DLLTOOL=$DLLTOOL
5123 # Extract the first word of "dlltool", so it can be a program name with args.
5124 set dummy dlltool; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$ac_ct_DLLTOOL"; then
5131 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5151 if test -n "$ac_ct_DLLTOOL"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5153 $as_echo "$ac_ct_DLLTOOL" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159 if test "x$ac_ct_DLLTOOL" = x; then
5160 DLLTOOL="false"
5161 else
5162 case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166 ac_tool_warned=yes ;;
5167 esac
5168 DLLTOOL=$ac_ct_DLLTOOL
5169 fi
5170 else
5171 DLLTOOL="$ac_cv_prog_DLLTOOL"
5172 fi
5173
5174 test -z "$DLLTOOL" && DLLTOOL=dlltool
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5186 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5187 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 lt_cv_sharedlib_from_linklib_cmd='unknown'
5191
5192 case $host_os in
5193 cygwin* | mingw* | pw32* | cegcc*)
5194 # two different shell functions defined in ltmain.sh
5195 # decide which to use based on capabilities of $DLLTOOL
5196 case `$DLLTOOL --help 2>&1` in
5197 *--identify-strict*)
5198 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5199 ;;
5200 *)
5201 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5202 ;;
5203 esac
5204 ;;
5205 *)
5206 # fallback: assume linklib IS sharedlib
5207 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5208 ;;
5209 esac
5210
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5213 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5214 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5215 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5216
5217
5218
5219
5220
5221
5222
5223
5224 if test -n "$ac_tool_prefix"; then
5225 for ac_prog in ar
5226 do
5227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_AR+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$AR"; then
5235 ac_cv_prog_AR="$AR" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 AR=$ac_cv_prog_AR
5255 if test -n "$AR"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5257 $as_echo "$AR" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 test -n "$AR" && break
5265 done
5266 fi
5267 if test -z "$AR"; then
5268 ac_ct_AR=$AR
5269 for ac_prog in ar
5270 do
5271 # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -n "$ac_ct_AR"; then
5279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_AR="$ac_prog"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5299 if test -n "$ac_ct_AR"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5301 $as_echo "$ac_ct_AR" >&6; }
5302 else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308 test -n "$ac_ct_AR" && break
5309 done
5310
5311 if test "x$ac_ct_AR" = x; then
5312 AR="false"
5313 else
5314 case $cross_compiling:$ac_tool_warned in
5315 yes:)
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 AR=$ac_ct_AR
5321 fi
5322 fi
5323
5324 : ${AR=ar}
5325 : ${AR_FLAGS=cru}
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5338 $as_echo_n "checking for archiver @FILE support... " >&6; }
5339 if ${lt_cv_ar_at_file+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 lt_cv_ar_at_file=no
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 echo conftest.$ac_objext > conftest.lst
5356 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5358 (eval $lt_ar_try) 2>&5
5359 ac_status=$?
5360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5361 test $ac_status = 0; }
5362 if test "$ac_status" -eq 0; then
5363 # Ensure the archiver fails upon bogus file names.
5364 rm -f conftest.$ac_objext libconftest.a
5365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5366 (eval $lt_ar_try) 2>&5
5367 ac_status=$?
5368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5369 test $ac_status = 0; }
5370 if test "$ac_status" -ne 0; then
5371 lt_cv_ar_at_file=@
5372 fi
5373 fi
5374 rm -f conftest.* libconftest.a
5375
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5381 $as_echo "$lt_cv_ar_at_file" >&6; }
5382
5383 if test "x$lt_cv_ar_at_file" = xno; then
5384 archiver_list_spec=
5385 else
5386 archiver_list_spec=$lt_cv_ar_at_file
5387 fi
5388
5389
5390
5391
5392
5393
5394
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5397 set dummy ${ac_tool_prefix}strip; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_STRIP+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$STRIP"; then
5404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 STRIP=$ac_cv_prog_STRIP
5424 if test -n "$STRIP"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5426 $as_echo "$STRIP" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433 fi
5434 if test -z "$ac_cv_prog_STRIP"; then
5435 ac_ct_STRIP=$STRIP
5436 # Extract the first word of "strip", so it can be a program name with args.
5437 set dummy strip; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$ac_ct_STRIP"; then
5444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_STRIP="strip"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5464 if test -n "$ac_ct_STRIP"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5466 $as_echo "$ac_ct_STRIP" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472 if test "x$ac_ct_STRIP" = x; then
5473 STRIP=":"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476 yes:)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned=yes ;;
5480 esac
5481 STRIP=$ac_ct_STRIP
5482 fi
5483 else
5484 STRIP="$ac_cv_prog_STRIP"
5485 fi
5486
5487 test -z "$STRIP" && STRIP=:
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_RANLIB+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$RANLIB"; then
5503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 RANLIB=$ac_cv_prog_RANLIB
5523 if test -n "$RANLIB"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5525 $as_echo "$RANLIB" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_RANLIB"; then
5534 ac_ct_RANLIB=$RANLIB
5535 # Extract the first word of "ranlib", so it can be a program name with args.
5536 set dummy ranlib; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_RANLIB"; then
5543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_RANLIB="ranlib"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5563 if test -n "$ac_ct_RANLIB"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5565 $as_echo "$ac_ct_RANLIB" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571 if test "x$ac_ct_RANLIB" = x; then
5572 RANLIB=":"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580 RANLIB=$ac_ct_RANLIB
5581 fi
5582 else
5583 RANLIB="$ac_cv_prog_RANLIB"
5584 fi
5585
5586 test -z "$RANLIB" && RANLIB=:
5587
5588
5589
5590
5591
5592
5593 # Determine commands to create old-style static archives.
5594 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5595 old_postinstall_cmds='chmod 644 $oldlib'
5596 old_postuninstall_cmds=
5597
5598 if test -n "$RANLIB"; then
5599 case $host_os in
5600 openbsd*)
5601 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5602 ;;
5603 *)
5604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5605 ;;
5606 esac
5607 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5608 fi
5609
5610 case $host_os in
5611 darwin*)
5612 lock_old_archive_extraction=yes ;;
5613 *)
5614 lock_old_archive_extraction=no ;;
5615 esac
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 # If no C compiler was specified, use CC.
5656 LTCC=${LTCC-"$CC"}
5657
5658 # If no C compiler flags were specified, use CFLAGS.
5659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5660
5661 # Allow CC to be a program name with arguments.
5662 compiler=$CC
5663
5664
5665 # Check for command to grab the raw symbol name followed by C symbol from nm.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5667 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5668 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671
5672 # These are sane defaults that work on at least a few old systems.
5673 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5674
5675 # Character class describing NM global symbol codes.
5676 symcode='[BCDEGRST]'
5677
5678 # Regexp to match symbols that can be accessed directly from C.
5679 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5680
5681 # Define system-specific variables.
5682 case $host_os in
5683 aix*)
5684 symcode='[BCDT]'
5685 ;;
5686 cygwin* | mingw* | pw32* | cegcc*)
5687 symcode='[ABCDGISTW]'
5688 ;;
5689 hpux*)
5690 if test "$host_cpu" = ia64; then
5691 symcode='[ABCDEGRST]'
5692 fi
5693 ;;
5694 irix* | nonstopux*)
5695 symcode='[BCDEGRST]'
5696 ;;
5697 osf*)
5698 symcode='[BCDEGQRST]'
5699 ;;
5700 solaris*)
5701 symcode='[BDRT]'
5702 ;;
5703 sco3.2v5*)
5704 symcode='[DT]'
5705 ;;
5706 sysv4.2uw2*)
5707 symcode='[DT]'
5708 ;;
5709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5710 symcode='[ABDT]'
5711 ;;
5712 sysv4)
5713 symcode='[DFNSTU]'
5714 ;;
5715 esac
5716
5717 # If we're using GNU nm, then use its standard symbol codes.
5718 case `$NM -V 2>&1` in
5719 *GNU* | *'with BFD'*)
5720 symcode='[ABCDGIRSTW]' ;;
5721 esac
5722
5723 # Transform an extracted symbol line into a proper C declaration.
5724 # Some systems (esp. on ia64) link data and code symbols differently,
5725 # so use this general approach.
5726 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5727
5728 # Transform an extracted symbol line into symbol name and symbol address
5729 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5730 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'"
5731
5732 # Handle CRLF in mingw tool chain
5733 opt_cr=
5734 case $build_os in
5735 mingw*)
5736 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5737 ;;
5738 esac
5739
5740 # Try without a prefix underscore, then with it.
5741 for ac_symprfx in "" "_"; do
5742
5743 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5744 symxfrm="\\1 $ac_symprfx\\2 \\2"
5745
5746 # Write the raw and C identifiers.
5747 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5748 # Fake it for dumpbin and say T for any non-static function
5749 # and D for any global variable.
5750 # Also find C++ and __fastcall symbols from MSVC++,
5751 # which start with @ or ?.
5752 lt_cv_sys_global_symbol_pipe="$AWK '"\
5753 " {last_section=section; section=\$ 3};"\
5754 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5755 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5756 " \$ 0!~/External *\|/{next};"\
5757 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5758 " {if(hide[section]) next};"\
5759 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5760 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5761 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5762 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5763 " ' prfx=^$ac_symprfx"
5764 else
5765 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5766 fi
5767 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5768
5769 # Check to see that the pipe works correctly.
5770 pipe_works=no
5771
5772 rm -f conftest*
5773 cat > conftest.$ac_ext <<_LT_EOF
5774 #ifdef __cplusplus
5775 extern "C" {
5776 #endif
5777 char nm_test_var;
5778 void nm_test_func(void);
5779 void nm_test_func(void){}
5780 #ifdef __cplusplus
5781 }
5782 #endif
5783 int main(){nm_test_var='a';nm_test_func();return(0);}
5784 _LT_EOF
5785
5786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5787 (eval $ac_compile) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; }; then
5791 # Now try to grab the symbols.
5792 nlist=conftest.nm
5793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5794 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5795 ac_status=$?
5796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797 test $ac_status = 0; } && test -s "$nlist"; then
5798 # Try sorting and uniquifying the output.
5799 if sort "$nlist" | uniq > "$nlist"T; then
5800 mv -f "$nlist"T "$nlist"
5801 else
5802 rm -f "$nlist"T
5803 fi
5804
5805 # Make sure that we snagged all the symbols we need.
5806 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5807 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5808 cat <<_LT_EOF > conftest.$ac_ext
5809 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5810 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5811 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5812 relocations are performed -- see ld's documentation on pseudo-relocs. */
5813 # define LT_DLSYM_CONST
5814 #elif defined(__osf__)
5815 /* This system does not cope well with relocations in const data. */
5816 # define LT_DLSYM_CONST
5817 #else
5818 # define LT_DLSYM_CONST const
5819 #endif
5820
5821 #ifdef __cplusplus
5822 extern "C" {
5823 #endif
5824
5825 _LT_EOF
5826 # Now generate the symbol file.
5827 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5828
5829 cat <<_LT_EOF >> conftest.$ac_ext
5830
5831 /* The mapping between symbol names and symbols. */
5832 LT_DLSYM_CONST struct {
5833 const char *name;
5834 void *address;
5835 }
5836 lt__PROGRAM__LTX_preloaded_symbols[] =
5837 {
5838 { "@PROGRAM@", (void *) 0 },
5839 _LT_EOF
5840 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5841 cat <<\_LT_EOF >> conftest.$ac_ext
5842 {0, (void *) 0}
5843 };
5844
5845 /* This works around a problem in FreeBSD linker */
5846 #ifdef FREEBSD_WORKAROUND
5847 static const void *lt_preloaded_setup() {
5848 return lt__PROGRAM__LTX_preloaded_symbols;
5849 }
5850 #endif
5851
5852 #ifdef __cplusplus
5853 }
5854 #endif
5855 _LT_EOF
5856 # Now try linking the two files.
5857 mv conftest.$ac_objext conftstm.$ac_objext
5858 lt_globsym_save_LIBS=$LIBS
5859 lt_globsym_save_CFLAGS=$CFLAGS
5860 LIBS="conftstm.$ac_objext"
5861 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5863 (eval $ac_link) 2>&5
5864 ac_status=$?
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5867 pipe_works=yes
5868 fi
5869 LIBS=$lt_globsym_save_LIBS
5870 CFLAGS=$lt_globsym_save_CFLAGS
5871 else
5872 echo "cannot find nm_test_func in $nlist" >&5
5873 fi
5874 else
5875 echo "cannot find nm_test_var in $nlist" >&5
5876 fi
5877 else
5878 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5879 fi
5880 else
5881 echo "$progname: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 fi
5884 rm -rf conftest* conftst*
5885
5886 # Do not use the global_symbol_pipe unless it works.
5887 if test "$pipe_works" = yes; then
5888 break
5889 else
5890 lt_cv_sys_global_symbol_pipe=
5891 fi
5892 done
5893
5894 fi
5895
5896 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5897 lt_cv_sys_global_symbol_to_cdecl=
5898 fi
5899 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5901 $as_echo "failed" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5904 $as_echo "ok" >&6; }
5905 fi
5906
5907 # Response file support.
5908 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5909 nm_file_list_spec='@'
5910 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5911 nm_file_list_spec='@'
5912 fi
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5941 $as_echo_n "checking for sysroot... " >&6; }
5942
5943 # Check whether --with-sysroot was given.
5944 if test "${with_sysroot+set}" = set; then :
5945 withval=$with_sysroot;
5946 else
5947 with_sysroot=no
5948 fi
5949
5950
5951 lt_sysroot=
5952 case ${with_sysroot} in #(
5953 yes)
5954 if test "$GCC" = yes; then
5955 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5956 fi
5957 ;; #(
5958 /*)
5959 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5960 ;; #(
5961 no|'')
5962 ;; #(
5963 *)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5965 $as_echo "${with_sysroot}" >&6; }
5966 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5967 ;;
5968 esac
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5971 $as_echo "${lt_sysroot:-no}" >&6; }
5972
5973
5974
5975
5976
5977 # Check whether --enable-libtool-lock was given.
5978 if test "${enable_libtool_lock+set}" = set; then :
5979 enableval=$enable_libtool_lock;
5980 fi
5981
5982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5983
5984 # Some flags need to be propagated to the compiler or linker for good
5985 # libtool support.
5986 case $host in
5987 ia64-*-hpux*)
5988 # Find out which ABI we are using.
5989 echo 'int i;' > conftest.$ac_ext
5990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5991 (eval $ac_compile) 2>&5
5992 ac_status=$?
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; }; then
5995 case `/usr/bin/file conftest.$ac_objext` in
5996 *ELF-32*)
5997 HPUX_IA64_MODE="32"
5998 ;;
5999 *ELF-64*)
6000 HPUX_IA64_MODE="64"
6001 ;;
6002 esac
6003 fi
6004 rm -rf conftest*
6005 ;;
6006 *-*-irix6*)
6007 # Find out which ABI we are using.
6008 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6010 (eval $ac_compile) 2>&5
6011 ac_status=$?
6012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013 test $ac_status = 0; }; then
6014 if test "$lt_cv_prog_gnu_ld" = yes; then
6015 case `/usr/bin/file conftest.$ac_objext` in
6016 *32-bit*)
6017 LD="${LD-ld} -melf32bsmip"
6018 ;;
6019 *N32*)
6020 LD="${LD-ld} -melf32bmipn32"
6021 ;;
6022 *64-bit*)
6023 LD="${LD-ld} -melf64bmip"
6024 ;;
6025 esac
6026 else
6027 case `/usr/bin/file conftest.$ac_objext` in
6028 *32-bit*)
6029 LD="${LD-ld} -32"
6030 ;;
6031 *N32*)
6032 LD="${LD-ld} -n32"
6033 ;;
6034 *64-bit*)
6035 LD="${LD-ld} -64"
6036 ;;
6037 esac
6038 fi
6039 fi
6040 rm -rf conftest*
6041 ;;
6042
6043 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6044 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6045 # Find out which ABI we are using.
6046 echo 'int i;' > conftest.$ac_ext
6047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6048 (eval $ac_compile) 2>&5
6049 ac_status=$?
6050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051 test $ac_status = 0; }; then
6052 case `/usr/bin/file conftest.o` in
6053 *32-bit*)
6054 case $host in
6055 x86_64-*kfreebsd*-gnu)
6056 LD="${LD-ld} -m elf_i386_fbsd"
6057 ;;
6058 x86_64-*linux*)
6059 LD="${LD-ld} -m elf_i386"
6060 ;;
6061 ppc64-*linux*|powerpc64-*linux*)
6062 LD="${LD-ld} -m elf32ppclinux"
6063 ;;
6064 s390x-*linux*)
6065 LD="${LD-ld} -m elf_s390"
6066 ;;
6067 sparc64-*linux*)
6068 LD="${LD-ld} -m elf32_sparc"
6069 ;;
6070 esac
6071 ;;
6072 *64-bit*)
6073 case $host in
6074 x86_64-*kfreebsd*-gnu)
6075 LD="${LD-ld} -m elf_x86_64_fbsd"
6076 ;;
6077 x86_64-*linux*)
6078 LD="${LD-ld} -m elf_x86_64"
6079 ;;
6080 ppc*-*linux*|powerpc*-*linux*)
6081 LD="${LD-ld} -m elf64ppc"
6082 ;;
6083 s390*-*linux*|s390*-*tpf*)
6084 LD="${LD-ld} -m elf64_s390"
6085 ;;
6086 sparc*-*linux*)
6087 LD="${LD-ld} -m elf64_sparc"
6088 ;;
6089 esac
6090 ;;
6091 esac
6092 fi
6093 rm -rf conftest*
6094 ;;
6095
6096 *-*-sco3.2v5*)
6097 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6098 SAVE_CFLAGS="$CFLAGS"
6099 CFLAGS="$CFLAGS -belf"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6101 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6102 if ${lt_cv_cc_needs_belf+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113
6114 int
6115 main ()
6116 {
6117
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_link "$LINENO"; then :
6123 lt_cv_cc_needs_belf=yes
6124 else
6125 lt_cv_cc_needs_belf=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135 fi
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6137 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6138 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6139 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6140 CFLAGS="$SAVE_CFLAGS"
6141 fi
6142 ;;
6143 *-*solaris*)
6144 # Find out which ABI we are using.
6145 echo 'int i;' > conftest.$ac_ext
6146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6147 (eval $ac_compile) 2>&5
6148 ac_status=$?
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }; then
6151 case `/usr/bin/file conftest.o` in
6152 *64-bit*)
6153 case $lt_cv_prog_gnu_ld in
6154 yes*)
6155 case $host in
6156 i?86-*-solaris*)
6157 LD="${LD-ld} -m elf_x86_64"
6158 ;;
6159 sparc*-*-solaris*)
6160 LD="${LD-ld} -m elf64_sparc"
6161 ;;
6162 esac
6163 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6164 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6165 LD="${LD-ld}_sol2"
6166 fi
6167 ;;
6168 *)
6169 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6170 LD="${LD-ld} -64"
6171 fi
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 rm -rf conftest*
6178 ;;
6179 esac
6180
6181 need_locks="$enable_libtool_lock"
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}mt; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$MANIFEST_TOOL"; then
6192 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6212 if test -n "$MANIFEST_TOOL"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6214 $as_echo "$MANIFEST_TOOL" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6223 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6224 # Extract the first word of "mt", so it can be a program name with args.
6225 set dummy mt; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_MANIFEST_TOOL"; then
6232 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6252 if test -n "$ac_ct_MANIFEST_TOOL"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6254 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6261 MANIFEST_TOOL=":"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6270 fi
6271 else
6272 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6273 fi
6274
6275 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6277 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6278 if ${lt_cv_path_mainfest_tool+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 lt_cv_path_mainfest_tool=no
6282 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6283 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6284 cat conftest.err >&5
6285 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6286 lt_cv_path_mainfest_tool=yes
6287 fi
6288 rm -f conftest*
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6291 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6292 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6293 MANIFEST_TOOL=:
6294 fi
6295
6296
6297
6298
6299
6300
6301 case $host_os in
6302 rhapsody* | darwin*)
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$DSYMUTIL"; then
6312 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6332 if test -n "$DSYMUTIL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6334 $as_echo "$DSYMUTIL" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_DSYMUTIL"; then
6343 ac_ct_DSYMUTIL=$DSYMUTIL
6344 # Extract the first word of "dsymutil", so it can be a program name with args.
6345 set dummy dsymutil; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$ac_ct_DSYMUTIL"; then
6352 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6372 if test -n "$ac_ct_DSYMUTIL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6374 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380 if test "x$ac_ct_DSYMUTIL" = x; then
6381 DSYMUTIL=":"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389 DSYMUTIL=$ac_ct_DSYMUTIL
6390 fi
6391 else
6392 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6393 fi
6394
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_NMEDIT+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$NMEDIT"; then
6404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 NMEDIT=$ac_cv_prog_NMEDIT
6424 if test -n "$NMEDIT"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6426 $as_echo "$NMEDIT" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433 fi
6434 if test -z "$ac_cv_prog_NMEDIT"; then
6435 ac_ct_NMEDIT=$NMEDIT
6436 # Extract the first word of "nmedit", so it can be a program name with args.
6437 set dummy nmedit; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_NMEDIT"; then
6444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6464 if test -n "$ac_ct_NMEDIT"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6466 $as_echo "$ac_ct_NMEDIT" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472 if test "x$ac_ct_NMEDIT" = x; then
6473 NMEDIT=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 NMEDIT=$ac_ct_NMEDIT
6482 fi
6483 else
6484 NMEDIT="$ac_cv_prog_NMEDIT"
6485 fi
6486
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_LIPO+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$LIPO"; then
6496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 LIPO=$ac_cv_prog_LIPO
6516 if test -n "$LIPO"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6518 $as_echo "$LIPO" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_LIPO"; then
6527 ac_ct_LIPO=$LIPO
6528 # Extract the first word of "lipo", so it can be a program name with args.
6529 set dummy lipo; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$ac_ct_LIPO"; then
6536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_ac_ct_LIPO="lipo"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6556 if test -n "$ac_ct_LIPO"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6558 $as_echo "$ac_ct_LIPO" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564 if test "x$ac_ct_LIPO" = x; then
6565 LIPO=":"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573 LIPO=$ac_ct_LIPO
6574 fi
6575 else
6576 LIPO="$ac_cv_prog_LIPO"
6577 fi
6578
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}otool; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_OTOOL+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$OTOOL"; then
6588 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 OTOOL=$ac_cv_prog_OTOOL
6608 if test -n "$OTOOL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6610 $as_echo "$OTOOL" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616
6617 fi
6618 if test -z "$ac_cv_prog_OTOOL"; then
6619 ac_ct_OTOOL=$OTOOL
6620 # Extract the first word of "otool", so it can be a program name with args.
6621 set dummy otool; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -n "$ac_ct_OTOOL"; then
6628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_ac_ct_OTOOL="otool"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6648 if test -n "$ac_ct_OTOOL"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6650 $as_echo "$ac_ct_OTOOL" >&6; }
6651 else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656 if test "x$ac_ct_OTOOL" = x; then
6657 OTOOL=":"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660 yes:)
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6664 esac
6665 OTOOL=$ac_ct_OTOOL
6666 fi
6667 else
6668 OTOOL="$ac_cv_prog_OTOOL"
6669 fi
6670
6671 if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_OTOOL64+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$OTOOL64"; then
6680 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6696
6697 fi
6698 fi
6699 OTOOL64=$ac_cv_prog_OTOOL64
6700 if test -n "$OTOOL64"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6702 $as_echo "$OTOOL64" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707
6708
6709 fi
6710 if test -z "$ac_cv_prog_OTOOL64"; then
6711 ac_ct_OTOOL64=$OTOOL64
6712 # Extract the first word of "otool64", so it can be a program name with args.
6713 set dummy otool64; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if test -n "$ac_ct_OTOOL64"; then
6720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_ac_ct_OTOOL64="otool64"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6740 if test -n "$ac_ct_OTOOL64"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6742 $as_echo "$ac_ct_OTOOL64" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748 if test "x$ac_ct_OTOOL64" = x; then
6749 OTOOL64=":"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757 OTOOL64=$ac_ct_OTOOL64
6758 fi
6759 else
6760 OTOOL64="$ac_cv_prog_OTOOL64"
6761 fi
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6790 $as_echo_n "checking for -single_module linker flag... " >&6; }
6791 if ${lt_cv_apple_cc_single_mod+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 lt_cv_apple_cc_single_mod=no
6795 if test -z "${LT_MULTI_MODULE}"; then
6796 # By default we will add the -single_module flag. You can override
6797 # by either setting the environment variable LT_MULTI_MODULE
6798 # non-empty at configure time, or by adding -multi_module to the
6799 # link flags.
6800 rm -rf libconftest.dylib*
6801 echo "int foo(void){return 1;}" > conftest.c
6802 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6803 -dynamiclib -Wl,-single_module conftest.c" >&5
6804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6805 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6806 _lt_result=$?
6807 # If there is a non-empty error log, and "single_module"
6808 # appears in it, assume the flag caused a linker warning
6809 if test -s conftest.err && $GREP single_module conftest.err; then
6810 cat conftest.err >&5
6811 # Otherwise, if the output was created with a 0 exit code from
6812 # the compiler, it worked.
6813 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6814 lt_cv_apple_cc_single_mod=yes
6815 else
6816 cat conftest.err >&5
6817 fi
6818 rm -rf libconftest.dylib*
6819 rm -f conftest.*
6820 fi
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6823 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6824
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6826 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6827 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 lt_cv_ld_exported_symbols_list=no
6831 save_LDFLAGS=$LDFLAGS
6832 echo "_main" > conftest.sym
6833 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836
6837 int
6838 main ()
6839 {
6840
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846 lt_cv_ld_exported_symbols_list=yes
6847 else
6848 lt_cv_ld_exported_symbols_list=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 LDFLAGS="$save_LDFLAGS"
6853
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6856 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6859 $as_echo_n "checking for -force_load linker flag... " >&6; }
6860 if ${lt_cv_ld_force_load+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 lt_cv_ld_force_load=no
6864 cat > conftest.c << _LT_EOF
6865 int forced_loaded() { return 2;}
6866 _LT_EOF
6867 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6868 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6869 echo "$AR cru libconftest.a conftest.o" >&5
6870 $AR cru libconftest.a conftest.o 2>&5
6871 echo "$RANLIB libconftest.a" >&5
6872 $RANLIB libconftest.a 2>&5
6873 cat > conftest.c << _LT_EOF
6874 int main() { return 0;}
6875 _LT_EOF
6876 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6877 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6878 _lt_result=$?
6879 if test -s conftest.err && $GREP force_load conftest.err; then
6880 cat conftest.err >&5
6881 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6882 lt_cv_ld_force_load=yes
6883 else
6884 cat conftest.err >&5
6885 fi
6886 rm -f conftest.err libconftest.a conftest conftest.c
6887 rm -rf conftest.dSYM
6888
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6891 $as_echo "$lt_cv_ld_force_load" >&6; }
6892 case $host_os in
6893 rhapsody* | darwin1.[012])
6894 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6895 darwin1.*)
6896 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6897 darwin*) # darwin 5.x on
6898 # if running on 10.5 or later, the deployment target defaults
6899 # to the OS version, if on x86, and 10.4, the deployment
6900 # target defaults to 10.4. Don't you love it?
6901 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6902 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6904 10.[012]*)
6905 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6906 10.*)
6907 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6908 esac
6909 ;;
6910 esac
6911 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6912 _lt_dar_single_mod='$single_module'
6913 fi
6914 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6915 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6916 else
6917 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6918 fi
6919 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6920 _lt_dsymutil='~$DSYMUTIL $lib || :'
6921 else
6922 _lt_dsymutil=
6923 fi
6924 ;;
6925 esac
6926
6927 ac_ext=c
6928 ac_cpp='$CPP $CPPFLAGS'
6929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6934 # On Suns, sometimes $CPP names a directory.
6935 if test -n "$CPP" && test -d "$CPP"; then
6936 CPP=
6937 fi
6938 if test -z "$CPP"; then
6939 if ${ac_cv_prog_CPP+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 # Double quotes because CPP needs to be expanded
6943 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6944 do
6945 ac_preproc_ok=false
6946 for ac_c_preproc_warn_flag in '' yes
6947 do
6948 # Use a header file that comes with gcc, so configuring glibc
6949 # with a fresh cross-compiler works.
6950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 # <limits.h> exists even on freestanding compilers.
6952 # On the NeXT, cc -E runs the code through the compiler's parser,
6953 # not just through cpp. "Syntax error" is here to catch this case.
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 #ifdef __STDC__
6957 # include <limits.h>
6958 #else
6959 # include <assert.h>
6960 #endif
6961 Syntax error
6962 _ACEOF
6963 if ac_fn_c_try_cpp "$LINENO"; then :
6964
6965 else
6966 # Broken: fails on valid input.
6967 continue
6968 fi
6969 rm -f conftest.err conftest.i conftest.$ac_ext
6970
6971 # OK, works on sane cases. Now check whether nonexistent headers
6972 # can be detected and how.
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 #include <ac_nonexistent.h>
6976 _ACEOF
6977 if ac_fn_c_try_cpp "$LINENO"; then :
6978 # Broken: success on invalid input.
6979 continue
6980 else
6981 # Passes both tests.
6982 ac_preproc_ok=:
6983 break
6984 fi
6985 rm -f conftest.err conftest.i conftest.$ac_ext
6986
6987 done
6988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6989 rm -f conftest.i conftest.err conftest.$ac_ext
6990 if $ac_preproc_ok; then :
6991 break
6992 fi
6993
6994 done
6995 ac_cv_prog_CPP=$CPP
6996
6997 fi
6998 CPP=$ac_cv_prog_CPP
6999 else
7000 ac_cv_prog_CPP=$CPP
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7003 $as_echo "$CPP" >&6; }
7004 ac_preproc_ok=false
7005 for ac_c_preproc_warn_flag in '' yes
7006 do
7007 # Use a header file that comes with gcc, so configuring glibc
7008 # with a fresh cross-compiler works.
7009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7010 # <limits.h> exists even on freestanding compilers.
7011 # On the NeXT, cc -E runs the code through the compiler's parser,
7012 # not just through cpp. "Syntax error" is here to catch this case.
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 #ifdef __STDC__
7016 # include <limits.h>
7017 #else
7018 # include <assert.h>
7019 #endif
7020 Syntax error
7021 _ACEOF
7022 if ac_fn_c_try_cpp "$LINENO"; then :
7023
7024 else
7025 # Broken: fails on valid input.
7026 continue
7027 fi
7028 rm -f conftest.err conftest.i conftest.$ac_ext
7029
7030 # OK, works on sane cases. Now check whether nonexistent headers
7031 # can be detected and how.
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <ac_nonexistent.h>
7035 _ACEOF
7036 if ac_fn_c_try_cpp "$LINENO"; then :
7037 # Broken: success on invalid input.
7038 continue
7039 else
7040 # Passes both tests.
7041 ac_preproc_ok=:
7042 break
7043 fi
7044 rm -f conftest.err conftest.i conftest.$ac_ext
7045
7046 done
7047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7048 rm -f conftest.i conftest.err conftest.$ac_ext
7049 if $ac_preproc_ok; then :
7050
7051 else
7052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7054 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7055 See \`config.log' for more details" "$LINENO" 5; }
7056 fi
7057
7058 ac_ext=c
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7066 $as_echo_n "checking for ANSI C header files... " >&6; }
7067 if ${ac_cv_header_stdc+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <stdlib.h>
7073 #include <stdarg.h>
7074 #include <string.h>
7075 #include <float.h>
7076
7077 int
7078 main ()
7079 {
7080
7081 ;
7082 return 0;
7083 }
7084 _ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 ac_cv_header_stdc=yes
7087 else
7088 ac_cv_header_stdc=no
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 #include <string.h>
7097
7098 _ACEOF
7099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7100 $EGREP "memchr" >/dev/null 2>&1; then :
7101
7102 else
7103 ac_cv_header_stdc=no
7104 fi
7105 rm -f conftest*
7106
7107 fi
7108
7109 if test $ac_cv_header_stdc = yes; then
7110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <stdlib.h>
7114
7115 _ACEOF
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 $EGREP "free" >/dev/null 2>&1; then :
7118
7119 else
7120 ac_cv_header_stdc=no
7121 fi
7122 rm -f conftest*
7123
7124 fi
7125
7126 if test $ac_cv_header_stdc = yes; then
7127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7128 if test "$cross_compiling" = yes; then :
7129 :
7130 else
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #include <ctype.h>
7134 #include <stdlib.h>
7135 #if ((' ' & 0x0FF) == 0x020)
7136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7138 #else
7139 # define ISLOWER(c) \
7140 (('a' <= (c) && (c) <= 'i') \
7141 || ('j' <= (c) && (c) <= 'r') \
7142 || ('s' <= (c) && (c) <= 'z'))
7143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7144 #endif
7145
7146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7147 int
7148 main ()
7149 {
7150 int i;
7151 for (i = 0; i < 256; i++)
7152 if (XOR (islower (i), ISLOWER (i))
7153 || toupper (i) != TOUPPER (i))
7154 return 2;
7155 return 0;
7156 }
7157 _ACEOF
7158 if ac_fn_c_try_run "$LINENO"; then :
7159
7160 else
7161 ac_cv_header_stdc=no
7162 fi
7163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7164 conftest.$ac_objext conftest.beam conftest.$ac_ext
7165 fi
7166
7167 fi
7168 fi
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7170 $as_echo "$ac_cv_header_stdc" >&6; }
7171 if test $ac_cv_header_stdc = yes; then
7172
7173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7174
7175 fi
7176
7177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7179 inttypes.h stdint.h unistd.h
7180 do :
7181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7183 "
7184 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7185 cat >>confdefs.h <<_ACEOF
7186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7187 _ACEOF
7188
7189 fi
7190
7191 done
7192
7193
7194 for ac_header in dlfcn.h
7195 do :
7196 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7197 "
7198 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7199 cat >>confdefs.h <<_ACEOF
7200 #define HAVE_DLFCN_H 1
7201 _ACEOF
7202
7203 fi
7204
7205 done
7206
7207
7208
7209
7210
7211 # Set options
7212
7213
7214
7215 enable_dlopen=no
7216
7217
7218 enable_win32_dll=no
7219
7220
7221 # Check whether --enable-shared was given.
7222 if test "${enable_shared+set}" = set; then :
7223 enableval=$enable_shared; p=${PACKAGE-default}
7224 case $enableval in
7225 yes) enable_shared=yes ;;
7226 no) enable_shared=no ;;
7227 *)
7228 enable_shared=no
7229 # Look at the argument we got. We use all the common list separators.
7230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7231 for pkg in $enableval; do
7232 IFS="$lt_save_ifs"
7233 if test "X$pkg" = "X$p"; then
7234 enable_shared=yes
7235 fi
7236 done
7237 IFS="$lt_save_ifs"
7238 ;;
7239 esac
7240 else
7241 enable_shared=yes
7242 fi
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 # Check whether --enable-static was given.
7253 if test "${enable_static+set}" = set; then :
7254 enableval=$enable_static; p=${PACKAGE-default}
7255 case $enableval in
7256 yes) enable_static=yes ;;
7257 no) enable_static=no ;;
7258 *)
7259 enable_static=no
7260 # Look at the argument we got. We use all the common list separators.
7261 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7262 for pkg in $enableval; do
7263 IFS="$lt_save_ifs"
7264 if test "X$pkg" = "X$p"; then
7265 enable_static=yes
7266 fi
7267 done
7268 IFS="$lt_save_ifs"
7269 ;;
7270 esac
7271 else
7272 enable_static=yes
7273 fi
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 # Check whether --with-pic was given.
7285 if test "${with_pic+set}" = set; then :
7286 withval=$with_pic; lt_p=${PACKAGE-default}
7287 case $withval in
7288 yes|no) pic_mode=$withval ;;
7289 *)
7290 pic_mode=default
7291 # Look at the argument we got. We use all the common list separators.
7292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7293 for lt_pkg in $withval; do
7294 IFS="$lt_save_ifs"
7295 if test "X$lt_pkg" = "X$lt_p"; then
7296 pic_mode=yes
7297 fi
7298 done
7299 IFS="$lt_save_ifs"
7300 ;;
7301 esac
7302 else
7303 pic_mode=default
7304 fi
7305
7306
7307 test -z "$pic_mode" && pic_mode=default
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --enable-fast-install was given.
7316 if test "${enable_fast_install+set}" = set; then :
7317 enableval=$enable_fast_install; p=${PACKAGE-default}
7318 case $enableval in
7319 yes) enable_fast_install=yes ;;
7320 no) enable_fast_install=no ;;
7321 *)
7322 enable_fast_install=no
7323 # Look at the argument we got. We use all the common list separators.
7324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7325 for pkg in $enableval; do
7326 IFS="$lt_save_ifs"
7327 if test "X$pkg" = "X$p"; then
7328 enable_fast_install=yes
7329 fi
7330 done
7331 IFS="$lt_save_ifs"
7332 ;;
7333 esac
7334 else
7335 enable_fast_install=yes
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 # This can be used to rebuild libtool when needed
7349 LIBTOOL_DEPS="$ltmain"
7350
7351 # Always use our own libtool.
7352 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 test -z "$LN_S" && LN_S="ln -s"
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 if test -n "${ZSH_VERSION+set}" ; then
7399 setopt NO_GLOB_SUBST
7400 fi
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7403 $as_echo_n "checking for objdir... " >&6; }
7404 if ${lt_cv_objdir+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 rm -f .libs 2>/dev/null
7408 mkdir .libs 2>/dev/null
7409 if test -d .libs; then
7410 lt_cv_objdir=.libs
7411 else
7412 # MS-DOS does not allow filenames that begin with a dot.
7413 lt_cv_objdir=_libs
7414 fi
7415 rmdir .libs 2>/dev/null
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7418 $as_echo "$lt_cv_objdir" >&6; }
7419 objdir=$lt_cv_objdir
7420
7421
7422
7423
7424
7425 cat >>confdefs.h <<_ACEOF
7426 #define LT_OBJDIR "$lt_cv_objdir/"
7427 _ACEOF
7428
7429
7430
7431
7432 case $host_os in
7433 aix3*)
7434 # AIX sometimes has problems with the GCC collect2 program. For some
7435 # reason, if we set the COLLECT_NAMES environment variable, the problems
7436 # vanish in a puff of smoke.
7437 if test "X${COLLECT_NAMES+set}" != Xset; then
7438 COLLECT_NAMES=
7439 export COLLECT_NAMES
7440 fi
7441 ;;
7442 esac
7443
7444 # Global variables:
7445 ofile=libtool
7446 can_build_shared=yes
7447
7448 # All known linkers require a `.a' archive for static linking (except MSVC,
7449 # which needs '.lib').
7450 libext=a
7451
7452 with_gnu_ld="$lt_cv_prog_gnu_ld"
7453
7454 old_CC="$CC"
7455 old_CFLAGS="$CFLAGS"
7456
7457 # Set sane defaults for various variables
7458 test -z "$CC" && CC=cc
7459 test -z "$LTCC" && LTCC=$CC
7460 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7461 test -z "$LD" && LD=ld
7462 test -z "$ac_objext" && ac_objext=o
7463
7464 for cc_temp in $compiler""; do
7465 case $cc_temp in
7466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7468 \-*) ;;
7469 *) break;;
7470 esac
7471 done
7472 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7473
7474
7475 # Only perform the check for file, if the check method requires it
7476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7477 case $deplibs_check_method in
7478 file_magic*)
7479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7481 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 case $MAGIC_CMD in
7486 [\\/*] | ?:[\\/]*)
7487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 lt_save_MAGIC_CMD="$MAGIC_CMD"
7491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7493 for ac_dir in $ac_dummy; do
7494 IFS="$lt_save_ifs"
7495 test -z "$ac_dir" && ac_dir=.
7496 if test -f $ac_dir/${ac_tool_prefix}file; then
7497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7498 if test -n "$file_magic_test_file"; then
7499 case $deplibs_check_method in
7500 "file_magic "*)
7501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7504 $EGREP "$file_magic_regex" > /dev/null; then
7505 :
7506 else
7507 cat <<_LT_EOF 1>&2
7508
7509 *** Warning: the command libtool uses to detect shared libraries,
7510 *** $file_magic_cmd, produces output that libtool cannot recognize.
7511 *** The result is that libtool may fail to recognize shared libraries
7512 *** as such. This will affect the creation of libtool libraries that
7513 *** depend on shared libraries, but programs linked with such libtool
7514 *** libraries will work regardless of this problem. Nevertheless, you
7515 *** may want to report the problem to your system manager and/or to
7516 *** [email protected]
7517
7518 _LT_EOF
7519 fi ;;
7520 esac
7521 fi
7522 break
7523 fi
7524 done
7525 IFS="$lt_save_ifs"
7526 MAGIC_CMD="$lt_save_MAGIC_CMD"
7527 ;;
7528 esac
7529 fi
7530
7531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7532 if test -n "$MAGIC_CMD"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7534 $as_echo "$MAGIC_CMD" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541
7542
7543
7544 if test -z "$lt_cv_path_MAGIC_CMD"; then
7545 if test -n "$ac_tool_prefix"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7547 $as_echo_n "checking for file... " >&6; }
7548 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 case $MAGIC_CMD in
7552 [\\/*] | ?:[\\/]*)
7553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 lt_save_MAGIC_CMD="$MAGIC_CMD"
7557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7559 for ac_dir in $ac_dummy; do
7560 IFS="$lt_save_ifs"
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f $ac_dir/file; then
7563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7564 if test -n "$file_magic_test_file"; then
7565 case $deplibs_check_method in
7566 "file_magic "*)
7567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7570 $EGREP "$file_magic_regex" > /dev/null; then
7571 :
7572 else
7573 cat <<_LT_EOF 1>&2
7574
7575 *** Warning: the command libtool uses to detect shared libraries,
7576 *** $file_magic_cmd, produces output that libtool cannot recognize.
7577 *** The result is that libtool may fail to recognize shared libraries
7578 *** as such. This will affect the creation of libtool libraries that
7579 *** depend on shared libraries, but programs linked with such libtool
7580 *** libraries will work regardless of this problem. Nevertheless, you
7581 *** may want to report the problem to your system manager and/or to
7582 *** [email protected]
7583
7584 _LT_EOF
7585 fi ;;
7586 esac
7587 fi
7588 break
7589 fi
7590 done
7591 IFS="$lt_save_ifs"
7592 MAGIC_CMD="$lt_save_MAGIC_CMD"
7593 ;;
7594 esac
7595 fi
7596
7597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7598 if test -n "$MAGIC_CMD"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7600 $as_echo "$MAGIC_CMD" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 else
7608 MAGIC_CMD=:
7609 fi
7610 fi
7611
7612 fi
7613 ;;
7614 esac
7615
7616 # Use C for the default configuration in the libtool script
7617
7618 lt_save_CC="$CC"
7619 ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625
7626 # Source file extension for C test sources.
7627 ac_ext=c
7628
7629 # Object file extension for compiled C test sources.
7630 objext=o
7631 objext=$objext
7632
7633 # Code to be used in simple compile tests
7634 lt_simple_compile_test_code="int some_variable = 0;"
7635
7636 # Code to be used in simple link tests
7637 lt_simple_link_test_code='int main(){return(0);}'
7638
7639
7640
7641
7642
7643
7644
7645 # If no C compiler was specified, use CC.
7646 LTCC=${LTCC-"$CC"}
7647
7648 # If no C compiler flags were specified, use CFLAGS.
7649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7650
7651 # Allow CC to be a program name with arguments.
7652 compiler=$CC
7653
7654 # Save the default compiler, since it gets overwritten when the other
7655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7656 compiler_DEFAULT=$CC
7657
7658 # save warnings/boilerplate of simple test code
7659 ac_outfile=conftest.$ac_objext
7660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7662 _lt_compiler_boilerplate=`cat conftest.err`
7663 $RM conftest*
7664
7665 ac_outfile=conftest.$ac_objext
7666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7668 _lt_linker_boilerplate=`cat conftest.err`
7669 $RM -r conftest*
7670
7671
7672 ## CAVEAT EMPTOR:
7673 ## There is no encapsulation within the following macros, do not change
7674 ## the running order or otherwise move them around unless you know exactly
7675 ## what you are doing...
7676 if test -n "$compiler"; then
7677
7678 lt_prog_compiler_no_builtin_flag=
7679
7680 if test "$GCC" = yes; then
7681 case $cc_basename in
7682 nvcc*)
7683 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7684 *)
7685 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7686 esac
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7689 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7690 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 lt_cv_prog_compiler_rtti_exceptions=no
7694 ac_outfile=conftest.$ac_objext
7695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7696 lt_compiler_flag="-fno-rtti -fno-exceptions"
7697 # Insert the option either (1) after the last *FLAGS variable, or
7698 # (2) before a word containing "conftest.", or (3) at the end.
7699 # Note that $ac_compile itself does not contain backslashes and begins
7700 # with a dollar sign (not a hyphen), so the echo should work correctly.
7701 # The option is referenced via a variable to avoid confusing sed.
7702 lt_compile=`echo "$ac_compile" | $SED \
7703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7705 -e 's:$: $lt_compiler_flag:'`
7706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7707 (eval "$lt_compile" 2>conftest.err)
7708 ac_status=$?
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 if (exit $ac_status) && test -s "$ac_outfile"; then
7712 # The compiler can only warn and ignore the option if not recognized
7713 # So say no if there are warnings other than the usual output.
7714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7717 lt_cv_prog_compiler_rtti_exceptions=yes
7718 fi
7719 fi
7720 $RM conftest*
7721
7722 fi
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7724 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7725
7726 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7727 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7728 else
7729 :
7730 fi
7731
7732 fi
7733
7734
7735
7736
7737
7738
7739 lt_prog_compiler_wl=
7740 lt_prog_compiler_pic=
7741 lt_prog_compiler_static=
7742
7743
7744 if test "$GCC" = yes; then
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_static='-static'
7747
7748 case $host_os in
7749 aix*)
7750 # All AIX code is PIC.
7751 if test "$host_cpu" = ia64; then
7752 # AIX 5 now supports IA64 processor
7753 lt_prog_compiler_static='-Bstatic'
7754 fi
7755 ;;
7756
7757 amigaos*)
7758 case $host_cpu in
7759 powerpc)
7760 # see comment about AmigaOS4 .so support
7761 lt_prog_compiler_pic='-fPIC'
7762 ;;
7763 m68k)
7764 # FIXME: we need at least 68020 code to build shared libraries, but
7765 # adding the `-m68020' flag to GCC prevents building anything better,
7766 # like `-m68040'.
7767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7768 ;;
7769 esac
7770 ;;
7771
7772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7773 # PIC is the default for these OSes.
7774 ;;
7775
7776 mingw* | cygwin* | pw32* | os2* | cegcc*)
7777 # This hack is so that the source file can tell whether it is being
7778 # built for inclusion in a dll (and should export symbols for example).
7779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7780 # (--disable-auto-import) libraries
7781 lt_prog_compiler_pic='-DDLL_EXPORT'
7782 ;;
7783
7784 darwin* | rhapsody*)
7785 # PIC is the default on this platform
7786 # Common symbols not allowed in MH_DYLIB files
7787 lt_prog_compiler_pic='-fno-common'
7788 ;;
7789
7790 haiku*)
7791 # PIC is the default for Haiku.
7792 # The "-static" flag exists, but is broken.
7793 lt_prog_compiler_static=
7794 ;;
7795
7796 hpux*)
7797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7799 # sets the default TLS model and affects inlining.
7800 case $host_cpu in
7801 hppa*64*)
7802 # +Z the default
7803 ;;
7804 *)
7805 lt_prog_compiler_pic='-fPIC'
7806 ;;
7807 esac
7808 ;;
7809
7810 interix[3-9]*)
7811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7812 # Instead, we relocate shared libraries at runtime.
7813 ;;
7814
7815 msdosdjgpp*)
7816 # Just because we use GCC doesn't mean we suddenly get shared libraries
7817 # on systems that don't support them.
7818 lt_prog_compiler_can_build_shared=no
7819 enable_shared=no
7820 ;;
7821
7822 *nto* | *qnx*)
7823 # QNX uses GNU C++, but need to define -shared option too, otherwise
7824 # it will coredump.
7825 lt_prog_compiler_pic='-fPIC -shared'
7826 ;;
7827
7828 sysv4*MP*)
7829 if test -d /usr/nec; then
7830 lt_prog_compiler_pic=-Kconform_pic
7831 fi
7832 ;;
7833
7834 *)
7835 lt_prog_compiler_pic='-fPIC'
7836 ;;
7837 esac
7838
7839 case $cc_basename in
7840 nvcc*) # Cuda Compiler Driver 2.2
7841 lt_prog_compiler_wl='-Xlinker '
7842 if test -n "$lt_prog_compiler_pic"; then
7843 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7844 fi
7845 ;;
7846 esac
7847 else
7848 # PORTME Check for flag to pass linker flags through the system compiler.
7849 case $host_os in
7850 aix*)
7851 lt_prog_compiler_wl='-Wl,'
7852 if test "$host_cpu" = ia64; then
7853 # AIX 5 now supports IA64 processor
7854 lt_prog_compiler_static='-Bstatic'
7855 else
7856 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7857 fi
7858 ;;
7859
7860 mingw* | cygwin* | pw32* | os2* | cegcc*)
7861 # This hack is so that the source file can tell whether it is being
7862 # built for inclusion in a dll (and should export symbols for example).
7863 lt_prog_compiler_pic='-DDLL_EXPORT'
7864 ;;
7865
7866 hpux9* | hpux10* | hpux11*)
7867 lt_prog_compiler_wl='-Wl,'
7868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7869 # not for PA HP-UX.
7870 case $host_cpu in
7871 hppa*64*|ia64*)
7872 # +Z the default
7873 ;;
7874 *)
7875 lt_prog_compiler_pic='+Z'
7876 ;;
7877 esac
7878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7879 lt_prog_compiler_static='${wl}-a ${wl}archive'
7880 ;;
7881
7882 irix5* | irix6* | nonstopux*)
7883 lt_prog_compiler_wl='-Wl,'
7884 # PIC (with -KPIC) is the default.
7885 lt_prog_compiler_static='-non_shared'
7886 ;;
7887
7888 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7889 case $cc_basename in
7890 # old Intel for x86_64 which still supported -KPIC.
7891 ecc*)
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-static'
7895 ;;
7896 # icc used to be incompatible with GCC.
7897 # ICC 10 doesn't accept -KPIC any more.
7898 icc* | ifort*)
7899 lt_prog_compiler_wl='-Wl,'
7900 lt_prog_compiler_pic='-fPIC'
7901 lt_prog_compiler_static='-static'
7902 ;;
7903 # Lahey Fortran 8.1.
7904 lf95*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='--shared'
7907 lt_prog_compiler_static='--static'
7908 ;;
7909 nagfor*)
7910 # NAG Fortran compiler
7911 lt_prog_compiler_wl='-Wl,-Wl,,'
7912 lt_prog_compiler_pic='-PIC'
7913 lt_prog_compiler_static='-Bstatic'
7914 ;;
7915 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7916 # Portland Group compilers (*not* the Pentium gcc compiler,
7917 # which looks to be a dead project)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-fpic'
7920 lt_prog_compiler_static='-Bstatic'
7921 ;;
7922 ccc*)
7923 lt_prog_compiler_wl='-Wl,'
7924 # All Alpha code is PIC.
7925 lt_prog_compiler_static='-non_shared'
7926 ;;
7927 xl* | bgxl* | bgf* | mpixl*)
7928 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='-qpic'
7931 lt_prog_compiler_static='-qstaticlink'
7932 ;;
7933 *)
7934 case `$CC -V 2>&1 | sed 5q` in
7935 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7936 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7937 lt_prog_compiler_pic='-KPIC'
7938 lt_prog_compiler_static='-Bstatic'
7939 lt_prog_compiler_wl=''
7940 ;;
7941 *Sun\ F* | *Sun*Fortran*)
7942 lt_prog_compiler_pic='-KPIC'
7943 lt_prog_compiler_static='-Bstatic'
7944 lt_prog_compiler_wl='-Qoption ld '
7945 ;;
7946 *Sun\ C*)
7947 # Sun C 5.9
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7950 lt_prog_compiler_wl='-Wl,'
7951 ;;
7952 *Intel*\ [CF]*Compiler*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-fPIC'
7955 lt_prog_compiler_static='-static'
7956 ;;
7957 *Portland\ Group*)
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-fpic'
7960 lt_prog_compiler_static='-Bstatic'
7961 ;;
7962 esac
7963 ;;
7964 esac
7965 ;;
7966
7967 newsos6)
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-Bstatic'
7970 ;;
7971
7972 *nto* | *qnx*)
7973 # QNX uses GNU C++, but need to define -shared option too, otherwise
7974 # it will coredump.
7975 lt_prog_compiler_pic='-fPIC -shared'
7976 ;;
7977
7978 osf3* | osf4* | osf5*)
7979 lt_prog_compiler_wl='-Wl,'
7980 # All OSF/1 code is PIC.
7981 lt_prog_compiler_static='-non_shared'
7982 ;;
7983
7984 rdos*)
7985 lt_prog_compiler_static='-non_shared'
7986 ;;
7987
7988 solaris*)
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7991 case $cc_basename in
7992 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7993 lt_prog_compiler_wl='-Qoption ld ';;
7994 *)
7995 lt_prog_compiler_wl='-Wl,';;
7996 esac
7997 ;;
7998
7999 sunos4*)
8000 lt_prog_compiler_wl='-Qoption ld '
8001 lt_prog_compiler_pic='-PIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 ;;
8004
8005 sysv4 | sysv4.2uw2* | sysv4.3*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8009 ;;
8010
8011 sysv4*MP*)
8012 if test -d /usr/nec ;then
8013 lt_prog_compiler_pic='-Kconform_pic'
8014 lt_prog_compiler_static='-Bstatic'
8015 fi
8016 ;;
8017
8018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-KPIC'
8021 lt_prog_compiler_static='-Bstatic'
8022 ;;
8023
8024 unicos*)
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_can_build_shared=no
8027 ;;
8028
8029 uts4*)
8030 lt_prog_compiler_pic='-pic'
8031 lt_prog_compiler_static='-Bstatic'
8032 ;;
8033
8034 *)
8035 lt_prog_compiler_can_build_shared=no
8036 ;;
8037 esac
8038 fi
8039
8040 case $host_os in
8041 # For platforms which do not support PIC, -DPIC is meaningless:
8042 *djgpp*)
8043 lt_prog_compiler_pic=
8044 ;;
8045 *)
8046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8047 ;;
8048 esac
8049
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8052 if ${lt_cv_prog_compiler_pic+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8058 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8059 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8060
8061 #
8062 # Check to make sure the PIC flag actually works.
8063 #
8064 if test -n "$lt_prog_compiler_pic"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8066 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8067 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 lt_cv_prog_compiler_pic_works=no
8071 ac_outfile=conftest.$ac_objext
8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8073 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8074 # Insert the option either (1) after the last *FLAGS variable, or
8075 # (2) before a word containing "conftest.", or (3) at the end.
8076 # Note that $ac_compile itself does not contain backslashes and begins
8077 # with a dollar sign (not a hyphen), so the echo should work correctly.
8078 # The option is referenced via a variable to avoid confusing sed.
8079 lt_compile=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>conftest.err)
8085 ac_status=$?
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s "$ac_outfile"; then
8089 # The compiler can only warn and ignore the option if not recognized
8090 # So say no if there are warnings other than the usual output.
8091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8094 lt_cv_prog_compiler_pic_works=yes
8095 fi
8096 fi
8097 $RM conftest*
8098
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8101 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8102
8103 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8104 case $lt_prog_compiler_pic in
8105 "" | " "*) ;;
8106 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8107 esac
8108 else
8109 lt_prog_compiler_pic=
8110 lt_prog_compiler_can_build_shared=no
8111 fi
8112
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 #
8126 # Check to make sure the static flag actually works.
8127 #
8128 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8130 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8131 if ${lt_cv_prog_compiler_static_works+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 lt_cv_prog_compiler_static_works=no
8135 save_LDFLAGS="$LDFLAGS"
8136 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8139 # The linker can only warn and ignore the option if not recognized
8140 # So say no if there are warnings
8141 if test -s conftest.err; then
8142 # Append any errors to the config.log.
8143 cat conftest.err 1>&5
8144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8146 if diff conftest.exp conftest.er2 >/dev/null; then
8147 lt_cv_prog_compiler_static_works=yes
8148 fi
8149 else
8150 lt_cv_prog_compiler_static_works=yes
8151 fi
8152 fi
8153 $RM -r conftest*
8154 LDFLAGS="$save_LDFLAGS"
8155
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8159
8160 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8161 :
8162 else
8163 lt_prog_compiler_static=
8164 fi
8165
8166
8167
8168
8169
8170
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8174 if ${lt_cv_prog_compiler_c_o+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 lt_cv_prog_compiler_c_o=no
8178 $RM -r conftest 2>/dev/null
8179 mkdir conftest
8180 cd conftest
8181 mkdir out
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183
8184 lt_compiler_flag="-o out/conftest2.$ac_objext"
8185 # Insert the option either (1) after the last *FLAGS variable, or
8186 # (2) before a word containing "conftest.", or (3) at the end.
8187 # Note that $ac_compile itself does not contain backslashes and begins
8188 # with a dollar sign (not a hyphen), so the echo should work correctly.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>out/conftest.err)
8195 ac_status=$?
8196 cat out/conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8199 then
8200 # The compiler can only warn and ignore the option if not recognized
8201 # So say no if there are warnings
8202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8205 lt_cv_prog_compiler_c_o=yes
8206 fi
8207 fi
8208 chmod u+w . 2>&5
8209 $RM conftest*
8210 # SGI C++ compiler will create directory out/ii_files/ for
8211 # template instantiation
8212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8213 $RM out/* && rmdir out
8214 cd ..
8215 $RM -r conftest
8216 $RM conftest*
8217
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8220 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8221
8222
8223
8224
8225
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8229 if ${lt_cv_prog_compiler_c_o+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 lt_cv_prog_compiler_c_o=no
8233 $RM -r conftest 2>/dev/null
8234 mkdir conftest
8235 cd conftest
8236 mkdir out
8237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8238
8239 lt_compiler_flag="-o out/conftest2.$ac_objext"
8240 # Insert the option either (1) after the last *FLAGS variable, or
8241 # (2) before a word containing "conftest.", or (3) at the end.
8242 # Note that $ac_compile itself does not contain backslashes and begins
8243 # with a dollar sign (not a hyphen), so the echo should work correctly.
8244 lt_compile=`echo "$ac_compile" | $SED \
8245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247 -e 's:$: $lt_compiler_flag:'`
8248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8249 (eval "$lt_compile" 2>out/conftest.err)
8250 ac_status=$?
8251 cat out/conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8254 then
8255 # The compiler can only warn and ignore the option if not recognized
8256 # So say no if there are warnings
8257 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8260 lt_cv_prog_compiler_c_o=yes
8261 fi
8262 fi
8263 chmod u+w . 2>&5
8264 $RM conftest*
8265 # SGI C++ compiler will create directory out/ii_files/ for
8266 # template instantiation
8267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8268 $RM out/* && rmdir out
8269 cd ..
8270 $RM -r conftest
8271 $RM conftest*
8272
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8276
8277
8278
8279
8280 hard_links="nottested"
8281 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8282 # do not overwrite the value of need_locks provided by the user
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8284 $as_echo_n "checking if we can lock with hard links... " >&6; }
8285 hard_links=yes
8286 $RM conftest*
8287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288 touch conftest.a
8289 ln conftest.a conftest.b 2>&5 || hard_links=no
8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8292 $as_echo "$hard_links" >&6; }
8293 if test "$hard_links" = no; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8295 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8296 need_locks=warn
8297 fi
8298 else
8299 need_locks=no
8300 fi
8301
8302
8303
8304
8305
8306
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8309
8310 runpath_var=
8311 allow_undefined_flag=
8312 always_export_symbols=no
8313 archive_cmds=
8314 archive_expsym_cmds=
8315 compiler_needs_object=no
8316 enable_shared_with_static_runtimes=no
8317 export_dynamic_flag_spec=
8318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8319 hardcode_automatic=no
8320 hardcode_direct=no
8321 hardcode_direct_absolute=no
8322 hardcode_libdir_flag_spec=
8323 hardcode_libdir_separator=
8324 hardcode_minus_L=no
8325 hardcode_shlibpath_var=unsupported
8326 inherit_rpath=no
8327 link_all_deplibs=unknown
8328 module_cmds=
8329 module_expsym_cmds=
8330 old_archive_from_new_cmds=
8331 old_archive_from_expsyms_cmds=
8332 thread_safe_flag_spec=
8333 whole_archive_flag_spec=
8334 # include_expsyms should be a list of space-separated symbols to be *always*
8335 # included in the symbol list
8336 include_expsyms=
8337 # exclude_expsyms can be an extended regexp of symbols to exclude
8338 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8339 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8340 # as well as any symbol that contains `d'.
8341 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8342 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8343 # platforms (ab)use it in PIC code, but their linkers get confused if
8344 # the symbol is explicitly referenced. Since portable code cannot
8345 # rely on this symbol name, it's probably fine to never include it in
8346 # preloaded symbol tables.
8347 # Exclude shared library initialization/finalization symbols.
8348 extract_expsyms_cmds=
8349
8350 case $host_os in
8351 cygwin* | mingw* | pw32* | cegcc*)
8352 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8353 # When not using gcc, we currently assume that we are using
8354 # Microsoft Visual C++.
8355 if test "$GCC" != yes; then
8356 with_gnu_ld=no
8357 fi
8358 ;;
8359 interix*)
8360 # we just hope/assume this is gcc and not c89 (= MSVC++)
8361 with_gnu_ld=yes
8362 ;;
8363 openbsd*)
8364 with_gnu_ld=no
8365 ;;
8366 linux* | k*bsd*-gnu | gnu*)
8367 link_all_deplibs=no
8368 ;;
8369 esac
8370
8371 ld_shlibs=yes
8372
8373 # On some targets, GNU ld is compatible enough with the native linker
8374 # that we're better off using the native interface for both.
8375 lt_use_gnu_ld_interface=no
8376 if test "$with_gnu_ld" = yes; then
8377 case $host_os in
8378 aix*)
8379 # The AIX port of GNU ld has always aspired to compatibility
8380 # with the native linker. However, as the warning in the GNU ld
8381 # block says, versions before 2.19.5* couldn't really create working
8382 # shared libraries, regardless of the interface used.
8383 case `$LD -v 2>&1` in
8384 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8385 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8386 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8387 *)
8388 lt_use_gnu_ld_interface=yes
8389 ;;
8390 esac
8391 ;;
8392 *)
8393 lt_use_gnu_ld_interface=yes
8394 ;;
8395 esac
8396 fi
8397
8398 if test "$lt_use_gnu_ld_interface" = yes; then
8399 # If archive_cmds runs LD, not CC, wlarc should be empty
8400 wlarc='${wl}'
8401
8402 # Set some defaults for GNU ld with shared library support. These
8403 # are reset later if shared libraries are not supported. Putting them
8404 # here allows them to be overridden if necessary.
8405 runpath_var=LD_RUN_PATH
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 export_dynamic_flag_spec='${wl}--export-dynamic'
8408 # ancient GNU ld didn't support --whole-archive et. al.
8409 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411 else
8412 whole_archive_flag_spec=
8413 fi
8414 supports_anon_versioning=no
8415 case `$LD -v 2>&1` in
8416 *GNU\ gold*) supports_anon_versioning=yes ;;
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420 *\ 2.11.*) ;; # other 2.11 versions
8421 *) supports_anon_versioning=yes ;;
8422 esac
8423
8424 # See if GNU ld supports shared libraries.
8425 case $host_os in
8426 aix[3-9]*)
8427 # On AIX/PPC, the GNU linker is very broken
8428 if test "$host_cpu" != ia64; then
8429 ld_shlibs=no
8430 cat <<_LT_EOF 1>&2
8431
8432 *** Warning: the GNU linker, at least up to release 2.19, is reported
8433 *** to be unable to reliably create shared libraries on AIX.
8434 *** Therefore, libtool is disabling shared libraries support. If you
8435 *** really care for shared libraries, you may want to install binutils
8436 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8437 *** You will then need to restart the configuration process.
8438
8439 _LT_EOF
8440 fi
8441 ;;
8442
8443 amigaos*)
8444 case $host_cpu in
8445 powerpc)
8446 # see comment about AmigaOS4 .so support
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 archive_expsym_cmds=''
8449 ;;
8450 m68k)
8451 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)'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8454 ;;
8455 esac
8456 ;;
8457
8458 beos*)
8459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8460 allow_undefined_flag=unsupported
8461 # Joseph Beckenbach <[email protected]> says some releases of gcc
8462 # support --undefined. This deserves some investigation. FIXME
8463 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 else
8465 ld_shlibs=no
8466 fi
8467 ;;
8468
8469 cygwin* | mingw* | pw32* | cegcc*)
8470 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8471 # as there is no search path for DLLs.
8472 hardcode_libdir_flag_spec='-L$libdir'
8473 export_dynamic_flag_spec='${wl}--export-all-symbols'
8474 allow_undefined_flag=unsupported
8475 always_export_symbols=no
8476 enable_shared_with_static_runtimes=yes
8477 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'
8478 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8479
8480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8482 # If the export-symbols file already is a .def file (1st line
8483 # is EXPORTS), use it as is; otherwise, prepend...
8484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8485 cp $export_symbols $output_objdir/$soname.def;
8486 else
8487 echo EXPORTS > $output_objdir/$soname.def;
8488 cat $export_symbols >> $output_objdir/$soname.def;
8489 fi~
8490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8491 else
8492 ld_shlibs=no
8493 fi
8494 ;;
8495
8496 haiku*)
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 link_all_deplibs=yes
8499 ;;
8500
8501 interix[3-9]*)
8502 hardcode_direct=no
8503 hardcode_shlibpath_var=no
8504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505 export_dynamic_flag_spec='${wl}-E'
8506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507 # Instead, shared libraries are loaded at an image base (0x10000000 by
8508 # default) and relocated if they conflict, which is a slow very memory
8509 # consuming and fragmenting process. To avoid this, we pick a random,
8510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513 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'
8514 ;;
8515
8516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8517 tmp_diet=no
8518 if test "$host_os" = linux-dietlibc; then
8519 case $cc_basename in
8520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8521 esac
8522 fi
8523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524 && test "$tmp_diet" = no
8525 then
8526 tmp_addflag=' $pic_flag'
8527 tmp_sharedflag='-shared'
8528 case $cc_basename,$host_cpu in
8529 pgcc*) # Portland Group C compiler
8530 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'
8531 tmp_addflag=' $pic_flag'
8532 ;;
8533 pgf77* | pgf90* | pgf95* | pgfortran*)
8534 # Portland Group f77 and f90 compilers
8535 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'
8536 tmp_addflag=' $pic_flag -Mnomain' ;;
8537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8538 tmp_addflag=' -i_dynamic' ;;
8539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8540 tmp_addflag=' -i_dynamic -nofor_main' ;;
8541 ifc* | ifort*) # Intel Fortran compiler
8542 tmp_addflag=' -nofor_main' ;;
8543 lf95*) # Lahey Fortran 8.1
8544 whole_archive_flag_spec=
8545 tmp_sharedflag='--shared' ;;
8546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8547 tmp_sharedflag='-qmkshrobj'
8548 tmp_addflag= ;;
8549 nvcc*) # Cuda Compiler Driver 2.2
8550 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'
8551 compiler_needs_object=yes
8552 ;;
8553 esac
8554 case `$CC -V 2>&1 | sed 5q` in
8555 *Sun\ C*) # Sun C 5.9
8556 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'
8557 compiler_needs_object=yes
8558 tmp_sharedflag='-G' ;;
8559 *Sun\ F*) # Sun Fortran 8.3
8560 tmp_sharedflag='-G' ;;
8561 esac
8562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563
8564 if test "x$supports_anon_versioning" = xyes; then
8565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567 echo "local: *; };" >> $output_objdir/$libname.ver~
8568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8569 fi
8570
8571 case $cc_basename in
8572 xlf* | bgf* | bgxlf* | mpixlf*)
8573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8577 if test "x$supports_anon_versioning" = xyes; then
8578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8580 echo "local: *; };" >> $output_objdir/$libname.ver~
8581 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8582 fi
8583 ;;
8584 esac
8585 else
8586 ld_shlibs=no
8587 fi
8588 ;;
8589
8590 netbsd* | netbsdelf*-gnu)
8591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8593 wlarc=
8594 else
8595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597 fi
8598 ;;
8599
8600 solaris*)
8601 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8602 ld_shlibs=no
8603 cat <<_LT_EOF 1>&2
8604
8605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8606 *** create shared libraries on Solaris systems. Therefore, libtool
8607 *** is disabling shared libraries support. We urge you to upgrade GNU
8608 *** binutils to release 2.9.1 or newer. Another option is to modify
8609 *** your PATH or compiler configuration so that the native linker is
8610 *** used, and then restart.
8611
8612 _LT_EOF
8613 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8622 case `$LD -v 2>&1` in
8623 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8624 ld_shlibs=no
8625 cat <<_LT_EOF 1>&2
8626
8627 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8628 *** reliably create shared libraries on SCO systems. Therefore, libtool
8629 *** is disabling shared libraries support. We urge you to upgrade GNU
8630 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8631 *** your PATH or compiler configuration so that the native linker is
8632 *** used, and then restart.
8633
8634 _LT_EOF
8635 ;;
8636 *)
8637 # For security reasons, it is highly recommended that you always
8638 # use absolute paths for naming shared libraries, and exclude the
8639 # DT_RUNPATH tag from executables and libraries. But doing so
8640 # requires that you compile everything twice, which is a pain.
8641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645 else
8646 ld_shlibs=no
8647 fi
8648 ;;
8649 esac
8650 ;;
8651
8652 sunos4*)
8653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654 wlarc=
8655 hardcode_direct=yes
8656 hardcode_shlibpath_var=no
8657 ;;
8658
8659 *)
8660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667 esac
8668
8669 if test "$ld_shlibs" = no; then
8670 runpath_var=
8671 hardcode_libdir_flag_spec=
8672 export_dynamic_flag_spec=
8673 whole_archive_flag_spec=
8674 fi
8675 else
8676 # PORTME fill in a description of your system's linker (not GNU ld)
8677 case $host_os in
8678 aix3*)
8679 allow_undefined_flag=unsupported
8680 always_export_symbols=yes
8681 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'
8682 # Note: this linker hardcodes the directories in LIBPATH if there
8683 # are no directories specified by -L.
8684 hardcode_minus_L=yes
8685 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8686 # Neither direct hardcoding nor static linking is supported with a
8687 # broken collect2.
8688 hardcode_direct=unsupported
8689 fi
8690 ;;
8691
8692 aix[4-9]*)
8693 if test "$host_cpu" = ia64; then
8694 # On IA64, the linker does run time linking by default, so we don't
8695 # have to do anything special.
8696 aix_use_runtimelinking=no
8697 exp_sym_flag='-Bexport'
8698 no_entry_flag=""
8699 else
8700 # If we're using GNU nm, then we don't want the "-C" option.
8701 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8702 # Also, AIX nm treats weak defined symbols like other global
8703 # defined symbols, whereas GNU nm marks them as "W".
8704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8705 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'
8706 else
8707 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'
8708 fi
8709 aix_use_runtimelinking=no
8710
8711 # Test if we are trying to use run time linking or normal
8712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8713 # need to do runtime linking.
8714 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8715 for ld_flag in $LDFLAGS; do
8716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8717 aix_use_runtimelinking=yes
8718 break
8719 fi
8720 done
8721 ;;
8722 esac
8723
8724 exp_sym_flag='-bexport'
8725 no_entry_flag='-bnoentry'
8726 fi
8727
8728 # When large executables or shared objects are built, AIX ld can
8729 # have problems creating the table of contents. If linking a library
8730 # or program results in "error TOC overflow" add -mminimal-toc to
8731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8733
8734 archive_cmds=''
8735 hardcode_direct=yes
8736 hardcode_direct_absolute=yes
8737 hardcode_libdir_separator=':'
8738 link_all_deplibs=yes
8739 file_list_spec='${wl}-f,'
8740
8741 if test "$GCC" = yes; then
8742 case $host_os in aix4.[012]|aix4.[012].*)
8743 # We only want to do this on AIX 4.2 and lower, the check
8744 # below for broken collect2 doesn't work under 4.3+
8745 collect2name=`${CC} -print-prog-name=collect2`
8746 if test -f "$collect2name" &&
8747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8748 then
8749 # We have reworked collect2
8750 :
8751 else
8752 # We have old collect2
8753 hardcode_direct=unsupported
8754 # It fails to find uninstalled libraries when the uninstalled
8755 # path is not listed in the libpath. Setting hardcode_minus_L
8756 # to unsupported forces relinking
8757 hardcode_minus_L=yes
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_libdir_separator=
8760 fi
8761 ;;
8762 esac
8763 shared_flag='-shared'
8764 if test "$aix_use_runtimelinking" = yes; then
8765 shared_flag="$shared_flag "'${wl}-G'
8766 fi
8767 link_all_deplibs=no
8768 else
8769 # not using gcc
8770 if test "$host_cpu" = ia64; then
8771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8772 # chokes on -Wl,-G. The following line is correct:
8773 shared_flag='-G'
8774 else
8775 if test "$aix_use_runtimelinking" = yes; then
8776 shared_flag='${wl}-G'
8777 else
8778 shared_flag='${wl}-bM:SRE'
8779 fi
8780 fi
8781 fi
8782
8783 export_dynamic_flag_spec='${wl}-bexpall'
8784 # It seems that -bexpall does not export symbols beginning with
8785 # underscore (_), so it is better to generate a list of symbols to export.
8786 always_export_symbols=yes
8787 if test "$aix_use_runtimelinking" = yes; then
8788 # Warning - without using the other runtime loading flags (-brtl),
8789 # -berok will link without error, but may produce a broken library.
8790 allow_undefined_flag='-berok'
8791 # Determine the default libpath from the value encoded in an
8792 # empty executable.
8793 if test "${lt_cv_aix_libpath+set}" = set; then
8794 aix_libpath=$lt_cv_aix_libpath
8795 else
8796 if ${lt_cv_aix_libpath_+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801
8802 int
8803 main ()
8804 {
8805
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 if ac_fn_c_try_link "$LINENO"; then :
8811
8812 lt_aix_libpath_sed='
8813 /Import File Strings/,/^$/ {
8814 /^0/ {
8815 s/^0 *\([^ ]*\) *$/\1/
8816 p
8817 }
8818 }'
8819 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8820 # Check for a 64-bit object if we didn't find anything.
8821 if test -z "$lt_cv_aix_libpath_"; then
8822 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 fi
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 if test -z "$lt_cv_aix_libpath_"; then
8828 lt_cv_aix_libpath_="/usr/lib:/lib"
8829 fi
8830
8831 fi
8832
8833 aix_libpath=$lt_cv_aix_libpath_
8834 fi
8835
8836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837 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"
8838 else
8839 if test "$host_cpu" = ia64; then
8840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841 allow_undefined_flag="-z nodefs"
8842 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"
8843 else
8844 # Determine the default libpath from the value encoded in an
8845 # empty executable.
8846 if test "${lt_cv_aix_libpath+set}" = set; then
8847 aix_libpath=$lt_cv_aix_libpath
8848 else
8849 if ${lt_cv_aix_libpath_+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854
8855 int
8856 main ()
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864
8865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8867 /^0/ {
8868 s/^0 *\([^ ]*\) *$/\1/
8869 p
8870 }
8871 }'
8872 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$lt_cv_aix_libpath_"; then
8875 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876 fi
8877 fi
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 if test -z "$lt_cv_aix_libpath_"; then
8881 lt_cv_aix_libpath_="/usr/lib:/lib"
8882 fi
8883
8884 fi
8885
8886 aix_libpath=$lt_cv_aix_libpath_
8887 fi
8888
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 # Warning - without using the other run time loading flags,
8891 # -berok will link without error, but may produce a broken library.
8892 no_undefined_flag=' ${wl}-bernotok'
8893 allow_undefined_flag=' ${wl}-berok'
8894 if test "$with_gnu_ld" = yes; then
8895 # We only use this code for GNU lds that support --whole-archive.
8896 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8897 else
8898 # Exported symbols can be pulled into shared objects from archives
8899 whole_archive_flag_spec='$convenience'
8900 fi
8901 archive_cmds_need_lc=yes
8902 # This is similar to how AIX traditionally builds its shared libraries.
8903 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'
8904 fi
8905 fi
8906 ;;
8907
8908 amigaos*)
8909 case $host_cpu in
8910 powerpc)
8911 # see comment about AmigaOS4 .so support
8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 archive_expsym_cmds=''
8914 ;;
8915 m68k)
8916 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)'
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 hardcode_minus_L=yes
8919 ;;
8920 esac
8921 ;;
8922
8923 bsdi[45]*)
8924 export_dynamic_flag_spec=-rdynamic
8925 ;;
8926
8927 cygwin* | mingw* | pw32* | cegcc*)
8928 # When not using gcc, we currently assume that we are using
8929 # Microsoft Visual C++.
8930 # hardcode_libdir_flag_spec is actually meaningless, as there is
8931 # no search path for DLLs.
8932 case $cc_basename in
8933 cl*)
8934 # Native MSVC
8935 hardcode_libdir_flag_spec=' '
8936 allow_undefined_flag=unsupported
8937 always_export_symbols=yes
8938 file_list_spec='@'
8939 # Tell ltmain to make .lib files, not .a files.
8940 libext=lib
8941 # Tell ltmain to make .dll files, not .so files.
8942 shrext_cmds=".dll"
8943 # FIXME: Setting linknames here is a bad hack.
8944 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8946 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8947 else
8948 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8949 fi~
8950 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8951 linknames='
8952 # The linker will not automatically build a static lib if we build a DLL.
8953 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8954 enable_shared_with_static_runtimes=yes
8955 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8957 # Don't use ranlib
8958 old_postinstall_cmds='chmod 644 $oldlib'
8959 postlink_cmds='lt_outputfile="@OUTPUT@"~
8960 lt_tool_outputfile="@TOOL_OUTPUT@"~
8961 case $lt_outputfile in
8962 *.exe|*.EXE) ;;
8963 *)
8964 lt_outputfile="$lt_outputfile.exe"
8965 lt_tool_outputfile="$lt_tool_outputfile.exe"
8966 ;;
8967 esac~
8968 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8969 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8970 $RM "$lt_outputfile.manifest";
8971 fi'
8972 ;;
8973 *)
8974 # Assume MSVC wrapper
8975 hardcode_libdir_flag_spec=' '
8976 allow_undefined_flag=unsupported
8977 # Tell ltmain to make .lib files, not .a files.
8978 libext=lib
8979 # Tell ltmain to make .dll files, not .so files.
8980 shrext_cmds=".dll"
8981 # FIXME: Setting linknames here is a bad hack.
8982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8983 # The linker will automatically build a .lib file if we build a DLL.
8984 old_archive_from_new_cmds='true'
8985 # FIXME: Should let the user specify the lib program.
8986 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8987 enable_shared_with_static_runtimes=yes
8988 ;;
8989 esac
8990 ;;
8991
8992 darwin* | rhapsody*)
8993
8994
8995 archive_cmds_need_lc=no
8996 hardcode_direct=no
8997 hardcode_automatic=yes
8998 hardcode_shlibpath_var=unsupported
8999 if test "$lt_cv_ld_force_load" = "yes"; then
9000 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\"`'
9001
9002 else
9003 whole_archive_flag_spec=''
9004 fi
9005 link_all_deplibs=yes
9006 allow_undefined_flag="$_lt_dar_allow_undefined"
9007 case $cc_basename in
9008 ifort*) _lt_dar_can_shared=yes ;;
9009 *) _lt_dar_can_shared=$GCC ;;
9010 esac
9011 if test "$_lt_dar_can_shared" = "yes"; then
9012 output_verbose_link_cmd=func_echo_all
9013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9015 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}"
9016 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}"
9017
9018 else
9019 ld_shlibs=no
9020 fi
9021
9022 ;;
9023
9024 dgux*)
9025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9026 hardcode_libdir_flag_spec='-L$libdir'
9027 hardcode_shlibpath_var=no
9028 ;;
9029
9030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9031 # support. Future versions do this automatically, but an explicit c++rt0.o
9032 # does not break anything, and helps significantly (at the cost of a little
9033 # extra space).
9034 freebsd2.2*)
9035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9036 hardcode_libdir_flag_spec='-R$libdir'
9037 hardcode_direct=yes
9038 hardcode_shlibpath_var=no
9039 ;;
9040
9041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9042 freebsd2.*)
9043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_direct=yes
9045 hardcode_minus_L=yes
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9050 freebsd* | dragonfly*)
9051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9052 hardcode_libdir_flag_spec='-R$libdir'
9053 hardcode_direct=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 hpux9*)
9058 if test "$GCC" = yes; then
9059 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'
9060 else
9061 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'
9062 fi
9063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064 hardcode_libdir_separator=:
9065 hardcode_direct=yes
9066
9067 # hardcode_minus_L: Not really in the search PATH,
9068 # but as the default location of the library.
9069 hardcode_minus_L=yes
9070 export_dynamic_flag_spec='${wl}-E'
9071 ;;
9072
9073 hpux10*)
9074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9075 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9076 else
9077 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9078 fi
9079 if test "$with_gnu_ld" = no; then
9080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9081 hardcode_libdir_separator=:
9082 hardcode_direct=yes
9083 hardcode_direct_absolute=yes
9084 export_dynamic_flag_spec='${wl}-E'
9085 # hardcode_minus_L: Not really in the search PATH,
9086 # but as the default location of the library.
9087 hardcode_minus_L=yes
9088 fi
9089 ;;
9090
9091 hpux11*)
9092 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9093 case $host_cpu in
9094 hppa*64*)
9095 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9096 ;;
9097 ia64*)
9098 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9099 ;;
9100 *)
9101 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102 ;;
9103 esac
9104 else
9105 case $host_cpu in
9106 hppa*64*)
9107 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108 ;;
9109 ia64*)
9110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9111 ;;
9112 *)
9113
9114 # Older versions of the 11.00 compiler do not understand -b yet
9115 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9117 $as_echo_n "checking if $CC understands -b... " >&6; }
9118 if ${lt_cv_prog_compiler__b+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler__b=no
9122 save_LDFLAGS="$LDFLAGS"
9123 LDFLAGS="$LDFLAGS -b"
9124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9126 # The linker can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 if test -s conftest.err; then
9129 # Append any errors to the config.log.
9130 cat conftest.err 1>&5
9131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if diff conftest.exp conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler__b=yes
9135 fi
9136 else
9137 lt_cv_prog_compiler__b=yes
9138 fi
9139 fi
9140 $RM -r conftest*
9141 LDFLAGS="$save_LDFLAGS"
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9145 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9146
9147 if test x"$lt_cv_prog_compiler__b" = xyes; then
9148 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9149 else
9150 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9151 fi
9152
9153 ;;
9154 esac
9155 fi
9156 if test "$with_gnu_ld" = no; then
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9159
9160 case $host_cpu in
9161 hppa*64*|ia64*)
9162 hardcode_direct=no
9163 hardcode_shlibpath_var=no
9164 ;;
9165 *)
9166 hardcode_direct=yes
9167 hardcode_direct_absolute=yes
9168 export_dynamic_flag_spec='${wl}-E'
9169
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L=yes
9173 ;;
9174 esac
9175 fi
9176 ;;
9177
9178 irix5* | irix6* | nonstopux*)
9179 if test "$GCC" = yes; then
9180 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'
9181 # Try to use the -exported_symbol ld option, if it does not
9182 # work, assume that -exports_file does not work either and
9183 # implicitly export all symbols.
9184 # This should be the same for all languages, so no per-tag cache variable.
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9186 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9187 if ${lt_cv_irix_exported_symbol+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 int foo (void) { return 0; }
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 lt_cv_irix_exported_symbol=yes
9198 else
9199 lt_cv_irix_exported_symbol=no
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 LDFLAGS="$save_LDFLAGS"
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9206 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9207 if test "$lt_cv_irix_exported_symbol" = yes; then
9208 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'
9209 fi
9210 else
9211 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'
9212 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'
9213 fi
9214 archive_cmds_need_lc='no'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217 inherit_rpath=yes
9218 link_all_deplibs=yes
9219 ;;
9220
9221 netbsd* | netbsdelf*-gnu)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9224 else
9225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9226 fi
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9230 ;;
9231
9232 newsos6)
9233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_direct=yes
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 hardcode_shlibpath_var=no
9238 ;;
9239
9240 *nto* | *qnx*)
9241 ;;
9242
9243 openbsd*)
9244 if test -f /usr/libexec/ld.so; then
9245 hardcode_direct=yes
9246 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9252 export_dynamic_flag_spec='${wl}-E'
9253 else
9254 case $host_os in
9255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-R$libdir'
9258 ;;
9259 *)
9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 ;;
9263 esac
9264 fi
9265 else
9266 ld_shlibs=no
9267 fi
9268 ;;
9269
9270 os2*)
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9273 allow_undefined_flag=unsupported
9274 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'
9275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276 ;;
9277
9278 osf3*)
9279 if test "$GCC" = yes; then
9280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9281 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'
9282 else
9283 allow_undefined_flag=' -expect_unresolved \*'
9284 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'
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9289 ;;
9290
9291 osf4* | osf5*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 else
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 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'
9299 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~
9300 $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'
9301
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec='-rpath $libdir'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_separator=:
9307 ;;
9308
9309 solaris*)
9310 no_undefined_flag=' -z defs'
9311 if test "$GCC" = yes; then
9312 wlarc='${wl}'
9313 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9315 $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'
9316 else
9317 case `$CC -V 2>&1` in
9318 *"Compilers 5.0"*)
9319 wlarc=''
9320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9323 ;;
9324 *)
9325 wlarc='${wl}'
9326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 ;;
9330 esac
9331 fi
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 hardcode_shlibpath_var=no
9334 case $host_os in
9335 solaris2.[0-5] | solaris2.[0-5].*) ;;
9336 *)
9337 # The compiler driver will combine and reorder linker options,
9338 # but understands `-z linker_flag'. GCC discards it without `$wl',
9339 # but is careful enough not to reorder.
9340 # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 if test "$GCC" = yes; then
9342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9343 else
9344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9345 fi
9346 ;;
9347 esac
9348 link_all_deplibs=yes
9349 ;;
9350
9351 sunos4*)
9352 if test "x$host_vendor" = xsequent; then
9353 # Use $CC to link under sequent, because it throws in some extra .o
9354 # files that make .init and .fini sections work.
9355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9356 else
9357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9358 fi
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_direct=yes
9361 hardcode_minus_L=yes
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 sysv4)
9366 case $host_vendor in
9367 sni)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=yes # is this really true???
9370 ;;
9371 siemens)
9372 ## LD is ld it makes a PLAMLIB
9373 ## CC just makes a GrossModule.
9374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375 reload_cmds='$CC -r -o $output$reload_objs'
9376 hardcode_direct=no
9377 ;;
9378 motorola)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9381 ;;
9382 esac
9383 runpath_var='LD_RUN_PATH'
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 sysv4.3*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var=no
9390 export_dynamic_flag_spec='-Bexport'
9391 ;;
9392
9393 sysv4*MP*)
9394 if test -d /usr/nec; then
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 runpath_var=LD_RUN_PATH
9398 hardcode_runpath_var=yes
9399 ld_shlibs=yes
9400 fi
9401 ;;
9402
9403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9404 no_undefined_flag='${wl}-z,text'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 runpath_var='LD_RUN_PATH'
9408
9409 if test "$GCC" = yes; then
9410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 fi
9416 ;;
9417
9418 sysv5* | sco3.2v5* | sco5v6*)
9419 # Note: We can NOT use -z defs as we might desire, because we do not
9420 # link with -lc, and that would cause any symbols used from libc to
9421 # always be unresolved, which means just about no library would
9422 # ever link correctly. If we're not using GNU ld we use -z text
9423 # though, which does catch some bad symbols but isn't as heavy-handed
9424 # as -z defs.
9425 no_undefined_flag='${wl}-z,text'
9426 allow_undefined_flag='${wl}-z,nodefs'
9427 archive_cmds_need_lc=no
9428 hardcode_shlibpath_var=no
9429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 export_dynamic_flag_spec='${wl}-Bexport'
9433 runpath_var='LD_RUN_PATH'
9434
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 fi
9442 ;;
9443
9444 uts4*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 *)
9451 ld_shlibs=no
9452 ;;
9453 esac
9454
9455 if test x$host_vendor = xsni; then
9456 case $host in
9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9458 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 ;;
9460 esac
9461 fi
9462 fi
9463
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9465 $as_echo "$ld_shlibs" >&6; }
9466 test "$ld_shlibs" = no && can_build_shared=no
9467
9468 with_gnu_ld=$with_gnu_ld
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484 #
9485 # Do we need to explicitly link libc?
9486 #
9487 case "x$archive_cmds_need_lc" in
9488 x|xyes)
9489 # Assume -lc should be added
9490 archive_cmds_need_lc=yes
9491
9492 if test "$enable_shared" = yes && test "$GCC" = yes; then
9493 case $archive_cmds in
9494 *'~'*)
9495 # FIXME: we may have to deal with multi-command sequences.
9496 ;;
9497 '$CC '*)
9498 # Test whether the compiler implicitly links with -lc since on some
9499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9500 # to ld, don't add -lc before -lgcc.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9503 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 $RM conftest*
9507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510 (eval $ac_compile) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; } 2>conftest.err; then
9514 soname=conftest
9515 lib=conftest
9516 libobjs=conftest.$ac_objext
9517 deplibs=
9518 wl=$lt_prog_compiler_wl
9519 pic_flag=$lt_prog_compiler_pic
9520 compiler_flags=-v
9521 linker_flags=-v
9522 verstring=
9523 output_objdir=.
9524 libname=conftest
9525 lt_save_allow_undefined_flag=$allow_undefined_flag
9526 allow_undefined_flag=
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; }
9532 then
9533 lt_cv_archive_cmds_need_lc=no
9534 else
9535 lt_cv_archive_cmds_need_lc=yes
9536 fi
9537 allow_undefined_flag=$lt_save_allow_undefined_flag
9538 else
9539 cat conftest.err 1>&5
9540 fi
9541 $RM conftest*
9542
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9547 ;;
9548 esac
9549 fi
9550 ;;
9551 esac
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9706
9707 if test "$GCC" = yes; then
9708 case $host_os in
9709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9710 *) lt_awk_arg="/^libraries:/" ;;
9711 esac
9712 case $host_os in
9713 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9714 *) lt_sed_strip_eq="s,=/,/,g" ;;
9715 esac
9716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9717 case $lt_search_path_spec in
9718 *\;*)
9719 # if the path contains ";" then we assume it to be the separator
9720 # otherwise default to the standard path separator (i.e. ":") - it is
9721 # assumed that no part of a normal pathname contains ";" but that should
9722 # okay in the real world where ";" in dirpaths is itself problematic.
9723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9724 ;;
9725 *)
9726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9727 ;;
9728 esac
9729 # Ok, now we have the path, separated by spaces, we can step through it
9730 # and add multilib dir if necessary.
9731 lt_tmp_lt_search_path_spec=
9732 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9733 for lt_sys_path in $lt_search_path_spec; do
9734 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9736 else
9737 test -d "$lt_sys_path" && \
9738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9739 fi
9740 done
9741 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9742 BEGIN {RS=" "; FS="/|\n";} {
9743 lt_foo="";
9744 lt_count=0;
9745 for (lt_i = NF; lt_i > 0; lt_i--) {
9746 if ($lt_i != "" && $lt_i != ".") {
9747 if ($lt_i == "..") {
9748 lt_count++;
9749 } else {
9750 if (lt_count == 0) {
9751 lt_foo="/" $lt_i lt_foo;
9752 } else {
9753 lt_count--;
9754 }
9755 }
9756 }
9757 }
9758 if (lt_foo != "") { lt_freq[lt_foo]++; }
9759 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9760 }'`
9761 # AWK program above erroneously prepends '/' to C:/dos/paths
9762 # for these hosts.
9763 case $host_os in
9764 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9765 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9766 esac
9767 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9768 else
9769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9770 fi
9771 library_names_spec=
9772 libname_spec='lib$name'
9773 soname_spec=
9774 shrext_cmds=".so"
9775 postinstall_cmds=
9776 postuninstall_cmds=
9777 finish_cmds=
9778 finish_eval=
9779 shlibpath_var=
9780 shlibpath_overrides_runpath=unknown
9781 version_type=none
9782 dynamic_linker="$host_os ld.so"
9783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9784 need_lib_prefix=unknown
9785 hardcode_into_libs=no
9786
9787 # when you set need_version to no, make sure it does not cause -set_version
9788 # flags to be left without arguments
9789 need_version=unknown
9790
9791 case $host_os in
9792 aix3*)
9793 version_type=linux # correct to gnu/linux during the next big refactor
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9795 shlibpath_var=LIBPATH
9796
9797 # AIX 3 has no versioning support, so we append a major version to the name.
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 ;;
9800
9801 aix[4-9]*)
9802 version_type=linux # correct to gnu/linux during the next big refactor
9803 need_lib_prefix=no
9804 need_version=no
9805 hardcode_into_libs=yes
9806 if test "$host_cpu" = ia64; then
9807 # AIX 5 supports IA64
9808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 else
9811 # With GCC up to 2.95.x, collect2 would create an import file
9812 # for dependence libraries. The import file would start with
9813 # the line `#! .'. This would cause the generated library to
9814 # depend on `.', always an invalid library. This was fixed in
9815 # development snapshots of GCC prior to 3.0.
9816 case $host_os in
9817 aix4 | aix4.[01] | aix4.[01].*)
9818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9819 echo ' yes '
9820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9821 :
9822 else
9823 can_build_shared=no
9824 fi
9825 ;;
9826 esac
9827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9828 # soname into executable. Probably we can add versioning support to
9829 # collect2, so additional links can be useful in future.
9830 if test "$aix_use_runtimelinking" = yes; then
9831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9832 # instead of lib<name>.a to let people know that these are not
9833 # typical AIX shared libraries.
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 else
9836 # We preserve .a as extension for shared libraries through AIX4.2
9837 # and later when we are not doing run time linking.
9838 library_names_spec='${libname}${release}.a $libname.a'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 fi
9841 shlibpath_var=LIBPATH
9842 fi
9843 ;;
9844
9845 amigaos*)
9846 case $host_cpu in
9847 powerpc)
9848 # Since July 2007 AmigaOS4 officially supports .so libraries.
9849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 ;;
9852 m68k)
9853 library_names_spec='$libname.ixlibrary $libname.a'
9854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9855 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'
9856 ;;
9857 esac
9858 ;;
9859
9860 beos*)
9861 library_names_spec='${libname}${shared_ext}'
9862 dynamic_linker="$host_os ld.so"
9863 shlibpath_var=LIBRARY_PATH
9864 ;;
9865
9866 bsdi[45]*)
9867 version_type=linux # correct to gnu/linux during the next big refactor
9868 need_version=no
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9875 # the default ld.so.conf also contains /usr/contrib/lib and
9876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9877 # libtool to hard-code these into programs
9878 ;;
9879
9880 cygwin* | mingw* | pw32* | cegcc*)
9881 version_type=windows
9882 shrext_cmds=".dll"
9883 need_version=no
9884 need_lib_prefix=no
9885
9886 case $GCC,$cc_basename in
9887 yes,*)
9888 # gcc
9889 library_names_spec='$libname.dll.a'
9890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9891 postinstall_cmds='base_file=`basename \${file}`~
9892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9893 dldir=$destdir/`dirname \$dlpath`~
9894 test -d \$dldir || mkdir -p \$dldir~
9895 $install_prog $dir/$dlname \$dldir/$dlname~
9896 chmod a+x \$dldir/$dlname~
9897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9899 fi'
9900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9901 dlpath=$dir/\$dldll~
9902 $RM \$dlpath'
9903 shlibpath_overrides_runpath=yes
9904
9905 case $host_os in
9906 cygwin*)
9907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909
9910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9911 ;;
9912 mingw* | cegcc*)
9913 # MinGW DLLs use traditional 'lib' prefix
9914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 ;;
9916 pw32*)
9917 # pw32 DLLs use 'pw' prefix rather than 'lib'
9918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 ;;
9920 esac
9921 dynamic_linker='Win32 ld.exe'
9922 ;;
9923
9924 *,cl*)
9925 # Native MSVC
9926 libname_spec='$name'
9927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 library_names_spec='${libname}.dll.lib'
9929
9930 case $build_os in
9931 mingw*)
9932 sys_lib_search_path_spec=
9933 lt_save_ifs=$IFS
9934 IFS=';'
9935 for lt_path in $LIB
9936 do
9937 IFS=$lt_save_ifs
9938 # Let DOS variable expansion print the short 8.3 style file name.
9939 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9940 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9941 done
9942 IFS=$lt_save_ifs
9943 # Convert to MSYS style.
9944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9945 ;;
9946 cygwin*)
9947 # Convert to unix form, then to dos form, then back to unix form
9948 # but this time dos style (no spaces!) so that the unix form looks
9949 # like /cygdrive/c/PROGRA~1:/cygdr...
9950 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9951 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9952 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9953 ;;
9954 *)
9955 sys_lib_search_path_spec="$LIB"
9956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9957 # It is most probably a Windows format PATH.
9958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9959 else
9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9961 fi
9962 # FIXME: find the short name or the path components, as spaces are
9963 # common. (e.g. "Program Files" -> "PROGRA~1")
9964 ;;
9965 esac
9966
9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9968 postinstall_cmds='base_file=`basename \${file}`~
9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9970 dldir=$destdir/`dirname \$dlpath`~
9971 test -d \$dldir || mkdir -p \$dldir~
9972 $install_prog $dir/$dlname \$dldir/$dlname'
9973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974 dlpath=$dir/\$dldll~
9975 $RM \$dlpath'
9976 shlibpath_overrides_runpath=yes
9977 dynamic_linker='Win32 link.exe'
9978 ;;
9979
9980 *)
9981 # Assume MSVC wrapper
9982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9983 dynamic_linker='Win32 ld.exe'
9984 ;;
9985 esac
9986 # FIXME: first we should search . and the directory the executable is in
9987 shlibpath_var=PATH
9988 ;;
9989
9990 darwin* | rhapsody*)
9991 dynamic_linker="$host_os dyld"
9992 version_type=darwin
9993 need_lib_prefix=no
9994 need_version=no
9995 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9996 soname_spec='${libname}${release}${major}$shared_ext'
9997 shlibpath_overrides_runpath=yes
9998 shlibpath_var=DYLD_LIBRARY_PATH
9999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10000
10001 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10003 ;;
10004
10005 dgux*)
10006 version_type=linux # correct to gnu/linux during the next big refactor
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 ;;
10013
10014 freebsd* | dragonfly*)
10015 # DragonFly does not have aout. When/if they implement a new
10016 # versioning mechanism, adjust this.
10017 if test -x /usr/bin/objformat; then
10018 objformat=`/usr/bin/objformat`
10019 else
10020 case $host_os in
10021 freebsd[23].*) objformat=aout ;;
10022 *) objformat=elf ;;
10023 esac
10024 fi
10025 version_type=freebsd-$objformat
10026 case $version_type in
10027 freebsd-elf*)
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10029 need_version=no
10030 need_lib_prefix=no
10031 ;;
10032 freebsd-*)
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10034 need_version=yes
10035 ;;
10036 esac
10037 shlibpath_var=LD_LIBRARY_PATH
10038 case $host_os in
10039 freebsd2.*)
10040 shlibpath_overrides_runpath=yes
10041 ;;
10042 freebsd3.[01]* | freebsdelf3.[01]*)
10043 shlibpath_overrides_runpath=yes
10044 hardcode_into_libs=yes
10045 ;;
10046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10048 shlibpath_overrides_runpath=no
10049 hardcode_into_libs=yes
10050 ;;
10051 *) # from 4.6 on, and DragonFly
10052 shlibpath_overrides_runpath=yes
10053 hardcode_into_libs=yes
10054 ;;
10055 esac
10056 ;;
10057
10058 haiku*)
10059 version_type=linux # correct to gnu/linux during the next big refactor
10060 need_lib_prefix=no
10061 need_version=no
10062 dynamic_linker="$host_os runtime_loader"
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10067 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10068 hardcode_into_libs=yes
10069 ;;
10070
10071 hpux9* | hpux10* | hpux11*)
10072 # Give a soname corresponding to the major version so that dld.sl refuses to
10073 # link against other versions.
10074 version_type=sunos
10075 need_lib_prefix=no
10076 need_version=no
10077 case $host_cpu in
10078 ia64*)
10079 shrext_cmds='.so'
10080 hardcode_into_libs=yes
10081 dynamic_linker="$host_os dld.so"
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 if test "X$HPUX_IA64_MODE" = X32; then
10087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10088 else
10089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10090 fi
10091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10092 ;;
10093 hppa*64*)
10094 shrext_cmds='.sl'
10095 hardcode_into_libs=yes
10096 dynamic_linker="$host_os dld.sl"
10097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10103 ;;
10104 *)
10105 shrext_cmds='.sl'
10106 dynamic_linker="$host_os dld.sl"
10107 shlibpath_var=SHLIB_PATH
10108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 ;;
10112 esac
10113 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10114 postinstall_cmds='chmod 555 $lib'
10115 # or fails outright, so override atomically:
10116 install_override_mode=555
10117 ;;
10118
10119 interix[3-9]*)
10120 version_type=linux # correct to gnu/linux during the next big refactor
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10129 ;;
10130
10131 irix5* | irix6* | nonstopux*)
10132 case $host_os in
10133 nonstopux*) version_type=nonstopux ;;
10134 *)
10135 if test "$lt_cv_prog_gnu_ld" = yes; then
10136 version_type=linux # correct to gnu/linux during the next big refactor
10137 else
10138 version_type=irix
10139 fi ;;
10140 esac
10141 need_lib_prefix=no
10142 need_version=no
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10145 case $host_os in
10146 irix5* | nonstopux*)
10147 libsuff= shlibsuff=
10148 ;;
10149 *)
10150 case $LD in # libtool.m4 will add one of these switches to LD
10151 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10152 libsuff= shlibsuff= libmagic=32-bit;;
10153 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10154 libsuff=32 shlibsuff=N32 libmagic=N32;;
10155 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10156 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10157 *) libsuff= shlibsuff= libmagic=never-match;;
10158 esac
10159 ;;
10160 esac
10161 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10162 shlibpath_overrides_runpath=no
10163 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10164 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10165 hardcode_into_libs=yes
10166 ;;
10167
10168 # No shared lib support for Linux oldld, aout, or coff.
10169 linux*oldld* | linux*aout* | linux*coff*)
10170 dynamic_linker=no
10171 ;;
10172
10173 # This must be glibc/ELF.
10174 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10175 version_type=linux # correct to gnu/linux during the next big refactor
10176 need_lib_prefix=no
10177 need_version=no
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 shlibpath_overrides_runpath=no
10183
10184 # Some binutils ld are patched to set DT_RUNPATH
10185 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 lt_cv_shlibpath_overrides_runpath=no
10189 save_LDFLAGS=$LDFLAGS
10190 save_libdir=$libdir
10191 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10192 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195
10196 int
10197 main ()
10198 {
10199
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10206 lt_cv_shlibpath_overrides_runpath=yes
10207 fi
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LDFLAGS=$save_LDFLAGS
10212 libdir=$save_libdir
10213
10214 fi
10215
10216 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10217
10218 # This implies no fast_install, which is unacceptable.
10219 # Some rework will be needed to allow for fast_install
10220 # before this can be enabled.
10221 hardcode_into_libs=yes
10222
10223 # Append ld.so.conf contents to the search path
10224 if test -f /etc/ld.so.conf; then
10225 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' ' '`
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10227 fi
10228
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker='GNU/Linux ld.so'
10236 ;;
10237
10238 netbsdelf*-gnu)
10239 version_type=linux
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='NetBSD ld.elf_so'
10248 ;;
10249
10250 netbsd*)
10251 version_type=sunos
10252 need_lib_prefix=no
10253 need_version=no
10254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker='NetBSD (a.out) ld.so'
10258 else
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 dynamic_linker='NetBSD ld.elf_so'
10262 fi
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 hardcode_into_libs=yes
10266 ;;
10267
10268 newsos6)
10269 version_type=linux # correct to gnu/linux during the next big refactor
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 ;;
10274
10275 *nto* | *qnx*)
10276 version_type=qnx
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10284 dynamic_linker='ldqnx.so'
10285 ;;
10286
10287 openbsd*)
10288 version_type=sunos
10289 sys_lib_dlsearch_path_spec="/usr/lib"
10290 need_lib_prefix=no
10291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10292 case $host_os in
10293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10294 *) need_version=no ;;
10295 esac
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10300 case $host_os in
10301 openbsd2.[89] | openbsd2.[89].*)
10302 shlibpath_overrides_runpath=no
10303 ;;
10304 *)
10305 shlibpath_overrides_runpath=yes
10306 ;;
10307 esac
10308 else
10309 shlibpath_overrides_runpath=yes
10310 fi
10311 ;;
10312
10313 os2*)
10314 libname_spec='$name'
10315 shrext_cmds=".dll"
10316 need_lib_prefix=no
10317 library_names_spec='$libname${shared_ext} $libname.a'
10318 dynamic_linker='OS/2 ld.exe'
10319 shlibpath_var=LIBPATH
10320 ;;
10321
10322 osf3* | osf4* | osf5*)
10323 version_type=osf
10324 need_lib_prefix=no
10325 need_version=no
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10331 ;;
10332
10333 rdos*)
10334 dynamic_linker=no
10335 ;;
10336
10337 solaris*)
10338 version_type=linux # correct to gnu/linux during the next big refactor
10339 need_lib_prefix=no
10340 need_version=no
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 shlibpath_overrides_runpath=yes
10345 hardcode_into_libs=yes
10346 # ldd complains unless libraries are executable
10347 postinstall_cmds='chmod +x $lib'
10348 ;;
10349
10350 sunos4*)
10351 version_type=sunos
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 if test "$with_gnu_ld" = yes; then
10357 need_lib_prefix=no
10358 fi
10359 need_version=yes
10360 ;;
10361
10362 sysv4 | sysv4.3*)
10363 version_type=linux # correct to gnu/linux during the next big refactor
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 case $host_vendor in
10368 sni)
10369 shlibpath_overrides_runpath=no
10370 need_lib_prefix=no
10371 runpath_var=LD_RUN_PATH
10372 ;;
10373 siemens)
10374 need_lib_prefix=no
10375 ;;
10376 motorola)
10377 need_lib_prefix=no
10378 need_version=no
10379 shlibpath_overrides_runpath=no
10380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10381 ;;
10382 esac
10383 ;;
10384
10385 sysv4*MP*)
10386 if test -d /usr/nec ;then
10387 version_type=linux # correct to gnu/linux during the next big refactor
10388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10389 soname_spec='$libname${shared_ext}.$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 fi
10392 ;;
10393
10394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10395 version_type=freebsd-elf
10396 need_lib_prefix=no
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10403 if test "$with_gnu_ld" = yes; then
10404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405 else
10406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10407 case $host_os in
10408 sco3.2v5*)
10409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10410 ;;
10411 esac
10412 fi
10413 sys_lib_dlsearch_path_spec='/usr/lib'
10414 ;;
10415
10416 tpf*)
10417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10418 version_type=linux # correct to gnu/linux during the next big refactor
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10424 hardcode_into_libs=yes
10425 ;;
10426
10427 uts4*)
10428 version_type=linux # correct to gnu/linux during the next big refactor
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 ;;
10433
10434 *)
10435 dynamic_linker=no
10436 ;;
10437 esac
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10439 $as_echo "$dynamic_linker" >&6; }
10440 test "$dynamic_linker" = no && can_build_shared=no
10441
10442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10443 if test "$GCC" = yes; then
10444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10445 fi
10446
10447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10449 fi
10450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10546 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10547 hardcode_action=
10548 if test -n "$hardcode_libdir_flag_spec" ||
10549 test -n "$runpath_var" ||
10550 test "X$hardcode_automatic" = "Xyes" ; then
10551
10552 # We can hardcode non-existent directories.
10553 if test "$hardcode_direct" != no &&
10554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10555 # have to relink, otherwise we might link with an installed library
10556 # when we should be linking with a yet-to-be-installed one
10557 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10558 test "$hardcode_minus_L" != no; then
10559 # Linking always hardcodes the temporary library directory.
10560 hardcode_action=relink
10561 else
10562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10563 hardcode_action=immediate
10564 fi
10565 else
10566 # We cannot hardcode anything, or else we can only hardcode existing
10567 # directories.
10568 hardcode_action=unsupported
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10571 $as_echo "$hardcode_action" >&6; }
10572
10573 if test "$hardcode_action" = relink ||
10574 test "$inherit_rpath" = yes; then
10575 # Fast installation is not supported
10576 enable_fast_install=no
10577 elif test "$shlibpath_overrides_runpath" = yes ||
10578 test "$enable_shared" = no; then
10579 # Fast installation is not necessary
10580 enable_fast_install=needless
10581 fi
10582
10583
10584
10585
10586
10587
10588 if test "x$enable_dlopen" != xyes; then
10589 enable_dlopen=unknown
10590 enable_dlopen_self=unknown
10591 enable_dlopen_self_static=unknown
10592 else
10593 lt_cv_dlopen=no
10594 lt_cv_dlopen_libs=
10595
10596 case $host_os in
10597 beos*)
10598 lt_cv_dlopen="load_add_on"
10599 lt_cv_dlopen_libs=
10600 lt_cv_dlopen_self=yes
10601 ;;
10602
10603 mingw* | pw32* | cegcc*)
10604 lt_cv_dlopen="LoadLibrary"
10605 lt_cv_dlopen_libs=
10606 ;;
10607
10608 cygwin*)
10609 lt_cv_dlopen="dlopen"
10610 lt_cv_dlopen_libs=
10611 ;;
10612
10613 darwin*)
10614 # if libdl is installed we need to link against it
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10617 if ${ac_cv_lib_dl_dlopen+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 ac_check_lib_save_LIBS=$LIBS
10621 LIBS="-ldl $LIBS"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624
10625 /* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10628 #ifdef __cplusplus
10629 extern "C"
10630 #endif
10631 char dlopen ();
10632 int
10633 main ()
10634 {
10635 return dlopen ();
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"; then :
10641 ac_cv_lib_dl_dlopen=yes
10642 else
10643 ac_cv_lib_dl_dlopen=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LIBS=$ac_check_lib_save_LIBS
10648 fi
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10650 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10651 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10653 else
10654
10655 lt_cv_dlopen="dyld"
10656 lt_cv_dlopen_libs=
10657 lt_cv_dlopen_self=yes
10658
10659 fi
10660
10661 ;;
10662
10663 *)
10664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10665 if test "x$ac_cv_func_shl_load" = xyes; then :
10666 lt_cv_dlopen="shl_load"
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10669 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10670 if ${ac_cv_lib_dld_shl_load+:} false; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-ldld $LIBS"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 char shl_load ();
10685 int
10686 main ()
10687 {
10688 return shl_load ();
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 ac_cv_lib_dld_shl_load=yes
10695 else
10696 ac_cv_lib_dld_shl_load=no
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10701 fi
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10703 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10704 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10705 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10706 else
10707 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10708 if test "x$ac_cv_func_dlopen" = xyes; then :
10709 lt_cv_dlopen="dlopen"
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10713 if ${ac_cv_lib_dl_dlopen+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldl $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dlopen ();
10728 int
10729 main ()
10730 {
10731 return dlopen ();
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
10738 else
10739 ac_cv_lib_dl_dlopen=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10751 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10752 if ${ac_cv_lib_svld_dlopen+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lsvld $LIBS"
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char dlopen ();
10767 int
10768 main ()
10769 {
10770 return dlopen ();
10771 ;
10772 return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_svld_dlopen=yes
10777 else
10778 ac_cv_lib_svld_dlopen=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10785 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10786 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10790 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10791 if ${ac_cv_lib_dld_dld_link+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-ldld $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char dld_link ();
10806 int
10807 main ()
10808 {
10809 return dld_link ();
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_dld_dld_link=yes
10816 else
10817 ac_cv_lib_dld_dld_link=no
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10824 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10825 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10827 fi
10828
10829
10830 fi
10831
10832
10833 fi
10834
10835
10836 fi
10837
10838
10839 fi
10840
10841
10842 fi
10843
10844 ;;
10845 esac
10846
10847 if test "x$lt_cv_dlopen" != xno; then
10848 enable_dlopen=yes
10849 else
10850 enable_dlopen=no
10851 fi
10852
10853 case $lt_cv_dlopen in
10854 dlopen)
10855 save_CPPFLAGS="$CPPFLAGS"
10856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10857
10858 save_LDFLAGS="$LDFLAGS"
10859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10860
10861 save_LIBS="$LIBS"
10862 LIBS="$lt_cv_dlopen_libs $LIBS"
10863
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10865 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10866 if ${lt_cv_dlopen_self+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 if test "$cross_compiling" = yes; then :
10870 lt_cv_dlopen_self=cross
10871 else
10872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10873 lt_status=$lt_dlunknown
10874 cat > conftest.$ac_ext <<_LT_EOF
10875 #line $LINENO "configure"
10876 #include "confdefs.h"
10877
10878 #if HAVE_DLFCN_H
10879 #include <dlfcn.h>
10880 #endif
10881
10882 #include <stdio.h>
10883
10884 #ifdef RTLD_GLOBAL
10885 # define LT_DLGLOBAL RTLD_GLOBAL
10886 #else
10887 # ifdef DL_GLOBAL
10888 # define LT_DLGLOBAL DL_GLOBAL
10889 # else
10890 # define LT_DLGLOBAL 0
10891 # endif
10892 #endif
10893
10894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10895 find out it does not work in some platform. */
10896 #ifndef LT_DLLAZY_OR_NOW
10897 # ifdef RTLD_LAZY
10898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10899 # else
10900 # ifdef DL_LAZY
10901 # define LT_DLLAZY_OR_NOW DL_LAZY
10902 # else
10903 # ifdef RTLD_NOW
10904 # define LT_DLLAZY_OR_NOW RTLD_NOW
10905 # else
10906 # ifdef DL_NOW
10907 # define LT_DLLAZY_OR_NOW DL_NOW
10908 # else
10909 # define LT_DLLAZY_OR_NOW 0
10910 # endif
10911 # endif
10912 # endif
10913 # endif
10914 #endif
10915
10916 /* When -fvisbility=hidden is used, assume the code has been annotated
10917 correspondingly for the symbols needed. */
10918 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10919 int fnord () __attribute__((visibility("default")));
10920 #endif
10921
10922 int fnord () { return 42; }
10923 int main ()
10924 {
10925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10926 int status = $lt_dlunknown;
10927
10928 if (self)
10929 {
10930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10931 else
10932 {
10933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10934 else puts (dlerror ());
10935 }
10936 /* dlclose (self); */
10937 }
10938 else
10939 puts (dlerror ());
10940
10941 return status;
10942 }
10943 _LT_EOF
10944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10945 (eval $ac_link) 2>&5
10946 ac_status=$?
10947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10949 (./conftest; exit; ) >&5 2>/dev/null
10950 lt_status=$?
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10955 esac
10956 else :
10957 # compilation failed
10958 lt_cv_dlopen_self=no
10959 fi
10960 fi
10961 rm -fr conftest*
10962
10963
10964 fi
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10966 $as_echo "$lt_cv_dlopen_self" >&6; }
10967
10968 if test "x$lt_cv_dlopen_self" = xyes; then
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10971 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10972 if ${lt_cv_dlopen_self_static+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self_static=cross
10977 else
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981 #line $LINENO "configure"
10982 #include "confdefs.h"
10983
10984 #if HAVE_DLFCN_H
10985 #include <dlfcn.h>
10986 #endif
10987
10988 #include <stdio.h>
10989
10990 #ifdef RTLD_GLOBAL
10991 # define LT_DLGLOBAL RTLD_GLOBAL
10992 #else
10993 # ifdef DL_GLOBAL
10994 # define LT_DLGLOBAL DL_GLOBAL
10995 # else
10996 # define LT_DLGLOBAL 0
10997 # endif
10998 #endif
10999
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11003 # ifdef RTLD_LAZY
11004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11005 # else
11006 # ifdef DL_LAZY
11007 # define LT_DLLAZY_OR_NOW DL_LAZY
11008 # else
11009 # ifdef RTLD_NOW
11010 # define LT_DLLAZY_OR_NOW RTLD_NOW
11011 # else
11012 # ifdef DL_NOW
11013 # define LT_DLLAZY_OR_NOW DL_NOW
11014 # else
11015 # define LT_DLLAZY_OR_NOW 0
11016 # endif
11017 # endif
11018 # endif
11019 # endif
11020 #endif
11021
11022 /* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11025 int fnord () __attribute__((visibility("default")));
11026 #endif
11027
11028 int fnord () { return 42; }
11029 int main ()
11030 {
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11033
11034 if (self)
11035 {
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11037 else
11038 {
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11041 }
11042 /* dlclose (self); */
11043 }
11044 else
11045 puts (dlerror ());
11046
11047 return status;
11048 }
11049 _LT_EOF
11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055 (./conftest; exit; ) >&5 2>/dev/null
11056 lt_status=$?
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11061 esac
11062 else :
11063 # compilation failed
11064 lt_cv_dlopen_self_static=no
11065 fi
11066 fi
11067 rm -fr conftest*
11068
11069
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11072 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11073 fi
11074
11075 CPPFLAGS="$save_CPPFLAGS"
11076 LDFLAGS="$save_LDFLAGS"
11077 LIBS="$save_LIBS"
11078 ;;
11079 esac
11080
11081 case $lt_cv_dlopen_self in
11082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11083 *) enable_dlopen_self=unknown ;;
11084 esac
11085
11086 case $lt_cv_dlopen_self_static in
11087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11088 *) enable_dlopen_self_static=unknown ;;
11089 esac
11090 fi
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108 striplib=
11109 old_striplib=
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11111 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11112 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11113 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11114 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116 $as_echo "yes" >&6; }
11117 else
11118 # FIXME - insert some real tests, host_os isn't really good enough
11119 case $host_os in
11120 darwin*)
11121 if test -n "$STRIP" ; then
11122 striplib="$STRIP -x"
11123 old_striplib="$STRIP -S"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11125 $as_echo "yes" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130 ;;
11131 *)
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 ;;
11135 esac
11136 fi
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 # Report which library types will actually be built
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11151 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11153 $as_echo "$can_build_shared" >&6; }
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11156 $as_echo_n "checking whether to build shared libraries... " >&6; }
11157 test "$can_build_shared" = "no" && enable_shared=no
11158
11159 # On AIX, shared libraries and static libraries use the same namespace, and
11160 # are all built from PIC.
11161 case $host_os in
11162 aix3*)
11163 test "$enable_shared" = yes && enable_static=no
11164 if test -n "$RANLIB"; then
11165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11166 postinstall_cmds='$RANLIB $lib'
11167 fi
11168 ;;
11169
11170 aix[4-9]*)
11171 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11172 test "$enable_shared" = yes && enable_static=no
11173 fi
11174 ;;
11175 esac
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11177 $as_echo "$enable_shared" >&6; }
11178
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11180 $as_echo_n "checking whether to build static libraries... " >&6; }
11181 # Make sure either enable_shared or enable_static is yes.
11182 test "$enable_shared" = yes || enable_static=yes
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11184 $as_echo "$enable_static" >&6; }
11185
11186
11187
11188
11189 fi
11190 ac_ext=c
11191 ac_cpp='$CPP $CPPFLAGS'
11192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11195
11196 CC="$lt_save_CC"
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212 ac_config_commands="$ac_config_commands libtool"
11213
11214
11215
11216
11217 # Only expand once:
11218
11219
11220
11221 varstatedir="/var/lib"
11222
11223 OS="unknown"
11224 EXPORT_SYMBOLS="-export-dynamic"
11225 case "$host" in
11226 *linux*)
11227 CFLAGS="$CFLAGS -D_REENTRANT"
11228
11229 $as_echo "#define LINUX 1" >>confdefs.h
11230
11231 OS="linux"
11232
11233 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
11234
11235
11236 $as_echo "#define SUPPORT_GEXEC 1" >>confdefs.h
11237
11238 ;;
11239 *solaris*)
11240 $as_echo "#define SUPPORT_GEXEC 0" >>confdefs.h
11241
11242 CFLAGS="$CFLAGS -D__EXTENSIONS__ -DHAVE_STRERROR"
11243 if test x"$ac_cv_prog_cc_c99" = x -o x"$ac_cv_prog_cc_c99" = xno; then
11244 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199506L"
11245 else
11246 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
11247 fi
11248 if test x"$ac_cv_c_compiler_gnu" != xyes; then
11249 LIBS="-lm $LIBS"
11250 fi
11251
11252 $as_echo "#define SOLARIS 1" >>confdefs.h
11253
11254 OS="solaris"
11255 ;;
11256 *cygwin*) LDFLAGS="-L/bin"
11257 EXPORT_SYMBOLS="-export-all-symbols"
11258
11259 $as_echo "#define CYGWIN 1" >>confdefs.h
11260
11261 ;;
11262 esac
11263
11264
11265
11266
11267
11268
11269 cat >>confdefs.h <<_ACEOF
11270 #define VARSTATEDIR "$varstatedir"
11271 _ACEOF
11272
11273
11274 if test x"$libdir" = x"\${exec_prefix/lib"; then
11275 if test x"$exec_prefix" = xNONE; then
11276 if test x"$prefix" = xNONE; then
11277 exec_prefix="$ac_default_prefix"
11278 else
11279 exec_prefix="$prefix"
11280 fi
11281 fi
11282 cfg_libdir=`eval echo "$libdir"`
11283 fi
11284
11285
11286 ganglia_sysconfdir="${sysconfdir}/ganglia"
11287
11288
11289 #AC_OUTPUT(Makefile ganglia-gmond-modules.spec etc/Makefile etc/conf.d/module1.conf io/Makefile)
11290
11291 ac_config_files="$ac_config_files Makefile example/Makefile fs/Makefile multicpu/Makefile io/Makefile"
11292
11293 cat >confcache <<\_ACEOF
11294 # This file is a shell script that caches the results of configure
11295 # tests run on this system so they can be shared between configure
11296 # scripts and configure runs, see configure's option --config-cache.
11297 # It is not useful on other systems. If it contains results you don't
11298 # want to keep, you may remove or edit it.
11299 #
11300 # config.status only pays attention to the cache file if you give it
11301 # the --recheck option to rerun configure.
11302 #
11303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11305 # following values.
11306
11307 _ACEOF
11308
11309 # The following way of writing the cache mishandles newlines in values,
11310 # but we know of no workaround that is simple, portable, and efficient.
11311 # So, we kill variables containing newlines.
11312 # Ultrix sh set writes to stderr and can't be redirected directly,
11313 # and sets the high bit in the cache file unless we assign to the vars.
11314 (
11315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11316 eval ac_val=\$$ac_var
11317 case $ac_val in #(
11318 *${as_nl}*)
11319 case $ac_var in #(
11320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11322 esac
11323 case $ac_var in #(
11324 _ | IFS | as_nl) ;; #(
11325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11326 *) { eval $ac_var=; unset $ac_var;} ;;
11327 esac ;;
11328 esac
11329 done
11330
11331 (set) 2>&1 |
11332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11333 *${as_nl}ac_space=\ *)
11334 # `set' does not quote correctly, so add quotes: double-quote
11335 # substitution turns \\\\ into \\, and sed turns \\ into \.
11336 sed -n \
11337 "s/'/'\\\\''/g;
11338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11339 ;; #(
11340 *)
11341 # `set' quotes correctly as required by POSIX, so do not add quotes.
11342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11343 ;;
11344 esac |
11345 sort
11346 ) |
11347 sed '
11348 /^ac_cv_env_/b end
11349 t clear
11350 :clear
11351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11352 t end
11353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11354 :end' >>confcache
11355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11356 if test -w "$cache_file"; then
11357 if test "x$cache_file" != "x/dev/null"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11359 $as_echo "$as_me: updating cache $cache_file" >&6;}
11360 if test ! -f "$cache_file" || test -h "$cache_file"; then
11361 cat confcache >"$cache_file"
11362 else
11363 case $cache_file in #(
11364 */* | ?:*)
11365 mv -f confcache "$cache_file"$$ &&
11366 mv -f "$cache_file"$$ "$cache_file" ;; #(
11367 *)
11368 mv -f confcache "$cache_file" ;;
11369 esac
11370 fi
11371 fi
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11375 fi
11376 fi
11377 rm -f confcache
11378
11379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11380 # Let make expand exec_prefix.
11381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11382
11383 DEFS=-DHAVE_CONFIG_H
11384
11385 ac_libobjs=
11386 ac_ltlibobjs=
11387 U=
11388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11389 # 1. Remove the extension, and $U if already installed.
11390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11393 # will be set to the directory where LIBOBJS objects are built.
11394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11396 done
11397 LIBOBJS=$ac_libobjs
11398
11399 LTLIBOBJS=$ac_ltlibobjs
11400
11401
11402 if test -n "$EXEEXT"; then
11403 am__EXEEXT_TRUE=
11404 am__EXEEXT_FALSE='#'
11405 else
11406 am__EXEEXT_TRUE='#'
11407 am__EXEEXT_FALSE=
11408 fi
11409
11410 if test -z "${STATIC_BUILD_TRUE}" && test -z "${STATIC_BUILD_FALSE}"; then
11411 as_fn_error $? "conditional \"STATIC_BUILD\" was never defined.
11412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11413 fi
11414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11415 as_fn_error $? "conditional \"AMDEP\" was never defined.
11416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11417 fi
11418 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11419 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11421 fi
11422
11423 : "${CONFIG_STATUS=./config.status}"
11424 ac_write_fail=0
11425 ac_clean_files_save=$ac_clean_files
11426 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11428 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11429 as_write_fail=0
11430 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11431 #! $SHELL
11432 # Generated by $as_me.
11433 # Run this file to recreate the current configuration.
11434 # Compiler output produced by configure, useful for debugging
11435 # configure, is in config.log if it exists.
11436
11437 debug=false
11438 ac_cs_recheck=false
11439 ac_cs_silent=false
11440
11441 SHELL=\${CONFIG_SHELL-$SHELL}
11442 export SHELL
11443 _ASEOF
11444 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11445 ## -------------------- ##
11446 ## M4sh Initialization. ##
11447 ## -------------------- ##
11448
11449 # Be more Bourne compatible
11450 DUALCASE=1; export DUALCASE # for MKS sh
11451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11452 emulate sh
11453 NULLCMD=:
11454 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11455 # is contrary to our usage. Disable this feature.
11456 alias -g '${1+"$@"}'='"$@"'
11457 setopt NO_GLOB_SUBST
11458 else
11459 case `(set -o) 2>/dev/null` in #(
11460 *posix*) :
11461 set -o posix ;; #(
11462 *) :
11463 ;;
11464 esac
11465 fi
11466
11467
11468 as_nl='
11469 '
11470 export as_nl
11471 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11472 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11475 # Prefer a ksh shell builtin over an external printf program on Solaris,
11476 # but without wasting forks for bash or zsh.
11477 if test -z "$BASH_VERSION$ZSH_VERSION" \
11478 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11479 as_echo='print -r --'
11480 as_echo_n='print -rn --'
11481 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11482 as_echo='printf %s\n'
11483 as_echo_n='printf %s'
11484 else
11485 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11486 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11487 as_echo_n='/usr/ucb/echo -n'
11488 else
11489 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11490 as_echo_n_body='eval
11491 arg=$1;
11492 case $arg in #(
11493 *"$as_nl"*)
11494 expr "X$arg" : "X\\(.*\\)$as_nl";
11495 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11496 esac;
11497 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11498 '
11499 export as_echo_n_body
11500 as_echo_n='sh -c $as_echo_n_body as_echo'
11501 fi
11502 export as_echo_body
11503 as_echo='sh -c $as_echo_body as_echo'
11504 fi
11505
11506 # The user is always right.
11507 if test "${PATH_SEPARATOR+set}" != set; then
11508 PATH_SEPARATOR=:
11509 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11510 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11511 PATH_SEPARATOR=';'
11512 }
11513 fi
11514
11515
11516 # IFS
11517 # We need space, tab and new line, in precisely that order. Quoting is
11518 # there to prevent editors from complaining about space-tab.
11519 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11520 # splitting by setting IFS to empty value.)
11521 IFS=" "" $as_nl"
11522
11523 # Find who we are. Look in the path if we contain no directory separator.
11524 as_myself=
11525 case $0 in #((
11526 *[\\/]* ) as_myself=$0 ;;
11527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11533 done
11534 IFS=$as_save_IFS
11535
11536 ;;
11537 esac
11538 # We did not find ourselves, most probably we were run as `sh COMMAND'
11539 # in which case we are not to be found in the path.
11540 if test "x$as_myself" = x; then
11541 as_myself=$0
11542 fi
11543 if test ! -f "$as_myself"; then
11544 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11545 exit 1
11546 fi
11547
11548 # Unset variables that we do not need and which cause bugs (e.g. in
11549 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11550 # suppresses any "Segmentation fault" message there. '((' could
11551 # trigger a bug in pdksh 5.2.14.
11552 for as_var in BASH_ENV ENV MAIL MAILPATH
11553 do eval test x\${$as_var+set} = xset \
11554 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11555 done
11556 PS1='$ '
11557 PS2='> '
11558 PS4='+ '
11559
11560 # NLS nuisances.
11561 LC_ALL=C
11562 export LC_ALL
11563 LANGUAGE=C
11564 export LANGUAGE
11565
11566 # CDPATH.
11567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11568
11569
11570 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11571 # ----------------------------------------
11572 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11573 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11574 # script with STATUS, using 1 if that was 0.
11575 as_fn_error ()
11576 {
11577 as_status=$1; test $as_status -eq 0 && as_status=1
11578 if test "$4"; then
11579 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11580 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11581 fi
11582 $as_echo "$as_me: error: $2" >&2
11583 as_fn_exit $as_status
11584 } # as_fn_error
11585
11586
11587 # as_fn_set_status STATUS
11588 # -----------------------
11589 # Set $? to STATUS, without forking.
11590 as_fn_set_status ()
11591 {
11592 return $1
11593 } # as_fn_set_status
11594
11595 # as_fn_exit STATUS
11596 # -----------------
11597 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11598 as_fn_exit ()
11599 {
11600 set +e
11601 as_fn_set_status $1
11602 exit $1
11603 } # as_fn_exit
11604
11605 # as_fn_unset VAR
11606 # ---------------
11607 # Portably unset VAR.
11608 as_fn_unset ()
11609 {
11610 { eval $1=; unset $1;}
11611 }
11612 as_unset=as_fn_unset
11613 # as_fn_append VAR VALUE
11614 # ----------------------
11615 # Append the text in VALUE to the end of the definition contained in VAR. Take
11616 # advantage of any shell optimizations that allow amortized linear growth over
11617 # repeated appends, instead of the typical quadratic growth present in naive
11618 # implementations.
11619 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11620 eval 'as_fn_append ()
11621 {
11622 eval $1+=\$2
11623 }'
11624 else
11625 as_fn_append ()
11626 {
11627 eval $1=\$$1\$2
11628 }
11629 fi # as_fn_append
11630
11631 # as_fn_arith ARG...
11632 # ------------------
11633 # Perform arithmetic evaluation on the ARGs, and store the result in the
11634 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11635 # must be portable across $(()) and expr.
11636 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11637 eval 'as_fn_arith ()
11638 {
11639 as_val=$(( $* ))
11640 }'
11641 else
11642 as_fn_arith ()
11643 {
11644 as_val=`expr "$@" || test $? -eq 1`
11645 }
11646 fi # as_fn_arith
11647
11648
11649 if expr a : '\(a\)' >/dev/null 2>&1 &&
11650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11651 as_expr=expr
11652 else
11653 as_expr=false
11654 fi
11655
11656 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11657 as_basename=basename
11658 else
11659 as_basename=false
11660 fi
11661
11662 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11663 as_dirname=dirname
11664 else
11665 as_dirname=false
11666 fi
11667
11668 as_me=`$as_basename -- "$0" ||
11669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11670 X"$0" : 'X\(//\)$' \| \
11671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11672 $as_echo X/"$0" |
11673 sed '/^.*\/\([^/][^/]*\)\/*$/{
11674 s//\1/
11675 q
11676 }
11677 /^X\/\(\/\/\)$/{
11678 s//\1/
11679 q
11680 }
11681 /^X\/\(\/\).*/{
11682 s//\1/
11683 q
11684 }
11685 s/.*/./; q'`
11686
11687 # Avoid depending upon Character Ranges.
11688 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11689 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11690 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11691 as_cr_digits='0123456789'
11692 as_cr_alnum=$as_cr_Letters$as_cr_digits
11693
11694 ECHO_C= ECHO_N= ECHO_T=
11695 case `echo -n x` in #(((((
11696 -n*)
11697 case `echo 'xy\c'` in
11698 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11699 xy) ECHO_C='\c';;
11700 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11701 ECHO_T=' ';;
11702 esac;;
11703 *)
11704 ECHO_N='-n';;
11705 esac
11706
11707 rm -f conf$$ conf$$.exe conf$$.file
11708 if test -d conf$$.dir; then
11709 rm -f conf$$.dir/conf$$.file
11710 else
11711 rm -f conf$$.dir
11712 mkdir conf$$.dir 2>/dev/null
11713 fi
11714 if (echo >conf$$.file) 2>/dev/null; then
11715 if ln -s conf$$.file conf$$ 2>/dev/null; then
11716 as_ln_s='ln -s'
11717 # ... but there are two gotchas:
11718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11720 # In both cases, we have to default to `cp -pR'.
11721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11722 as_ln_s='cp -pR'
11723 elif ln conf$$.file conf$$ 2>/dev/null; then
11724 as_ln_s=ln
11725 else
11726 as_ln_s='cp -pR'
11727 fi
11728 else
11729 as_ln_s='cp -pR'
11730 fi
11731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11732 rmdir conf$$.dir 2>/dev/null
11733
11734
11735 # as_fn_mkdir_p
11736 # -------------
11737 # Create "$as_dir" as a directory, including parents if necessary.
11738 as_fn_mkdir_p ()
11739 {
11740
11741 case $as_dir in #(
11742 -*) as_dir=./$as_dir;;
11743 esac
11744 test -d "$as_dir" || eval $as_mkdir_p || {
11745 as_dirs=
11746 while :; do
11747 case $as_dir in #(
11748 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11749 *) as_qdir=$as_dir;;
11750 esac
11751 as_dirs="'$as_qdir' $as_dirs"
11752 as_dir=`$as_dirname -- "$as_dir" ||
11753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11754 X"$as_dir" : 'X\(//\)[^/]' \| \
11755 X"$as_dir" : 'X\(//\)$' \| \
11756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11757 $as_echo X"$as_dir" |
11758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11759 s//\1/
11760 q
11761 }
11762 /^X\(\/\/\)[^/].*/{
11763 s//\1/
11764 q
11765 }
11766 /^X\(\/\/\)$/{
11767 s//\1/
11768 q
11769 }
11770 /^X\(\/\).*/{
11771 s//\1/
11772 q
11773 }
11774 s/.*/./; q'`
11775 test -d "$as_dir" && break
11776 done
11777 test -z "$as_dirs" || eval "mkdir $as_dirs"
11778 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11779
11780
11781 } # as_fn_mkdir_p
11782 if mkdir -p . 2>/dev/null; then
11783 as_mkdir_p='mkdir -p "$as_dir"'
11784 else
11785 test -d ./-p && rmdir ./-p
11786 as_mkdir_p=false
11787 fi
11788
11789
11790 # as_fn_executable_p FILE
11791 # -----------------------
11792 # Test if FILE is an executable regular file.
11793 as_fn_executable_p ()
11794 {
11795 test -f "$1" && test -x "$1"
11796 } # as_fn_executable_p
11797 as_test_x='test -x'
11798 as_executable_p=as_fn_executable_p
11799
11800 # Sed expression to map a string onto a valid CPP name.
11801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11802
11803 # Sed expression to map a string onto a valid variable name.
11804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11805
11806
11807 exec 6>&1
11808 ## ----------------------------------- ##
11809 ## Main body of $CONFIG_STATUS script. ##
11810 ## ----------------------------------- ##
11811 _ASEOF
11812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11813
11814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815 # Save the log message, to keep $0 and so on meaningful, and to
11816 # report actual input values of CONFIG_FILES etc. instead of their
11817 # values after options handling.
11818 ac_log="
11819 This file was extended by ganglia-modules-linux $as_me 1.3.6, which was
11820 generated by GNU Autoconf 2.69. Invocation command line was
11821
11822 CONFIG_FILES = $CONFIG_FILES
11823 CONFIG_HEADERS = $CONFIG_HEADERS
11824 CONFIG_LINKS = $CONFIG_LINKS
11825 CONFIG_COMMANDS = $CONFIG_COMMANDS
11826 $ $0 $@
11827
11828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11829 "
11830
11831 _ACEOF
11832
11833 case $ac_config_files in *"
11834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11835 esac
11836
11837 case $ac_config_headers in *"
11838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11839 esac
11840
11841
11842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11843 # Files that config.status was made for.
11844 config_files="$ac_config_files"
11845 config_headers="$ac_config_headers"
11846 config_commands="$ac_config_commands"
11847
11848 _ACEOF
11849
11850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11851 ac_cs_usage="\
11852 \`$as_me' instantiates files and other configuration actions
11853 from templates according to the current configuration. Unless the files
11854 and actions are specified as TAGs, all are instantiated by default.
11855
11856 Usage: $0 [OPTION]... [TAG]...
11857
11858 -h, --help print this help, then exit
11859 -V, --version print version number and configuration settings, then exit
11860 --config print configuration, then exit
11861 -q, --quiet, --silent
11862 do not print progress messages
11863 -d, --debug don't remove temporary files
11864 --recheck update $as_me by reconfiguring in the same conditions
11865 --file=FILE[:TEMPLATE]
11866 instantiate the configuration file FILE
11867 --header=FILE[:TEMPLATE]
11868 instantiate the configuration header FILE
11869
11870 Configuration files:
11871 $config_files
11872
11873 Configuration headers:
11874 $config_headers
11875
11876 Configuration commands:
11877 $config_commands
11878
11879 Report bugs to the package provider."
11880
11881 _ACEOF
11882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11884 ac_cs_version="\\
11885 ganglia-modules-linux config.status 1.3.6
11886 configured by $0, generated by GNU Autoconf 2.69,
11887 with options \\"\$ac_cs_config\\"
11888
11889 Copyright (C) 2012 Free Software Foundation, Inc.
11890 This config.status script is free software; the Free Software Foundation
11891 gives unlimited permission to copy, distribute and modify it."
11892
11893 ac_pwd='$ac_pwd'
11894 srcdir='$srcdir'
11895 INSTALL='$INSTALL'
11896 MKDIR_P='$MKDIR_P'
11897 AWK='$AWK'
11898 test -n "\$AWK" || AWK=awk
11899 _ACEOF
11900
11901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11902 # The default lists apply if the user does not specify any file.
11903 ac_need_defaults=:
11904 while test $# != 0
11905 do
11906 case $1 in
11907 --*=?*)
11908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11910 ac_shift=:
11911 ;;
11912 --*=)
11913 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11914 ac_optarg=
11915 ac_shift=:
11916 ;;
11917 *)
11918 ac_option=$1
11919 ac_optarg=$2
11920 ac_shift=shift
11921 ;;
11922 esac
11923
11924 case $ac_option in
11925 # Handling of the options.
11926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11927 ac_cs_recheck=: ;;
11928 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11929 $as_echo "$ac_cs_version"; exit ;;
11930 --config | --confi | --conf | --con | --co | --c )
11931 $as_echo "$ac_cs_config"; exit ;;
11932 --debug | --debu | --deb | --de | --d | -d )
11933 debug=: ;;
11934 --file | --fil | --fi | --f )
11935 $ac_shift
11936 case $ac_optarg in
11937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11938 '') as_fn_error $? "missing file argument" ;;
11939 esac
11940 as_fn_append CONFIG_FILES " '$ac_optarg'"
11941 ac_need_defaults=false;;
11942 --header | --heade | --head | --hea )
11943 $ac_shift
11944 case $ac_optarg in
11945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11946 esac
11947 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11948 ac_need_defaults=false;;
11949 --he | --h)
11950 # Conflict between --help and --header
11951 as_fn_error $? "ambiguous option: \`$1'
11952 Try \`$0 --help' for more information.";;
11953 --help | --hel | -h )
11954 $as_echo "$ac_cs_usage"; exit ;;
11955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11956 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11957 ac_cs_silent=: ;;
11958
11959 # This is an error.
11960 -*) as_fn_error $? "unrecognized option: \`$1'
11961 Try \`$0 --help' for more information." ;;
11962
11963 *) as_fn_append ac_config_targets " $1"
11964 ac_need_defaults=false ;;
11965
11966 esac
11967 shift
11968 done
11969
11970 ac_configure_extra_args=
11971
11972 if $ac_cs_silent; then
11973 exec 6>/dev/null
11974 ac_configure_extra_args="$ac_configure_extra_args --silent"
11975 fi
11976
11977 _ACEOF
11978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11979 if \$ac_cs_recheck; then
11980 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11981 shift
11982 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11983 CONFIG_SHELL='$SHELL'
11984 export CONFIG_SHELL
11985 exec "\$@"
11986 fi
11987
11988 _ACEOF
11989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11990 exec 5>>config.log
11991 {
11992 echo
11993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11994 ## Running $as_me. ##
11995 _ASBOX
11996 $as_echo "$ac_log"
11997 } >&5
11998
11999 _ACEOF
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 #
12002 # INIT-COMMANDS
12003 #
12004 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12005
12006
12007 # The HP-UX ksh and POSIX shell print the target directory to stdout
12008 # if CDPATH is set.
12009 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12010
12011 sed_quote_subst='$sed_quote_subst'
12012 double_quote_subst='$double_quote_subst'
12013 delay_variable_subst='$delay_variable_subst'
12014 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12015 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12016 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12017 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12018 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12019 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12020 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12021 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12022 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12023 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12024 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12025 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12026 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12027 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12028 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12029 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12030 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12031 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12032 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12033 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12034 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12035 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12036 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12037 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12038 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12039 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12040 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12041 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12042 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12043 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12044 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12045 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12046 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12047 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12048 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12049 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12050 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12051 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12052 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12053 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12054 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12055 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12056 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12057 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12058 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12059 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12060 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12061 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12062 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12063 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12064 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12065 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12066 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12067 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12068 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12069 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12070 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"`'
12071 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12072 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12073 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12074 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12075 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12076 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12077 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12078 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12079 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12080 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12081 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12082 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12083 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12084 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12085 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12086 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12087 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12088 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12089 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12090 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12091 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12092 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12093 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12094 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12095 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12096 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12097 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12098 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12099 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12100 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12101 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12102 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12103 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12104 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12105 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12106 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12107 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12108 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12109 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12110 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12111 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12112 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12113 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12114 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12115 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12116 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12117 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12118 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12119 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12120 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12121 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12122 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12123 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12124 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12125 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12126 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12127 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12128 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12129 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12130 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12131 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12132 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12133 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12134 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12135 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12136 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12137 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12138 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12139 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12140 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12141 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12142 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12143 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12144
12145 LTCC='$LTCC'
12146 LTCFLAGS='$LTCFLAGS'
12147 compiler='$compiler_DEFAULT'
12148
12149 # A function that is used when there is no print builtin or printf.
12150 func_fallback_echo ()
12151 {
12152 eval 'cat <<_LTECHO_EOF
12153 \$1
12154 _LTECHO_EOF'
12155 }
12156
12157 # Quote evaled strings.
12158 for var in SHELL \
12159 ECHO \
12160 PATH_SEPARATOR \
12161 SED \
12162 GREP \
12163 EGREP \
12164 FGREP \
12165 LD \
12166 NM \
12167 LN_S \
12168 lt_SP2NL \
12169 lt_NL2SP \
12170 reload_flag \
12171 OBJDUMP \
12172 deplibs_check_method \
12173 file_magic_cmd \
12174 file_magic_glob \
12175 want_nocaseglob \
12176 DLLTOOL \
12177 sharedlib_from_linklib_cmd \
12178 AR \
12179 AR_FLAGS \
12180 archiver_list_spec \
12181 STRIP \
12182 RANLIB \
12183 CC \
12184 CFLAGS \
12185 compiler \
12186 lt_cv_sys_global_symbol_pipe \
12187 lt_cv_sys_global_symbol_to_cdecl \
12188 lt_cv_sys_global_symbol_to_c_name_address \
12189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12190 nm_file_list_spec \
12191 lt_prog_compiler_no_builtin_flag \
12192 lt_prog_compiler_pic \
12193 lt_prog_compiler_wl \
12194 lt_prog_compiler_static \
12195 lt_cv_prog_compiler_c_o \
12196 need_locks \
12197 MANIFEST_TOOL \
12198 DSYMUTIL \
12199 NMEDIT \
12200 LIPO \
12201 OTOOL \
12202 OTOOL64 \
12203 shrext_cmds \
12204 export_dynamic_flag_spec \
12205 whole_archive_flag_spec \
12206 compiler_needs_object \
12207 with_gnu_ld \
12208 allow_undefined_flag \
12209 no_undefined_flag \
12210 hardcode_libdir_flag_spec \
12211 hardcode_libdir_separator \
12212 exclude_expsyms \
12213 include_expsyms \
12214 file_list_spec \
12215 variables_saved_for_relink \
12216 libname_spec \
12217 library_names_spec \
12218 soname_spec \
12219 install_override_mode \
12220 finish_eval \
12221 old_striplib \
12222 striplib; do
12223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12224 *[\\\\\\\`\\"\\\$]*)
12225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12226 ;;
12227 *)
12228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12229 ;;
12230 esac
12231 done
12232
12233 # Double-quote double-evaled strings.
12234 for var in reload_cmds \
12235 old_postinstall_cmds \
12236 old_postuninstall_cmds \
12237 old_archive_cmds \
12238 extract_expsyms_cmds \
12239 old_archive_from_new_cmds \
12240 old_archive_from_expsyms_cmds \
12241 archive_cmds \
12242 archive_expsym_cmds \
12243 module_cmds \
12244 module_expsym_cmds \
12245 export_symbols_cmds \
12246 prelink_cmds \
12247 postlink_cmds \
12248 postinstall_cmds \
12249 postuninstall_cmds \
12250 finish_cmds \
12251 sys_lib_search_path_spec \
12252 sys_lib_dlsearch_path_spec; do
12253 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12254 *[\\\\\\\`\\"\\\$]*)
12255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12256 ;;
12257 *)
12258 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12259 ;;
12260 esac
12261 done
12262
12263 ac_aux_dir='$ac_aux_dir'
12264 xsi_shell='$xsi_shell'
12265 lt_shell_append='$lt_shell_append'
12266
12267 # See if we are running on zsh, and set the options which allow our
12268 # commands through without removal of \ escapes INIT.
12269 if test -n "\${ZSH_VERSION+set}" ; then
12270 setopt NO_GLOB_SUBST
12271 fi
12272
12273
12274 PACKAGE='$PACKAGE'
12275 VERSION='$VERSION'
12276 TIMESTAMP='$TIMESTAMP'
12277 RM='$RM'
12278 ofile='$ofile'
12279
12280
12281
12282
12283 _ACEOF
12284
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286
12287 # Handling of arguments.
12288 for ac_config_target in $ac_config_targets
12289 do
12290 case $ac_config_target in
12291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12292 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12293 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12294 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12295 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
12296 "fs/Makefile") CONFIG_FILES="$CONFIG_FILES fs/Makefile" ;;
12297 "multicpu/Makefile") CONFIG_FILES="$CONFIG_FILES multicpu/Makefile" ;;
12298 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
12299
12300 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12301 esac
12302 done
12303
12304
12305 # If the user did not use the arguments to specify the items to instantiate,
12306 # then the envvar interface is used. Set only those that are not.
12307 # We use the long form for the default assignment because of an extremely
12308 # bizarre bug on SunOS 4.1.3.
12309 if $ac_need_defaults; then
12310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12313 fi
12314
12315 # Have a temporary directory for convenience. Make it in the build tree
12316 # simply because there is no reason against having it here, and in addition,
12317 # creating and moving files from /tmp can sometimes cause problems.
12318 # Hook for its removal unless debugging.
12319 # Note that there is a small window in which the directory will not be cleaned:
12320 # after its creation but before its name has been assigned to `$tmp'.
12321 $debug ||
12322 {
12323 tmp= ac_tmp=
12324 trap 'exit_status=$?
12325 : "${ac_tmp:=$tmp}"
12326 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12327 ' 0
12328 trap 'as_fn_exit 1' 1 2 13 15
12329 }
12330 # Create a (secure) tmp directory for tmp files.
12331
12332 {
12333 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12334 test -d "$tmp"
12335 } ||
12336 {
12337 tmp=./conf$$-$RANDOM
12338 (umask 077 && mkdir "$tmp")
12339 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12340 ac_tmp=$tmp
12341
12342 # Set up the scripts for CONFIG_FILES section.
12343 # No need to generate them if there are no CONFIG_FILES.
12344 # This happens for instance with `./config.status config.h'.
12345 if test -n "$CONFIG_FILES"; then
12346
12347
12348 ac_cr=`echo X | tr X '\015'`
12349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12350 # But we know of no other shell where ac_cr would be empty at this
12351 # point, so we can use a bashism as a fallback.
12352 if test "x$ac_cr" = x; then
12353 eval ac_cr=\$\'\\r\'
12354 fi
12355 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12357 ac_cs_awk_cr='\\r'
12358 else
12359 ac_cs_awk_cr=$ac_cr
12360 fi
12361
12362 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12363 _ACEOF
12364
12365
12366 {
12367 echo "cat >conf$$subs.awk <<_ACEOF" &&
12368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12369 echo "_ACEOF"
12370 } >conf$$subs.sh ||
12371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12372 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12373 ac_delim='%!_!# '
12374 for ac_last_try in false false false false false :; do
12375 . ./conf$$subs.sh ||
12376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12377
12378 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12379 if test $ac_delim_n = $ac_delim_num; then
12380 break
12381 elif $ac_last_try; then
12382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12383 else
12384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12385 fi
12386 done
12387 rm -f conf$$subs.sh
12388
12389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12391 _ACEOF
12392 sed -n '
12393 h
12394 s/^/S["/; s/!.*/"]=/
12395 p
12396 g
12397 s/^[^!]*!//
12398 :repl
12399 t repl
12400 s/'"$ac_delim"'$//
12401 t delim
12402 :nl
12403 h
12404 s/\(.\{148\}\)..*/\1/
12405 t more1
12406 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12407 p
12408 n
12409 b repl
12410 :more1
12411 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12412 p
12413 g
12414 s/.\{148\}//
12415 t nl
12416 :delim
12417 h
12418 s/\(.\{148\}\)..*/\1/
12419 t more2
12420 s/["\\]/\\&/g; s/^/"/; s/$/"/
12421 p
12422 b
12423 :more2
12424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12425 p
12426 g
12427 s/.\{148\}//
12428 t delim
12429 ' <conf$$subs.awk | sed '
12430 /^[^""]/{
12431 N
12432 s/\n//
12433 }
12434 ' >>$CONFIG_STATUS || ac_write_fail=1
12435 rm -f conf$$subs.awk
12436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437 _ACAWK
12438 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12439 for (key in S) S_is_set[key] = 1
12440 FS = ""
12441
12442 }
12443 {
12444 line = $ 0
12445 nfields = split(line, field, "@")
12446 substed = 0
12447 len = length(field[1])
12448 for (i = 2; i < nfields; i++) {
12449 key = field[i]
12450 keylen = length(key)
12451 if (S_is_set[key]) {
12452 value = S[key]
12453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12454 len += length(value) + length(field[++i])
12455 substed = 1
12456 } else
12457 len += 1 + keylen
12458 }
12459
12460 print line
12461 }
12462
12463 _ACAWK
12464 _ACEOF
12465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12466 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12467 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12468 else
12469 cat
12470 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12471 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12472 _ACEOF
12473
12474 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12475 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12476 # trailing colons and then remove the whole line if VPATH becomes empty
12477 # (actually we leave an empty line to preserve line numbers).
12478 if test "x$srcdir" = x.; then
12479 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12480 h
12481 s///
12482 s/^/:/
12483 s/[ ]*$/:/
12484 s/:\$(srcdir):/:/g
12485 s/:\${srcdir}:/:/g
12486 s/:@srcdir@:/:/g
12487 s/^:*//
12488 s/:*$//
12489 x
12490 s/\(=[ ]*\).*/\1/
12491 G
12492 s/\n//
12493 s/^[^=]*=[ ]*$//
12494 }'
12495 fi
12496
12497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498 fi # test -n "$CONFIG_FILES"
12499
12500 # Set up the scripts for CONFIG_HEADERS section.
12501 # No need to generate them if there are no CONFIG_HEADERS.
12502 # This happens for instance with `./config.status Makefile'.
12503 if test -n "$CONFIG_HEADERS"; then
12504 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12505 BEGIN {
12506 _ACEOF
12507
12508 # Transform confdefs.h into an awk script `defines.awk', embedded as
12509 # here-document in config.status, that substitutes the proper values into
12510 # config.h.in to produce config.h.
12511
12512 # Create a delimiter string that does not exist in confdefs.h, to ease
12513 # handling of long lines.
12514 ac_delim='%!_!# '
12515 for ac_last_try in false false :; do
12516 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12517 if test -z "$ac_tt"; then
12518 break
12519 elif $ac_last_try; then
12520 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12521 else
12522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12523 fi
12524 done
12525
12526 # For the awk script, D is an array of macro values keyed by name,
12527 # likewise P contains macro parameters if any. Preserve backslash
12528 # newline sequences.
12529
12530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12531 sed -n '
12532 s/.\{148\}/&'"$ac_delim"'/g
12533 t rset
12534 :rset
12535 s/^[ ]*#[ ]*define[ ][ ]*/ /
12536 t def
12537 d
12538 :def
12539 s/\\$//
12540 t bsnl
12541 s/["\\]/\\&/g
12542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12543 D["\1"]=" \3"/p
12544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12545 d
12546 :bsnl
12547 s/["\\]/\\&/g
12548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12549 D["\1"]=" \3\\\\\\n"\\/p
12550 t cont
12551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12552 t cont
12553 d
12554 :cont
12555 n
12556 s/.\{148\}/&'"$ac_delim"'/g
12557 t clear
12558 :clear
12559 s/\\$//
12560 t bsnlc
12561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12562 d
12563 :bsnlc
12564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12565 b cont
12566 ' <confdefs.h | sed '
12567 s/'"$ac_delim"'/"\\\
12568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12569
12570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12571 for (key in D) D_is_set[key] = 1
12572 FS = ""
12573 }
12574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12575 line = \$ 0
12576 split(line, arg, " ")
12577 if (arg[1] == "#") {
12578 defundef = arg[2]
12579 mac1 = arg[3]
12580 } else {
12581 defundef = substr(arg[1], 2)
12582 mac1 = arg[2]
12583 }
12584 split(mac1, mac2, "(") #)
12585 macro = mac2[1]
12586 prefix = substr(line, 1, index(line, defundef) - 1)
12587 if (D_is_set[macro]) {
12588 # Preserve the white space surrounding the "#".
12589 print prefix "define", macro P[macro] D[macro]
12590 next
12591 } else {
12592 # Replace #undef with comments. This is necessary, for example,
12593 # in the case of _POSIX_SOURCE, which is predefined and required
12594 # on some systems where configure will not decide to define it.
12595 if (defundef == "undef") {
12596 print "/*", prefix defundef, macro, "*/"
12597 next
12598 }
12599 }
12600 }
12601 { print }
12602 _ACAWK
12603 _ACEOF
12604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12606 fi # test -n "$CONFIG_HEADERS"
12607
12608
12609 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12610 shift
12611 for ac_tag
12612 do
12613 case $ac_tag in
12614 :[FHLC]) ac_mode=$ac_tag; continue;;
12615 esac
12616 case $ac_mode$ac_tag in
12617 :[FHL]*:*);;
12618 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12619 :[FH]-) ac_tag=-:-;;
12620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12621 esac
12622 ac_save_IFS=$IFS
12623 IFS=:
12624 set x $ac_tag
12625 IFS=$ac_save_IFS
12626 shift
12627 ac_file=$1
12628 shift
12629
12630 case $ac_mode in
12631 :L) ac_source=$1;;
12632 :[FH])
12633 ac_file_inputs=
12634 for ac_f
12635 do
12636 case $ac_f in
12637 -) ac_f="$ac_tmp/stdin";;
12638 *) # Look for the file first in the build tree, then in the source tree
12639 # (if the path is not absolute). The absolute path cannot be DOS-style,
12640 # because $ac_f cannot contain `:'.
12641 test -f "$ac_f" ||
12642 case $ac_f in
12643 [\\/$]*) false;;
12644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12645 esac ||
12646 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12647 esac
12648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12649 as_fn_append ac_file_inputs " '$ac_f'"
12650 done
12651
12652 # Let's still pretend it is `configure' which instantiates (i.e., don't
12653 # use $as_me), people would be surprised to read:
12654 # /* config.h. Generated by config.status. */
12655 configure_input='Generated from '`
12656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12657 `' by configure.'
12658 if test x"$ac_file" != x-; then
12659 configure_input="$ac_file. $configure_input"
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12661 $as_echo "$as_me: creating $ac_file" >&6;}
12662 fi
12663 # Neutralize special characters interpreted by sed in replacement strings.
12664 case $configure_input in #(
12665 *\&* | *\|* | *\\* )
12666 ac_sed_conf_input=`$as_echo "$configure_input" |
12667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12668 *) ac_sed_conf_input=$configure_input;;
12669 esac
12670
12671 case $ac_tag in
12672 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12674 esac
12675 ;;
12676 esac
12677
12678 ac_dir=`$as_dirname -- "$ac_file" ||
12679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12680 X"$ac_file" : 'X\(//\)[^/]' \| \
12681 X"$ac_file" : 'X\(//\)$' \| \
12682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12683 $as_echo X"$ac_file" |
12684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12685 s//\1/
12686 q
12687 }
12688 /^X\(\/\/\)[^/].*/{
12689 s//\1/
12690 q
12691 }
12692 /^X\(\/\/\)$/{
12693 s//\1/
12694 q
12695 }
12696 /^X\(\/\).*/{
12697 s//\1/
12698 q
12699 }
12700 s/.*/./; q'`
12701 as_dir="$ac_dir"; as_fn_mkdir_p
12702 ac_builddir=.
12703
12704 case "$ac_dir" in
12705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12706 *)
12707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12708 # A ".." for each directory in $ac_dir_suffix.
12709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12710 case $ac_top_builddir_sub in
12711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12713 esac ;;
12714 esac
12715 ac_abs_top_builddir=$ac_pwd
12716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12717 # for backward compatibility:
12718 ac_top_builddir=$ac_top_build_prefix
12719
12720 case $srcdir in
12721 .) # We are building in place.
12722 ac_srcdir=.
12723 ac_top_srcdir=$ac_top_builddir_sub
12724 ac_abs_top_srcdir=$ac_pwd ;;
12725 [\\/]* | ?:[\\/]* ) # Absolute name.
12726 ac_srcdir=$srcdir$ac_dir_suffix;
12727 ac_top_srcdir=$srcdir
12728 ac_abs_top_srcdir=$srcdir ;;
12729 *) # Relative name.
12730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12731 ac_top_srcdir=$ac_top_build_prefix$srcdir
12732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12733 esac
12734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12735
12736
12737 case $ac_mode in
12738 :F)
12739 #
12740 # CONFIG_FILE
12741 #
12742
12743 case $INSTALL in
12744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12746 esac
12747 ac_MKDIR_P=$MKDIR_P
12748 case $MKDIR_P in
12749 [\\/$]* | ?:[\\/]* ) ;;
12750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12751 esac
12752 _ACEOF
12753
12754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12755 # If the template does not know about datarootdir, expand it.
12756 # FIXME: This hack should be removed a few years after 2.60.
12757 ac_datarootdir_hack=; ac_datarootdir_seen=
12758 ac_sed_dataroot='
12759 /datarootdir/ {
12760 p
12761 q
12762 }
12763 /@datadir@/p
12764 /@docdir@/p
12765 /@infodir@/p
12766 /@localedir@/p
12767 /@mandir@/p'
12768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12769 *datarootdir*) ac_datarootdir_seen=yes;;
12770 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12773 _ACEOF
12774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12775 ac_datarootdir_hack='
12776 s&@datadir@&$datadir&g
12777 s&@docdir@&$docdir&g
12778 s&@infodir@&$infodir&g
12779 s&@localedir@&$localedir&g
12780 s&@mandir@&$mandir&g
12781 s&\\\${datarootdir}&$datarootdir&g' ;;
12782 esac
12783 _ACEOF
12784
12785 # Neutralize VPATH when `$srcdir' = `.'.
12786 # Shell code in configure.ac might set extrasub.
12787 # FIXME: do we really want to maintain this feature?
12788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12789 ac_sed_extra="$ac_vpsub
12790 $extrasub
12791 _ACEOF
12792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793 :t
12794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12795 s|@configure_input@|$ac_sed_conf_input|;t t
12796 s&@top_builddir@&$ac_top_builddir_sub&;t t
12797 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12798 s&@srcdir@&$ac_srcdir&;t t
12799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12800 s&@top_srcdir@&$ac_top_srcdir&;t t
12801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12802 s&@builddir@&$ac_builddir&;t t
12803 s&@abs_builddir@&$ac_abs_builddir&;t t
12804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12805 s&@INSTALL@&$ac_INSTALL&;t t
12806 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12807 $ac_datarootdir_hack
12808 "
12809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12810 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12811
12812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12813 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12815 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12817 which seems to be undefined. Please make sure it is defined" >&5
12818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12819 which seems to be undefined. Please make sure it is defined" >&2;}
12820
12821 rm -f "$ac_tmp/stdin"
12822 case $ac_file in
12823 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12824 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12825 esac \
12826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12827 ;;
12828 :H)
12829 #
12830 # CONFIG_HEADER
12831 #
12832 if test x"$ac_file" != x-; then
12833 {
12834 $as_echo "/* $configure_input */" \
12835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12836 } >"$ac_tmp/config.h" \
12837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12838 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12841 else
12842 rm -f "$ac_file"
12843 mv "$ac_tmp/config.h" "$ac_file" \
12844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845 fi
12846 else
12847 $as_echo "/* $configure_input */" \
12848 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12849 || as_fn_error $? "could not create -" "$LINENO" 5
12850 fi
12851 # Compute "$ac_file"'s index in $config_headers.
12852 _am_arg="$ac_file"
12853 _am_stamp_count=1
12854 for _am_header in $config_headers :; do
12855 case $_am_header in
12856 $_am_arg | $_am_arg:* )
12857 break ;;
12858 * )
12859 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12860 esac
12861 done
12862 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12863 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12864 X"$_am_arg" : 'X\(//\)[^/]' \| \
12865 X"$_am_arg" : 'X\(//\)$' \| \
12866 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12867 $as_echo X"$_am_arg" |
12868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12869 s//\1/
12870 q
12871 }
12872 /^X\(\/\/\)[^/].*/{
12873 s//\1/
12874 q
12875 }
12876 /^X\(\/\/\)$/{
12877 s//\1/
12878 q
12879 }
12880 /^X\(\/\).*/{
12881 s//\1/
12882 q
12883 }
12884 s/.*/./; q'`/stamp-h$_am_stamp_count
12885 ;;
12886
12887 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12888 $as_echo "$as_me: executing $ac_file commands" >&6;}
12889 ;;
12890 esac
12891
12892
12893 case $ac_file$ac_mode in
12894 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12895 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12896 # are listed without --file. Let's play safe and only enable the eval
12897 # if we detect the quoting.
12898 case $CONFIG_FILES in
12899 *\'*) eval set x "$CONFIG_FILES" ;;
12900 *) set x $CONFIG_FILES ;;
12901 esac
12902 shift
12903 for mf
12904 do
12905 # Strip MF so we end up with the name of the file.
12906 mf=`echo "$mf" | sed -e 's/:.*$//'`
12907 # Check whether this is an Automake generated Makefile or not.
12908 # We used to match only the files named `Makefile.in', but
12909 # some people rename them; so instead we look at the file content.
12910 # Grep'ing the first line is not enough: some people post-process
12911 # each Makefile.in and add a new line on top of each file to say so.
12912 # Grep'ing the whole file is not good either: AIX grep has a line
12913 # limit of 2048, but all sed's we know have understand at least 4000.
12914 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12915 dirpart=`$as_dirname -- "$mf" ||
12916 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917 X"$mf" : 'X\(//\)[^/]' \| \
12918 X"$mf" : 'X\(//\)$' \| \
12919 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12920 $as_echo X"$mf" |
12921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\/\)[^/].*/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\/\)$/{
12930 s//\1/
12931 q
12932 }
12933 /^X\(\/\).*/{
12934 s//\1/
12935 q
12936 }
12937 s/.*/./; q'`
12938 else
12939 continue
12940 fi
12941 # Extract the definition of DEPDIR, am__include, and am__quote
12942 # from the Makefile without running `make'.
12943 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12944 test -z "$DEPDIR" && continue
12945 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12946 test -z "am__include" && continue
12947 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12948 # When using ansi2knr, U may be empty or an underscore; expand it
12949 U=`sed -n 's/^U = //p' < "$mf"`
12950 # Find all dependency output files, they are included files with
12951 # $(DEPDIR) in their names. We invoke sed twice because it is the
12952 # simplest approach to changing $(DEPDIR) to its actual value in the
12953 # expansion.
12954 for file in `sed -n "
12955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12957 # Make sure the directory exists.
12958 test -f "$dirpart/$file" && continue
12959 fdir=`$as_dirname -- "$file" ||
12960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12961 X"$file" : 'X\(//\)[^/]' \| \
12962 X"$file" : 'X\(//\)$' \| \
12963 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12964 $as_echo X"$file" |
12965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12966 s//\1/
12967 q
12968 }
12969 /^X\(\/\/\)[^/].*/{
12970 s//\1/
12971 q
12972 }
12973 /^X\(\/\/\)$/{
12974 s//\1/
12975 q
12976 }
12977 /^X\(\/\).*/{
12978 s//\1/
12979 q
12980 }
12981 s/.*/./; q'`
12982 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12983 # echo "creating $dirpart/$file"
12984 echo '# dummy' > "$dirpart/$file"
12985 done
12986 done
12987 }
12988 ;;
12989 "libtool":C)
12990
12991 # See if we are running on zsh, and set the options which allow our
12992 # commands through without removal of \ escapes.
12993 if test -n "${ZSH_VERSION+set}" ; then
12994 setopt NO_GLOB_SUBST
12995 fi
12996
12997 cfgfile="${ofile}T"
12998 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12999 $RM "$cfgfile"
13000
13001 cat <<_LT_EOF >> "$cfgfile"
13002 #! $SHELL
13003
13004 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13005 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13006 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13007 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13008 #
13009 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13010 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13011 # Foundation, Inc.
13012 # Written by Gordon Matzigkeit, 1996
13013 #
13014 # This file is part of GNU Libtool.
13015 #
13016 # GNU Libtool is free software; you can redistribute it and/or
13017 # modify it under the terms of the GNU General Public License as
13018 # published by the Free Software Foundation; either version 2 of
13019 # the License, or (at your option) any later version.
13020 #
13021 # As a special exception to the GNU General Public License,
13022 # if you distribute this file as part of a program or library that
13023 # is built using GNU Libtool, you may include this file under the
13024 # same distribution terms that you use for the rest of that program.
13025 #
13026 # GNU Libtool is distributed in the hope that it will be useful,
13027 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13028 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13029 # GNU General Public License for more details.
13030 #
13031 # You should have received a copy of the GNU General Public License
13032 # along with GNU Libtool; see the file COPYING. If not, a copy
13033 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13034 # obtained by writing to the Free Software Foundation, Inc.,
13035 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13036
13037
13038 # The names of the tagged configurations supported by this script.
13039 available_tags=""
13040
13041 # ### BEGIN LIBTOOL CONFIG
13042
13043 # Which release of libtool.m4 was used?
13044 macro_version=$macro_version
13045 macro_revision=$macro_revision
13046
13047 # Whether or not to build shared libraries.
13048 build_libtool_libs=$enable_shared
13049
13050 # Whether or not to build static libraries.
13051 build_old_libs=$enable_static
13052
13053 # What type of objects to build.
13054 pic_mode=$pic_mode
13055
13056 # Whether or not to optimize for fast installation.
13057 fast_install=$enable_fast_install
13058
13059 # Shell to use when invoking shell scripts.
13060 SHELL=$lt_SHELL
13061
13062 # An echo program that protects backslashes.
13063 ECHO=$lt_ECHO
13064
13065 # The PATH separator for the build system.
13066 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13067
13068 # The host system.
13069 host_alias=$host_alias
13070 host=$host
13071 host_os=$host_os
13072
13073 # The build system.
13074 build_alias=$build_alias
13075 build=$build
13076 build_os=$build_os
13077
13078 # A sed program that does not truncate output.
13079 SED=$lt_SED
13080
13081 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13082 Xsed="\$SED -e 1s/^X//"
13083
13084 # A grep program that handles long lines.
13085 GREP=$lt_GREP
13086
13087 # An ERE matcher.
13088 EGREP=$lt_EGREP
13089
13090 # A literal string matcher.
13091 FGREP=$lt_FGREP
13092
13093 # A BSD- or MS-compatible name lister.
13094 NM=$lt_NM
13095
13096 # Whether we need soft or hard links.
13097 LN_S=$lt_LN_S
13098
13099 # What is the maximum length of a command?
13100 max_cmd_len=$max_cmd_len
13101
13102 # Object file suffix (normally "o").
13103 objext=$ac_objext
13104
13105 # Executable file suffix (normally "").
13106 exeext=$exeext
13107
13108 # whether the shell understands "unset".
13109 lt_unset=$lt_unset
13110
13111 # turn spaces into newlines.
13112 SP2NL=$lt_lt_SP2NL
13113
13114 # turn newlines into spaces.
13115 NL2SP=$lt_lt_NL2SP
13116
13117 # convert \$build file names to \$host format.
13118 to_host_file_cmd=$lt_cv_to_host_file_cmd
13119
13120 # convert \$build files to toolchain format.
13121 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13122
13123 # An object symbol dumper.
13124 OBJDUMP=$lt_OBJDUMP
13125
13126 # Method to check whether dependent libraries are shared objects.
13127 deplibs_check_method=$lt_deplibs_check_method
13128
13129 # Command to use when deplibs_check_method = "file_magic".
13130 file_magic_cmd=$lt_file_magic_cmd
13131
13132 # How to find potential files when deplibs_check_method = "file_magic".
13133 file_magic_glob=$lt_file_magic_glob
13134
13135 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13136 want_nocaseglob=$lt_want_nocaseglob
13137
13138 # DLL creation program.
13139 DLLTOOL=$lt_DLLTOOL
13140
13141 # Command to associate shared and link libraries.
13142 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13143
13144 # The archiver.
13145 AR=$lt_AR
13146
13147 # Flags to create an archive.
13148 AR_FLAGS=$lt_AR_FLAGS
13149
13150 # How to feed a file listing to the archiver.
13151 archiver_list_spec=$lt_archiver_list_spec
13152
13153 # A symbol stripping program.
13154 STRIP=$lt_STRIP
13155
13156 # Commands used to install an old-style archive.
13157 RANLIB=$lt_RANLIB
13158 old_postinstall_cmds=$lt_old_postinstall_cmds
13159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13160
13161 # Whether to use a lock for old archive extraction.
13162 lock_old_archive_extraction=$lock_old_archive_extraction
13163
13164 # A C compiler.
13165 LTCC=$lt_CC
13166
13167 # LTCC compiler flags.
13168 LTCFLAGS=$lt_CFLAGS
13169
13170 # Take the output of nm and produce a listing of raw symbols and C names.
13171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13172
13173 # Transform the output of nm in a proper C declaration.
13174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13175
13176 # Transform the output of nm in a C name address pair.
13177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13178
13179 # Transform the output of nm in a C name address pair when lib prefix is needed.
13180 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13181
13182 # Specify filename containing input files for \$NM.
13183 nm_file_list_spec=$lt_nm_file_list_spec
13184
13185 # The root where to search for dependent libraries,and in which our libraries should be installed.
13186 lt_sysroot=$lt_sysroot
13187
13188 # The name of the directory that contains temporary libtool files.
13189 objdir=$objdir
13190
13191 # Used to examine libraries when file_magic_cmd begins with "file".
13192 MAGIC_CMD=$MAGIC_CMD
13193
13194 # Must we lock files when doing compilation?
13195 need_locks=$lt_need_locks
13196
13197 # Manifest tool.
13198 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13199
13200 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13201 DSYMUTIL=$lt_DSYMUTIL
13202
13203 # Tool to change global to local symbols on Mac OS X.
13204 NMEDIT=$lt_NMEDIT
13205
13206 # Tool to manipulate fat objects and archives on Mac OS X.
13207 LIPO=$lt_LIPO
13208
13209 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13210 OTOOL=$lt_OTOOL
13211
13212 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13213 OTOOL64=$lt_OTOOL64
13214
13215 # Old archive suffix (normally "a").
13216 libext=$libext
13217
13218 # Shared library suffix (normally ".so").
13219 shrext_cmds=$lt_shrext_cmds
13220
13221 # The commands to extract the exported symbol list from a shared archive.
13222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13223
13224 # Variables whose values should be saved in libtool wrapper scripts and
13225 # restored at link time.
13226 variables_saved_for_relink=$lt_variables_saved_for_relink
13227
13228 # Do we need the "lib" prefix for modules?
13229 need_lib_prefix=$need_lib_prefix
13230
13231 # Do we need a version for libraries?
13232 need_version=$need_version
13233
13234 # Library versioning type.
13235 version_type=$version_type
13236
13237 # Shared library runtime path variable.
13238 runpath_var=$runpath_var
13239
13240 # Shared library path variable.
13241 shlibpath_var=$shlibpath_var
13242
13243 # Is shlibpath searched before the hard-coded library search path?
13244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13245
13246 # Format of library name prefix.
13247 libname_spec=$lt_libname_spec
13248
13249 # List of archive names. First name is the real one, the rest are links.
13250 # The last name is the one that the linker finds with -lNAME
13251 library_names_spec=$lt_library_names_spec
13252
13253 # The coded name of the library, if different from the real name.
13254 soname_spec=$lt_soname_spec
13255
13256 # Permission mode override for installation of shared libraries.
13257 install_override_mode=$lt_install_override_mode
13258
13259 # Command to use after installation of a shared archive.
13260 postinstall_cmds=$lt_postinstall_cmds
13261
13262 # Command to use after uninstallation of a shared archive.
13263 postuninstall_cmds=$lt_postuninstall_cmds
13264
13265 # Commands used to finish a libtool library installation in a directory.
13266 finish_cmds=$lt_finish_cmds
13267
13268 # As "finish_cmds", except a single script fragment to be evaled but
13269 # not shown.
13270 finish_eval=$lt_finish_eval
13271
13272 # Whether we should hardcode library paths into libraries.
13273 hardcode_into_libs=$hardcode_into_libs
13274
13275 # Compile-time system search path for libraries.
13276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13277
13278 # Run-time system search path for libraries.
13279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13280
13281 # Whether dlopen is supported.
13282 dlopen_support=$enable_dlopen
13283
13284 # Whether dlopen of programs is supported.
13285 dlopen_self=$enable_dlopen_self
13286
13287 # Whether dlopen of statically linked programs is supported.
13288 dlopen_self_static=$enable_dlopen_self_static
13289
13290 # Commands to strip libraries.
13291 old_striplib=$lt_old_striplib
13292 striplib=$lt_striplib
13293
13294
13295 # The linker used to build libraries.
13296 LD=$lt_LD
13297
13298 # How to create reloadable object files.
13299 reload_flag=$lt_reload_flag
13300 reload_cmds=$lt_reload_cmds
13301
13302 # Commands used to build an old-style archive.
13303 old_archive_cmds=$lt_old_archive_cmds
13304
13305 # A language specific compiler.
13306 CC=$lt_compiler
13307
13308 # Is the compiler the GNU compiler?
13309 with_gcc=$GCC
13310
13311 # Compiler flag to turn off builtin functions.
13312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13313
13314 # Additional compiler flags for building library objects.
13315 pic_flag=$lt_lt_prog_compiler_pic
13316
13317 # How to pass a linker flag through the compiler.
13318 wl=$lt_lt_prog_compiler_wl
13319
13320 # Compiler flag to prevent dynamic linking.
13321 link_static_flag=$lt_lt_prog_compiler_static
13322
13323 # Does compiler simultaneously support -c and -o options?
13324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13325
13326 # Whether or not to add -lc for building shared libraries.
13327 build_libtool_need_lc=$archive_cmds_need_lc
13328
13329 # Whether or not to disallow shared libs when runtime libs are static.
13330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13331
13332 # Compiler flag to allow reflexive dlopens.
13333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13334
13335 # Compiler flag to generate shared objects directly from archives.
13336 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13337
13338 # Whether the compiler copes with passing no objects directly.
13339 compiler_needs_object=$lt_compiler_needs_object
13340
13341 # Create an old-style archive from a shared archive.
13342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13343
13344 # Create a temporary old-style archive to link instead of a shared archive.
13345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13346
13347 # Commands used to build a shared archive.
13348 archive_cmds=$lt_archive_cmds
13349 archive_expsym_cmds=$lt_archive_expsym_cmds
13350
13351 # Commands used to build a loadable module if different from building
13352 # a shared archive.
13353 module_cmds=$lt_module_cmds
13354 module_expsym_cmds=$lt_module_expsym_cmds
13355
13356 # Whether we are building with GNU ld or not.
13357 with_gnu_ld=$lt_with_gnu_ld
13358
13359 # Flag that allows shared libraries with undefined symbols to be built.
13360 allow_undefined_flag=$lt_allow_undefined_flag
13361
13362 # Flag that enforces no undefined symbols.
13363 no_undefined_flag=$lt_no_undefined_flag
13364
13365 # Flag to hardcode \$libdir into a binary during linking.
13366 # This must work even if \$libdir does not exist
13367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13368
13369 # Whether we need a single "-rpath" flag with a separated argument.
13370 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13371
13372 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13373 # DIR into the resulting binary.
13374 hardcode_direct=$hardcode_direct
13375
13376 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13377 # DIR into the resulting binary and the resulting library dependency is
13378 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13379 # library is relocated.
13380 hardcode_direct_absolute=$hardcode_direct_absolute
13381
13382 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13383 # into the resulting binary.
13384 hardcode_minus_L=$hardcode_minus_L
13385
13386 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13387 # into the resulting binary.
13388 hardcode_shlibpath_var=$hardcode_shlibpath_var
13389
13390 # Set to "yes" if building a shared library automatically hardcodes DIR
13391 # into the library and all subsequent libraries and executables linked
13392 # against it.
13393 hardcode_automatic=$hardcode_automatic
13394
13395 # Set to yes if linker adds runtime paths of dependent libraries
13396 # to runtime path list.
13397 inherit_rpath=$inherit_rpath
13398
13399 # Whether libtool must link a program against all its dependency libraries.
13400 link_all_deplibs=$link_all_deplibs
13401
13402 # Set to "yes" if exported symbols are required.
13403 always_export_symbols=$always_export_symbols
13404
13405 # The commands to list exported symbols.
13406 export_symbols_cmds=$lt_export_symbols_cmds
13407
13408 # Symbols that should not be listed in the preloaded symbols.
13409 exclude_expsyms=$lt_exclude_expsyms
13410
13411 # Symbols that must always be exported.
13412 include_expsyms=$lt_include_expsyms
13413
13414 # Commands necessary for linking programs (against libraries) with templates.
13415 prelink_cmds=$lt_prelink_cmds
13416
13417 # Commands necessary for finishing linking programs.
13418 postlink_cmds=$lt_postlink_cmds
13419
13420 # Specify filename containing input files.
13421 file_list_spec=$lt_file_list_spec
13422
13423 # How to hardcode a shared library path into an executable.
13424 hardcode_action=$hardcode_action
13425
13426 # ### END LIBTOOL CONFIG
13427
13428 _LT_EOF
13429
13430 case $host_os in
13431 aix3*)
13432 cat <<\_LT_EOF >> "$cfgfile"
13433 # AIX sometimes has problems with the GCC collect2 program. For some
13434 # reason, if we set the COLLECT_NAMES environment variable, the problems
13435 # vanish in a puff of smoke.
13436 if test "X${COLLECT_NAMES+set}" != Xset; then
13437 COLLECT_NAMES=
13438 export COLLECT_NAMES
13439 fi
13440 _LT_EOF
13441 ;;
13442 esac
13443
13444
13445 ltmain="$ac_aux_dir/ltmain.sh"
13446
13447
13448 # We use sed instead of cat because bash on DJGPP gets confused if
13449 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13450 # text mode, it properly converts lines to CR/LF. This bash problem
13451 # is reportedly fixed, but why not run on old versions too?
13452 sed '$q' "$ltmain" >> "$cfgfile" \
13453 || (rm -f "$cfgfile"; exit 1)
13454
13455 if test x"$xsi_shell" = xyes; then
13456 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13457 func_dirname ()\
13458 {\
13459 \ case ${1} in\
13460 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13461 \ * ) func_dirname_result="${3}" ;;\
13462 \ esac\
13463 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13464 && mv -f "$cfgfile.tmp" "$cfgfile" \
13465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13466 test 0 -eq $? || _lt_function_replace_fail=:
13467
13468
13469 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13470 func_basename ()\
13471 {\
13472 \ func_basename_result="${1##*/}"\
13473 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13474 && mv -f "$cfgfile.tmp" "$cfgfile" \
13475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13476 test 0 -eq $? || _lt_function_replace_fail=:
13477
13478
13479 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13480 func_dirname_and_basename ()\
13481 {\
13482 \ case ${1} in\
13483 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13484 \ * ) func_dirname_result="${3}" ;;\
13485 \ esac\
13486 \ func_basename_result="${1##*/}"\
13487 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13488 && mv -f "$cfgfile.tmp" "$cfgfile" \
13489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13490 test 0 -eq $? || _lt_function_replace_fail=:
13491
13492
13493 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13494 func_stripname ()\
13495 {\
13496 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13497 \ # positional parameters, so assign one to ordinary parameter first.\
13498 \ func_stripname_result=${3}\
13499 \ func_stripname_result=${func_stripname_result#"${1}"}\
13500 \ func_stripname_result=${func_stripname_result%"${2}"}\
13501 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13502 && mv -f "$cfgfile.tmp" "$cfgfile" \
13503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13504 test 0 -eq $? || _lt_function_replace_fail=:
13505
13506
13507 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13508 func_split_long_opt ()\
13509 {\
13510 \ func_split_long_opt_name=${1%%=*}\
13511 \ func_split_long_opt_arg=${1#*=}\
13512 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13513 && mv -f "$cfgfile.tmp" "$cfgfile" \
13514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13515 test 0 -eq $? || _lt_function_replace_fail=:
13516
13517
13518 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13519 func_split_short_opt ()\
13520 {\
13521 \ func_split_short_opt_arg=${1#??}\
13522 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13523 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13524 && mv -f "$cfgfile.tmp" "$cfgfile" \
13525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13526 test 0 -eq $? || _lt_function_replace_fail=:
13527
13528
13529 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13530 func_lo2o ()\
13531 {\
13532 \ case ${1} in\
13533 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13534 \ *) func_lo2o_result=${1} ;;\
13535 \ esac\
13536 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13537 && mv -f "$cfgfile.tmp" "$cfgfile" \
13538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13539 test 0 -eq $? || _lt_function_replace_fail=:
13540
13541
13542 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13543 func_xform ()\
13544 {\
13545 func_xform_result=${1%.*}.lo\
13546 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13547 && mv -f "$cfgfile.tmp" "$cfgfile" \
13548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13549 test 0 -eq $? || _lt_function_replace_fail=:
13550
13551
13552 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13553 func_arith ()\
13554 {\
13555 func_arith_result=$(( $* ))\
13556 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13557 && mv -f "$cfgfile.tmp" "$cfgfile" \
13558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13559 test 0 -eq $? || _lt_function_replace_fail=:
13560
13561
13562 sed -e '/^func_len ()$/,/^} # func_len /c\
13563 func_len ()\
13564 {\
13565 func_len_result=${#1}\
13566 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13567 && mv -f "$cfgfile.tmp" "$cfgfile" \
13568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13569 test 0 -eq $? || _lt_function_replace_fail=:
13570
13571 fi
13572
13573 if test x"$lt_shell_append" = xyes; then
13574 sed -e '/^func_append ()$/,/^} # func_append /c\
13575 func_append ()\
13576 {\
13577 eval "${1}+=\\${2}"\
13578 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13579 && mv -f "$cfgfile.tmp" "$cfgfile" \
13580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13581 test 0 -eq $? || _lt_function_replace_fail=:
13582
13583
13584 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13585 func_append_quoted ()\
13586 {\
13587 \ func_quote_for_eval "${2}"\
13588 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13589 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13590 && mv -f "$cfgfile.tmp" "$cfgfile" \
13591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13592 test 0 -eq $? || _lt_function_replace_fail=:
13593
13594
13595 # Save a `func_append' function call where possible by direct use of '+='
13596 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13597 && mv -f "$cfgfile.tmp" "$cfgfile" \
13598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13599 test 0 -eq $? || _lt_function_replace_fail=:
13600 else
13601 # Save a `func_append' function call even when '+=' is not available
13602 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13603 && mv -f "$cfgfile.tmp" "$cfgfile" \
13604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13605 test 0 -eq $? || _lt_function_replace_fail=:
13606 fi
13607
13608 if test x"$_lt_function_replace_fail" = x":"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13610 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13611 fi
13612
13613
13614 mv -f "$cfgfile" "$ofile" ||
13615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13616 chmod +x "$ofile"
13617
13618 ;;
13619
13620 esac
13621 done # for ac_tag
13622
13623
13624 as_fn_exit 0
13625 _ACEOF
13626 ac_clean_files=$ac_clean_files_save
13627
13628 test $ac_write_fail = 0 ||
13629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13630
13631
13632 # configure is writing to config.log, and then calls config.status.
13633 # config.status does its own redirection, appending to config.log.
13634 # Unfortunately, on DOS this fails, as config.log is still kept open
13635 # by configure, so config.status won't be able to write to it; its
13636 # output is simply discarded. So we exec the FD to /dev/null,
13637 # effectively closing config.log, so it can be properly (re)opened and
13638 # appended to by config.status. When coming back to configure, we
13639 # need to make the FD available again.
13640 if test "$no_create" != yes; then
13641 ac_cs_success=:
13642 ac_config_status_args=
13643 test "$silent" = yes &&
13644 ac_config_status_args="$ac_config_status_args --quiet"
13645 exec 5>/dev/null
13646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13647 exec 5>>config.log
13648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13649 # would make configure fail if this is the last instruction.
13650 $ac_cs_success || as_fn_exit 1
13651 fi
13652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13655 fi
13656
13657
13658