Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libatasmart 0.19.
4 #
5 # Report bugs to <mzyvongnfzneg (at) 0pointer (dot) net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and mzyvongnfzneg (at)
250 $0: 0pointer (dot) net about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libatasmart'
572 PACKAGE_TARNAME='libatasmart'
573 PACKAGE_VERSION='0.19'
574 PACKAGE_STRING='libatasmart 0.19'
575 PACKAGE_BUGREPORT='mzyvongnfzneg (at) 0pointer (dot) net'
576 PACKAGE_URL='http://git.0pointer.de/?p=libatasmart.git'
577
578 ac_unique_file="atasmart.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 OTOOL64
620 OTOOL
621 LIPO
622 NMEDIT
623 DSYMUTIL
624 MANIFEST_TOOL
625 RANLIB
626 ac_ct_AR
627 AR
628 DLLTOOL
629 OBJDUMP
630 LN_S
631 NM
632 ac_ct_DUMPBIN
633 DUMPBIN
634 LD
635 FGREP
636 SED
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 LIBTOOL
646 LIBUDEV_LIBS
647 LIBUDEV_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 GCLDFLAGS
652 WARNINGFLAGS
653 EXEEXT_FOR_BUILD
654 BUILD_LDFLAGS
655 BUILD_CFLAGS
656 CC_FOR_BUILD
657 EGREP
658 GREP
659 CPP
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 am__nodep
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 LIBATASMART_VERSION_INFO
678 AM_BACKSLASH
679 AM_DEFAULT_VERBOSITY
680 AM_DEFAULT_V
681 AM_V
682 am__untar
683 am__tar
684 AMTAR
685 am__leading_dot
686 SET_MAKE
687 AWK
688 mkdir_p
689 MKDIR_P
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 am__isrc
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 enable_silent_rules
747 enable_dependency_tracking
748 enable_largefile
749 enable_static
750 enable_shared
751 with_pic
752 enable_fast_install
753 with_gnu_ld
754 with_sysroot
755 enable_libtool_lock
756 '
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
760 CC
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
765 CPP
766 CC_FOR_BUILD
767 BUILD_CFLAGS
768 BUILD_LDFLAGS
769 PKG_CONFIG
770 PKG_CONFIG_PATH
771 PKG_CONFIG_LIBDIR
772 LIBUDEV_CFLAGS
773 LIBUDEV_LIBS'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
831 ac_prev=
832 continue
833 fi
834
835 case $ac_option in
836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 *=) ac_optarg= ;;
838 *) ac_optarg=yes ;;
839 esac
840
841 # Accept the important Cygnus configure options, so we can diagnose typos.
842
843 case $ac_dashdash$ac_option in
844 --)
845 ac_dashdash=yes ;;
846
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
851
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
856
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
863
864 --config-cache | -C)
865 cache_file=config.cache ;;
866
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
871
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
878
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
894
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
899
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
904
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=\$ac_optarg ;;
920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
940
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
945
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
975
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
992
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1013
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1049
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
1068 sbindir=$ac_optarg ;;
1069
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
1079 sharedstatedir=$ac_optarg ;;
1080
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
1084 site=$ac_optarg ;;
1085
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1090
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1097
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1102
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1105
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1108
1109 -with-* | --with-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=\$ac_optarg ;;
1124
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=no ;;
1140
1141 --x)
1142 # Obsolete; use --with-x.
1143 with_x=yes ;;
1144
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1151
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1158
1159 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161 ;;
1162
1163 *=*)
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169 esac
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1172
1173 *)
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 ;;
1180
1181 esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1191 no) ;;
1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1202 do
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used" >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281 else
1282 ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures libatasmart 0.19 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/libatasmart]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1370
1371 cat <<\_ACEOF
1372
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of libatasmart 0.19:";;
1387 esac
1388 cat <<\_ACEOF
1389
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: `make V=1')
1395 --disable-silent-rules verbose build output (undo: `make V=0')
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --disable-largefile omit support for large files
1399 --enable-static[=PKGS] build static libraries [default=no]
1400 --enable-shared[=PKGS] build shared libraries [default=yes]
1401 --enable-fast-install[=PKGS]
1402 optimize for fast installation [default=yes]
1403 --disable-libtool-lock avoid locking (might break parallel builds)
1404
1405 Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1409 both]
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 --with-sysroot=DIR Search for dependent libraries within DIR
1412 (or the compiler's sysroot if not specified).
1413
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CPP C preprocessor
1423 CC_FOR_BUILD
1424 Host's C compiler command for cross-compilation [default=$(CC)]
1425 BUILD_CFLAGS
1426 Host's C compiler flags [default=$(CFLAGS)]
1427 BUILD_LDFLAGS
1428 Host's linker flags [default=$(LDFLAGS)]
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 LIBUDEV_CFLAGS
1435 C compiler flags for LIBUDEV, overriding pkg-config
1436 LIBUDEV_LIBS
1437 linker flags for LIBUDEV, overriding pkg-config
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <mzyvongnfzneg (at) 0pointer (dot) net>.
1443 libatasmart home page: <http://git.0pointer.de/?p=libatasmart.git>.
1444 _ACEOF
1445 ac_status=$?
1446 fi
1447
1448 if test "$ac_init_help" = "recursive"; then
1449 # If there are subdirs, report their specific --help.
1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1451 test -d "$ac_dir" ||
1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 continue
1454 ac_builddir=.
1455
1456 case "$ac_dir" in
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *)
1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 esac ;;
1466 esac
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1471
1472 case $srcdir in
1473 .) # We are building in place.
1474 ac_srcdir=.
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
1478 ac_srcdir=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1481 *) # Relative name.
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 esac
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1496 else
1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 fi || ac_status=$?
1499 cd "$ac_pwd" || { ac_status=$?; break; }
1500 done
1501 fi
1502
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1505 cat <<\_ACEOF
1506 libatasmart configure 0.19
1507 generated by GNU Autoconf 2.68
1508
1509 Copyright (C) 2010 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1512 _ACEOF
1513 exit
1514 fi
1515
1516 ## ------------------------ ##
1517 ## Autoconf initialization. ##
1518 ## ------------------------ ##
1519
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1524 {
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext
1527 if { { ac_try="$ac_compile"
1528 case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1540 fi
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551 ac_retval=1
1552 fi
1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 as_fn_set_status $ac_retval
1555
1556 } # ac_fn_c_try_compile
1557
1558 # ac_fn_c_try_cpp LINENO
1559 # ----------------------
1560 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_cpp ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } > conftest.i && {
1580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 }; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_cpp
1594
1595 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1598 # the include files in INCLUDES and setting the cache variable VAR
1599 # accordingly.
1600 ac_fn_c_check_header_mongrel ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if eval \${$3+:} false; then :
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if eval \${$3+:} false; then :
1607 $as_echo_n "(cached) " >&6
1608 fi
1609 eval ac_res=\$$3
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612 else
1613 # Is the header compilable?
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1615 $as_echo_n "checking $2 usability... " >&6; }
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"; then :
1622 ac_header_compiler=yes
1623 else
1624 ac_header_compiler=no
1625 fi
1626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1628 $as_echo "$ac_header_compiler" >&6; }
1629
1630 # Is the header present?
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1632 $as_echo_n "checking $2 presence... " >&6; }
1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634 /* end confdefs.h. */
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_cpp "$LINENO"; then :
1638 ac_header_preproc=yes
1639 else
1640 ac_header_preproc=no
1641 fi
1642 rm -f conftest.err conftest.i conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1644 $as_echo "$ac_header_preproc" >&6; }
1645
1646 # So? What about this header?
1647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1648 yes:no: )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1650 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 ;;
1654 no:yes:* )
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1656 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1658 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1660 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1662 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1665 ( $as_echo "## ---------------------------------------------------- ##
1666 ## Report this to mzyvongnfzneg (at) 0pointer (dot) net ##
1667 ## ---------------------------------------------------- ##"
1668 ) | sed "s/^/$as_me: WARNING: /" >&2
1669 ;;
1670 esac
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 eval "$3=\$ac_header_compiler"
1677 fi
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_c_check_header_mongrel
1685
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 $as_test_x conftest$ac_exeext
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_link
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1874
1875 It was created by libatasmart $as_me 0.19, which was
1876 generated by GNU Autoconf 2.68. Invocation command line was
1877
1878 $ $0 $@
1879
1880 _ACEOF
1881 exec 5>>config.log
1882 {
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1887
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904
1905 _ASUNAME
1906
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1991 (
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2014 *)
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016 ;;
2017 esac |
2018 sort
2019 )
2020 echo
2021
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2027 do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2035
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050 fi
2051
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 $as_echo "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119 else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2122 fi
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 do
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2135 fi
2136 done
2137
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2148 fi
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2153 fi
2154
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2173 *)
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2186 fi
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2203 fi
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 fi
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2215
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224
2225 ac_config_headers="$ac_config_headers config.h"
2226
2227
2228 ac_aux_dir=
2229 for ac_dir in build-aux "$srcdir"/build-aux; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257
2258 am__api_version='1.11'
2259
2260 # Find a good install program. We prefer a C program (faster),
2261 # so one script is as good as another. But avoid the broken or
2262 # incompatible versions:
2263 # SysV /etc/install, /usr/sbin/install
2264 # SunOS /usr/etc/install
2265 # IRIX /sbin/install
2266 # AIX /bin/install
2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271 # OS/2's system install, which has a completely different semantic
2272 # ./install, which can be erroneously created by make from ./install.sh.
2273 # Reject install programs that cannot install multiple files.
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2276 if test -z "$INSTALL"; then
2277 if ${ac_cv_path_install+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 # Account for people who put trailing slashes in PATH elements.
2286 case $as_dir/ in #((
2287 ./ | .// | /[cC]/* | \
2288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290 /usr/ucb/* ) ;;
2291 *)
2292 # OSF1 and SCO ODT 3.0 have their own names for install.
2293 # Don't use installbsd from OSF since it installs stuff as root
2294 # by default.
2295 for ac_prog in ginstall scoinst install; do
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298 if test $ac_prog = install &&
2299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300 # AIX install. It has an incompatible calling convention.
2301 :
2302 elif test $ac_prog = install &&
2303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # program-specific install script used by HP pwplus--don't use.
2305 :
2306 else
2307 rm -rf conftest.one conftest.two conftest.dir
2308 echo one > conftest.one
2309 echo two > conftest.two
2310 mkdir conftest.dir
2311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2312 test -s conftest.one && test -s conftest.two &&
2313 test -s conftest.dir/conftest.one &&
2314 test -s conftest.dir/conftest.two
2315 then
2316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317 break 3
2318 fi
2319 fi
2320 fi
2321 done
2322 done
2323 ;;
2324 esac
2325
2326 done
2327 IFS=$as_save_IFS
2328
2329 rm -rf conftest.one conftest.two conftest.dir
2330
2331 fi
2332 if test "${ac_cv_path_install+set}" = set; then
2333 INSTALL=$ac_cv_path_install
2334 else
2335 # As a last resort, use the slow shell script. Don't cache a
2336 # value for INSTALL within a source directory, because that will
2337 # break other packages using the cache if that directory is
2338 # removed, or if the value is a relative name.
2339 INSTALL=$ac_install_sh
2340 fi
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2343 $as_echo "$INSTALL" >&6; }
2344
2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346 # It thinks the first close brace ends the variable substitution.
2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2354 $as_echo_n "checking whether build environment is sane... " >&6; }
2355 # Just in case
2356 sleep 1
2357 echo timestamp > conftest.file
2358 # Reject unsafe characters in $srcdir or the absolute working directory
2359 # name. Accept space and tab only in the latter.
2360 am_lf='
2361 '
2362 case `pwd` in
2363 *[\\\"\#\$\&\'\`$am_lf]*)
2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365 esac
2366 case $srcdir in
2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2369 esac
2370
2371 # Do `set' in a subshell so we don't clobber the current shell's
2372 # arguments. Must try -L first in case configure is actually a
2373 # symlink; some systems play weird games with the mod time of symlinks
2374 # (eg FreeBSD returns the mod time of the symlink's containing
2375 # directory).
2376 if (
2377 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2378 if test "$*" = "X"; then
2379 # -L didn't work.
2380 set X `ls -t "$srcdir/configure" conftest.file`
2381 fi
2382 rm -f conftest.file
2383 if test "$*" != "X $srcdir/configure conftest.file" \
2384 && test "$*" != "X conftest.file $srcdir/configure"; then
2385
2386 # If neither matched, then we have a broken ls. This can happen
2387 # if, for instance, CONFIG_SHELL is bash and it inherits a
2388 # broken ls alias from the environment. This has actually
2389 # happened. Such a system could not be considered "sane".
2390 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2391 alias in your environment" "$LINENO" 5
2392 fi
2393
2394 test "$2" = conftest.file
2395 )
2396 then
2397 # Ok.
2398 :
2399 else
2400 as_fn_error $? "newly created file is older than distributed files!
2401 Check your system clock" "$LINENO" 5
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404 $as_echo "yes" >&6; }
2405 test "$program_prefix" != NONE &&
2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407 # Use a double $ so make ignores it.
2408 test "$program_suffix" != NONE &&
2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410 # Double any \ or $.
2411 # By default was `s,x,x', remove it if useless.
2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415 # expand $ac_aux_dir to an absolute path
2416 am_aux_dir=`cd $ac_aux_dir && pwd`
2417
2418 if test x"${MISSING+set}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2422 *)
2423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2424 esac
2425 fi
2426 # Use eval to expand $SHELL
2427 if eval "$MISSING --run true"; then
2428 am_missing_run="$MISSING --run "
2429 else
2430 am_missing_run=
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2432 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2433 fi
2434
2435 if test x"${install_sh}" != xset; then
2436 case $am_aux_dir in
2437 *\ * | *\ *)
2438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2439 *)
2440 install_sh="\${SHELL} $am_aux_dir/install-sh"
2441 esac
2442 fi
2443
2444 # Installed binaries are usually stripped using `strip' when the user
2445 # run `make install-strip'. However `strip' might not be the right
2446 # tool to use in cross-compilation environments, therefore Automake
2447 # will honor the `STRIP' environment variable to overrule this program.
2448 if test "$cross_compiling" != no; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 STRIP=$ac_cv_prog_STRIP
2478 if test -n "$STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2480 $as_echo "$STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 fi
2488 if test -z "$ac_cv_prog_STRIP"; then
2489 ac_ct_STRIP=$STRIP
2490 # Extract the first word of "strip", so it can be a program name with args.
2491 set dummy strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$ac_ct_STRIP"; then
2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_STRIP="strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518 if test -n "$ac_ct_STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2520 $as_echo "$ac_ct_STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526 if test "x$ac_ct_STRIP" = x; then
2527 STRIP=":"
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535 STRIP=$ac_ct_STRIP
2536 fi
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2546 if test -z "$MKDIR_P"; then
2547 if ${ac_cv_path_mkdir+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_prog in mkdir gmkdir; do
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2559 'mkdir (GNU coreutils) '* | \
2560 'mkdir (coreutils) '* | \
2561 'mkdir (fileutils) '4.1*)
2562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563 break 3;;
2564 esac
2565 done
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571
2572 test -d ./--version && rmdir ./--version
2573 if test "${ac_cv_path_mkdir+set}" = set; then
2574 MKDIR_P="$ac_cv_path_mkdir -p"
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for MKDIR_P within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 MKDIR_P="$ac_install_sh -d"
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584 $as_echo "$MKDIR_P" >&6; }
2585
2586 mkdir_p="$MKDIR_P"
2587 case $mkdir_p in
2588 [\\/$]* | ?:[\\/]*) ;;
2589 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2590 esac
2591
2592 for ac_prog in gawk mawk nawk awk
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_AWK+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$AWK"; then
2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_AWK="$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 AWK=$ac_cv_prog_AWK
2622 if test -n "$AWK"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624 $as_echo "$AWK" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 test -n "$AWK" && break
2632 done
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636 set x ${MAKE-make}
2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat >conftest.make <<\_ACEOF
2642 SHELL = /bin/sh
2643 all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645 _ACEOF
2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652 esac
2653 rm -f conftest.make
2654 fi
2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 SET_MAKE=
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663 fi
2664
2665 rm -rf .tst 2>/dev/null
2666 mkdir .tst 2>/dev/null
2667 if test -d .tst; then
2668 am__leading_dot=.
2669 else
2670 am__leading_dot=_
2671 fi
2672 rmdir .tst 2>/dev/null
2673
2674 # Check whether --enable-silent-rules was given.
2675 if test "${enable_silent_rules+set}" = set; then :
2676 enableval=$enable_silent_rules;
2677 fi
2678
2679 case $enable_silent_rules in
2680 yes) AM_DEFAULT_VERBOSITY=0;;
2681 no) AM_DEFAULT_VERBOSITY=1;;
2682 *) AM_DEFAULT_VERBOSITY=1;;
2683 esac
2684 am_make=${MAKE-make}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2686 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2687 if ${am_cv_make_support_nested_variables+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if $as_echo 'TRUE=$(BAR$(V))
2691 BAR0=false
2692 BAR1=true
2693 V=1
2694 am__doit:
2695 @$(TRUE)
2696 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2697 am_cv_make_support_nested_variables=yes
2698 else
2699 am_cv_make_support_nested_variables=no
2700 fi
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2703 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2704 if test $am_cv_make_support_nested_variables = yes; then
2705 AM_V='$(V)'
2706 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2707 else
2708 AM_V=$AM_DEFAULT_VERBOSITY
2709 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2710 fi
2711 AM_BACKSLASH='\'
2712
2713 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2715 # is not polluted with repeated "-I."
2716 am__isrc=' -I$(srcdir)'
2717 # test to see if srcdir already configured
2718 if test -f $srcdir/config.status; then
2719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2720 fi
2721 fi
2722
2723 # test whether we have cygpath
2724 if test -z "$CYGPATH_W"; then
2725 if (cygpath --version) >/dev/null 2>/dev/null; then
2726 CYGPATH_W='cygpath -w'
2727 else
2728 CYGPATH_W=echo
2729 fi
2730 fi
2731
2732
2733 # Define the identity of the package.
2734 PACKAGE='libatasmart'
2735 VERSION='0.19'
2736
2737
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE "$PACKAGE"
2740 _ACEOF
2741
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define VERSION "$VERSION"
2745 _ACEOF
2746
2747 # Some tools Automake needs.
2748
2749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763 # We need awk for the "check" target. The system "awk" is bad on
2764 # some platforms.
2765 # Always define AMTAR for backward compatibility. Yes, it's still used
2766 # in the wild :-( We should find a proper way to deprecate it ...
2767 AMTAR='$${TAR-tar}'
2768
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2771 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2772 # Loop over all known methods to create a tar archive until one works.
2773 _am_tools='gnutar pax cpio none'
2774 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2775 # Do not fold the above two line into one, because Tru64 sh and
2776 # Solaris sh will not grok spaces in the rhs of `-'.
2777 for _am_tool in $_am_tools
2778 do
2779 case $_am_tool in
2780 gnutar)
2781 for _am_tar in tar gnutar gtar;
2782 do
2783 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2784 ($_am_tar --version) >&5 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && break
2788 done
2789 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2790 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2791 am__untar="$_am_tar -xf -"
2792 ;;
2793 plaintar)
2794 # Must skip GNU tar: if it does not support --format= it doesn't create
2795 # ustar tarball either.
2796 (tar --version) >/dev/null 2>&1 && continue
2797 am__tar='tar chf - "$$tardir"'
2798 am__tar_='tar chf - "$tardir"'
2799 am__untar='tar xf -'
2800 ;;
2801 pax)
2802 am__tar='pax -L -x pax -w "$$tardir"'
2803 am__tar_='pax -L -x pax -w "$tardir"'
2804 am__untar='pax -r'
2805 ;;
2806 cpio)
2807 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2808 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2809 am__untar='cpio -i -H pax -d'
2810 ;;
2811 none)
2812 am__tar=false
2813 am__tar_=false
2814 am__untar=false
2815 ;;
2816 esac
2817
2818 # If the value was cached, stop now. We just wanted to have am__tar
2819 # and am__untar set.
2820 test -n "${am_cv_prog_tar_pax}" && break
2821
2822 # tar/untar a dummy directory, and stop if the command works
2823 rm -rf conftest.dir
2824 mkdir conftest.dir
2825 echo GrepMe > conftest.dir/file
2826 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2827 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831 rm -rf conftest.dir
2832 if test -s conftest.tar; then
2833 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2834 ($am__untar <conftest.tar) >&5 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2839 fi
2840 done
2841 rm -rf conftest.dir
2842
2843 if ${am_cv_prog_tar_pax+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 am_cv_prog_tar_pax=$_am_tool
2847 fi
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2850 $as_echo "$am_cv_prog_tar_pax" >&6; }
2851
2852
2853
2854
2855
2856 # Check whether --enable-silent-rules was given.
2857 if test "${enable_silent_rules+set}" = set; then :
2858 enableval=$enable_silent_rules;
2859 fi
2860
2861 case $enable_silent_rules in
2862 yes) AM_DEFAULT_VERBOSITY=0;;
2863 no) AM_DEFAULT_VERBOSITY=1;;
2864 *) AM_DEFAULT_VERBOSITY=0;;
2865 esac
2866 am_make=${MAKE-make}
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2868 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2869 if ${am_cv_make_support_nested_variables+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if $as_echo 'TRUE=$(BAR$(V))
2873 BAR0=false
2874 BAR1=true
2875 V=1
2876 am__doit:
2877 @$(TRUE)
2878 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2879 am_cv_make_support_nested_variables=yes
2880 else
2881 am_cv_make_support_nested_variables=no
2882 fi
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2885 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2886 if test $am_cv_make_support_nested_variables = yes; then
2887 AM_V='$(V)'
2888 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2889 else
2890 AM_V=$AM_DEFAULT_VERBOSITY
2891 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2892 fi
2893 AM_BACKSLASH='\'
2894
2895
2896 LIBATASMART_VERSION_INFO=4:5:0
2897
2898
2899 if type -p stow > /dev/null && test -d /usr/local/stow ; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2901 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2902 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2903 fi
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948 fi
2949 if test -z "$ac_cv_prog_CC"; then
2950 ac_ct_CC=$CC
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2997 fi
2998 else
2999 CC="$ac_cv_prog_CC"
3000 fi
3001
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_CC="${ac_tool_prefix}cc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 fi
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 ac_prog_rejected=no
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3064 continue
3065 fi
3066 ac_cv_prog_CC="cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3077 shift
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3082 shift
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084 fi
3085 fi
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 fi
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3102 do
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$CC" && break
3141 done
3142 fi
3143 if test -z "$CC"; then
3144 ac_ct_CC=$CC
3145 for ac_prog in cl.exe
3146 do
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_ac_ct_CC="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 test -n "$ac_ct_CC" && break
3185 done
3186
3187 if test "x$ac_ct_CC" = x; then
3188 CC=""
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196 CC=$ac_ct_CC
3197 fi
3198 fi
3199
3200 fi
3201
3202
3203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "no acceptable C compiler found in \$PATH
3206 See \`config.log' for more details" "$LINENO" 5; }
3207
3208 # Provide some information about the compiler.
3209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 set X $ac_compile
3211 ac_compiler=$2
3212 for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221 ac_status=$?
3222 if test -s conftest.err; then
3223 sed '10a\
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err >conftest.er1
3226 cat conftest.er1 >&5
3227 fi
3228 rm -f conftest.er1 conftest.err
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 done
3232
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235
3236 int
3237 main ()
3238 {
3239
3240 ;
3241 return 0;
3242 }
3243 _ACEOF
3244 ac_clean_files_save=$ac_clean_files
3245 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3248 # of exeext.
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250 $as_echo_n "checking whether the C compiler works... " >&6; }
3251 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252
3253 # The possible output files:
3254 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255
3256 ac_rmfiles=
3257 for ac_file in $ac_files
3258 do
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3261 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 esac
3263 done
3264 rm -f $ac_rmfiles
3265
3266 if { { ac_try="$ac_link_default"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3278 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3279 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3280 # so that the user can short-circuit this test for compilers unknown to
3281 # Autoconf.
3282 for ac_file in $ac_files ''
3283 do
3284 test -f "$ac_file" || continue
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 ;;
3288 [ab].out )
3289 # We found the default executable, but exeext='' is most
3290 # certainly right.
3291 break;;
3292 *.* )
3293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3294 then :; else
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 fi
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3301 # actually working.
3302 break;;
3303 * )
3304 break;;
3305 esac
3306 done
3307 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308
3309 else
3310 ac_file=''
3311 fi
3312 if test -z "$ac_file"; then :
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error 77 "C compiler cannot create executables
3321 See \`config.log' for more details" "$LINENO" 5; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3327 $as_echo_n "checking for C compiler default output file name... " >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 ac_exeext=$ac_cv_exeext
3331
3332 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3333 ac_clean_files=$ac_clean_files_save
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3335 $as_echo_n "checking for suffix of executables... " >&6; }
3336 if { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3348 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3349 # work properly (i.e., refer to `conftest.exe'), while it won't with
3350 # `rm'.
3351 for ac_file in conftest.exe conftest conftest.*; do
3352 test -f "$ac_file" || continue
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 break;;
3357 * ) break;;
3358 esac
3359 done
3360 else
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3364 See \`config.log' for more details" "$LINENO" 5; }
3365 fi
3366 rm -f conftest conftest$ac_cv_exeext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3368 $as_echo "$ac_cv_exeext" >&6; }
3369
3370 rm -f conftest.$ac_ext
3371 EXEEXT=$ac_cv_exeext
3372 ac_exeext=$EXEEXT
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <stdio.h>
3376 int
3377 main ()
3378 {
3379 FILE *f = fopen ("conftest.out", "w");
3380 return ferror (f) || fclose (f) != 0;
3381
3382 ;
3383 return 0;
3384 }
3385 _ACEOF
3386 ac_clean_files="$ac_clean_files conftest.out"
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 $as_echo_n "checking whether we are cross compiling... " >&6; }
3391 if test "$cross_compiling" != yes; then
3392 { { ac_try="$ac_link"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3414 cross_compiling=no
3415 else
3416 if test "$cross_compiling" = maybe; then
3417 cross_compiling=yes
3418 else
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "cannot run C compiled programs.
3422 If you meant to cross compile, use \`--host'.
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 fi
3425 fi
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3429
3430 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3431 ac_clean_files=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3433 $as_echo_n "checking for suffix of object files... " >&6; }
3434 if ${ac_cv_objext+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.o conftest.obj
3449 if { { ac_try="$ac_compile"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compile") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 break;;
3466 esac
3467 done
3468 else
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot compute suffix of object files: cannot compile
3475 See \`config.log' for more details" "$LINENO" 5; }
3476 fi
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 fi
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3480 $as_echo "$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3482 ac_objext=$OBJEXT
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3484 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3485 if ${ac_cv_c_compiler_gnu+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494 #ifndef __GNUC__
3495 choke me
3496 #endif
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_compiler_gnu=yes
3504 else
3505 ac_compiler_gnu=no
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3513 if test $ac_compiler_gnu = yes; then
3514 GCC=yes
3515 else
3516 GCC=
3517 fi
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3522 if ${ac_cv_prog_cc_g+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3527 ac_cv_prog_cc_g=no
3528 CFLAGS="-g"
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531
3532 int
3533 main ()
3534 {
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_cv_prog_cc_g=yes
3542 else
3543 CFLAGS=""
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556
3557 else
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3562
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_g=yes
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 fi
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3582 $as_echo "$ac_cv_prog_cc_g" >&6; }
3583 if test "$ac_test_CFLAGS" = set; then
3584 CFLAGS=$ac_save_CFLAGS
3585 elif test $ac_cv_prog_cc_g = yes; then
3586 if test "$GCC" = yes; then
3587 CFLAGS="-g -O2"
3588 else
3589 CFLAGS="-g"
3590 fi
3591 else
3592 if test "$GCC" = yes; then
3593 CFLAGS="-O2"
3594 else
3595 CFLAGS=
3596 fi
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3599 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3600 if ${ac_cv_prog_cc_c89+:} false; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 ac_cv_prog_cc_c89=no
3604 ac_save_CC=$CC
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3607 #include <stdarg.h>
3608 #include <stdio.h>
3609 #include <sys/types.h>
3610 #include <sys/stat.h>
3611 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3612 struct buf { int x; };
3613 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614 static char *e (p, i)
3615 char **p;
3616 int i;
3617 {
3618 return p[i];
3619 }
3620 static char *f (char * (*g) (char **, int), char **p, ...)
3621 {
3622 char *s;
3623 va_list v;
3624 va_start (v,p);
3625 s = g (p, va_arg (v,int));
3626 va_end (v);
3627 return s;
3628 }
3629
3630 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3631 function prototypes and stuff, but not '\xHH' hex character constants.
3632 These don't provoke an error unfortunately, instead are silently treated
3633 as 'x'. The following induces an error, until -std is added to get
3634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3635 array size at least. It's necessary to write '\x00'==0 to get something
3636 that's true only with -std. */
3637 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638
3639 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3640 inside strings and character constants. */
3641 #define FOO(x) 'x'
3642 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643
3644 int test (int i, double x);
3645 struct s1 {int (*f) (int a);};
3646 struct s2 {int (*f) (double a);};
3647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648 int argc;
3649 char **argv;
3650 int
3651 main ()
3652 {
3653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 do
3661 CC="$ac_save_CC $ac_arg"
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_cv_prog_cc_c89=$ac_arg
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext
3666 test "x$ac_cv_prog_cc_c89" != "xno" && break
3667 done
3668 rm -f conftest.$ac_ext
3669 CC=$ac_save_CC
3670
3671 fi
3672 # AC_CACHE_VAL
3673 case "x$ac_cv_prog_cc_c89" in
3674 x)
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3676 $as_echo "none needed" >&6; } ;;
3677 xno)
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3679 $as_echo "unsupported" >&6; } ;;
3680 *)
3681 CC="$CC $ac_cv_prog_cc_c89"
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3684 esac
3685 if test "x$ac_cv_prog_cc_c89" != xno; then :
3686
3687 fi
3688
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 DEPDIR="${am__leading_dot}deps"
3695
3696 ac_config_commands="$ac_config_commands depfiles"
3697
3698
3699 am_make=${MAKE-make}
3700 cat > confinc << 'END'
3701 am__doit:
3702 @echo this is the am__doit target
3703 .PHONY: am__doit
3704 END
3705 # If we don't find an include directive, just comment out the code.
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3707 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3708 am__include="#"
3709 am__quote=
3710 _am_result=none
3711 # First try GNU make style include.
3712 echo "include confinc" > confmf
3713 # Ignore all kinds of additional output from `make'.
3714 case `$am_make -s -f confmf 2> /dev/null` in #(
3715 *the\ am__doit\ target*)
3716 am__include=include
3717 am__quote=
3718 _am_result=GNU
3719 ;;
3720 esac
3721 # Now try BSD make style include.
3722 if test "$am__include" = "#"; then
3723 echo '.include "confinc"' > confmf
3724 case `$am_make -s -f confmf 2> /dev/null` in #(
3725 *the\ am__doit\ target*)
3726 am__include=.include
3727 am__quote="\""
3728 _am_result=BSD
3729 ;;
3730 esac
3731 fi
3732
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3735 $as_echo "$_am_result" >&6; }
3736 rm -f confinc confmf
3737
3738 # Check whether --enable-dependency-tracking was given.
3739 if test "${enable_dependency_tracking+set}" = set; then :
3740 enableval=$enable_dependency_tracking;
3741 fi
3742
3743 if test "x$enable_dependency_tracking" != xno; then
3744 am_depcomp="$ac_aux_dir/depcomp"
3745 AMDEPBACKSLASH='\'
3746 am__nodep='_no'
3747 fi
3748 if test "x$enable_dependency_tracking" != xno; then
3749 AMDEP_TRUE=
3750 AMDEP_FALSE='#'
3751 else
3752 AMDEP_TRUE='#'
3753 AMDEP_FALSE=
3754 fi
3755
3756
3757
3758 depcc="$CC" am_compiler_list=
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761 $as_echo_n "checking dependency style of $depcc... " >&6; }
3762 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766 # We make a subdir and do the tests there. Otherwise we can end up
3767 # making bogus files that we don't know about and never remove. For
3768 # instance it was reported that on HP-UX the gcc test will end up
3769 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # in D'.
3771 rm -rf conftest.dir
3772 mkdir conftest.dir
3773 # Copy depcomp to subdir because otherwise we won't find it if we're
3774 # using a relative directory.
3775 cp "$am_depcomp" conftest.dir
3776 cd conftest.dir
3777 # We will build objects and dependencies in a subdirectory because
3778 # it helps to detect inapplicable dependency modes. For instance
3779 # both Tru64's cc and ICC support -MD to output dependencies as a
3780 # side effect of compilation, but ICC will put the dependencies in
3781 # the current directory while Tru64 will put them in the object
3782 # directory.
3783 mkdir sub
3784
3785 am_cv_CC_dependencies_compiler_type=none
3786 if test "$am_compiler_list" = ""; then
3787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3788 fi
3789 am__universal=false
3790 case " $depcc " in #(
3791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3792 esac
3793
3794 for depmode in $am_compiler_list; do
3795 # Setup a source with many dependencies, because some compilers
3796 # like to wrap large dependency lists on column 80 (with \), and
3797 # we should not choose a depcomp mode which is confused by this.
3798 #
3799 # We need to recreate these files for each test, as the compiler may
3800 # overwrite some of them when testing with obscure command lines.
3801 # This happens at least with the AIX C compiler.
3802 : > sub/conftest.c
3803 for i in 1 2 3 4 5 6; do
3804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3806 # Solaris 8's {/usr,}/bin/sh.
3807 touch sub/conftst$i.h
3808 done
3809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3810
3811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3812 # mode. It turns out that the SunPro C++ compiler does not properly
3813 # handle `-M -o', and we need to detect this. Also, some Intel
3814 # versions had trouble with output in subdirs
3815 am__obj=sub/conftest.${OBJEXT-o}
3816 am__minus_obj="-o $am__obj"
3817 case $depmode in
3818 gcc)
3819 # This depmode causes a compiler race in universal mode.
3820 test "$am__universal" = false || continue
3821 ;;
3822 nosideeffect)
3823 # after this tag, mechanisms are not by side-effect, so they'll
3824 # only be used when explicitly requested
3825 if test "x$enable_dependency_tracking" = xyes; then
3826 continue
3827 else
3828 break
3829 fi
3830 ;;
3831 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3832 # This compiler won't grok `-c -o', but also, the minuso test has
3833 # not run yet. These depmodes are late enough in the game, and
3834 # so weak that their functioning should not be impacted.
3835 am__obj=conftest.${OBJEXT-o}
3836 am__minus_obj=
3837 ;;
3838 none) break ;;
3839 esac
3840 if depmode=$depmode \
3841 source=sub/conftest.c object=$am__obj \
3842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3844 >/dev/null 2>conftest.err &&
3845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3849 # icc doesn't choke on unknown options, it will just issue warnings
3850 # or remarks (even with -Werror). So we grep stderr for any message
3851 # that says an option was ignored or not supported.
3852 # When given -MP, icc 7.0 and 7.1 complain thusly:
3853 # icc: Command line warning: ignoring option '-M'; no argument required
3854 # The diagnosis changed in icc 8.0:
3855 # icc: Command line remark: option '-MP' not supported
3856 if (grep 'ignoring option' conftest.err ||
3857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3858 am_cv_CC_dependencies_compiler_type=$depmode
3859 break
3860 fi
3861 fi
3862 done
3863
3864 cd ..
3865 rm -rf conftest.dir
3866 else
3867 am_cv_CC_dependencies_compiler_type=none
3868 fi
3869
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3874
3875 if
3876 test "x$enable_dependency_tracking" != xno \
3877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3878 am__fastdepCC_TRUE=
3879 am__fastdepCC_FALSE='#'
3880 else
3881 am__fastdepCC_TRUE='#'
3882 am__fastdepCC_FALSE=
3883 fi
3884
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3887 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3888 if ${ac_cv_prog_cc_c99+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 ac_cv_prog_cc_c99=no
3892 ac_save_CC=$CC
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <stdarg.h>
3896 #include <stdbool.h>
3897 #include <stdlib.h>
3898 #include <wchar.h>
3899 #include <stdio.h>
3900
3901 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3902 #define debug(...) fprintf (stderr, __VA_ARGS__)
3903 #define showlist(...) puts (#__VA_ARGS__)
3904 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3905 static void
3906 test_varargs_macros (void)
3907 {
3908 int x = 1234;
3909 int y = 5678;
3910 debug ("Flag");
3911 debug ("X = %d\n", x);
3912 showlist (The first, second, and third items.);
3913 report (x>y, "x is %d but y is %d", x, y);
3914 }
3915
3916 // Check long long types.
3917 #define BIG64 18446744073709551615ull
3918 #define BIG32 4294967295ul
3919 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3920 #if !BIG_OK
3921 your preprocessor is broken;
3922 #endif
3923 #if BIG_OK
3924 #else
3925 your preprocessor is broken;
3926 #endif
3927 static long long int bignum = -9223372036854775807LL;
3928 static unsigned long long int ubignum = BIG64;
3929
3930 struct incomplete_array
3931 {
3932 int datasize;
3933 double data[];
3934 };
3935
3936 struct named_init {
3937 int number;
3938 const wchar_t *name;
3939 double average;
3940 };
3941
3942 typedef const char *ccp;
3943
3944 static inline int
3945 test_restrict (ccp restrict text)
3946 {
3947 // See if C++-style comments work.
3948 // Iterate through items via the restricted pointer.
3949 // Also check for declarations in for loops.
3950 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3951 continue;
3952 return 0;
3953 }
3954
3955 // Check varargs and va_copy.
3956 static void
3957 test_varargs (const char *format, ...)
3958 {
3959 va_list args;
3960 va_start (args, format);
3961 va_list args_copy;
3962 va_copy (args_copy, args);
3963
3964 const char *str;
3965 int number;
3966 float fnumber;
3967
3968 while (*format)
3969 {
3970 switch (*format++)
3971 {
3972 case 's': // string
3973 str = va_arg (args_copy, const char *);
3974 break;
3975 case 'd': // int
3976 number = va_arg (args_copy, int);
3977 break;
3978 case 'f': // float
3979 fnumber = va_arg (args_copy, double);
3980 break;
3981 default:
3982 break;
3983 }
3984 }
3985 va_end (args_copy);
3986 va_end (args);
3987 }
3988
3989 int
3990 main ()
3991 {
3992
3993 // Check bool.
3994 _Bool success = false;
3995
3996 // Check restrict.
3997 if (test_restrict ("String literal") == 0)
3998 success = true;
3999 char *restrict newvar = "Another string";
4000
4001 // Check varargs.
4002 test_varargs ("s, d' f .", "string", 65, 34.234);
4003 test_varargs_macros ();
4004
4005 // Check flexible array members.
4006 struct incomplete_array *ia =
4007 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4008 ia->datasize = 10;
4009 for (int i = 0; i < ia->datasize; ++i)
4010 ia->data[i] = i * 1.234;
4011
4012 // Check named initializers.
4013 struct named_init ni = {
4014 .number = 34,
4015 .name = L"Test wide string",
4016 .average = 543.34343,
4017 };
4018
4019 ni.number = 58;
4020
4021 int dynamic_array[ni.number];
4022 dynamic_array[ni.number - 1] = 543;
4023
4024 // work around unused variable warnings
4025 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4026 || dynamic_array[ni.number - 1] != 543);
4027
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4033 do
4034 CC="$ac_save_CC $ac_arg"
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_c99=$ac_arg
4037 fi
4038 rm -f core conftest.err conftest.$ac_objext
4039 test "x$ac_cv_prog_cc_c99" != "xno" && break
4040 done
4041 rm -f conftest.$ac_ext
4042 CC=$ac_save_CC
4043
4044 fi
4045 # AC_CACHE_VAL
4046 case "x$ac_cv_prog_cc_c99" in
4047 x)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4049 $as_echo "none needed" >&6; } ;;
4050 xno)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4052 $as_echo "unsupported" >&6; } ;;
4053 *)
4054 CC="$CC $ac_cv_prog_cc_c99"
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4056 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4057 esac
4058 if test "x$ac_cv_prog_cc_c99" != xno; then :
4059
4060 fi
4061
4062
4063 if test "x$CC" != xcc; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4065 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4068 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4069 fi
4070 set dummy $CC; ac_cc=`$as_echo "$2" |
4071 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4072 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077
4078 int
4079 main ()
4080 {
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 # Make sure it works both with $CC and with simple cc.
4087 # We do the test twice because some compilers refuse to overwrite an
4088 # existing .o file with -o, though they will create one.
4089 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4090 rm -f conftest2.*
4091 if { { case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; } &&
4101 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_try") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; };
4111 then
4112 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4113 if test "x$CC" != xcc; then
4114 # Test first that cc exists at all.
4115 if { ac_try='cc -c conftest.$ac_ext >&5'
4116 { { case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_try") 2>&5
4123 ac_status=$?
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; }; then
4126 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4127 rm -f conftest2.*
4128 if { { case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 $as_echo "$ac_try_echo"; } >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; } &&
4138 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; };
4148 then
4149 # cc works too.
4150 :
4151 else
4152 # cc exists but doesn't like -o.
4153 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4154 fi
4155 fi
4156 fi
4157 else
4158 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4159 fi
4160 rm -f core conftest*
4161
4162 fi
4163 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169
4170 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4171
4172 fi
4173
4174 # FIXME: we rely on the cache variable name because
4175 # there is no other way.
4176 set dummy $CC
4177 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4178 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4179 if test "$am_t" != yes; then
4180 # Losing compiler, so override with the script.
4181 # FIXME: It is wrong to rewrite CC.
4182 # But if we don't then we get into trouble of one sort or another.
4183 # A longer-term fix would be to have automake use am__CC in this case,
4184 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4185 CC="$am_aux_dir/compile $CC"
4186 fi
4187
4188
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4196 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4199 CPP=
4200 fi
4201 if test -z "$CPP"; then
4202 if ${ac_cv_prog_CPP+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 # Double quotes because CPP needs to be expanded
4206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4207 do
4208 ac_preproc_ok=false
4209 for ac_c_preproc_warn_flag in '' yes
4210 do
4211 # Use a header file that comes with gcc, so configuring glibc
4212 # with a fresh cross-compiler works.
4213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4214 # <limits.h> exists even on freestanding compilers.
4215 # On the NeXT, cc -E runs the code through the compiler's parser,
4216 # not just through cpp. "Syntax error" is here to catch this case.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #ifdef __STDC__
4220 # include <limits.h>
4221 #else
4222 # include <assert.h>
4223 #endif
4224 Syntax error
4225 _ACEOF
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4227
4228 else
4229 # Broken: fails on valid input.
4230 continue
4231 fi
4232 rm -f conftest.err conftest.i conftest.$ac_ext
4233
4234 # OK, works on sane cases. Now check whether nonexistent headers
4235 # can be detected and how.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <ac_nonexistent.h>
4239 _ACEOF
4240 if ac_fn_c_try_cpp "$LINENO"; then :
4241 # Broken: success on invalid input.
4242 continue
4243 else
4244 # Passes both tests.
4245 ac_preproc_ok=:
4246 break
4247 fi
4248 rm -f conftest.err conftest.i conftest.$ac_ext
4249
4250 done
4251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4252 rm -f conftest.i conftest.err conftest.$ac_ext
4253 if $ac_preproc_ok; then :
4254 break
4255 fi
4256
4257 done
4258 ac_cv_prog_CPP=$CPP
4259
4260 fi
4261 CPP=$ac_cv_prog_CPP
4262 else
4263 ac_cv_prog_CPP=$CPP
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4266 $as_echo "$CPP" >&6; }
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4269 do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286
4287 else
4288 # Broken: fails on valid input.
4289 continue
4290 fi
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297 #include <ac_nonexistent.h>
4298 _ACEOF
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4300 # Broken: success on invalid input.
4301 continue
4302 else
4303 # Passes both tests.
4304 ac_preproc_ok=:
4305 break
4306 fi
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.i conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then :
4313
4314 else
4315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4318 See \`config.log' for more details" "$LINENO" 5; }
4319 fi
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4329 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4330 if ${ac_cv_path_GREP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -z "$GREP"; then
4334 ac_path_GREP_found=false
4335 # Loop through the user's path and test for each of PROGNAME-LIST
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_prog in grep ggrep; do
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4344 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4345 # Check for GNU ac_path_GREP and select it if it is found.
4346 # Check for GNU $ac_path_GREP
4347 case `"$ac_path_GREP" --version 2>&1` in
4348 *GNU*)
4349 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350 *)
4351 ac_count=0
4352 $as_echo_n 0123456789 >"conftest.in"
4353 while :
4354 do
4355 cat "conftest.in" "conftest.in" >"conftest.tmp"
4356 mv "conftest.tmp" "conftest.in"
4357 cp "conftest.in" "conftest.nl"
4358 $as_echo 'GREP' >> "conftest.nl"
4359 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4361 as_fn_arith $ac_count + 1 && ac_count=$as_val
4362 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4363 # Best one so far, save it but keep looking for a better one
4364 ac_cv_path_GREP="$ac_path_GREP"
4365 ac_path_GREP_max=$ac_count
4366 fi
4367 # 10*(2^10) chars as input seems more than enough
4368 test $ac_count -gt 10 && break
4369 done
4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371 esac
4372
4373 $ac_path_GREP_found && break 3
4374 done
4375 done
4376 done
4377 IFS=$as_save_IFS
4378 if test -z "$ac_cv_path_GREP"; then
4379 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 fi
4381 else
4382 ac_cv_path_GREP=$GREP
4383 fi
4384
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4387 $as_echo "$ac_cv_path_GREP" >&6; }
4388 GREP="$ac_cv_path_GREP"
4389
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4392 $as_echo_n "checking for egrep... " >&6; }
4393 if ${ac_cv_path_EGREP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4397 then ac_cv_path_EGREP="$GREP -E"
4398 else
4399 if test -z "$EGREP"; then
4400 ac_path_EGREP_found=false
4401 # Loop through the user's path and test for each of PROGNAME-LIST
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_prog in egrep; do
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4410 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4411 # Check for GNU ac_path_EGREP and select it if it is found.
4412 # Check for GNU $ac_path_EGREP
4413 case `"$ac_path_EGREP" --version 2>&1` in
4414 *GNU*)
4415 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4416 *)
4417 ac_count=0
4418 $as_echo_n 0123456789 >"conftest.in"
4419 while :
4420 do
4421 cat "conftest.in" "conftest.in" >"conftest.tmp"
4422 mv "conftest.tmp" "conftest.in"
4423 cp "conftest.in" "conftest.nl"
4424 $as_echo 'EGREP' >> "conftest.nl"
4425 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4427 as_fn_arith $ac_count + 1 && ac_count=$as_val
4428 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4429 # Best one so far, save it but keep looking for a better one
4430 ac_cv_path_EGREP="$ac_path_EGREP"
4431 ac_path_EGREP_max=$ac_count
4432 fi
4433 # 10*(2^10) chars as input seems more than enough
4434 test $ac_count -gt 10 && break
4435 done
4436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 esac
4438
4439 $ac_path_EGREP_found && break 3
4440 done
4441 done
4442 done
4443 IFS=$as_save_IFS
4444 if test -z "$ac_cv_path_EGREP"; then
4445 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 fi
4447 else
4448 ac_cv_path_EGREP=$EGREP
4449 fi
4450
4451 fi
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4454 $as_echo "$ac_cv_path_EGREP" >&6; }
4455 EGREP="$ac_cv_path_EGREP"
4456
4457
4458 if test $ac_cv_c_compiler_gnu = yes; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4460 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4461 if ${ac_cv_prog_gcc_traditional+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 ac_pattern="Autoconf.*'x'"
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <sgtty.h>
4468 Autoconf TIOCGETP
4469 _ACEOF
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4472 ac_cv_prog_gcc_traditional=yes
4473 else
4474 ac_cv_prog_gcc_traditional=no
4475 fi
4476 rm -f conftest*
4477
4478
4479 if test $ac_cv_prog_gcc_traditional = no; then
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <termio.h>
4483 Autoconf TCGETA
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4487 ac_cv_prog_gcc_traditional=yes
4488 fi
4489 rm -f conftest*
4490
4491 fi
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4494 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4495 if test $ac_cv_prog_gcc_traditional = yes; then
4496 CC="$CC -traditional"
4497 fi
4498 fi
4499
4500
4501
4502
4503
4504
4505
4506
4507 if test -z "$CC_FOR_BUILD"; then
4508 if test "x$cross_compiling" = "xno"; then
4509 CC_FOR_BUILD=${CC}
4510 else
4511 for ac_prog in gcc cc
4512 do
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$CC_FOR_BUILD"; then
4521 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4541 if test -n "$CC_FOR_BUILD"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4543 $as_echo "$CC_FOR_BUILD" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550 test -n "$CC_FOR_BUILD" && break
4551 done
4552
4553 fi
4554 fi
4555
4556 if test "x${BUILD_CFLAGS+set}" != "xset" ; then
4557 if test "x$cross_compiling" = "xyes" ; then
4558 BUILD_CFLAGS=
4559 else
4560 BUILD_CFLAGS=${CFLAGS}
4561 fi
4562 fi
4563
4564 if test "x${BUILD_LDFLAGS+set}" != "xset" ; then
4565 if test "x$cross_compiling" = "xyes" ; then
4566 BUILD_LDFLAGS=
4567 else
4568 BUILD_LDFLAGS=${LDFLAGS}
4569 fi
4570 fi
4571
4572 if test "x$cross_compiling" = "xno"; then
4573 EXEEXT_FOR_BUILD='$(EXEEXT)'
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
4576 $as_echo_n "checking for build system executable suffix... " >&6; }
4577 if ${bfd_cv_build_exeext+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 rm -f conftest*
4581 echo 'int main () { return 0; }' > conftest.c
4582 bfd_cv_build_exeext=
4583 ${CC_FOR_BUILD} ${LDFLAGS} ${CFLAGS} -o conftest conftest.c 1>&5 2>&5
4584 for file in conftest.*; do
4585 case $file in
4586 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4587 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4588 esac
4589 done
4590 rm -f conftest*
4591 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
4594 $as_echo "$bfd_cv_build_exeext" >&6; }
4595 EXEEXT_FOR_BUILD=""
4596 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4597 fi
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4602 $as_echo_n "checking for ANSI C header files... " >&6; }
4603 if ${ac_cv_header_stdc+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608 #include <stdlib.h>
4609 #include <stdarg.h>
4610 #include <string.h>
4611 #include <float.h>
4612
4613 int
4614 main ()
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_header_stdc=yes
4623 else
4624 ac_cv_header_stdc=no
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #include <string.h>
4633
4634 _ACEOF
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 $EGREP "memchr" >/dev/null 2>&1; then :
4637
4638 else
4639 ac_cv_header_stdc=no
4640 fi
4641 rm -f conftest*
4642
4643 fi
4644
4645 if test $ac_cv_header_stdc = yes; then
4646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <stdlib.h>
4650
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "free" >/dev/null 2>&1; then :
4654
4655 else
4656 ac_cv_header_stdc=no
4657 fi
4658 rm -f conftest*
4659
4660 fi
4661
4662 if test $ac_cv_header_stdc = yes; then
4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664 if test "$cross_compiling" = yes; then :
4665 :
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #include <ctype.h>
4670 #include <stdlib.h>
4671 #if ((' ' & 0x0FF) == 0x020)
4672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674 #else
4675 # define ISLOWER(c) \
4676 (('a' <= (c) && (c) <= 'i') \
4677 || ('j' <= (c) && (c) <= 'r') \
4678 || ('s' <= (c) && (c) <= 'z'))
4679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4680 #endif
4681
4682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 int
4684 main ()
4685 {
4686 int i;
4687 for (i = 0; i < 256; i++)
4688 if (XOR (islower (i), ISLOWER (i))
4689 || toupper (i) != TOUPPER (i))
4690 return 2;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_c_try_run "$LINENO"; then :
4695
4696 else
4697 ac_cv_header_stdc=no
4698 fi
4699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4700 conftest.$ac_objext conftest.beam conftest.$ac_ext
4701 fi
4702
4703 fi
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4706 $as_echo "$ac_cv_header_stdc" >&6; }
4707 if test $ac_cv_header_stdc = yes; then
4708
4709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4710
4711 fi
4712
4713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4716 do :
4717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4719 "
4720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4721 cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729
4730
4731 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4732 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4733 MINIX=yes
4734 else
4735 MINIX=
4736 fi
4737
4738
4739 if test "$MINIX" = yes; then
4740
4741 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4742
4743
4744 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4745
4746
4747 $as_echo "#define _MINIX 1" >>confdefs.h
4748
4749 fi
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4753 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4754 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 # define __EXTENSIONS__ 1
4761 $ac_includes_default
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_safe_to_define___extensions__=yes
4772 else
4773 ac_cv_safe_to_define___extensions__=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4778 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4779 test $ac_cv_safe_to_define___extensions__ = yes &&
4780 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4781
4782 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4783
4784 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4785
4786 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4787
4788 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4789
4790
4791 # Check whether --enable-largefile was given.
4792 if test "${enable_largefile+set}" = set; then :
4793 enableval=$enable_largefile;
4794 fi
4795
4796 if test "$enable_largefile" != no; then
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4799 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4800 if ${ac_cv_sys_largefile_CC+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 ac_cv_sys_largefile_CC=no
4804 if test "$GCC" != yes; then
4805 ac_save_CC=$CC
4806 while :; do
4807 # IRIX 6.2 and later do not support large files by default,
4808 # so use the C compiler's -n32 option if that helps.
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #include <sys/types.h>
4812 /* Check that off_t can represent 2**63 - 1 correctly.
4813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4814 since some C++ compilers masquerading as C compilers
4815 incorrectly reject 9223372036854775807. */
4816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4818 && LARGE_OFF_T % 2147483647 == 1)
4819 ? 1 : -1];
4820 int
4821 main ()
4822 {
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 break
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext
4832 CC="$CC -n32"
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_sys_largefile_CC=' -n32'; break
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext
4837 break
4838 done
4839 CC=$ac_save_CC
4840 rm -f conftest.$ac_ext
4841 fi
4842 fi
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4844 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4845 if test "$ac_cv_sys_largefile_CC" != no; then
4846 CC=$CC$ac_cv_sys_largefile_CC
4847 fi
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4850 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4851 if ${ac_cv_sys_file_offset_bits+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 while :; do
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4865 ? 1 : -1];
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_cv_sys_file_offset_bits=no; break
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #define _FILE_OFFSET_BITS 64
4881 #include <sys/types.h>
4882 /* Check that off_t can represent 2**63 - 1 correctly.
4883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4884 since some C++ compilers masquerading as C compilers
4885 incorrectly reject 9223372036854775807. */
4886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4888 && LARGE_OFF_T % 2147483647 == 1)
4889 ? 1 : -1];
4890 int
4891 main ()
4892 {
4893
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_sys_file_offset_bits=64; break
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_cv_sys_file_offset_bits=unknown
4903 break
4904 done
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4907 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4908 case $ac_cv_sys_file_offset_bits in #(
4909 no | unknown) ;;
4910 *)
4911 cat >>confdefs.h <<_ACEOF
4912 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4913 _ACEOF
4914 ;;
4915 esac
4916 rm -rf conftest*
4917 if test $ac_cv_sys_file_offset_bits = unknown; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4919 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4920 if ${ac_cv_sys_large_files+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 while :; do
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <sys/types.h>
4927 /* Check that off_t can represent 2**63 - 1 correctly.
4928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929 since some C++ compilers masquerading as C compilers
4930 incorrectly reject 9223372036854775807. */
4931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933 && LARGE_OFF_T % 2147483647 == 1)
4934 ? 1 : -1];
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_sys_large_files=no; break
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #define _LARGE_FILES 1
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968 ac_cv_sys_large_files=1; break
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_cv_sys_large_files=unknown
4972 break
4973 done
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4976 $as_echo "$ac_cv_sys_large_files" >&6; }
4977 case $ac_cv_sys_large_files in #(
4978 no | unknown) ;;
4979 *)
4980 cat >>confdefs.h <<_ACEOF
4981 #define _LARGE_FILES $ac_cv_sys_large_files
4982 _ACEOF
4983 ;;
4984 esac
4985 rm -rf conftest*
4986 fi
4987 fi
4988
4989
4990
4991 for flag in \
4992 -pipe \
4993 -Wall \
4994 -W \
4995 -Wextra \
4996 -Winline \
4997 -Wvla \
4998 -Wundef \
4999 -Wformat=2 \
5000 -Wlogical-op \
5001 -Wsign-compare \
5002 -Wformat-security \
5003 -Wmissing-include-dirs \
5004 -Wformat-nonliteral \
5005 -Wold-style-definition \
5006 -Wpointer-arith \
5007 -Winit-self \
5008 -Wdeclaration-after-statement \
5009 -Wfloat-equal \
5010 -Wmissing-prototypes \
5011 -Wstrict-prototypes \
5012 -Wredundant-decls \
5013 -Wmissing-declarations \
5014 -Wmissing-noreturn \
5015 -Wshadow \
5016 -Wendif-labels \
5017 -Wcast-align \
5018 -Wstrict-aliasing=2 \
5019 -Wwrite-strings \
5020 -Wno-long-long \
5021 -Wno-overlength-strings \
5022 -Wno-unused-parameter \
5023 -Wno-missing-field-initializers \
5024 -Wno-unused-result \
5025 -Wunsafe-loop-optimizations \
5026 -Wpacked \
5027 -Werror=overflow \
5028 -Wp,-D_FORTIFY_SOURCE=2 \
5029 -ffast-math \
5030 -fno-common \
5031 -fdiagnostics-show-option \
5032 -fno-strict-aliasing \
5033 -ffunction-sections \
5034 -fdata-sections; do
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
5037 $as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
5038 if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 eval "cc_save_CFLAGS='${CFLAGS}'"
5042 eval "CFLAGS='$flag'"
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 int a = 0; int main(void) { return a; }
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'"
5049 else
5050 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'"
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 eval "CFLAGS='$cc_save_CFLAGS'"
5054 fi
5055 eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5057 $as_echo "$ac_res" >&6; }
5058
5059 if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then :
5060 eval "with_cflags='${with_cflags} $flag'"
5061 fi
5062
5063 done
5064
5065 WARNINGFLAGS=$with_cflags
5066
5067
5068
5069 for flag in \
5070 -Wl,--as-needed \
5071 -Wl,--gc-sections; do
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5
5074 $as_echo_n "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; }
5075 if { as_var=`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 eval "cc_save_LDFLAGS='${LDFLAGS}'"
5079 eval "LDFLAGS='$flag'"
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082 int a = 0; int main(void) { return a; }
5083 _ACEOF
5084 if ac_fn_c_try_compile "$LINENO"; then :
5085 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'"
5086 else
5087 eval "`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'"
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 eval "LDFLAGS='$cc_save_LDFLAGS'"
5091 fi
5092 eval ac_res=\$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh`
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5094 $as_echo "$ac_res" >&6; }
5095
5096 if eval test x$`$as_echo "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes; then :
5097 eval "with_ldflags='${with_ldflags} $flag'"
5098 fi
5099
5100 done
5101
5102 GCLDFLAGS=$with_ldflags
5103
5104
5105
5106
5107
5108
5109
5110
5111 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 case $PKG_CONFIG in
5121 [\\/]* | ?:[\\/]*)
5122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5123 ;;
5124 *)
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136 done
5137 done
5138 IFS=$as_save_IFS
5139
5140 ;;
5141 esac
5142 fi
5143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5144 if test -n "$PKG_CONFIG"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5146 $as_echo "$PKG_CONFIG" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 fi
5154 if test -z "$ac_cv_path_PKG_CONFIG"; then
5155 ac_pt_PKG_CONFIG=$PKG_CONFIG
5156 # Extract the first word of "pkg-config", so it can be a program name with args.
5157 set dummy pkg-config; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 case $ac_pt_PKG_CONFIG in
5164 [\\/]* | ?:[\\/]*)
5165 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5166 ;;
5167 *)
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 ;;
5184 esac
5185 fi
5186 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5187 if test -n "$ac_pt_PKG_CONFIG"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5189 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195 if test "x$ac_pt_PKG_CONFIG" = x; then
5196 PKG_CONFIG=""
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 PKG_CONFIG=$ac_pt_PKG_CONFIG
5205 fi
5206 else
5207 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5208 fi
5209
5210 fi
5211 if test -n "$PKG_CONFIG"; then
5212 _pkg_min_version=0.9.0
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5214 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5215 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 PKG_CONFIG=""
5222 fi
5223 fi
5224
5225 pkg_failed=no
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
5227 $as_echo_n "checking for LIBUDEV... " >&6; }
5228
5229 if test -n "$LIBUDEV_CFLAGS"; then
5230 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
5231 elif test -n "$PKG_CONFIG"; then
5232 if test -n "$PKG_CONFIG" && \
5233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
5234 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
5235 ac_status=$?
5236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5237 test $ac_status = 0; }; then
5238 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
5239 else
5240 pkg_failed=yes
5241 fi
5242 else
5243 pkg_failed=untried
5244 fi
5245 if test -n "$LIBUDEV_LIBS"; then
5246 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
5247 elif test -n "$PKG_CONFIG"; then
5248 if test -n "$PKG_CONFIG" && \
5249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
5250 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
5251 ac_status=$?
5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; }; then
5254 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
5255 else
5256 pkg_failed=yes
5257 fi
5258 else
5259 pkg_failed=untried
5260 fi
5261
5262
5263
5264 if test $pkg_failed = yes; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267
5268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5269 _pkg_short_errors_supported=yes
5270 else
5271 _pkg_short_errors_supported=no
5272 fi
5273 if test $_pkg_short_errors_supported = yes; then
5274 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
5275 else
5276 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
5277 fi
5278 # Put the nasty error message in config.log where it belongs
5279 echo "$LIBUDEV_PKG_ERRORS" >&5
5280
5281 as_fn_error $? "Package requirements (libudev >= 143) were not met:
5282
5283 $LIBUDEV_PKG_ERRORS
5284
5285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5286 installed software in a non-standard prefix.
5287
5288 Alternatively, you may set the environment variables LIBUDEV_CFLAGS
5289 and LIBUDEV_LIBS to avoid the need to call pkg-config.
5290 See the pkg-config man page for more details." "$LINENO" 5
5291
5292 elif test $pkg_failed = untried; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5297 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5298 is in your PATH or set the PKG_CONFIG environment variable to the full
5299 path to pkg-config.
5300
5301 Alternatively, you may set the environment variables LIBUDEV_CFLAGS
5302 and LIBUDEV_LIBS to avoid the need to call pkg-config.
5303 See the pkg-config man page for more details.
5304
5305 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5306 See \`config.log' for more details" "$LINENO" 5; }
5307
5308 else
5309 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
5310 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 $as_echo "yes" >&6; }
5313
5314 fi
5315
5316
5317 case `pwd` in
5318 *\ * | *\ *)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5320 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5321 esac
5322
5323
5324
5325 macro_version='2.4.2'
5326 macro_revision='1.3337'
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 ltmain="$ac_aux_dir/ltmain.sh"
5341
5342 # Make sure we can run config.sub.
5343 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5344 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5347 $as_echo_n "checking build system type... " >&6; }
5348 if ${ac_cv_build+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 ac_build_alias=$build_alias
5352 test "x$ac_build_alias" = x &&
5353 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5354 test "x$ac_build_alias" = x &&
5355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5356 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5358
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5361 $as_echo "$ac_cv_build" >&6; }
5362 case $ac_cv_build in
5363 *-*-*) ;;
5364 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5365 esac
5366 build=$ac_cv_build
5367 ac_save_IFS=$IFS; IFS='-'
5368 set x $ac_cv_build
5369 shift
5370 build_cpu=$1
5371 build_vendor=$2
5372 shift; shift
5373 # Remember, the first character of IFS is used to create $*,
5374 # except with old shells:
5375 build_os=$*
5376 IFS=$ac_save_IFS
5377 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5381 $as_echo_n "checking host system type... " >&6; }
5382 if ${ac_cv_host+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test "x$host_alias" = x; then
5386 ac_cv_host=$ac_cv_build
5387 else
5388 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5390 fi
5391
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5394 $as_echo "$ac_cv_host" >&6; }
5395 case $ac_cv_host in
5396 *-*-*) ;;
5397 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5398 esac
5399 host=$ac_cv_host
5400 ac_save_IFS=$IFS; IFS='-'
5401 set x $ac_cv_host
5402 shift
5403 host_cpu=$1
5404 host_vendor=$2
5405 shift; shift
5406 # Remember, the first character of IFS is used to create $*,
5407 # except with old shells:
5408 host_os=$*
5409 IFS=$ac_save_IFS
5410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5411
5412
5413 # Backslashify metacharacters that are still active within
5414 # double-quoted strings.
5415 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5416
5417 # Same as above, but do not quote variable references.
5418 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5419
5420 # Sed substitution to delay expansion of an escaped shell variable in a
5421 # double_quote_subst'ed string.
5422 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5423
5424 # Sed substitution to delay expansion of an escaped single quote.
5425 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5426
5427 # Sed substitution to avoid accidental globbing in evaled expressions
5428 no_glob_subst='s/\*/\\\*/g'
5429
5430 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5435 $as_echo_n "checking how to print strings... " >&6; }
5436 # Test print first, because it will be a builtin if present.
5437 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5438 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5439 ECHO='print -r --'
5440 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5441 ECHO='printf %s\n'
5442 else
5443 # Use this function as a fallback that always works.
5444 func_fallback_echo ()
5445 {
5446 eval 'cat <<_LTECHO_EOF
5447 $1
5448 _LTECHO_EOF'
5449 }
5450 ECHO='func_fallback_echo'
5451 fi
5452
5453 # func_echo_all arg...
5454 # Invoke $ECHO with all args, space-separated.
5455 func_echo_all ()
5456 {
5457 $ECHO ""
5458 }
5459
5460 case "$ECHO" in
5461 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5462 $as_echo "printf" >&6; } ;;
5463 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5464 $as_echo "print -r" >&6; } ;;
5465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5466 $as_echo "cat" >&6; } ;;
5467 esac
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5483 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5484 if ${ac_cv_path_SED+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5488 for ac_i in 1 2 3 4 5 6 7; do
5489 ac_script="$ac_script$as_nl$ac_script"
5490 done
5491 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5492 { ac_script=; unset ac_script;}
5493 if test -z "$SED"; then
5494 ac_path_SED_found=false
5495 # Loop through the user's path and test for each of PROGNAME-LIST
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_prog in sed gsed; do
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5504 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5505 # Check for GNU ac_path_SED and select it if it is found.
5506 # Check for GNU $ac_path_SED
5507 case `"$ac_path_SED" --version 2>&1` in
5508 *GNU*)
5509 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5510 *)
5511 ac_count=0
5512 $as_echo_n 0123456789 >"conftest.in"
5513 while :
5514 do
5515 cat "conftest.in" "conftest.in" >"conftest.tmp"
5516 mv "conftest.tmp" "conftest.in"
5517 cp "conftest.in" "conftest.nl"
5518 $as_echo '' >> "conftest.nl"
5519 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5521 as_fn_arith $ac_count + 1 && ac_count=$as_val
5522 if test $ac_count -gt ${ac_path_SED_max-0}; then
5523 # Best one so far, save it but keep looking for a better one
5524 ac_cv_path_SED="$ac_path_SED"
5525 ac_path_SED_max=$ac_count
5526 fi
5527 # 10*(2^10) chars as input seems more than enough
5528 test $ac_count -gt 10 && break
5529 done
5530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5531 esac
5532
5533 $ac_path_SED_found && break 3
5534 done
5535 done
5536 done
5537 IFS=$as_save_IFS
5538 if test -z "$ac_cv_path_SED"; then
5539 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5540 fi
5541 else
5542 ac_cv_path_SED=$SED
5543 fi
5544
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5547 $as_echo "$ac_cv_path_SED" >&6; }
5548 SED="$ac_cv_path_SED"
5549 rm -f conftest.sed
5550
5551 test -z "$SED" && SED=sed
5552 Xsed="$SED -e 1s/^X//"
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5565 $as_echo_n "checking for fgrep... " >&6; }
5566 if ${ac_cv_path_FGREP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5570 then ac_cv_path_FGREP="$GREP -F"
5571 else
5572 if test -z "$FGREP"; then
5573 ac_path_FGREP_found=false
5574 # Loop through the user's path and test for each of PROGNAME-LIST
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_prog in fgrep; do
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5583 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5584 # Check for GNU ac_path_FGREP and select it if it is found.
5585 # Check for GNU $ac_path_FGREP
5586 case `"$ac_path_FGREP" --version 2>&1` in
5587 *GNU*)
5588 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5589 *)
5590 ac_count=0
5591 $as_echo_n 0123456789 >"conftest.in"
5592 while :
5593 do
5594 cat "conftest.in" "conftest.in" >"conftest.tmp"
5595 mv "conftest.tmp" "conftest.in"
5596 cp "conftest.in" "conftest.nl"
5597 $as_echo 'FGREP' >> "conftest.nl"
5598 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5600 as_fn_arith $ac_count + 1 && ac_count=$as_val
5601 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5602 # Best one so far, save it but keep looking for a better one
5603 ac_cv_path_FGREP="$ac_path_FGREP"
5604 ac_path_FGREP_max=$ac_count
5605 fi
5606 # 10*(2^10) chars as input seems more than enough
5607 test $ac_count -gt 10 && break
5608 done
5609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5610 esac
5611
5612 $ac_path_FGREP_found && break 3
5613 done
5614 done
5615 done
5616 IFS=$as_save_IFS
5617 if test -z "$ac_cv_path_FGREP"; then
5618 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5619 fi
5620 else
5621 ac_cv_path_FGREP=$FGREP
5622 fi
5623
5624 fi
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5627 $as_echo "$ac_cv_path_FGREP" >&6; }
5628 FGREP="$ac_cv_path_FGREP"
5629
5630
5631 test -z "$GREP" && GREP=grep
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651 # Check whether --with-gnu-ld was given.
5652 if test "${with_gnu_ld+set}" = set; then :
5653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5654 else
5655 with_gnu_ld=no
5656 fi
5657
5658 ac_prog=ld
5659 if test "$GCC" = yes; then
5660 # Check if gcc -print-prog-name=ld gives a path.
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5662 $as_echo_n "checking for ld used by $CC... " >&6; }
5663 case $host in
5664 *-*-mingw*)
5665 # gcc leaves a trailing carriage return which upsets mingw
5666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5667 *)
5668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5669 esac
5670 case $ac_prog in
5671 # Accept absolute paths.
5672 [\\/]* | ?:[\\/]*)
5673 re_direlt='/[^/][^/]*/\.\./'
5674 # Canonicalize the pathname of ld
5675 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5676 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5677 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5678 done
5679 test -z "$LD" && LD="$ac_prog"
5680 ;;
5681 "")
5682 # If it fails, then pretend we aren't using GCC.
5683 ac_prog=ld
5684 ;;
5685 *)
5686 # If it is relative, then search for the first ld in PATH.
5687 with_gnu_ld=unknown
5688 ;;
5689 esac
5690 elif test "$with_gnu_ld" = yes; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5692 $as_echo_n "checking for GNU ld... " >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5695 $as_echo_n "checking for non-GNU ld... " >&6; }
5696 fi
5697 if ${lt_cv_path_LD+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -z "$LD"; then
5701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5702 for ac_dir in $PATH; do
5703 IFS="$lt_save_ifs"
5704 test -z "$ac_dir" && ac_dir=.
5705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5706 lt_cv_path_LD="$ac_dir/$ac_prog"
5707 # Check to see if the program is GNU ld. I'd rather use --version,
5708 # but apparently some variants of GNU ld only accept -v.
5709 # Break only if it was the GNU/non-GNU ld that we prefer.
5710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5711 *GNU* | *'with BFD'*)
5712 test "$with_gnu_ld" != no && break
5713 ;;
5714 *)
5715 test "$with_gnu_ld" != yes && break
5716 ;;
5717 esac
5718 fi
5719 done
5720 IFS="$lt_save_ifs"
5721 else
5722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5723 fi
5724 fi
5725
5726 LD="$lt_cv_path_LD"
5727 if test -n "$LD"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5729 $as_echo "$LD" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5736 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5737 if ${lt_cv_prog_gnu_ld+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5741 case `$LD -v 2>&1 </dev/null` in
5742 *GNU* | *'with BFD'*)
5743 lt_cv_prog_gnu_ld=yes
5744 ;;
5745 *)
5746 lt_cv_prog_gnu_ld=no
5747 ;;
5748 esac
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5751 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5752 with_gnu_ld=$lt_cv_prog_gnu_ld
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5763 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5764 if ${lt_cv_path_NM+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$NM"; then
5768 # Let the user override the test.
5769 lt_cv_path_NM="$NM"
5770 else
5771 lt_nm_to_check="${ac_tool_prefix}nm"
5772 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5773 lt_nm_to_check="$lt_nm_to_check nm"
5774 fi
5775 for lt_tmp_nm in $lt_nm_to_check; do
5776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5777 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5778 IFS="$lt_save_ifs"
5779 test -z "$ac_dir" && ac_dir=.
5780 tmp_nm="$ac_dir/$lt_tmp_nm"
5781 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5782 # Check to see if the nm accepts a BSD-compat flag.
5783 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5784 # nm: unknown option "B" ignored
5785 # Tru64's nm complains that /dev/null is an invalid object file
5786 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5787 */dev/null* | *'Invalid file or object type'*)
5788 lt_cv_path_NM="$tmp_nm -B"
5789 break
5790 ;;
5791 *)
5792 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5793 */dev/null*)
5794 lt_cv_path_NM="$tmp_nm -p"
5795 break
5796 ;;
5797 *)
5798 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5799 continue # so that we can try to find one that supports BSD flags
5800 ;;
5801 esac
5802 ;;
5803 esac
5804 fi
5805 done
5806 IFS="$lt_save_ifs"
5807 done
5808 : ${lt_cv_path_NM=no}
5809 fi
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5812 $as_echo "$lt_cv_path_NM" >&6; }
5813 if test "$lt_cv_path_NM" != "no"; then
5814 NM="$lt_cv_path_NM"
5815 else
5816 # Didn't find any BSD compatible name lister, look for dumpbin.
5817 if test -n "$DUMPBIN"; then :
5818 # Let the user override the test.
5819 else
5820 if test -n "$ac_tool_prefix"; then
5821 for ac_prog in dumpbin "link -dump"
5822 do
5823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_DUMPBIN+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$DUMPBIN"; then
5831 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 DUMPBIN=$ac_cv_prog_DUMPBIN
5851 if test -n "$DUMPBIN"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5853 $as_echo "$DUMPBIN" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859
5860 test -n "$DUMPBIN" && break
5861 done
5862 fi
5863 if test -z "$DUMPBIN"; then
5864 ac_ct_DUMPBIN=$DUMPBIN
5865 for ac_prog in dumpbin "link -dump"
5866 do
5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
5868 set dummy $ac_prog; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -n "$ac_ct_DUMPBIN"; then
5875 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5895 if test -n "$ac_ct_DUMPBIN"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5897 $as_echo "$ac_ct_DUMPBIN" >&6; }
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903
5904 test -n "$ac_ct_DUMPBIN" && break
5905 done
5906
5907 if test "x$ac_ct_DUMPBIN" = x; then
5908 DUMPBIN=":"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911 yes:)
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914 ac_tool_warned=yes ;;
5915 esac
5916 DUMPBIN=$ac_ct_DUMPBIN
5917 fi
5918 fi
5919
5920 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5921 *COFF*)
5922 DUMPBIN="$DUMPBIN -symbols"
5923 ;;
5924 *)
5925 DUMPBIN=:
5926 ;;
5927 esac
5928 fi
5929
5930 if test "$DUMPBIN" != ":"; then
5931 NM="$DUMPBIN"
5932 fi
5933 fi
5934 test -z "$NM" && NM=nm
5935
5936
5937
5938
5939
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5942 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5943 if ${lt_cv_nm_interface+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 lt_cv_nm_interface="BSD nm"
5947 echo "int some_variable = 0;" > conftest.$ac_ext
5948 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5949 (eval "$ac_compile" 2>conftest.err)
5950 cat conftest.err >&5
5951 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5952 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5953 cat conftest.err >&5
5954 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5955 cat conftest.out >&5
5956 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5957 lt_cv_nm_interface="MS dumpbin"
5958 fi
5959 rm -f conftest*
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5962 $as_echo "$lt_cv_nm_interface" >&6; }
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5965 $as_echo_n "checking whether ln -s works... " >&6; }
5966 LN_S=$as_ln_s
5967 if test "$LN_S" = "ln -s"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5969 $as_echo "yes" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5972 $as_echo "no, using $LN_S" >&6; }
5973 fi
5974
5975 # find the maximum length of command line arguments
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5978 if ${lt_cv_sys_max_cmd_len+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 i=0
5982 teststring="ABCD"
5983
5984 case $build_os in
5985 msdosdjgpp*)
5986 # On DJGPP, this test can blow up pretty badly due to problems in libc
5987 # (any single argument exceeding 2000 bytes causes a buffer overrun
5988 # during glob expansion). Even if it were fixed, the result of this
5989 # check would be larger than it should be.
5990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5991 ;;
5992
5993 gnu*)
5994 # Under GNU Hurd, this test is not required because there is
5995 # no limit to the length of command line arguments.
5996 # Libtool will interpret -1 as no limit whatsoever
5997 lt_cv_sys_max_cmd_len=-1;
5998 ;;
5999
6000 cygwin* | mingw* | cegcc*)
6001 # On Win9x/ME, this test blows up -- it succeeds, but takes
6002 # about 5 minutes as the teststring grows exponentially.
6003 # Worse, since 9x/ME are not pre-emptively multitasking,
6004 # you end up with a "frozen" computer, even though with patience
6005 # the test eventually succeeds (with a max line length of 256k).
6006 # Instead, let's just punt: use the minimum linelength reported by
6007 # all of the supported platforms: 8192 (on NT/2K/XP).
6008 lt_cv_sys_max_cmd_len=8192;
6009 ;;
6010
6011 mint*)
6012 # On MiNT this can take a long time and run out of memory.
6013 lt_cv_sys_max_cmd_len=8192;
6014 ;;
6015
6016 amigaos*)
6017 # On AmigaOS with pdksh, this test takes hours, literally.
6018 # So we just punt and use a minimum line length of 8192.
6019 lt_cv_sys_max_cmd_len=8192;
6020 ;;
6021
6022 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6023 # This has been around since 386BSD, at least. Likely further.
6024 if test -x /sbin/sysctl; then
6025 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6026 elif test -x /usr/sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6028 else
6029 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6030 fi
6031 # And add a safety zone
6032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034 ;;
6035
6036 interix*)
6037 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6038 lt_cv_sys_max_cmd_len=196608
6039 ;;
6040
6041 os2*)
6042 # The test takes a long time on OS/2.
6043 lt_cv_sys_max_cmd_len=8192
6044 ;;
6045
6046 osf*)
6047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049 # nice to cause kernel panics so lets avoid the loop below.
6050 # First set a reasonable default.
6051 lt_cv_sys_max_cmd_len=16384
6052 #
6053 if test -x /sbin/sysconfig; then
6054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056 esac
6057 fi
6058 ;;
6059 sco3.2v5*)
6060 lt_cv_sys_max_cmd_len=102400
6061 ;;
6062 sysv5* | sco5v6* | sysv4.2uw2*)
6063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064 if test -n "$kargmax"; then
6065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6066 else
6067 lt_cv_sys_max_cmd_len=32768
6068 fi
6069 ;;
6070 *)
6071 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072 if test -n "$lt_cv_sys_max_cmd_len"; then
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 else
6076 # Make teststring a little bigger before we do anything with it.
6077 # a 1K string should be a reasonable start.
6078 for i in 1 2 3 4 5 6 7 8 ; do
6079 teststring=$teststring$teststring
6080 done
6081 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6082 # If test is not a shell built-in, we'll probably end up computing a
6083 # maximum length that is only half of the actual maximum length, but
6084 # we can't tell.
6085 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6086 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6087 test $i != 17 # 1/2 MB should be enough
6088 do
6089 i=`expr $i + 1`
6090 teststring=$teststring$teststring
6091 done
6092 # Only check the string length outside the loop.
6093 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6094 teststring=
6095 # Add a significant safety factor because C++ compilers can tack on
6096 # massive amounts of additional arguments before passing them to the
6097 # linker. It appears as though 1/2 is a usable value.
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6099 fi
6100 ;;
6101 esac
6102
6103 fi
6104
6105 if test -n $lt_cv_sys_max_cmd_len ; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6107 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6110 $as_echo "none" >&6; }
6111 fi
6112 max_cmd_len=$lt_cv_sys_max_cmd_len
6113
6114
6115
6116
6117
6118
6119 : ${CP="cp -f"}
6120 : ${MV="mv -f"}
6121 : ${RM="rm -f"}
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6124 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6125 # Try some XSI features
6126 xsi_shell=no
6127 ( _lt_dummy="a/b/c"
6128 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6129 = c,a/b,b/c, \
6130 && eval 'test $(( 1 + 1 )) -eq 2 \
6131 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6132 && xsi_shell=yes
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6134 $as_echo "$xsi_shell" >&6; }
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6138 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6139 lt_shell_append=no
6140 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6141 >/dev/null 2>&1 \
6142 && lt_shell_append=yes
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6144 $as_echo "$lt_shell_append" >&6; }
6145
6146
6147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6148 lt_unset=unset
6149 else
6150 lt_unset=false
6151 fi
6152
6153
6154
6155
6156
6157 # test EBCDIC or ASCII
6158 case `echo X|tr X '\101'` in
6159 A) # ASCII based system
6160 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6161 lt_SP2NL='tr \040 \012'
6162 lt_NL2SP='tr \015\012 \040\040'
6163 ;;
6164 *) # EBCDIC based system
6165 lt_SP2NL='tr \100 \n'
6166 lt_NL2SP='tr \r\n \100\100'
6167 ;;
6168 esac
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6179 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6180 if ${lt_cv_to_host_file_cmd+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 case $host in
6184 *-*-mingw* )
6185 case $build in
6186 *-*-mingw* ) # actually msys
6187 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6188 ;;
6189 *-*-cygwin* )
6190 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6191 ;;
6192 * ) # otherwise, assume *nix
6193 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6194 ;;
6195 esac
6196 ;;
6197 *-*-cygwin* )
6198 case $build in
6199 *-*-mingw* ) # actually msys
6200 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6201 ;;
6202 *-*-cygwin* )
6203 lt_cv_to_host_file_cmd=func_convert_file_noop
6204 ;;
6205 * ) # otherwise, assume *nix
6206 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6207 ;;
6208 esac
6209 ;;
6210 * ) # unhandled hosts (and "normal" native builds)
6211 lt_cv_to_host_file_cmd=func_convert_file_noop
6212 ;;
6213 esac
6214
6215 fi
6216
6217 to_host_file_cmd=$lt_cv_to_host_file_cmd
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6219 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6220
6221
6222
6223
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6226 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6227 if ${lt_cv_to_tool_file_cmd+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 #assume ordinary cross tools, or native build.
6231 lt_cv_to_tool_file_cmd=func_convert_file_noop
6232 case $host in
6233 *-*-mingw* )
6234 case $build in
6235 *-*-mingw* ) # actually msys
6236 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6237 ;;
6238 esac
6239 ;;
6240 esac
6241
6242 fi
6243
6244 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6246 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6247
6248
6249
6250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6253 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6254 if ${lt_cv_ld_reload_flag+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 lt_cv_ld_reload_flag='-r'
6258 fi
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6260 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6261 reload_flag=$lt_cv_ld_reload_flag
6262 case $reload_flag in
6263 "" | " "*) ;;
6264 *) reload_flag=" $reload_flag" ;;
6265 esac
6266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6267 case $host_os in
6268 cygwin* | mingw* | pw32* | cegcc*)
6269 if test "$GCC" != yes; then
6270 reload_cmds=false
6271 fi
6272 ;;
6273 darwin*)
6274 if test "$GCC" = yes; then
6275 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6276 else
6277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6278 fi
6279 ;;
6280 esac
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_OBJDUMP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$OBJDUMP"; then
6299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 OBJDUMP=$ac_cv_prog_OBJDUMP
6319 if test -n "$OBJDUMP"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6321 $as_echo "$OBJDUMP" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 fi
6329 if test -z "$ac_cv_prog_OBJDUMP"; then
6330 ac_ct_OBJDUMP=$OBJDUMP
6331 # Extract the first word of "objdump", so it can be a program name with args.
6332 set dummy objdump; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$ac_ct_OBJDUMP"; then
6339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6359 if test -n "$ac_ct_OBJDUMP"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6361 $as_echo "$ac_ct_OBJDUMP" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367 if test "x$ac_ct_OBJDUMP" = x; then
6368 OBJDUMP="false"
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376 OBJDUMP=$ac_ct_OBJDUMP
6377 fi
6378 else
6379 OBJDUMP="$ac_cv_prog_OBJDUMP"
6380 fi
6381
6382 test -z "$OBJDUMP" && OBJDUMP=objdump
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6393 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6394 if ${lt_cv_deplibs_check_method+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 lt_cv_file_magic_cmd='$MAGIC_CMD'
6398 lt_cv_file_magic_test_file=
6399 lt_cv_deplibs_check_method='unknown'
6400 # Need to set the preceding variable on all platforms that support
6401 # interlibrary dependencies.
6402 # 'none' -- dependencies not supported.
6403 # `unknown' -- same as none, but documents that we really don't know.
6404 # 'pass_all' -- all dependencies passed with no checks.
6405 # 'test_compile' -- check by making test program.
6406 # 'file_magic [[regex]]' -- check by looking for files in library path
6407 # which responds to the $file_magic_cmd with a given extended regex.
6408 # If you have `file' or equivalent on your system and you're not sure
6409 # whether `pass_all' will *always* work, you probably want this one.
6410
6411 case $host_os in
6412 aix[4-9]*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 beos*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420 bsdi[45]*)
6421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6422 lt_cv_file_magic_cmd='/usr/bin/file -L'
6423 lt_cv_file_magic_test_file=/shlib/libc.so
6424 ;;
6425
6426 cygwin*)
6427 # func_win32_libid is a shell function defined in ltmain.sh
6428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6429 lt_cv_file_magic_cmd='func_win32_libid'
6430 ;;
6431
6432 mingw* | pw32*)
6433 # Base MSYS/MinGW do not provide the 'file' command needed by
6434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6435 # unless we find 'file', for example because we are cross-compiling.
6436 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6437 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6439 lt_cv_file_magic_cmd='func_win32_libid'
6440 else
6441 # Keep this pattern in sync with the one in func_win32_libid.
6442 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6443 lt_cv_file_magic_cmd='$OBJDUMP -f'
6444 fi
6445 ;;
6446
6447 cegcc*)
6448 # use the weaker test based on 'objdump'. See mingw*.
6449 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6450 lt_cv_file_magic_cmd='$OBJDUMP -f'
6451 ;;
6452
6453 darwin* | rhapsody*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457 freebsd* | dragonfly*)
6458 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6459 case $host_cpu in
6460 i*86 )
6461 # Not sure whether the presence of OpenBSD here was a mistake.
6462 # Let's accept both of them until this is cleared up.
6463 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6464 lt_cv_file_magic_cmd=/usr/bin/file
6465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6466 ;;
6467 esac
6468 else
6469 lt_cv_deplibs_check_method=pass_all
6470 fi
6471 ;;
6472
6473 gnu*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 haiku*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 hpux10.20* | hpux11*)
6482 lt_cv_file_magic_cmd=/usr/bin/file
6483 case $host_cpu in
6484 ia64*)
6485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6486 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6487 ;;
6488 hppa*64*)
6489 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]'
6490 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6491 ;;
6492 *)
6493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6494 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6495 ;;
6496 esac
6497 ;;
6498
6499 interix[3-9]*)
6500 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6502 ;;
6503
6504 irix5* | irix6* | nonstopux*)
6505 case $LD in
6506 *-32|*"-32 ") libmagic=32-bit;;
6507 *-n32|*"-n32 ") libmagic=N32;;
6508 *-64|*"-64 ") libmagic=64-bit;;
6509 *) libmagic=never-match;;
6510 esac
6511 lt_cv_deplibs_check_method=pass_all
6512 ;;
6513
6514 # This must be glibc/ELF.
6515 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519 netbsd*)
6520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6522 else
6523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6524 fi
6525 ;;
6526
6527 newos6*)
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6529 lt_cv_file_magic_cmd=/usr/bin/file
6530 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6531 ;;
6532
6533 *nto* | *qnx*)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536
6537 openbsd*)
6538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6540 else
6541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6542 fi
6543 ;;
6544
6545 osf3* | osf4* | osf5*)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548
6549 rdos*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 solaris*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 sysv4 | sysv4.3*)
6562 case $host_vendor in
6563 motorola)
6564 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]'
6565 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6566 ;;
6567 ncr)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570 sequent)
6571 lt_cv_file_magic_cmd='/bin/file'
6572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6573 ;;
6574 sni)
6575 lt_cv_file_magic_cmd='/bin/file'
6576 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6577 lt_cv_file_magic_test_file=/lib/libc.so
6578 ;;
6579 siemens)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582 pc)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
6585 esac
6586 ;;
6587
6588 tpf*)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591 esac
6592
6593 fi
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6595 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6596
6597 file_magic_glob=
6598 want_nocaseglob=no
6599 if test "$build" = "$host"; then
6600 case $host_os in
6601 mingw* | pw32*)
6602 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6603 want_nocaseglob=yes
6604 else
6605 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6606 fi
6607 ;;
6608 esac
6609 fi
6610
6611 file_magic_cmd=$lt_cv_file_magic_cmd
6612 deplibs_check_method=$lt_cv_deplibs_check_method
6613 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_DLLTOOL+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$DLLTOOL"; then
6645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 DLLTOOL=$ac_cv_prog_DLLTOOL
6665 if test -n "$DLLTOOL"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6667 $as_echo "$DLLTOOL" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673
6674 fi
6675 if test -z "$ac_cv_prog_DLLTOOL"; then
6676 ac_ct_DLLTOOL=$DLLTOOL
6677 # Extract the first word of "dlltool", so it can be a program name with args.
6678 set dummy dlltool; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$ac_ct_DLLTOOL"; then
6685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6705 if test -n "$ac_ct_DLLTOOL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6707 $as_echo "$ac_ct_DLLTOOL" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713 if test "x$ac_ct_DLLTOOL" = x; then
6714 DLLTOOL="false"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 DLLTOOL=$ac_ct_DLLTOOL
6723 fi
6724 else
6725 DLLTOOL="$ac_cv_prog_DLLTOOL"
6726 fi
6727
6728 test -z "$DLLTOOL" && DLLTOOL=dlltool
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6740 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6741 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 lt_cv_sharedlib_from_linklib_cmd='unknown'
6745
6746 case $host_os in
6747 cygwin* | mingw* | pw32* | cegcc*)
6748 # two different shell functions defined in ltmain.sh
6749 # decide which to use based on capabilities of $DLLTOOL
6750 case `$DLLTOOL --help 2>&1` in
6751 *--identify-strict*)
6752 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6753 ;;
6754 *)
6755 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6756 ;;
6757 esac
6758 ;;
6759 *)
6760 # fallback: assume linklib IS sharedlib
6761 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6762 ;;
6763 esac
6764
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6767 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6768 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6769 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6770
6771
6772
6773
6774
6775
6776
6777 if test -n "$ac_tool_prefix"; then
6778 for ac_prog in ar
6779 do
6780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_AR+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$AR"; then
6788 ac_cv_prog_AR="$AR" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801 done
6802 done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 AR=$ac_cv_prog_AR
6808 if test -n "$AR"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6810 $as_echo "$AR" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816
6817 test -n "$AR" && break
6818 done
6819 fi
6820 if test -z "$AR"; then
6821 ac_ct_AR=$AR
6822 for ac_prog in ar
6823 do
6824 # Extract the first word of "$ac_prog", so it can be a program name with args.
6825 set dummy $ac_prog; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$ac_ct_AR"; then
6832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_AR="$ac_prog"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6852 if test -n "$ac_ct_AR"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6854 $as_echo "$ac_ct_AR" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860
6861 test -n "$ac_ct_AR" && break
6862 done
6863
6864 if test "x$ac_ct_AR" = x; then
6865 AR="false"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 AR=$ac_ct_AR
6874 fi
6875 fi
6876
6877 : ${AR=ar}
6878 : ${AR_FLAGS=cru}
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6891 $as_echo_n "checking for archiver @FILE support... " >&6; }
6892 if ${lt_cv_ar_at_file+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 lt_cv_ar_at_file=no
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898
6899 int
6900 main ()
6901 {
6902
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 echo conftest.$ac_objext > conftest.lst
6909 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6911 (eval $lt_ar_try) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }
6915 if test "$ac_status" -eq 0; then
6916 # Ensure the archiver fails upon bogus file names.
6917 rm -f conftest.$ac_objext libconftest.a
6918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6919 (eval $lt_ar_try) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }
6923 if test "$ac_status" -ne 0; then
6924 lt_cv_ar_at_file=@
6925 fi
6926 fi
6927 rm -f conftest.* libconftest.a
6928
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6934 $as_echo "$lt_cv_ar_at_file" >&6; }
6935
6936 if test "x$lt_cv_ar_at_file" = xno; then
6937 archiver_list_spec=
6938 else
6939 archiver_list_spec=$lt_cv_ar_at_file
6940 fi
6941
6942
6943
6944
6945
6946
6947
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}strip; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_STRIP+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$STRIP"; then
6957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 STRIP=$ac_cv_prog_STRIP
6977 if test -n "$STRIP"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6979 $as_echo "$STRIP" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_STRIP"; then
6988 ac_ct_STRIP=$STRIP
6989 # Extract the first word of "strip", so it can be a program name with args.
6990 set dummy strip; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_STRIP"; then
6997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_STRIP="strip"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7017 if test -n "$ac_ct_STRIP"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7019 $as_echo "$ac_ct_STRIP" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_STRIP" = x; then
7026 STRIP=":"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 STRIP=$ac_ct_STRIP
7035 fi
7036 else
7037 STRIP="$ac_cv_prog_STRIP"
7038 fi
7039
7040 test -z "$STRIP" && STRIP=:
7041
7042
7043
7044
7045
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_RANLIB+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$RANLIB"; then
7056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 RANLIB=$ac_cv_prog_RANLIB
7076 if test -n "$RANLIB"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7078 $as_echo "$RANLIB" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_RANLIB"; then
7087 ac_ct_RANLIB=$RANLIB
7088 # Extract the first word of "ranlib", so it can be a program name with args.
7089 set dummy ranlib; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_RANLIB"; then
7096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_prog_ac_ct_RANLIB="ranlib"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7116 if test -n "$ac_ct_RANLIB"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7118 $as_echo "$ac_ct_RANLIB" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_RANLIB" = x; then
7125 RANLIB=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 RANLIB=$ac_ct_RANLIB
7134 fi
7135 else
7136 RANLIB="$ac_cv_prog_RANLIB"
7137 fi
7138
7139 test -z "$RANLIB" && RANLIB=:
7140
7141
7142
7143
7144
7145
7146 # Determine commands to create old-style static archives.
7147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7148 old_postinstall_cmds='chmod 644 $oldlib'
7149 old_postuninstall_cmds=
7150
7151 if test -n "$RANLIB"; then
7152 case $host_os in
7153 openbsd*)
7154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7155 ;;
7156 *)
7157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7158 ;;
7159 esac
7160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7161 fi
7162
7163 case $host_os in
7164 darwin*)
7165 lock_old_archive_extraction=yes ;;
7166 *)
7167 lock_old_archive_extraction=no ;;
7168 esac
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208 # If no C compiler was specified, use CC.
7209 LTCC=${LTCC-"$CC"}
7210
7211 # If no C compiler flags were specified, use CFLAGS.
7212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7213
7214 # Allow CC to be a program name with arguments.
7215 compiler=$CC
7216
7217
7218 # Check for command to grab the raw symbol name followed by C symbol from nm.
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7220 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7221 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224
7225 # These are sane defaults that work on at least a few old systems.
7226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7227
7228 # Character class describing NM global symbol codes.
7229 symcode='[BCDEGRST]'
7230
7231 # Regexp to match symbols that can be accessed directly from C.
7232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7233
7234 # Define system-specific variables.
7235 case $host_os in
7236 aix*)
7237 symcode='[BCDT]'
7238 ;;
7239 cygwin* | mingw* | pw32* | cegcc*)
7240 symcode='[ABCDGISTW]'
7241 ;;
7242 hpux*)
7243 if test "$host_cpu" = ia64; then
7244 symcode='[ABCDEGRST]'
7245 fi
7246 ;;
7247 irix* | nonstopux*)
7248 symcode='[BCDEGRST]'
7249 ;;
7250 osf*)
7251 symcode='[BCDEGQRST]'
7252 ;;
7253 solaris*)
7254 symcode='[BDRT]'
7255 ;;
7256 sco3.2v5*)
7257 symcode='[DT]'
7258 ;;
7259 sysv4.2uw2*)
7260 symcode='[DT]'
7261 ;;
7262 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7263 symcode='[ABDT]'
7264 ;;
7265 sysv4)
7266 symcode='[DFNSTU]'
7267 ;;
7268 esac
7269
7270 # If we're using GNU nm, then use its standard symbol codes.
7271 case `$NM -V 2>&1` in
7272 *GNU* | *'with BFD'*)
7273 symcode='[ABCDGIRSTW]' ;;
7274 esac
7275
7276 # Transform an extracted symbol line into a proper C declaration.
7277 # Some systems (esp. on ia64) link data and code symbols differently,
7278 # so use this general approach.
7279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7280
7281 # Transform an extracted symbol line into symbol name and symbol address
7282 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7283 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'"
7284
7285 # Handle CRLF in mingw tool chain
7286 opt_cr=
7287 case $build_os in
7288 mingw*)
7289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7290 ;;
7291 esac
7292
7293 # Try without a prefix underscore, then with it.
7294 for ac_symprfx in "" "_"; do
7295
7296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7297 symxfrm="\\1 $ac_symprfx\\2 \\2"
7298
7299 # Write the raw and C identifiers.
7300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7301 # Fake it for dumpbin and say T for any non-static function
7302 # and D for any global variable.
7303 # Also find C++ and __fastcall symbols from MSVC++,
7304 # which start with @ or ?.
7305 lt_cv_sys_global_symbol_pipe="$AWK '"\
7306 " {last_section=section; section=\$ 3};"\
7307 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7308 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7309 " \$ 0!~/External *\|/{next};"\
7310 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7311 " {if(hide[section]) next};"\
7312 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7313 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7314 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7315 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7316 " ' prfx=^$ac_symprfx"
7317 else
7318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7319 fi
7320 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7321
7322 # Check to see that the pipe works correctly.
7323 pipe_works=no
7324
7325 rm -f conftest*
7326 cat > conftest.$ac_ext <<_LT_EOF
7327 #ifdef __cplusplus
7328 extern "C" {
7329 #endif
7330 char nm_test_var;
7331 void nm_test_func(void);
7332 void nm_test_func(void){}
7333 #ifdef __cplusplus
7334 }
7335 #endif
7336 int main(){nm_test_var='a';nm_test_func();return(0);}
7337 _LT_EOF
7338
7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340 (eval $ac_compile) 2>&5
7341 ac_status=$?
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; }; then
7344 # Now try to grab the symbols.
7345 nlist=conftest.nm
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7347 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7348 ac_status=$?
7349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; } && test -s "$nlist"; then
7351 # Try sorting and uniquifying the output.
7352 if sort "$nlist" | uniq > "$nlist"T; then
7353 mv -f "$nlist"T "$nlist"
7354 else
7355 rm -f "$nlist"T
7356 fi
7357
7358 # Make sure that we snagged all the symbols we need.
7359 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7360 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7361 cat <<_LT_EOF > conftest.$ac_ext
7362 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7363 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7364 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7365 relocations are performed -- see ld's documentation on pseudo-relocs. */
7366 # define LT_DLSYM_CONST
7367 #elif defined(__osf__)
7368 /* This system does not cope well with relocations in const data. */
7369 # define LT_DLSYM_CONST
7370 #else
7371 # define LT_DLSYM_CONST const
7372 #endif
7373
7374 #ifdef __cplusplus
7375 extern "C" {
7376 #endif
7377
7378 _LT_EOF
7379 # Now generate the symbol file.
7380 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7381
7382 cat <<_LT_EOF >> conftest.$ac_ext
7383
7384 /* The mapping between symbol names and symbols. */
7385 LT_DLSYM_CONST struct {
7386 const char *name;
7387 void *address;
7388 }
7389 lt__PROGRAM__LTX_preloaded_symbols[] =
7390 {
7391 { "@PROGRAM@", (void *) 0 },
7392 _LT_EOF
7393 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7394 cat <<\_LT_EOF >> conftest.$ac_ext
7395 {0, (void *) 0}
7396 };
7397
7398 /* This works around a problem in FreeBSD linker */
7399 #ifdef FREEBSD_WORKAROUND
7400 static const void *lt_preloaded_setup() {
7401 return lt__PROGRAM__LTX_preloaded_symbols;
7402 }
7403 #endif
7404
7405 #ifdef __cplusplus
7406 }
7407 #endif
7408 _LT_EOF
7409 # Now try linking the two files.
7410 mv conftest.$ac_objext conftstm.$ac_objext
7411 lt_globsym_save_LIBS=$LIBS
7412 lt_globsym_save_CFLAGS=$CFLAGS
7413 LIBS="conftstm.$ac_objext"
7414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7416 (eval $ac_link) 2>&5
7417 ac_status=$?
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7420 pipe_works=yes
7421 fi
7422 LIBS=$lt_globsym_save_LIBS
7423 CFLAGS=$lt_globsym_save_CFLAGS
7424 else
7425 echo "cannot find nm_test_func in $nlist" >&5
7426 fi
7427 else
7428 echo "cannot find nm_test_var in $nlist" >&5
7429 fi
7430 else
7431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7432 fi
7433 else
7434 echo "$progname: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 fi
7437 rm -rf conftest* conftst*
7438
7439 # Do not use the global_symbol_pipe unless it works.
7440 if test "$pipe_works" = yes; then
7441 break
7442 else
7443 lt_cv_sys_global_symbol_pipe=
7444 fi
7445 done
7446
7447 fi
7448
7449 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450 lt_cv_sys_global_symbol_to_cdecl=
7451 fi
7452 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7454 $as_echo "failed" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7457 $as_echo "ok" >&6; }
7458 fi
7459
7460 # Response file support.
7461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7462 nm_file_list_spec='@'
7463 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7464 nm_file_list_spec='@'
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7494 $as_echo_n "checking for sysroot... " >&6; }
7495
7496 # Check whether --with-sysroot was given.
7497 if test "${with_sysroot+set}" = set; then :
7498 withval=$with_sysroot;
7499 else
7500 with_sysroot=no
7501 fi
7502
7503
7504 lt_sysroot=
7505 case ${with_sysroot} in #(
7506 yes)
7507 if test "$GCC" = yes; then
7508 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7509 fi
7510 ;; #(
7511 /*)
7512 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7513 ;; #(
7514 no|'')
7515 ;; #(
7516 *)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7518 $as_echo "${with_sysroot}" >&6; }
7519 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7520 ;;
7521 esac
7522
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7524 $as_echo "${lt_sysroot:-no}" >&6; }
7525
7526
7527
7528
7529
7530 # Check whether --enable-libtool-lock was given.
7531 if test "${enable_libtool_lock+set}" = set; then :
7532 enableval=$enable_libtool_lock;
7533 fi
7534
7535 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7536
7537 # Some flags need to be propagated to the compiler or linker for good
7538 # libtool support.
7539 case $host in
7540 ia64-*-hpux*)
7541 # Find out which ABI we are using.
7542 echo 'int i;' > conftest.$ac_ext
7543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7544 (eval $ac_compile) 2>&5
7545 ac_status=$?
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; }; then
7548 case `/usr/bin/file conftest.$ac_objext` in
7549 *ELF-32*)
7550 HPUX_IA64_MODE="32"
7551 ;;
7552 *ELF-64*)
7553 HPUX_IA64_MODE="64"
7554 ;;
7555 esac
7556 fi
7557 rm -rf conftest*
7558 ;;
7559 *-*-irix6*)
7560 # Find out which ABI we are using.
7561 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7563 (eval $ac_compile) 2>&5
7564 ac_status=$?
7565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7566 test $ac_status = 0; }; then
7567 if test "$lt_cv_prog_gnu_ld" = yes; then
7568 case `/usr/bin/file conftest.$ac_objext` in
7569 *32-bit*)
7570 LD="${LD-ld} -melf32bsmip"
7571 ;;
7572 *N32*)
7573 LD="${LD-ld} -melf32bmipn32"
7574 ;;
7575 *64-bit*)
7576 LD="${LD-ld} -melf64bmip"
7577 ;;
7578 esac
7579 else
7580 case `/usr/bin/file conftest.$ac_objext` in
7581 *32-bit*)
7582 LD="${LD-ld} -32"
7583 ;;
7584 *N32*)
7585 LD="${LD-ld} -n32"
7586 ;;
7587 *64-bit*)
7588 LD="${LD-ld} -64"
7589 ;;
7590 esac
7591 fi
7592 fi
7593 rm -rf conftest*
7594 ;;
7595
7596 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7597 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7598 # Find out which ABI we are using.
7599 echo 'int i;' > conftest.$ac_ext
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; then
7605 case `/usr/bin/file conftest.o` in
7606 *32-bit*)
7607 case $host in
7608 x86_64-*kfreebsd*-gnu)
7609 LD="${LD-ld} -m elf_i386_fbsd"
7610 ;;
7611 x86_64-*linux*)
7612 LD="${LD-ld} -m elf_i386"
7613 ;;
7614 ppc64-*linux*|powerpc64-*linux*)
7615 LD="${LD-ld} -m elf32ppclinux"
7616 ;;
7617 s390x-*linux*)
7618 LD="${LD-ld} -m elf_s390"
7619 ;;
7620 sparc64-*linux*)
7621 LD="${LD-ld} -m elf32_sparc"
7622 ;;
7623 esac
7624 ;;
7625 *64-bit*)
7626 case $host in
7627 x86_64-*kfreebsd*-gnu)
7628 LD="${LD-ld} -m elf_x86_64_fbsd"
7629 ;;
7630 x86_64-*linux*)
7631 LD="${LD-ld} -m elf_x86_64"
7632 ;;
7633 ppc*-*linux*|powerpc*-*linux*)
7634 LD="${LD-ld} -m elf64ppc"
7635 ;;
7636 s390*-*linux*|s390*-*tpf*)
7637 LD="${LD-ld} -m elf64_s390"
7638 ;;
7639 sparc*-*linux*)
7640 LD="${LD-ld} -m elf64_sparc"
7641 ;;
7642 esac
7643 ;;
7644 esac
7645 fi
7646 rm -rf conftest*
7647 ;;
7648
7649 *-*-sco3.2v5*)
7650 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7651 SAVE_CFLAGS="$CFLAGS"
7652 CFLAGS="$CFLAGS -belf"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7654 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7655 if ${lt_cv_cc_needs_belf+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 ac_ext=c
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666
7667 int
7668 main ()
7669 {
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"; then :
7676 lt_cv_cc_needs_belf=yes
7677 else
7678 lt_cv_cc_needs_belf=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 ac_ext=c
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7690 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7691 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7692 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7693 CFLAGS="$SAVE_CFLAGS"
7694 fi
7695 ;;
7696 *-*solaris*)
7697 # Find out which ABI we are using.
7698 echo 'int i;' > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 case `/usr/bin/file conftest.o` in
7705 *64-bit*)
7706 case $lt_cv_prog_gnu_ld in
7707 yes*)
7708 case $host in
7709 i?86-*-solaris*)
7710 LD="${LD-ld} -m elf_x86_64"
7711 ;;
7712 sparc*-*-solaris*)
7713 LD="${LD-ld} -m elf64_sparc"
7714 ;;
7715 esac
7716 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7717 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7718 LD="${LD-ld}_sol2"
7719 fi
7720 ;;
7721 *)
7722 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7723 LD="${LD-ld} -64"
7724 fi
7725 ;;
7726 esac
7727 ;;
7728 esac
7729 fi
7730 rm -rf conftest*
7731 ;;
7732 esac
7733
7734 need_locks="$enable_libtool_lock"
7735
7736 if test -n "$ac_tool_prefix"; then
7737 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7738 set dummy ${ac_tool_prefix}mt; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$MANIFEST_TOOL"; then
7745 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7765 if test -n "$MANIFEST_TOOL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7767 $as_echo "$MANIFEST_TOOL" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773
7774 fi
7775 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7776 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7777 # Extract the first word of "mt", so it can be a program name with args.
7778 set dummy mt; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$ac_ct_MANIFEST_TOOL"; then
7785 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798 done
7799 done
7800 IFS=$as_save_IFS
7801
7802 fi
7803 fi
7804 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7805 if test -n "$ac_ct_MANIFEST_TOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7807 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7814 MANIFEST_TOOL=":"
7815 else
7816 case $cross_compiling:$ac_tool_warned in
7817 yes:)
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7821 esac
7822 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7823 fi
7824 else
7825 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7826 fi
7827
7828 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7830 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7831 if ${lt_cv_path_mainfest_tool+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 lt_cv_path_mainfest_tool=no
7835 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7836 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7837 cat conftest.err >&5
7838 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7839 lt_cv_path_mainfest_tool=yes
7840 fi
7841 rm -f conftest*
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7844 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7845 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7846 MANIFEST_TOOL=:
7847 fi
7848
7849
7850
7851
7852
7853
7854 case $host_os in
7855 rhapsody* | darwin*)
7856 if test -n "$ac_tool_prefix"; then
7857 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7858 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$DSYMUTIL"; then
7865 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7885 if test -n "$DSYMUTIL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7887 $as_echo "$DSYMUTIL" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894 fi
7895 if test -z "$ac_cv_prog_DSYMUTIL"; then
7896 ac_ct_DSYMUTIL=$DSYMUTIL
7897 # Extract the first word of "dsymutil", so it can be a program name with args.
7898 set dummy dsymutil; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$ac_ct_DSYMUTIL"; then
7905 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7925 if test -n "$ac_ct_DSYMUTIL"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7927 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933 if test "x$ac_ct_DSYMUTIL" = x; then
7934 DSYMUTIL=":"
7935 else
7936 case $cross_compiling:$ac_tool_warned in
7937 yes:)
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7940 ac_tool_warned=yes ;;
7941 esac
7942 DSYMUTIL=$ac_ct_DSYMUTIL
7943 fi
7944 else
7945 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7946 fi
7947
7948 if test -n "$ac_tool_prefix"; then
7949 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_NMEDIT+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$NMEDIT"; then
7957 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 fi
7975 fi
7976 NMEDIT=$ac_cv_prog_NMEDIT
7977 if test -n "$NMEDIT"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7979 $as_echo "$NMEDIT" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985
7986 fi
7987 if test -z "$ac_cv_prog_NMEDIT"; then
7988 ac_ct_NMEDIT=$NMEDIT
7989 # Extract the first word of "nmedit", so it can be a program name with args.
7990 set dummy nmedit; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$ac_ct_NMEDIT"; then
7997 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8017 if test -n "$ac_ct_NMEDIT"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8019 $as_echo "$ac_ct_NMEDIT" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025 if test "x$ac_ct_NMEDIT" = x; then
8026 NMEDIT=":"
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029 yes:)
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032 ac_tool_warned=yes ;;
8033 esac
8034 NMEDIT=$ac_ct_NMEDIT
8035 fi
8036 else
8037 NMEDIT="$ac_cv_prog_NMEDIT"
8038 fi
8039
8040 if test -n "$ac_tool_prefix"; then
8041 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8042 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_LIPO+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 if test -n "$LIPO"; then
8049 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 LIPO=$ac_cv_prog_LIPO
8069 if test -n "$LIPO"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8071 $as_echo "$LIPO" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078 fi
8079 if test -z "$ac_cv_prog_LIPO"; then
8080 ac_ct_LIPO=$LIPO
8081 # Extract the first word of "lipo", so it can be a program name with args.
8082 set dummy lipo; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$ac_ct_LIPO"; then
8089 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_ac_ct_LIPO="lipo"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8109 if test -n "$ac_ct_LIPO"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8111 $as_echo "$ac_ct_LIPO" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117 if test "x$ac_ct_LIPO" = x; then
8118 LIPO=":"
8119 else
8120 case $cross_compiling:$ac_tool_warned in
8121 yes:)
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124 ac_tool_warned=yes ;;
8125 esac
8126 LIPO=$ac_ct_LIPO
8127 fi
8128 else
8129 LIPO="$ac_cv_prog_LIPO"
8130 fi
8131
8132 if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8134 set dummy ${ac_tool_prefix}otool; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_OTOOL+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 if test -n "$OTOOL"; then
8141 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8153 fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 OTOOL=$ac_cv_prog_OTOOL
8161 if test -n "$OTOOL"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8163 $as_echo "$OTOOL" >&6; }
8164 else
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168
8169
8170 fi
8171 if test -z "$ac_cv_prog_OTOOL"; then
8172 ac_ct_OTOOL=$OTOOL
8173 # Extract the first word of "otool", so it can be a program name with args.
8174 set dummy otool; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 if test -n "$ac_ct_OTOOL"; then
8181 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_ac_ct_OTOOL="otool"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8201 if test -n "$ac_ct_OTOOL"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8203 $as_echo "$ac_ct_OTOOL" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209 if test "x$ac_ct_OTOOL" = x; then
8210 OTOOL=":"
8211 else
8212 case $cross_compiling:$ac_tool_warned in
8213 yes:)
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216 ac_tool_warned=yes ;;
8217 esac
8218 OTOOL=$ac_ct_OTOOL
8219 fi
8220 else
8221 OTOOL="$ac_cv_prog_OTOOL"
8222 fi
8223
8224 if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8226 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_OTOOL64+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 if test -n "$OTOOL64"; then
8233 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 OTOOL64=$ac_cv_prog_OTOOL64
8253 if test -n "$OTOOL64"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8255 $as_echo "$OTOOL64" >&6; }
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_OTOOL64"; then
8264 ac_ct_OTOOL64=$OTOOL64
8265 # Extract the first word of "otool64", so it can be a program name with args.
8266 set dummy otool64; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 if test -n "$ac_ct_OTOOL64"; then
8273 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_ac_ct_OTOOL64="otool64"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290 fi
8291 fi
8292 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8293 if test -n "$ac_ct_OTOOL64"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8295 $as_echo "$ac_ct_OTOOL64" >&6; }
8296 else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301 if test "x$ac_ct_OTOOL64" = x; then
8302 OTOOL64=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305 yes:)
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8309 esac
8310 OTOOL64=$ac_ct_OTOOL64
8311 fi
8312 else
8313 OTOOL64="$ac_cv_prog_OTOOL64"
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8343 $as_echo_n "checking for -single_module linker flag... " >&6; }
8344 if ${lt_cv_apple_cc_single_mod+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_apple_cc_single_mod=no
8348 if test -z "${LT_MULTI_MODULE}"; then
8349 # By default we will add the -single_module flag. You can override
8350 # by either setting the environment variable LT_MULTI_MODULE
8351 # non-empty at configure time, or by adding -multi_module to the
8352 # link flags.
8353 rm -rf libconftest.dylib*
8354 echo "int foo(void){return 1;}" > conftest.c
8355 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8356 -dynamiclib -Wl,-single_module conftest.c" >&5
8357 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8358 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8359 _lt_result=$?
8360 # If there is a non-empty error log, and "single_module"
8361 # appears in it, assume the flag caused a linker warning
8362 if test -s conftest.err && $GREP single_module conftest.err; then
8363 cat conftest.err >&5
8364 # Otherwise, if the output was created with a 0 exit code from
8365 # the compiler, it worked.
8366 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8367 lt_cv_apple_cc_single_mod=yes
8368 else
8369 cat conftest.err >&5
8370 fi
8371 rm -rf libconftest.dylib*
8372 rm -f conftest.*
8373 fi
8374 fi
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8376 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8377
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8379 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8380 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 lt_cv_ld_exported_symbols_list=no
8384 save_LDFLAGS=$LDFLAGS
8385 echo "_main" > conftest.sym
8386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389
8390 int
8391 main ()
8392 {
8393
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"; then :
8399 lt_cv_ld_exported_symbols_list=yes
8400 else
8401 lt_cv_ld_exported_symbols_list=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
8405 LDFLAGS="$save_LDFLAGS"
8406
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8409 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8412 $as_echo_n "checking for -force_load linker flag... " >&6; }
8413 if ${lt_cv_ld_force_load+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 lt_cv_ld_force_load=no
8417 cat > conftest.c << _LT_EOF
8418 int forced_loaded() { return 2;}
8419 _LT_EOF
8420 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8421 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8422 echo "$AR cru libconftest.a conftest.o" >&5
8423 $AR cru libconftest.a conftest.o 2>&5
8424 echo "$RANLIB libconftest.a" >&5
8425 $RANLIB libconftest.a 2>&5
8426 cat > conftest.c << _LT_EOF
8427 int main() { return 0;}
8428 _LT_EOF
8429 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8430 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8431 _lt_result=$?
8432 if test -s conftest.err && $GREP force_load conftest.err; then
8433 cat conftest.err >&5
8434 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8435 lt_cv_ld_force_load=yes
8436 else
8437 cat conftest.err >&5
8438 fi
8439 rm -f conftest.err libconftest.a conftest conftest.c
8440 rm -rf conftest.dSYM
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8444 $as_echo "$lt_cv_ld_force_load" >&6; }
8445 case $host_os in
8446 rhapsody* | darwin1.[012])
8447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8448 darwin1.*)
8449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8450 darwin*) # darwin 5.x on
8451 # if running on 10.5 or later, the deployment target defaults
8452 # to the OS version, if on x86, and 10.4, the deployment
8453 # target defaults to 10.4. Don't you love it?
8454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8455 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8457 10.[012]*)
8458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8459 10.*)
8460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8461 esac
8462 ;;
8463 esac
8464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8465 _lt_dar_single_mod='$single_module'
8466 fi
8467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8469 else
8470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8471 fi
8472 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8473 _lt_dsymutil='~$DSYMUTIL $lib || :'
8474 else
8475 _lt_dsymutil=
8476 fi
8477 ;;
8478 esac
8479
8480 for ac_header in dlfcn.h
8481 do :
8482 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8483 "
8484 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8485 cat >>confdefs.h <<_ACEOF
8486 #define HAVE_DLFCN_H 1
8487 _ACEOF
8488
8489 fi
8490
8491 done
8492
8493
8494
8495
8496
8497 # Set options
8498 # Check whether --enable-static was given.
8499 if test "${enable_static+set}" = set; then :
8500 enableval=$enable_static; p=${PACKAGE-default}
8501 case $enableval in
8502 yes) enable_static=yes ;;
8503 no) enable_static=no ;;
8504 *)
8505 enable_static=no
8506 # Look at the argument we got. We use all the common list separators.
8507 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8508 for pkg in $enableval; do
8509 IFS="$lt_save_ifs"
8510 if test "X$pkg" = "X$p"; then
8511 enable_static=yes
8512 fi
8513 done
8514 IFS="$lt_save_ifs"
8515 ;;
8516 esac
8517 else
8518 enable_static=no
8519 fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 enable_dlopen=no
8531
8532
8533 enable_win32_dll=no
8534
8535
8536 # Check whether --enable-shared was given.
8537 if test "${enable_shared+set}" = set; then :
8538 enableval=$enable_shared; p=${PACKAGE-default}
8539 case $enableval in
8540 yes) enable_shared=yes ;;
8541 no) enable_shared=no ;;
8542 *)
8543 enable_shared=no
8544 # Look at the argument we got. We use all the common list separators.
8545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8546 for pkg in $enableval; do
8547 IFS="$lt_save_ifs"
8548 if test "X$pkg" = "X$p"; then
8549 enable_shared=yes
8550 fi
8551 done
8552 IFS="$lt_save_ifs"
8553 ;;
8554 esac
8555 else
8556 enable_shared=yes
8557 fi
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569 # Check whether --with-pic was given.
8570 if test "${with_pic+set}" = set; then :
8571 withval=$with_pic; lt_p=${PACKAGE-default}
8572 case $withval in
8573 yes|no) pic_mode=$withval ;;
8574 *)
8575 pic_mode=default
8576 # Look at the argument we got. We use all the common list separators.
8577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8578 for lt_pkg in $withval; do
8579 IFS="$lt_save_ifs"
8580 if test "X$lt_pkg" = "X$lt_p"; then
8581 pic_mode=yes
8582 fi
8583 done
8584 IFS="$lt_save_ifs"
8585 ;;
8586 esac
8587 else
8588 pic_mode=default
8589 fi
8590
8591
8592 test -z "$pic_mode" && pic_mode=default
8593
8594
8595
8596
8597
8598
8599
8600 # Check whether --enable-fast-install was given.
8601 if test "${enable_fast_install+set}" = set; then :
8602 enableval=$enable_fast_install; p=${PACKAGE-default}
8603 case $enableval in
8604 yes) enable_fast_install=yes ;;
8605 no) enable_fast_install=no ;;
8606 *)
8607 enable_fast_install=no
8608 # Look at the argument we got. We use all the common list separators.
8609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8610 for pkg in $enableval; do
8611 IFS="$lt_save_ifs"
8612 if test "X$pkg" = "X$p"; then
8613 enable_fast_install=yes
8614 fi
8615 done
8616 IFS="$lt_save_ifs"
8617 ;;
8618 esac
8619 else
8620 enable_fast_install=yes
8621 fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633 # This can be used to rebuild libtool when needed
8634 LIBTOOL_DEPS="$ltmain"
8635
8636 # Always use our own libtool.
8637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 test -z "$LN_S" && LN_S="ln -s"
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 if test -n "${ZSH_VERSION+set}" ; then
8684 setopt NO_GLOB_SUBST
8685 fi
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8688 $as_echo_n "checking for objdir... " >&6; }
8689 if ${lt_cv_objdir+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 rm -f .libs 2>/dev/null
8693 mkdir .libs 2>/dev/null
8694 if test -d .libs; then
8695 lt_cv_objdir=.libs
8696 else
8697 # MS-DOS does not allow filenames that begin with a dot.
8698 lt_cv_objdir=_libs
8699 fi
8700 rmdir .libs 2>/dev/null
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8703 $as_echo "$lt_cv_objdir" >&6; }
8704 objdir=$lt_cv_objdir
8705
8706
8707
8708
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define LT_OBJDIR "$lt_cv_objdir/"
8712 _ACEOF
8713
8714
8715
8716
8717 case $host_os in
8718 aix3*)
8719 # AIX sometimes has problems with the GCC collect2 program. For some
8720 # reason, if we set the COLLECT_NAMES environment variable, the problems
8721 # vanish in a puff of smoke.
8722 if test "X${COLLECT_NAMES+set}" != Xset; then
8723 COLLECT_NAMES=
8724 export COLLECT_NAMES
8725 fi
8726 ;;
8727 esac
8728
8729 # Global variables:
8730 ofile=libtool
8731 can_build_shared=yes
8732
8733 # All known linkers require a `.a' archive for static linking (except MSVC,
8734 # which needs '.lib').
8735 libext=a
8736
8737 with_gnu_ld="$lt_cv_prog_gnu_ld"
8738
8739 old_CC="$CC"
8740 old_CFLAGS="$CFLAGS"
8741
8742 # Set sane defaults for various variables
8743 test -z "$CC" && CC=cc
8744 test -z "$LTCC" && LTCC=$CC
8745 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8746 test -z "$LD" && LD=ld
8747 test -z "$ac_objext" && ac_objext=o
8748
8749 for cc_temp in $compiler""; do
8750 case $cc_temp in
8751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8753 \-*) ;;
8754 *) break;;
8755 esac
8756 done
8757 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8758
8759
8760 # Only perform the check for file, if the check method requires it
8761 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8762 case $deplibs_check_method in
8763 file_magic*)
8764 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8766 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8767 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 case $MAGIC_CMD in
8771 [\\/*] | ?:[\\/]*)
8772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8773 ;;
8774 *)
8775 lt_save_MAGIC_CMD="$MAGIC_CMD"
8776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8778 for ac_dir in $ac_dummy; do
8779 IFS="$lt_save_ifs"
8780 test -z "$ac_dir" && ac_dir=.
8781 if test -f $ac_dir/${ac_tool_prefix}file; then
8782 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8783 if test -n "$file_magic_test_file"; then
8784 case $deplibs_check_method in
8785 "file_magic "*)
8786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8789 $EGREP "$file_magic_regex" > /dev/null; then
8790 :
8791 else
8792 cat <<_LT_EOF 1>&2
8793
8794 *** Warning: the command libtool uses to detect shared libraries,
8795 *** $file_magic_cmd, produces output that libtool cannot recognize.
8796 *** The result is that libtool may fail to recognize shared libraries
8797 *** as such. This will affect the creation of libtool libraries that
8798 *** depend on shared libraries, but programs linked with such libtool
8799 *** libraries will work regardless of this problem. Nevertheless, you
8800 *** may want to report the problem to your system manager and/or to
8801 *** [email protected]
8802
8803 _LT_EOF
8804 fi ;;
8805 esac
8806 fi
8807 break
8808 fi
8809 done
8810 IFS="$lt_save_ifs"
8811 MAGIC_CMD="$lt_save_MAGIC_CMD"
8812 ;;
8813 esac
8814 fi
8815
8816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8817 if test -n "$MAGIC_CMD"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8819 $as_echo "$MAGIC_CMD" >&6; }
8820 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826
8827
8828
8829 if test -z "$lt_cv_path_MAGIC_CMD"; then
8830 if test -n "$ac_tool_prefix"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8832 $as_echo_n "checking for file... " >&6; }
8833 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 case $MAGIC_CMD in
8837 [\\/*] | ?:[\\/]*)
8838 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8839 ;;
8840 *)
8841 lt_save_MAGIC_CMD="$MAGIC_CMD"
8842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8843 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8844 for ac_dir in $ac_dummy; do
8845 IFS="$lt_save_ifs"
8846 test -z "$ac_dir" && ac_dir=.
8847 if test -f $ac_dir/file; then
8848 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8849 if test -n "$file_magic_test_file"; then
8850 case $deplibs_check_method in
8851 "file_magic "*)
8852 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8854 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8855 $EGREP "$file_magic_regex" > /dev/null; then
8856 :
8857 else
8858 cat <<_LT_EOF 1>&2
8859
8860 *** Warning: the command libtool uses to detect shared libraries,
8861 *** $file_magic_cmd, produces output that libtool cannot recognize.
8862 *** The result is that libtool may fail to recognize shared libraries
8863 *** as such. This will affect the creation of libtool libraries that
8864 *** depend on shared libraries, but programs linked with such libtool
8865 *** libraries will work regardless of this problem. Nevertheless, you
8866 *** may want to report the problem to your system manager and/or to
8867 *** [email protected]
8868
8869 _LT_EOF
8870 fi ;;
8871 esac
8872 fi
8873 break
8874 fi
8875 done
8876 IFS="$lt_save_ifs"
8877 MAGIC_CMD="$lt_save_MAGIC_CMD"
8878 ;;
8879 esac
8880 fi
8881
8882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8883 if test -n "$MAGIC_CMD"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8885 $as_echo "$MAGIC_CMD" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 fi
8890
8891
8892 else
8893 MAGIC_CMD=:
8894 fi
8895 fi
8896
8897 fi
8898 ;;
8899 esac
8900
8901 # Use C for the default configuration in the libtool script
8902
8903 lt_save_CC="$CC"
8904 ac_ext=c
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910
8911 # Source file extension for C test sources.
8912 ac_ext=c
8913
8914 # Object file extension for compiled C test sources.
8915 objext=o
8916 objext=$objext
8917
8918 # Code to be used in simple compile tests
8919 lt_simple_compile_test_code="int some_variable = 0;"
8920
8921 # Code to be used in simple link tests
8922 lt_simple_link_test_code='int main(){return(0);}'
8923
8924
8925
8926
8927
8928
8929
8930 # If no C compiler was specified, use CC.
8931 LTCC=${LTCC-"$CC"}
8932
8933 # If no C compiler flags were specified, use CFLAGS.
8934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8935
8936 # Allow CC to be a program name with arguments.
8937 compiler=$CC
8938
8939 # Save the default compiler, since it gets overwritten when the other
8940 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8941 compiler_DEFAULT=$CC
8942
8943 # save warnings/boilerplate of simple test code
8944 ac_outfile=conftest.$ac_objext
8945 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8946 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8947 _lt_compiler_boilerplate=`cat conftest.err`
8948 $RM conftest*
8949
8950 ac_outfile=conftest.$ac_objext
8951 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8952 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8953 _lt_linker_boilerplate=`cat conftest.err`
8954 $RM -r conftest*
8955
8956
8957 ## CAVEAT EMPTOR:
8958 ## There is no encapsulation within the following macros, do not change
8959 ## the running order or otherwise move them around unless you know exactly
8960 ## what you are doing...
8961 if test -n "$compiler"; then
8962
8963 lt_prog_compiler_no_builtin_flag=
8964
8965 if test "$GCC" = yes; then
8966 case $cc_basename in
8967 nvcc*)
8968 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8969 *)
8970 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8971 esac
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8974 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8975 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 lt_cv_prog_compiler_rtti_exceptions=no
8979 ac_outfile=conftest.$ac_objext
8980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981 lt_compiler_flag="-fno-rtti -fno-exceptions"
8982 # Insert the option either (1) after the last *FLAGS variable, or
8983 # (2) before a word containing "conftest.", or (3) at the end.
8984 # Note that $ac_compile itself does not contain backslashes and begins
8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
8986 # The option is referenced via a variable to avoid confusing sed.
8987 lt_compile=`echo "$ac_compile" | $SED \
8988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8990 -e 's:$: $lt_compiler_flag:'`
8991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8992 (eval "$lt_compile" 2>conftest.err)
8993 ac_status=$?
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 if (exit $ac_status) && test -s "$ac_outfile"; then
8997 # The compiler can only warn and ignore the option if not recognized
8998 # So say no if there are warnings other than the usual output.
8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9002 lt_cv_prog_compiler_rtti_exceptions=yes
9003 fi
9004 fi
9005 $RM conftest*
9006
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9009 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9010
9011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9012 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9013 else
9014 :
9015 fi
9016
9017 fi
9018
9019
9020
9021
9022
9023
9024 lt_prog_compiler_wl=
9025 lt_prog_compiler_pic=
9026 lt_prog_compiler_static=
9027
9028
9029 if test "$GCC" = yes; then
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_static='-static'
9032
9033 case $host_os in
9034 aix*)
9035 # All AIX code is PIC.
9036 if test "$host_cpu" = ia64; then
9037 # AIX 5 now supports IA64 processor
9038 lt_prog_compiler_static='-Bstatic'
9039 fi
9040 ;;
9041
9042 amigaos*)
9043 case $host_cpu in
9044 powerpc)
9045 # see comment about AmigaOS4 .so support
9046 lt_prog_compiler_pic='-fPIC'
9047 ;;
9048 m68k)
9049 # FIXME: we need at least 68020 code to build shared libraries, but
9050 # adding the `-m68020' flag to GCC prevents building anything better,
9051 # like `-m68040'.
9052 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9053 ;;
9054 esac
9055 ;;
9056
9057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9058 # PIC is the default for these OSes.
9059 ;;
9060
9061 mingw* | cygwin* | pw32* | os2* | cegcc*)
9062 # This hack is so that the source file can tell whether it is being
9063 # built for inclusion in a dll (and should export symbols for example).
9064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9065 # (--disable-auto-import) libraries
9066 lt_prog_compiler_pic='-DDLL_EXPORT'
9067 ;;
9068
9069 darwin* | rhapsody*)
9070 # PIC is the default on this platform
9071 # Common symbols not allowed in MH_DYLIB files
9072 lt_prog_compiler_pic='-fno-common'
9073 ;;
9074
9075 haiku*)
9076 # PIC is the default for Haiku.
9077 # The "-static" flag exists, but is broken.
9078 lt_prog_compiler_static=
9079 ;;
9080
9081 hpux*)
9082 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9083 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9084 # sets the default TLS model and affects inlining.
9085 case $host_cpu in
9086 hppa*64*)
9087 # +Z the default
9088 ;;
9089 *)
9090 lt_prog_compiler_pic='-fPIC'
9091 ;;
9092 esac
9093 ;;
9094
9095 interix[3-9]*)
9096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9097 # Instead, we relocate shared libraries at runtime.
9098 ;;
9099
9100 msdosdjgpp*)
9101 # Just because we use GCC doesn't mean we suddenly get shared libraries
9102 # on systems that don't support them.
9103 lt_prog_compiler_can_build_shared=no
9104 enable_shared=no
9105 ;;
9106
9107 *nto* | *qnx*)
9108 # QNX uses GNU C++, but need to define -shared option too, otherwise
9109 # it will coredump.
9110 lt_prog_compiler_pic='-fPIC -shared'
9111 ;;
9112
9113 sysv4*MP*)
9114 if test -d /usr/nec; then
9115 lt_prog_compiler_pic=-Kconform_pic
9116 fi
9117 ;;
9118
9119 *)
9120 lt_prog_compiler_pic='-fPIC'
9121 ;;
9122 esac
9123
9124 case $cc_basename in
9125 nvcc*) # Cuda Compiler Driver 2.2
9126 lt_prog_compiler_wl='-Xlinker '
9127 if test -n "$lt_prog_compiler_pic"; then
9128 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9129 fi
9130 ;;
9131 esac
9132 else
9133 # PORTME Check for flag to pass linker flags through the system compiler.
9134 case $host_os in
9135 aix*)
9136 lt_prog_compiler_wl='-Wl,'
9137 if test "$host_cpu" = ia64; then
9138 # AIX 5 now supports IA64 processor
9139 lt_prog_compiler_static='-Bstatic'
9140 else
9141 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9142 fi
9143 ;;
9144
9145 mingw* | cygwin* | pw32* | os2* | cegcc*)
9146 # This hack is so that the source file can tell whether it is being
9147 # built for inclusion in a dll (and should export symbols for example).
9148 lt_prog_compiler_pic='-DDLL_EXPORT'
9149 ;;
9150
9151 hpux9* | hpux10* | hpux11*)
9152 lt_prog_compiler_wl='-Wl,'
9153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9154 # not for PA HP-UX.
9155 case $host_cpu in
9156 hppa*64*|ia64*)
9157 # +Z the default
9158 ;;
9159 *)
9160 lt_prog_compiler_pic='+Z'
9161 ;;
9162 esac
9163 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9164 lt_prog_compiler_static='${wl}-a ${wl}archive'
9165 ;;
9166
9167 irix5* | irix6* | nonstopux*)
9168 lt_prog_compiler_wl='-Wl,'
9169 # PIC (with -KPIC) is the default.
9170 lt_prog_compiler_static='-non_shared'
9171 ;;
9172
9173 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9174 case $cc_basename in
9175 # old Intel for x86_64 which still supported -KPIC.
9176 ecc*)
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-static'
9180 ;;
9181 # icc used to be incompatible with GCC.
9182 # ICC 10 doesn't accept -KPIC any more.
9183 icc* | ifort*)
9184 lt_prog_compiler_wl='-Wl,'
9185 lt_prog_compiler_pic='-fPIC'
9186 lt_prog_compiler_static='-static'
9187 ;;
9188 # Lahey Fortran 8.1.
9189 lf95*)
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_pic='--shared'
9192 lt_prog_compiler_static='--static'
9193 ;;
9194 nagfor*)
9195 # NAG Fortran compiler
9196 lt_prog_compiler_wl='-Wl,-Wl,,'
9197 lt_prog_compiler_pic='-PIC'
9198 lt_prog_compiler_static='-Bstatic'
9199 ;;
9200 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9201 # Portland Group compilers (*not* the Pentium gcc compiler,
9202 # which looks to be a dead project)
9203 lt_prog_compiler_wl='-Wl,'
9204 lt_prog_compiler_pic='-fpic'
9205 lt_prog_compiler_static='-Bstatic'
9206 ;;
9207 ccc*)
9208 lt_prog_compiler_wl='-Wl,'
9209 # All Alpha code is PIC.
9210 lt_prog_compiler_static='-non_shared'
9211 ;;
9212 xl* | bgxl* | bgf* | mpixl*)
9213 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-qpic'
9216 lt_prog_compiler_static='-qstaticlink'
9217 ;;
9218 *)
9219 case `$CC -V 2>&1 | sed 5q` in
9220 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9221 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9222 lt_prog_compiler_pic='-KPIC'
9223 lt_prog_compiler_static='-Bstatic'
9224 lt_prog_compiler_wl=''
9225 ;;
9226 *Sun\ F* | *Sun*Fortran*)
9227 lt_prog_compiler_pic='-KPIC'
9228 lt_prog_compiler_static='-Bstatic'
9229 lt_prog_compiler_wl='-Qoption ld '
9230 ;;
9231 *Sun\ C*)
9232 # Sun C 5.9
9233 lt_prog_compiler_pic='-KPIC'
9234 lt_prog_compiler_static='-Bstatic'
9235 lt_prog_compiler_wl='-Wl,'
9236 ;;
9237 *Intel*\ [CF]*Compiler*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-fPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 *Portland\ Group*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_pic='-fpic'
9245 lt_prog_compiler_static='-Bstatic'
9246 ;;
9247 esac
9248 ;;
9249 esac
9250 ;;
9251
9252 newsos6)
9253 lt_prog_compiler_pic='-KPIC'
9254 lt_prog_compiler_static='-Bstatic'
9255 ;;
9256
9257 *nto* | *qnx*)
9258 # QNX uses GNU C++, but need to define -shared option too, otherwise
9259 # it will coredump.
9260 lt_prog_compiler_pic='-fPIC -shared'
9261 ;;
9262
9263 osf3* | osf4* | osf5*)
9264 lt_prog_compiler_wl='-Wl,'
9265 # All OSF/1 code is PIC.
9266 lt_prog_compiler_static='-non_shared'
9267 ;;
9268
9269 rdos*)
9270 lt_prog_compiler_static='-non_shared'
9271 ;;
9272
9273 solaris*)
9274 lt_prog_compiler_pic='-KPIC'
9275 lt_prog_compiler_static='-Bstatic'
9276 case $cc_basename in
9277 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9278 lt_prog_compiler_wl='-Qoption ld ';;
9279 *)
9280 lt_prog_compiler_wl='-Wl,';;
9281 esac
9282 ;;
9283
9284 sunos4*)
9285 lt_prog_compiler_wl='-Qoption ld '
9286 lt_prog_compiler_pic='-PIC'
9287 lt_prog_compiler_static='-Bstatic'
9288 ;;
9289
9290 sysv4 | sysv4.2uw2* | sysv4.3*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 ;;
9295
9296 sysv4*MP*)
9297 if test -d /usr/nec ;then
9298 lt_prog_compiler_pic='-Kconform_pic'
9299 lt_prog_compiler_static='-Bstatic'
9300 fi
9301 ;;
9302
9303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9307 ;;
9308
9309 unicos*)
9310 lt_prog_compiler_wl='-Wl,'
9311 lt_prog_compiler_can_build_shared=no
9312 ;;
9313
9314 uts4*)
9315 lt_prog_compiler_pic='-pic'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
9318
9319 *)
9320 lt_prog_compiler_can_build_shared=no
9321 ;;
9322 esac
9323 fi
9324
9325 case $host_os in
9326 # For platforms which do not support PIC, -DPIC is meaningless:
9327 *djgpp*)
9328 lt_prog_compiler_pic=
9329 ;;
9330 *)
9331 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9332 ;;
9333 esac
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9336 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9337 if ${lt_cv_prog_compiler_pic+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9343 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9344 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9345
9346 #
9347 # Check to make sure the PIC flag actually works.
9348 #
9349 if test -n "$lt_prog_compiler_pic"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9351 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9352 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 lt_cv_prog_compiler_pic_works=no
9356 ac_outfile=conftest.$ac_objext
9357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9358 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9359 # Insert the option either (1) after the last *FLAGS variable, or
9360 # (2) before a word containing "conftest.", or (3) at the end.
9361 # Note that $ac_compile itself does not contain backslashes and begins
9362 # with a dollar sign (not a hyphen), so the echo should work correctly.
9363 # The option is referenced via a variable to avoid confusing sed.
9364 lt_compile=`echo "$ac_compile" | $SED \
9365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9367 -e 's:$: $lt_compiler_flag:'`
9368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9369 (eval "$lt_compile" 2>conftest.err)
9370 ac_status=$?
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 if (exit $ac_status) && test -s "$ac_outfile"; then
9374 # The compiler can only warn and ignore the option if not recognized
9375 # So say no if there are warnings other than the usual output.
9376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9379 lt_cv_prog_compiler_pic_works=yes
9380 fi
9381 fi
9382 $RM conftest*
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9386 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9387
9388 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9389 case $lt_prog_compiler_pic in
9390 "" | " "*) ;;
9391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9392 esac
9393 else
9394 lt_prog_compiler_pic=
9395 lt_prog_compiler_can_build_shared=no
9396 fi
9397
9398 fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 #
9411 # Check to make sure the static flag actually works.
9412 #
9413 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9416 if ${lt_cv_prog_compiler_static_works+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 lt_cv_prog_compiler_static_works=no
9420 save_LDFLAGS="$LDFLAGS"
9421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9424 # The linker can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 if test -s conftest.err; then
9427 # Append any errors to the config.log.
9428 cat conftest.err 1>&5
9429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler_static_works=yes
9433 fi
9434 else
9435 lt_cv_prog_compiler_static_works=yes
9436 fi
9437 fi
9438 $RM -r conftest*
9439 LDFLAGS="$save_LDFLAGS"
9440
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9443 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9444
9445 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9446 :
9447 else
9448 lt_prog_compiler_static=
9449 fi
9450
9451
9452
9453
9454
9455
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9459 if ${lt_cv_prog_compiler_c_o+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 lt_cv_prog_compiler_c_o=no
9463 $RM -r conftest 2>/dev/null
9464 mkdir conftest
9465 cd conftest
9466 mkdir out
9467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468
9469 lt_compiler_flag="-o out/conftest2.$ac_objext"
9470 # Insert the option either (1) after the last *FLAGS variable, or
9471 # (2) before a word containing "conftest.", or (3) at the end.
9472 # Note that $ac_compile itself does not contain backslashes and begins
9473 # with a dollar sign (not a hyphen), so the echo should work correctly.
9474 lt_compile=`echo "$ac_compile" | $SED \
9475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477 -e 's:$: $lt_compiler_flag:'`
9478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9479 (eval "$lt_compile" 2>out/conftest.err)
9480 ac_status=$?
9481 cat out/conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9484 then
9485 # The compiler can only warn and ignore the option if not recognized
9486 # So say no if there are warnings
9487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_c_o=yes
9491 fi
9492 fi
9493 chmod u+w . 2>&5
9494 $RM conftest*
9495 # SGI C++ compiler will create directory out/ii_files/ for
9496 # template instantiation
9497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9498 $RM out/* && rmdir out
9499 cd ..
9500 $RM -r conftest
9501 $RM conftest*
9502
9503 fi
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9505 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9506
9507
9508
9509
9510
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9514 if ${lt_cv_prog_compiler_c_o+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 lt_cv_prog_compiler_c_o=no
9518 $RM -r conftest 2>/dev/null
9519 mkdir conftest
9520 cd conftest
9521 mkdir out
9522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523
9524 lt_compiler_flag="-o out/conftest2.$ac_objext"
9525 # Insert the option either (1) after the last *FLAGS variable, or
9526 # (2) before a word containing "conftest.", or (3) at the end.
9527 # Note that $ac_compile itself does not contain backslashes and begins
9528 # with a dollar sign (not a hyphen), so the echo should work correctly.
9529 lt_compile=`echo "$ac_compile" | $SED \
9530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532 -e 's:$: $lt_compiler_flag:'`
9533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534 (eval "$lt_compile" 2>out/conftest.err)
9535 ac_status=$?
9536 cat out/conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9539 then
9540 # The compiler can only warn and ignore the option if not recognized
9541 # So say no if there are warnings
9542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9545 lt_cv_prog_compiler_c_o=yes
9546 fi
9547 fi
9548 chmod u+w . 2>&5
9549 $RM conftest*
9550 # SGI C++ compiler will create directory out/ii_files/ for
9551 # template instantiation
9552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9553 $RM out/* && rmdir out
9554 cd ..
9555 $RM -r conftest
9556 $RM conftest*
9557
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9561
9562
9563
9564
9565 hard_links="nottested"
9566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9567 # do not overwrite the value of need_locks provided by the user
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9569 $as_echo_n "checking if we can lock with hard links... " >&6; }
9570 hard_links=yes
9571 $RM conftest*
9572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9573 touch conftest.a
9574 ln conftest.a conftest.b 2>&5 || hard_links=no
9575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9577 $as_echo "$hard_links" >&6; }
9578 if test "$hard_links" = no; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9581 need_locks=warn
9582 fi
9583 else
9584 need_locks=no
9585 fi
9586
9587
9588
9589
9590
9591
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9594
9595 runpath_var=
9596 allow_undefined_flag=
9597 always_export_symbols=no
9598 archive_cmds=
9599 archive_expsym_cmds=
9600 compiler_needs_object=no
9601 enable_shared_with_static_runtimes=no
9602 export_dynamic_flag_spec=
9603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9604 hardcode_automatic=no
9605 hardcode_direct=no
9606 hardcode_direct_absolute=no
9607 hardcode_libdir_flag_spec=
9608 hardcode_libdir_separator=
9609 hardcode_minus_L=no
9610 hardcode_shlibpath_var=unsupported
9611 inherit_rpath=no
9612 link_all_deplibs=unknown
9613 module_cmds=
9614 module_expsym_cmds=
9615 old_archive_from_new_cmds=
9616 old_archive_from_expsyms_cmds=
9617 thread_safe_flag_spec=
9618 whole_archive_flag_spec=
9619 # include_expsyms should be a list of space-separated symbols to be *always*
9620 # included in the symbol list
9621 include_expsyms=
9622 # exclude_expsyms can be an extended regexp of symbols to exclude
9623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9625 # as well as any symbol that contains `d'.
9626 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9628 # platforms (ab)use it in PIC code, but their linkers get confused if
9629 # the symbol is explicitly referenced. Since portable code cannot
9630 # rely on this symbol name, it's probably fine to never include it in
9631 # preloaded symbol tables.
9632 # Exclude shared library initialization/finalization symbols.
9633 extract_expsyms_cmds=
9634
9635 case $host_os in
9636 cygwin* | mingw* | pw32* | cegcc*)
9637 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9638 # When not using gcc, we currently assume that we are using
9639 # Microsoft Visual C++.
9640 if test "$GCC" != yes; then
9641 with_gnu_ld=no
9642 fi
9643 ;;
9644 interix*)
9645 # we just hope/assume this is gcc and not c89 (= MSVC++)
9646 with_gnu_ld=yes
9647 ;;
9648 openbsd*)
9649 with_gnu_ld=no
9650 ;;
9651 esac
9652
9653 ld_shlibs=yes
9654
9655 # On some targets, GNU ld is compatible enough with the native linker
9656 # that we're better off using the native interface for both.
9657 lt_use_gnu_ld_interface=no
9658 if test "$with_gnu_ld" = yes; then
9659 case $host_os in
9660 aix*)
9661 # The AIX port of GNU ld has always aspired to compatibility
9662 # with the native linker. However, as the warning in the GNU ld
9663 # block says, versions before 2.19.5* couldn't really create working
9664 # shared libraries, regardless of the interface used.
9665 case `$LD -v 2>&1` in
9666 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9667 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9668 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9669 *)
9670 lt_use_gnu_ld_interface=yes
9671 ;;
9672 esac
9673 ;;
9674 *)
9675 lt_use_gnu_ld_interface=yes
9676 ;;
9677 esac
9678 fi
9679
9680 if test "$lt_use_gnu_ld_interface" = yes; then
9681 # If archive_cmds runs LD, not CC, wlarc should be empty
9682 wlarc='${wl}'
9683
9684 # Set some defaults for GNU ld with shared library support. These
9685 # are reset later if shared libraries are not supported. Putting them
9686 # here allows them to be overridden if necessary.
9687 runpath_var=LD_RUN_PATH
9688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9689 export_dynamic_flag_spec='${wl}--export-dynamic'
9690 # ancient GNU ld didn't support --whole-archive et. al.
9691 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9692 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9693 else
9694 whole_archive_flag_spec=
9695 fi
9696 supports_anon_versioning=no
9697 case `$LD -v 2>&1` in
9698 *GNU\ gold*) supports_anon_versioning=yes ;;
9699 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9702 *\ 2.11.*) ;; # other 2.11 versions
9703 *) supports_anon_versioning=yes ;;
9704 esac
9705
9706 # See if GNU ld supports shared libraries.
9707 case $host_os in
9708 aix[3-9]*)
9709 # On AIX/PPC, the GNU linker is very broken
9710 if test "$host_cpu" != ia64; then
9711 ld_shlibs=no
9712 cat <<_LT_EOF 1>&2
9713
9714 *** Warning: the GNU linker, at least up to release 2.19, is reported
9715 *** to be unable to reliably create shared libraries on AIX.
9716 *** Therefore, libtool is disabling shared libraries support. If you
9717 *** really care for shared libraries, you may want to install binutils
9718 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9719 *** You will then need to restart the configuration process.
9720
9721 _LT_EOF
9722 fi
9723 ;;
9724
9725 amigaos*)
9726 case $host_cpu in
9727 powerpc)
9728 # see comment about AmigaOS4 .so support
9729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds=''
9731 ;;
9732 m68k)
9733 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)'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_minus_L=yes
9736 ;;
9737 esac
9738 ;;
9739
9740 beos*)
9741 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9742 allow_undefined_flag=unsupported
9743 # Joseph Beckenbach <[email protected]> says some releases of gcc
9744 # support --undefined. This deserves some investigation. FIXME
9745 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9746 else
9747 ld_shlibs=no
9748 fi
9749 ;;
9750
9751 cygwin* | mingw* | pw32* | cegcc*)
9752 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9753 # as there is no search path for DLLs.
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 export_dynamic_flag_spec='${wl}--export-all-symbols'
9756 allow_undefined_flag=unsupported
9757 always_export_symbols=no
9758 enable_shared_with_static_runtimes=yes
9759 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'
9760 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9761
9762 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9764 # If the export-symbols file already is a .def file (1st line
9765 # is EXPORTS), use it as is; otherwise, prepend...
9766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767 cp $export_symbols $output_objdir/$soname.def;
9768 else
9769 echo EXPORTS > $output_objdir/$soname.def;
9770 cat $export_symbols >> $output_objdir/$soname.def;
9771 fi~
9772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9773 else
9774 ld_shlibs=no
9775 fi
9776 ;;
9777
9778 haiku*)
9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 link_all_deplibs=yes
9781 ;;
9782
9783 interix[3-9]*)
9784 hardcode_direct=no
9785 hardcode_shlibpath_var=no
9786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787 export_dynamic_flag_spec='${wl}-E'
9788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9789 # Instead, shared libraries are loaded at an image base (0x10000000 by
9790 # default) and relocated if they conflict, which is a slow very memory
9791 # consuming and fragmenting process. To avoid this, we pick a random,
9792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9795 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'
9796 ;;
9797
9798 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9799 tmp_diet=no
9800 if test "$host_os" = linux-dietlibc; then
9801 case $cc_basename in
9802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9803 esac
9804 fi
9805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9806 && test "$tmp_diet" = no
9807 then
9808 tmp_addflag=' $pic_flag'
9809 tmp_sharedflag='-shared'
9810 case $cc_basename,$host_cpu in
9811 pgcc*) # Portland Group C compiler
9812 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'
9813 tmp_addflag=' $pic_flag'
9814 ;;
9815 pgf77* | pgf90* | pgf95* | pgfortran*)
9816 # Portland Group f77 and f90 compilers
9817 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'
9818 tmp_addflag=' $pic_flag -Mnomain' ;;
9819 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9820 tmp_addflag=' -i_dynamic' ;;
9821 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9822 tmp_addflag=' -i_dynamic -nofor_main' ;;
9823 ifc* | ifort*) # Intel Fortran compiler
9824 tmp_addflag=' -nofor_main' ;;
9825 lf95*) # Lahey Fortran 8.1
9826 whole_archive_flag_spec=
9827 tmp_sharedflag='--shared' ;;
9828 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9829 tmp_sharedflag='-qmkshrobj'
9830 tmp_addflag= ;;
9831 nvcc*) # Cuda Compiler Driver 2.2
9832 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'
9833 compiler_needs_object=yes
9834 ;;
9835 esac
9836 case `$CC -V 2>&1 | sed 5q` in
9837 *Sun\ C*) # Sun C 5.9
9838 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'
9839 compiler_needs_object=yes
9840 tmp_sharedflag='-G' ;;
9841 *Sun\ F*) # Sun Fortran 8.3
9842 tmp_sharedflag='-G' ;;
9843 esac
9844 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845
9846 if test "x$supports_anon_versioning" = xyes; then
9847 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9849 echo "local: *; };" >> $output_objdir/$libname.ver~
9850 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9851 fi
9852
9853 case $cc_basename in
9854 xlf* | bgf* | bgxlf* | mpixlf*)
9855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9856 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9859 if test "x$supports_anon_versioning" = xyes; then
9860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9862 echo "local: *; };" >> $output_objdir/$libname.ver~
9863 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9864 fi
9865 ;;
9866 esac
9867 else
9868 ld_shlibs=no
9869 fi
9870 ;;
9871
9872 netbsd*)
9873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9874 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9875 wlarc=
9876 else
9877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879 fi
9880 ;;
9881
9882 solaris*)
9883 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9884 ld_shlibs=no
9885 cat <<_LT_EOF 1>&2
9886
9887 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9888 *** create shared libraries on Solaris systems. Therefore, libtool
9889 *** is disabling shared libraries support. We urge you to upgrade GNU
9890 *** binutils to release 2.9.1 or newer. Another option is to modify
9891 *** your PATH or compiler configuration so that the native linker is
9892 *** used, and then restart.
9893
9894 _LT_EOF
9895 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9898 else
9899 ld_shlibs=no
9900 fi
9901 ;;
9902
9903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9904 case `$LD -v 2>&1` in
9905 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9906 ld_shlibs=no
9907 cat <<_LT_EOF 1>&2
9908
9909 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9910 *** reliably create shared libraries on SCO systems. Therefore, libtool
9911 *** is disabling shared libraries support. We urge you to upgrade GNU
9912 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9913 *** your PATH or compiler configuration so that the native linker is
9914 *** used, and then restart.
9915
9916 _LT_EOF
9917 ;;
9918 *)
9919 # For security reasons, it is highly recommended that you always
9920 # use absolute paths for naming shared libraries, and exclude the
9921 # DT_RUNPATH tag from executables and libraries. But doing so
9922 # requires that you compile everything twice, which is a pain.
9923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9925 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9927 else
9928 ld_shlibs=no
9929 fi
9930 ;;
9931 esac
9932 ;;
9933
9934 sunos4*)
9935 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936 wlarc=
9937 hardcode_direct=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 *)
9942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949 esac
9950
9951 if test "$ld_shlibs" = no; then
9952 runpath_var=
9953 hardcode_libdir_flag_spec=
9954 export_dynamic_flag_spec=
9955 whole_archive_flag_spec=
9956 fi
9957 else
9958 # PORTME fill in a description of your system's linker (not GNU ld)
9959 case $host_os in
9960 aix3*)
9961 allow_undefined_flag=unsupported
9962 always_export_symbols=yes
9963 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'
9964 # Note: this linker hardcodes the directories in LIBPATH if there
9965 # are no directories specified by -L.
9966 hardcode_minus_L=yes
9967 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9968 # Neither direct hardcoding nor static linking is supported with a
9969 # broken collect2.
9970 hardcode_direct=unsupported
9971 fi
9972 ;;
9973
9974 aix[4-9]*)
9975 if test "$host_cpu" = ia64; then
9976 # On IA64, the linker does run time linking by default, so we don't
9977 # have to do anything special.
9978 aix_use_runtimelinking=no
9979 exp_sym_flag='-Bexport'
9980 no_entry_flag=""
9981 else
9982 # If we're using GNU nm, then we don't want the "-C" option.
9983 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9984 # Also, AIX nm treats weak defined symbols like other global
9985 # defined symbols, whereas GNU nm marks them as "W".
9986 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9987 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'
9988 else
9989 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'
9990 fi
9991 aix_use_runtimelinking=no
9992
9993 # Test if we are trying to use run time linking or normal
9994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9995 # need to do runtime linking.
9996 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9997 for ld_flag in $LDFLAGS; do
9998 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9999 aix_use_runtimelinking=yes
10000 break
10001 fi
10002 done
10003 ;;
10004 esac
10005
10006 exp_sym_flag='-bexport'
10007 no_entry_flag='-bnoentry'
10008 fi
10009
10010 # When large executables or shared objects are built, AIX ld can
10011 # have problems creating the table of contents. If linking a library
10012 # or program results in "error TOC overflow" add -mminimal-toc to
10013 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10014 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10015
10016 archive_cmds=''
10017 hardcode_direct=yes
10018 hardcode_direct_absolute=yes
10019 hardcode_libdir_separator=':'
10020 link_all_deplibs=yes
10021 file_list_spec='${wl}-f,'
10022
10023 if test "$GCC" = yes; then
10024 case $host_os in aix4.[012]|aix4.[012].*)
10025 # We only want to do this on AIX 4.2 and lower, the check
10026 # below for broken collect2 doesn't work under 4.3+
10027 collect2name=`${CC} -print-prog-name=collect2`
10028 if test -f "$collect2name" &&
10029 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10030 then
10031 # We have reworked collect2
10032 :
10033 else
10034 # We have old collect2
10035 hardcode_direct=unsupported
10036 # It fails to find uninstalled libraries when the uninstalled
10037 # path is not listed in the libpath. Setting hardcode_minus_L
10038 # to unsupported forces relinking
10039 hardcode_minus_L=yes
10040 hardcode_libdir_flag_spec='-L$libdir'
10041 hardcode_libdir_separator=
10042 fi
10043 ;;
10044 esac
10045 shared_flag='-shared'
10046 if test "$aix_use_runtimelinking" = yes; then
10047 shared_flag="$shared_flag "'${wl}-G'
10048 fi
10049 else
10050 # not using gcc
10051 if test "$host_cpu" = ia64; then
10052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10053 # chokes on -Wl,-G. The following line is correct:
10054 shared_flag='-G'
10055 else
10056 if test "$aix_use_runtimelinking" = yes; then
10057 shared_flag='${wl}-G'
10058 else
10059 shared_flag='${wl}-bM:SRE'
10060 fi
10061 fi
10062 fi
10063
10064 export_dynamic_flag_spec='${wl}-bexpall'
10065 # It seems that -bexpall does not export symbols beginning with
10066 # underscore (_), so it is better to generate a list of symbols to export.
10067 always_export_symbols=yes
10068 if test "$aix_use_runtimelinking" = yes; then
10069 # Warning - without using the other runtime loading flags (-brtl),
10070 # -berok will link without error, but may produce a broken library.
10071 allow_undefined_flag='-berok'
10072 # Determine the default libpath from the value encoded in an
10073 # empty executable.
10074 if test "${lt_cv_aix_libpath+set}" = set; then
10075 aix_libpath=$lt_cv_aix_libpath
10076 else
10077 if ${lt_cv_aix_libpath_+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082
10083 int
10084 main ()
10085 {
10086
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092
10093 lt_aix_libpath_sed='
10094 /Import File Strings/,/^$/ {
10095 /^0/ {
10096 s/^0 *\([^ ]*\) *$/\1/
10097 p
10098 }
10099 }'
10100 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10101 # Check for a 64-bit object if we didn't find anything.
10102 if test -z "$lt_cv_aix_libpath_"; then
10103 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10104 fi
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test -z "$lt_cv_aix_libpath_"; then
10109 lt_cv_aix_libpath_="/usr/lib:/lib"
10110 fi
10111
10112 fi
10113
10114 aix_libpath=$lt_cv_aix_libpath_
10115 fi
10116
10117 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10118 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"
10119 else
10120 if test "$host_cpu" = ia64; then
10121 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10122 allow_undefined_flag="-z nodefs"
10123 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"
10124 else
10125 # Determine the default libpath from the value encoded in an
10126 # empty executable.
10127 if test "${lt_cv_aix_libpath+set}" = set; then
10128 aix_libpath=$lt_cv_aix_libpath
10129 else
10130 if ${lt_cv_aix_libpath_+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135
10136 int
10137 main ()
10138 {
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145
10146 lt_aix_libpath_sed='
10147 /Import File Strings/,/^$/ {
10148 /^0/ {
10149 s/^0 *\([^ ]*\) *$/\1/
10150 p
10151 }
10152 }'
10153 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 # Check for a 64-bit object if we didn't find anything.
10155 if test -z "$lt_cv_aix_libpath_"; then
10156 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157 fi
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 if test -z "$lt_cv_aix_libpath_"; then
10162 lt_cv_aix_libpath_="/usr/lib:/lib"
10163 fi
10164
10165 fi
10166
10167 aix_libpath=$lt_cv_aix_libpath_
10168 fi
10169
10170 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10171 # Warning - without using the other run time loading flags,
10172 # -berok will link without error, but may produce a broken library.
10173 no_undefined_flag=' ${wl}-bernotok'
10174 allow_undefined_flag=' ${wl}-berok'
10175 if test "$with_gnu_ld" = yes; then
10176 # We only use this code for GNU lds that support --whole-archive.
10177 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10178 else
10179 # Exported symbols can be pulled into shared objects from archives
10180 whole_archive_flag_spec='$convenience'
10181 fi
10182 archive_cmds_need_lc=yes
10183 # This is similar to how AIX traditionally builds its shared libraries.
10184 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'
10185 fi
10186 fi
10187 ;;
10188
10189 amigaos*)
10190 case $host_cpu in
10191 powerpc)
10192 # see comment about AmigaOS4 .so support
10193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194 archive_expsym_cmds=''
10195 ;;
10196 m68k)
10197 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)'
10198 hardcode_libdir_flag_spec='-L$libdir'
10199 hardcode_minus_L=yes
10200 ;;
10201 esac
10202 ;;
10203
10204 bsdi[45]*)
10205 export_dynamic_flag_spec=-rdynamic
10206 ;;
10207
10208 cygwin* | mingw* | pw32* | cegcc*)
10209 # When not using gcc, we currently assume that we are using
10210 # Microsoft Visual C++.
10211 # hardcode_libdir_flag_spec is actually meaningless, as there is
10212 # no search path for DLLs.
10213 case $cc_basename in
10214 cl*)
10215 # Native MSVC
10216 hardcode_libdir_flag_spec=' '
10217 allow_undefined_flag=unsupported
10218 always_export_symbols=yes
10219 file_list_spec='@'
10220 # Tell ltmain to make .lib files, not .a files.
10221 libext=lib
10222 # Tell ltmain to make .dll files, not .so files.
10223 shrext_cmds=".dll"
10224 # FIXME: Setting linknames here is a bad hack.
10225 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10227 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10228 else
10229 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10230 fi~
10231 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10232 linknames='
10233 # The linker will not automatically build a static lib if we build a DLL.
10234 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10235 enable_shared_with_static_runtimes=yes
10236 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10238 # Don't use ranlib
10239 old_postinstall_cmds='chmod 644 $oldlib'
10240 postlink_cmds='lt_outputfile="@OUTPUT@"~
10241 lt_tool_outputfile="@TOOL_OUTPUT@"~
10242 case $lt_outputfile in
10243 *.exe|*.EXE) ;;
10244 *)
10245 lt_outputfile="$lt_outputfile.exe"
10246 lt_tool_outputfile="$lt_tool_outputfile.exe"
10247 ;;
10248 esac~
10249 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10250 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10251 $RM "$lt_outputfile.manifest";
10252 fi'
10253 ;;
10254 *)
10255 # Assume MSVC wrapper
10256 hardcode_libdir_flag_spec=' '
10257 allow_undefined_flag=unsupported
10258 # Tell ltmain to make .lib files, not .a files.
10259 libext=lib
10260 # Tell ltmain to make .dll files, not .so files.
10261 shrext_cmds=".dll"
10262 # FIXME: Setting linknames here is a bad hack.
10263 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10264 # The linker will automatically build a .lib file if we build a DLL.
10265 old_archive_from_new_cmds='true'
10266 # FIXME: Should let the user specify the lib program.
10267 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10268 enable_shared_with_static_runtimes=yes
10269 ;;
10270 esac
10271 ;;
10272
10273 darwin* | rhapsody*)
10274
10275
10276 archive_cmds_need_lc=no
10277 hardcode_direct=no
10278 hardcode_automatic=yes
10279 hardcode_shlibpath_var=unsupported
10280 if test "$lt_cv_ld_force_load" = "yes"; then
10281 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\"`'
10282
10283 else
10284 whole_archive_flag_spec=''
10285 fi
10286 link_all_deplibs=yes
10287 allow_undefined_flag="$_lt_dar_allow_undefined"
10288 case $cc_basename in
10289 ifort*) _lt_dar_can_shared=yes ;;
10290 *) _lt_dar_can_shared=$GCC ;;
10291 esac
10292 if test "$_lt_dar_can_shared" = "yes"; then
10293 output_verbose_link_cmd=func_echo_all
10294 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10295 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10296 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}"
10297 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}"
10298
10299 else
10300 ld_shlibs=no
10301 fi
10302
10303 ;;
10304
10305 dgux*)
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 hardcode_libdir_flag_spec='-L$libdir'
10308 hardcode_shlibpath_var=no
10309 ;;
10310
10311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10312 # support. Future versions do this automatically, but an explicit c++rt0.o
10313 # does not break anything, and helps significantly (at the cost of a little
10314 # extra space).
10315 freebsd2.2*)
10316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10317 hardcode_libdir_flag_spec='-R$libdir'
10318 hardcode_direct=yes
10319 hardcode_shlibpath_var=no
10320 ;;
10321
10322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10323 freebsd2.*)
10324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10325 hardcode_direct=yes
10326 hardcode_minus_L=yes
10327 hardcode_shlibpath_var=no
10328 ;;
10329
10330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10331 freebsd* | dragonfly*)
10332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10333 hardcode_libdir_flag_spec='-R$libdir'
10334 hardcode_direct=yes
10335 hardcode_shlibpath_var=no
10336 ;;
10337
10338 hpux9*)
10339 if test "$GCC" = yes; then
10340 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'
10341 else
10342 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'
10343 fi
10344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 hardcode_libdir_separator=:
10346 hardcode_direct=yes
10347
10348 # hardcode_minus_L: Not really in the search PATH,
10349 # but as the default location of the library.
10350 hardcode_minus_L=yes
10351 export_dynamic_flag_spec='${wl}-E'
10352 ;;
10353
10354 hpux10*)
10355 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10356 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10357 else
10358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10359 fi
10360 if test "$with_gnu_ld" = no; then
10361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10362 hardcode_libdir_separator=:
10363 hardcode_direct=yes
10364 hardcode_direct_absolute=yes
10365 export_dynamic_flag_spec='${wl}-E'
10366 # hardcode_minus_L: Not really in the search PATH,
10367 # but as the default location of the library.
10368 hardcode_minus_L=yes
10369 fi
10370 ;;
10371
10372 hpux11*)
10373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10374 case $host_cpu in
10375 hppa*64*)
10376 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 ;;
10378 ia64*)
10379 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10380 ;;
10381 *)
10382 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383 ;;
10384 esac
10385 else
10386 case $host_cpu in
10387 hppa*64*)
10388 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 ;;
10390 ia64*)
10391 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10392 ;;
10393 *)
10394
10395 # Older versions of the 11.00 compiler do not understand -b yet
10396 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10398 $as_echo_n "checking if $CC understands -b... " >&6; }
10399 if ${lt_cv_prog_compiler__b+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 lt_cv_prog_compiler__b=no
10403 save_LDFLAGS="$LDFLAGS"
10404 LDFLAGS="$LDFLAGS -b"
10405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10407 # The linker can only warn and ignore the option if not recognized
10408 # So say no if there are warnings
10409 if test -s conftest.err; then
10410 # Append any errors to the config.log.
10411 cat conftest.err 1>&5
10412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10414 if diff conftest.exp conftest.er2 >/dev/null; then
10415 lt_cv_prog_compiler__b=yes
10416 fi
10417 else
10418 lt_cv_prog_compiler__b=yes
10419 fi
10420 fi
10421 $RM -r conftest*
10422 LDFLAGS="$save_LDFLAGS"
10423
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10426 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10427
10428 if test x"$lt_cv_prog_compiler__b" = xyes; then
10429 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10432 fi
10433
10434 ;;
10435 esac
10436 fi
10437 if test "$with_gnu_ld" = no; then
10438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10439 hardcode_libdir_separator=:
10440
10441 case $host_cpu in
10442 hppa*64*|ia64*)
10443 hardcode_direct=no
10444 hardcode_shlibpath_var=no
10445 ;;
10446 *)
10447 hardcode_direct=yes
10448 hardcode_direct_absolute=yes
10449 export_dynamic_flag_spec='${wl}-E'
10450
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10454 ;;
10455 esac
10456 fi
10457 ;;
10458
10459 irix5* | irix6* | nonstopux*)
10460 if test "$GCC" = yes; then
10461 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'
10462 # Try to use the -exported_symbol ld option, if it does not
10463 # work, assume that -exports_file does not work either and
10464 # implicitly export all symbols.
10465 # This should be the same for all languages, so no per-tag cache variable.
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10467 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10468 if ${lt_cv_irix_exported_symbol+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 save_LDFLAGS="$LDFLAGS"
10472 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int foo (void) { return 0; }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 lt_cv_irix_exported_symbol=yes
10479 else
10480 lt_cv_irix_exported_symbol=no
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 LDFLAGS="$save_LDFLAGS"
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10487 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10488 if test "$lt_cv_irix_exported_symbol" = yes; then
10489 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'
10490 fi
10491 else
10492 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'
10493 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'
10494 fi
10495 archive_cmds_need_lc='no'
10496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10497 hardcode_libdir_separator=:
10498 inherit_rpath=yes
10499 link_all_deplibs=yes
10500 ;;
10501
10502 netbsd*)
10503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10505 else
10506 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10507 fi
10508 hardcode_libdir_flag_spec='-R$libdir'
10509 hardcode_direct=yes
10510 hardcode_shlibpath_var=no
10511 ;;
10512
10513 newsos6)
10514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515 hardcode_direct=yes
10516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10517 hardcode_libdir_separator=:
10518 hardcode_shlibpath_var=no
10519 ;;
10520
10521 *nto* | *qnx*)
10522 ;;
10523
10524 openbsd*)
10525 if test -f /usr/libexec/ld.so; then
10526 hardcode_direct=yes
10527 hardcode_shlibpath_var=no
10528 hardcode_direct_absolute=yes
10529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10531 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10533 export_dynamic_flag_spec='${wl}-E'
10534 else
10535 case $host_os in
10536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_libdir_flag_spec='-R$libdir'
10539 ;;
10540 *)
10541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10543 ;;
10544 esac
10545 fi
10546 else
10547 ld_shlibs=no
10548 fi
10549 ;;
10550
10551 os2*)
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_minus_L=yes
10554 allow_undefined_flag=unsupported
10555 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'
10556 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10557 ;;
10558
10559 osf3*)
10560 if test "$GCC" = yes; then
10561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10562 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'
10563 else
10564 allow_undefined_flag=' -expect_unresolved \*'
10565 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'
10566 fi
10567 archive_cmds_need_lc='no'
10568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10569 hardcode_libdir_separator=:
10570 ;;
10571
10572 osf4* | osf5*) # as osf3* with the addition of -msym flag
10573 if test "$GCC" = yes; then
10574 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10575 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'
10576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10577 else
10578 allow_undefined_flag=' -expect_unresolved \*'
10579 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'
10580 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~
10581 $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'
10582
10583 # Both c and cxx compiler support -rpath directly
10584 hardcode_libdir_flag_spec='-rpath $libdir'
10585 fi
10586 archive_cmds_need_lc='no'
10587 hardcode_libdir_separator=:
10588 ;;
10589
10590 solaris*)
10591 no_undefined_flag=' -z defs'
10592 if test "$GCC" = yes; then
10593 wlarc='${wl}'
10594 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10596 $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'
10597 else
10598 case `$CC -V 2>&1` in
10599 *"Compilers 5.0"*)
10600 wlarc=''
10601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10604 ;;
10605 *)
10606 wlarc='${wl}'
10607 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10609 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10610 ;;
10611 esac
10612 fi
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_shlibpath_var=no
10615 case $host_os in
10616 solaris2.[0-5] | solaris2.[0-5].*) ;;
10617 *)
10618 # The compiler driver will combine and reorder linker options,
10619 # but understands `-z linker_flag'. GCC discards it without `$wl',
10620 # but is careful enough not to reorder.
10621 # Supported since Solaris 2.6 (maybe 2.5.1?)
10622 if test "$GCC" = yes; then
10623 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10624 else
10625 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10626 fi
10627 ;;
10628 esac
10629 link_all_deplibs=yes
10630 ;;
10631
10632 sunos4*)
10633 if test "x$host_vendor" = xsequent; then
10634 # Use $CC to link under sequent, because it throws in some extra .o
10635 # files that make .init and .fini sections work.
10636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10637 else
10638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10639 fi
10640 hardcode_libdir_flag_spec='-L$libdir'
10641 hardcode_direct=yes
10642 hardcode_minus_L=yes
10643 hardcode_shlibpath_var=no
10644 ;;
10645
10646 sysv4)
10647 case $host_vendor in
10648 sni)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_direct=yes # is this really true???
10651 ;;
10652 siemens)
10653 ## LD is ld it makes a PLAMLIB
10654 ## CC just makes a GrossModule.
10655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10656 reload_cmds='$CC -r -o $output$reload_objs'
10657 hardcode_direct=no
10658 ;;
10659 motorola)
10660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10662 ;;
10663 esac
10664 runpath_var='LD_RUN_PATH'
10665 hardcode_shlibpath_var=no
10666 ;;
10667
10668 sysv4.3*)
10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_shlibpath_var=no
10671 export_dynamic_flag_spec='-Bexport'
10672 ;;
10673
10674 sysv4*MP*)
10675 if test -d /usr/nec; then
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_shlibpath_var=no
10678 runpath_var=LD_RUN_PATH
10679 hardcode_runpath_var=yes
10680 ld_shlibs=yes
10681 fi
10682 ;;
10683
10684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10685 no_undefined_flag='${wl}-z,text'
10686 archive_cmds_need_lc=no
10687 hardcode_shlibpath_var=no
10688 runpath_var='LD_RUN_PATH'
10689
10690 if test "$GCC" = yes; then
10691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 else
10694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10696 fi
10697 ;;
10698
10699 sysv5* | sco3.2v5* | sco5v6*)
10700 # Note: We can NOT use -z defs as we might desire, because we do not
10701 # link with -lc, and that would cause any symbols used from libc to
10702 # always be unresolved, which means just about no library would
10703 # ever link correctly. If we're not using GNU ld we use -z text
10704 # though, which does catch some bad symbols but isn't as heavy-handed
10705 # as -z defs.
10706 no_undefined_flag='${wl}-z,text'
10707 allow_undefined_flag='${wl}-z,nodefs'
10708 archive_cmds_need_lc=no
10709 hardcode_shlibpath_var=no
10710 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10711 hardcode_libdir_separator=':'
10712 link_all_deplibs=yes
10713 export_dynamic_flag_spec='${wl}-Bexport'
10714 runpath_var='LD_RUN_PATH'
10715
10716 if test "$GCC" = yes; then
10717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10719 else
10720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10722 fi
10723 ;;
10724
10725 uts4*)
10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_libdir_flag_spec='-L$libdir'
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 *)
10732 ld_shlibs=no
10733 ;;
10734 esac
10735
10736 if test x$host_vendor = xsni; then
10737 case $host in
10738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10739 export_dynamic_flag_spec='${wl}-Blargedynsym'
10740 ;;
10741 esac
10742 fi
10743 fi
10744
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10746 $as_echo "$ld_shlibs" >&6; }
10747 test "$ld_shlibs" = no && can_build_shared=no
10748
10749 with_gnu_ld=$with_gnu_ld
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765 #
10766 # Do we need to explicitly link libc?
10767 #
10768 case "x$archive_cmds_need_lc" in
10769 x|xyes)
10770 # Assume -lc should be added
10771 archive_cmds_need_lc=yes
10772
10773 if test "$enable_shared" = yes && test "$GCC" = yes; then
10774 case $archive_cmds in
10775 *'~'*)
10776 # FIXME: we may have to deal with multi-command sequences.
10777 ;;
10778 '$CC '*)
10779 # Test whether the compiler implicitly links with -lc since on some
10780 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10781 # to ld, don't add -lc before -lgcc.
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10783 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10784 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 $RM conftest*
10788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10789
10790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10791 (eval $ac_compile) 2>&5
10792 ac_status=$?
10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794 test $ac_status = 0; } 2>conftest.err; then
10795 soname=conftest
10796 lib=conftest
10797 libobjs=conftest.$ac_objext
10798 deplibs=
10799 wl=$lt_prog_compiler_wl
10800 pic_flag=$lt_prog_compiler_pic
10801 compiler_flags=-v
10802 linker_flags=-v
10803 verstring=
10804 output_objdir=.
10805 libname=conftest
10806 lt_save_allow_undefined_flag=$allow_undefined_flag
10807 allow_undefined_flag=
10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10809 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10810 ac_status=$?
10811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812 test $ac_status = 0; }
10813 then
10814 lt_cv_archive_cmds_need_lc=no
10815 else
10816 lt_cv_archive_cmds_need_lc=yes
10817 fi
10818 allow_undefined_flag=$lt_save_allow_undefined_flag
10819 else
10820 cat conftest.err 1>&5
10821 fi
10822 $RM conftest*
10823
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10826 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10827 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10828 ;;
10829 esac
10830 fi
10831 ;;
10832 esac
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10986 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10987
10988 if test "$GCC" = yes; then
10989 case $host_os in
10990 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10991 *) lt_awk_arg="/^libraries:/" ;;
10992 esac
10993 case $host_os in
10994 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10995 *) lt_sed_strip_eq="s,=/,/,g" ;;
10996 esac
10997 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10998 case $lt_search_path_spec in
10999 *\;*)
11000 # if the path contains ";" then we assume it to be the separator
11001 # otherwise default to the standard path separator (i.e. ":") - it is
11002 # assumed that no part of a normal pathname contains ";" but that should
11003 # okay in the real world where ";" in dirpaths is itself problematic.
11004 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11005 ;;
11006 *)
11007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11008 ;;
11009 esac
11010 # Ok, now we have the path, separated by spaces, we can step through it
11011 # and add multilib dir if necessary.
11012 lt_tmp_lt_search_path_spec=
11013 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11014 for lt_sys_path in $lt_search_path_spec; do
11015 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11017 else
11018 test -d "$lt_sys_path" && \
11019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11020 fi
11021 done
11022 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11023 BEGIN {RS=" "; FS="/|\n";} {
11024 lt_foo="";
11025 lt_count=0;
11026 for (lt_i = NF; lt_i > 0; lt_i--) {
11027 if ($lt_i != "" && $lt_i != ".") {
11028 if ($lt_i == "..") {
11029 lt_count++;
11030 } else {
11031 if (lt_count == 0) {
11032 lt_foo="/" $lt_i lt_foo;
11033 } else {
11034 lt_count--;
11035 }
11036 }
11037 }
11038 }
11039 if (lt_foo != "") { lt_freq[lt_foo]++; }
11040 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11041 }'`
11042 # AWK program above erroneously prepends '/' to C:/dos/paths
11043 # for these hosts.
11044 case $host_os in
11045 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11046 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11047 esac
11048 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11049 else
11050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11051 fi
11052 library_names_spec=
11053 libname_spec='lib$name'
11054 soname_spec=
11055 shrext_cmds=".so"
11056 postinstall_cmds=
11057 postuninstall_cmds=
11058 finish_cmds=
11059 finish_eval=
11060 shlibpath_var=
11061 shlibpath_overrides_runpath=unknown
11062 version_type=none
11063 dynamic_linker="$host_os ld.so"
11064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11065 need_lib_prefix=unknown
11066 hardcode_into_libs=no
11067
11068 # when you set need_version to no, make sure it does not cause -set_version
11069 # flags to be left without arguments
11070 need_version=unknown
11071
11072 case $host_os in
11073 aix3*)
11074 version_type=linux # correct to gnu/linux during the next big refactor
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11076 shlibpath_var=LIBPATH
11077
11078 # AIX 3 has no versioning support, so we append a major version to the name.
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 ;;
11081
11082 aix[4-9]*)
11083 version_type=linux # correct to gnu/linux during the next big refactor
11084 need_lib_prefix=no
11085 need_version=no
11086 hardcode_into_libs=yes
11087 if test "$host_cpu" = ia64; then
11088 # AIX 5 supports IA64
11089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 else
11092 # With GCC up to 2.95.x, collect2 would create an import file
11093 # for dependence libraries. The import file would start with
11094 # the line `#! .'. This would cause the generated library to
11095 # depend on `.', always an invalid library. This was fixed in
11096 # development snapshots of GCC prior to 3.0.
11097 case $host_os in
11098 aix4 | aix4.[01] | aix4.[01].*)
11099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11100 echo ' yes '
11101 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11102 :
11103 else
11104 can_build_shared=no
11105 fi
11106 ;;
11107 esac
11108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11109 # soname into executable. Probably we can add versioning support to
11110 # collect2, so additional links can be useful in future.
11111 if test "$aix_use_runtimelinking" = yes; then
11112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11113 # instead of lib<name>.a to let people know that these are not
11114 # typical AIX shared libraries.
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 else
11117 # We preserve .a as extension for shared libraries through AIX4.2
11118 # and later when we are not doing run time linking.
11119 library_names_spec='${libname}${release}.a $libname.a'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 fi
11122 shlibpath_var=LIBPATH
11123 fi
11124 ;;
11125
11126 amigaos*)
11127 case $host_cpu in
11128 powerpc)
11129 # Since July 2007 AmigaOS4 officially supports .so libraries.
11130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 ;;
11133 m68k)
11134 library_names_spec='$libname.ixlibrary $libname.a'
11135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11136 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'
11137 ;;
11138 esac
11139 ;;
11140
11141 beos*)
11142 library_names_spec='${libname}${shared_ext}'
11143 dynamic_linker="$host_os ld.so"
11144 shlibpath_var=LIBRARY_PATH
11145 ;;
11146
11147 bsdi[45]*)
11148 version_type=linux # correct to gnu/linux during the next big refactor
11149 need_version=no
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11156 # the default ld.so.conf also contains /usr/contrib/lib and
11157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11158 # libtool to hard-code these into programs
11159 ;;
11160
11161 cygwin* | mingw* | pw32* | cegcc*)
11162 version_type=windows
11163 shrext_cmds=".dll"
11164 need_version=no
11165 need_lib_prefix=no
11166
11167 case $GCC,$cc_basename in
11168 yes,*)
11169 # gcc
11170 library_names_spec='$libname.dll.a'
11171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11172 postinstall_cmds='base_file=`basename \${file}`~
11173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11174 dldir=$destdir/`dirname \$dlpath`~
11175 test -d \$dldir || mkdir -p \$dldir~
11176 $install_prog $dir/$dlname \$dldir/$dlname~
11177 chmod a+x \$dldir/$dlname~
11178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11180 fi'
11181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11182 dlpath=$dir/\$dldll~
11183 $RM \$dlpath'
11184 shlibpath_overrides_runpath=yes
11185
11186 case $host_os in
11187 cygwin*)
11188 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11189 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11190
11191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11192 ;;
11193 mingw* | cegcc*)
11194 # MinGW DLLs use traditional 'lib' prefix
11195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11196 ;;
11197 pw32*)
11198 # pw32 DLLs use 'pw' prefix rather than 'lib'
11199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11200 ;;
11201 esac
11202 dynamic_linker='Win32 ld.exe'
11203 ;;
11204
11205 *,cl*)
11206 # Native MSVC
11207 libname_spec='$name'
11208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11209 library_names_spec='${libname}.dll.lib'
11210
11211 case $build_os in
11212 mingw*)
11213 sys_lib_search_path_spec=
11214 lt_save_ifs=$IFS
11215 IFS=';'
11216 for lt_path in $LIB
11217 do
11218 IFS=$lt_save_ifs
11219 # Let DOS variable expansion print the short 8.3 style file name.
11220 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11221 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11222 done
11223 IFS=$lt_save_ifs
11224 # Convert to MSYS style.
11225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11226 ;;
11227 cygwin*)
11228 # Convert to unix form, then to dos form, then back to unix form
11229 # but this time dos style (no spaces!) so that the unix form looks
11230 # like /cygdrive/c/PROGRA~1:/cygdr...
11231 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11232 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11233 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11234 ;;
11235 *)
11236 sys_lib_search_path_spec="$LIB"
11237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11238 # It is most probably a Windows format PATH.
11239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11240 else
11241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11242 fi
11243 # FIXME: find the short name or the path components, as spaces are
11244 # common. (e.g. "Program Files" -> "PROGRA~1")
11245 ;;
11246 esac
11247
11248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11249 postinstall_cmds='base_file=`basename \${file}`~
11250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11251 dldir=$destdir/`dirname \$dlpath`~
11252 test -d \$dldir || mkdir -p \$dldir~
11253 $install_prog $dir/$dlname \$dldir/$dlname'
11254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11255 dlpath=$dir/\$dldll~
11256 $RM \$dlpath'
11257 shlibpath_overrides_runpath=yes
11258 dynamic_linker='Win32 link.exe'
11259 ;;
11260
11261 *)
11262 # Assume MSVC wrapper
11263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11264 dynamic_linker='Win32 ld.exe'
11265 ;;
11266 esac
11267 # FIXME: first we should search . and the directory the executable is in
11268 shlibpath_var=PATH
11269 ;;
11270
11271 darwin* | rhapsody*)
11272 dynamic_linker="$host_os dyld"
11273 version_type=darwin
11274 need_lib_prefix=no
11275 need_version=no
11276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11277 soname_spec='${libname}${release}${major}$shared_ext'
11278 shlibpath_overrides_runpath=yes
11279 shlibpath_var=DYLD_LIBRARY_PATH
11280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11281
11282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11284 ;;
11285
11286 dgux*)
11287 version_type=linux # correct to gnu/linux during the next big refactor
11288 need_lib_prefix=no
11289 need_version=no
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 ;;
11294
11295 freebsd* | dragonfly*)
11296 # DragonFly does not have aout. When/if they implement a new
11297 # versioning mechanism, adjust this.
11298 if test -x /usr/bin/objformat; then
11299 objformat=`/usr/bin/objformat`
11300 else
11301 case $host_os in
11302 freebsd[23].*) objformat=aout ;;
11303 *) objformat=elf ;;
11304 esac
11305 fi
11306 version_type=freebsd-$objformat
11307 case $version_type in
11308 freebsd-elf*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310 need_version=no
11311 need_lib_prefix=no
11312 ;;
11313 freebsd-*)
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11315 need_version=yes
11316 ;;
11317 esac
11318 shlibpath_var=LD_LIBRARY_PATH
11319 case $host_os in
11320 freebsd2.*)
11321 shlibpath_overrides_runpath=yes
11322 ;;
11323 freebsd3.[01]* | freebsdelf3.[01]*)
11324 shlibpath_overrides_runpath=yes
11325 hardcode_into_libs=yes
11326 ;;
11327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11331 ;;
11332 *) # from 4.6 on, and DragonFly
11333 shlibpath_overrides_runpath=yes
11334 hardcode_into_libs=yes
11335 ;;
11336 esac
11337 ;;
11338
11339 gnu*)
11340 version_type=linux # correct to gnu/linux during the next big refactor
11341 need_lib_prefix=no
11342 need_version=no
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 shlibpath_overrides_runpath=no
11347 hardcode_into_libs=yes
11348 ;;
11349
11350 haiku*)
11351 version_type=linux # correct to gnu/linux during the next big refactor
11352 need_lib_prefix=no
11353 need_version=no
11354 dynamic_linker="$host_os runtime_loader"
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 shlibpath_var=LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11359 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11360 hardcode_into_libs=yes
11361 ;;
11362
11363 hpux9* | hpux10* | hpux11*)
11364 # Give a soname corresponding to the major version so that dld.sl refuses to
11365 # link against other versions.
11366 version_type=sunos
11367 need_lib_prefix=no
11368 need_version=no
11369 case $host_cpu in
11370 ia64*)
11371 shrext_cmds='.so'
11372 hardcode_into_libs=yes
11373 dynamic_linker="$host_os dld.so"
11374 shlibpath_var=LD_LIBRARY_PATH
11375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 if test "X$HPUX_IA64_MODE" = X32; then
11379 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11380 else
11381 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11382 fi
11383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11384 ;;
11385 hppa*64*)
11386 shrext_cmds='.sl'
11387 hardcode_into_libs=yes
11388 dynamic_linker="$host_os dld.sl"
11389 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11395 ;;
11396 *)
11397 shrext_cmds='.sl'
11398 dynamic_linker="$host_os dld.sl"
11399 shlibpath_var=SHLIB_PATH
11400 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 ;;
11404 esac
11405 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11406 postinstall_cmds='chmod 555 $lib'
11407 # or fails outright, so override atomically:
11408 install_override_mode=555
11409 ;;
11410
11411 interix[3-9]*)
11412 version_type=linux # correct to gnu/linux during the next big refactor
11413 need_lib_prefix=no
11414 need_version=no
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11421 ;;
11422
11423 irix5* | irix6* | nonstopux*)
11424 case $host_os in
11425 nonstopux*) version_type=nonstopux ;;
11426 *)
11427 if test "$lt_cv_prog_gnu_ld" = yes; then
11428 version_type=linux # correct to gnu/linux during the next big refactor
11429 else
11430 version_type=irix
11431 fi ;;
11432 esac
11433 need_lib_prefix=no
11434 need_version=no
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11437 case $host_os in
11438 irix5* | nonstopux*)
11439 libsuff= shlibsuff=
11440 ;;
11441 *)
11442 case $LD in # libtool.m4 will add one of these switches to LD
11443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11444 libsuff= shlibsuff= libmagic=32-bit;;
11445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11446 libsuff=32 shlibsuff=N32 libmagic=N32;;
11447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11449 *) libsuff= shlibsuff= libmagic=never-match;;
11450 esac
11451 ;;
11452 esac
11453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11454 shlibpath_overrides_runpath=no
11455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11457 hardcode_into_libs=yes
11458 ;;
11459
11460 # No shared lib support for Linux oldld, aout, or coff.
11461 linux*oldld* | linux*aout* | linux*coff*)
11462 dynamic_linker=no
11463 ;;
11464
11465 # This must be glibc/ELF.
11466 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11467 version_type=linux # correct to gnu/linux during the next big refactor
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475
11476 # Some binutils ld are patched to set DT_RUNPATH
11477 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 lt_cv_shlibpath_overrides_runpath=no
11481 save_LDFLAGS=$LDFLAGS
11482 save_libdir=$libdir
11483 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11484 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487
11488 int
11489 main ()
11490 {
11491
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11498 lt_cv_shlibpath_overrides_runpath=yes
11499 fi
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LDFLAGS=$save_LDFLAGS
11504 libdir=$save_libdir
11505
11506 fi
11507
11508 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11509
11510 # This implies no fast_install, which is unacceptable.
11511 # Some rework will be needed to allow for fast_install
11512 # before this can be enabled.
11513 hardcode_into_libs=yes
11514
11515 # Add ABI-specific directories to the system library path.
11516 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11517
11518 # Append ld.so.conf contents to the search path
11519 if test -f /etc/ld.so.conf; then
11520 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' ' '`
11521 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11522
11523 fi
11524
11525 # We used to test for /lib/ld.so.1 and disable shared libraries on
11526 # powerpc, because MkLinux only supported shared libraries with the
11527 # GNU dynamic linker. Since this was broken with cross compilers,
11528 # most powerpc-linux boxes support dynamic linking these days and
11529 # people can always --disable-shared, the test was removed, and we
11530 # assume the GNU/Linux dynamic linker is in use.
11531 dynamic_linker='GNU/Linux ld.so'
11532 ;;
11533
11534 netbsd*)
11535 version_type=sunos
11536 need_lib_prefix=no
11537 need_version=no
11538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11541 dynamic_linker='NetBSD (a.out) ld.so'
11542 else
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 dynamic_linker='NetBSD ld.elf_so'
11546 fi
11547 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11549 hardcode_into_libs=yes
11550 ;;
11551
11552 newsos6)
11553 version_type=linux # correct to gnu/linux during the next big refactor
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11557 ;;
11558
11559 *nto* | *qnx*)
11560 version_type=qnx
11561 need_lib_prefix=no
11562 need_version=no
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=no
11567 hardcode_into_libs=yes
11568 dynamic_linker='ldqnx.so'
11569 ;;
11570
11571 openbsd*)
11572 version_type=sunos
11573 sys_lib_dlsearch_path_spec="/usr/lib"
11574 need_lib_prefix=no
11575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11576 case $host_os in
11577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11578 *) need_version=no ;;
11579 esac
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11584 case $host_os in
11585 openbsd2.[89] | openbsd2.[89].*)
11586 shlibpath_overrides_runpath=no
11587 ;;
11588 *)
11589 shlibpath_overrides_runpath=yes
11590 ;;
11591 esac
11592 else
11593 shlibpath_overrides_runpath=yes
11594 fi
11595 ;;
11596
11597 os2*)
11598 libname_spec='$name'
11599 shrext_cmds=".dll"
11600 need_lib_prefix=no
11601 library_names_spec='$libname${shared_ext} $libname.a'
11602 dynamic_linker='OS/2 ld.exe'
11603 shlibpath_var=LIBPATH
11604 ;;
11605
11606 osf3* | osf4* | osf5*)
11607 version_type=osf
11608 need_lib_prefix=no
11609 need_version=no
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11615 ;;
11616
11617 rdos*)
11618 dynamic_linker=no
11619 ;;
11620
11621 solaris*)
11622 version_type=linux # correct to gnu/linux during the next big refactor
11623 need_lib_prefix=no
11624 need_version=no
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes
11629 hardcode_into_libs=yes
11630 # ldd complains unless libraries are executable
11631 postinstall_cmds='chmod +x $lib'
11632 ;;
11633
11634 sunos4*)
11635 version_type=sunos
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=yes
11640 if test "$with_gnu_ld" = yes; then
11641 need_lib_prefix=no
11642 fi
11643 need_version=yes
11644 ;;
11645
11646 sysv4 | sysv4.3*)
11647 version_type=linux # correct to gnu/linux during the next big refactor
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 case $host_vendor in
11652 sni)
11653 shlibpath_overrides_runpath=no
11654 need_lib_prefix=no
11655 runpath_var=LD_RUN_PATH
11656 ;;
11657 siemens)
11658 need_lib_prefix=no
11659 ;;
11660 motorola)
11661 need_lib_prefix=no
11662 need_version=no
11663 shlibpath_overrides_runpath=no
11664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11665 ;;
11666 esac
11667 ;;
11668
11669 sysv4*MP*)
11670 if test -d /usr/nec ;then
11671 version_type=linux # correct to gnu/linux during the next big refactor
11672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11673 soname_spec='$libname${shared_ext}.$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 fi
11676 ;;
11677
11678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679 version_type=freebsd-elf
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=yes
11686 hardcode_into_libs=yes
11687 if test "$with_gnu_ld" = yes; then
11688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11689 else
11690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11691 case $host_os in
11692 sco3.2v5*)
11693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11694 ;;
11695 esac
11696 fi
11697 sys_lib_dlsearch_path_spec='/usr/lib'
11698 ;;
11699
11700 tpf*)
11701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11702 version_type=linux # correct to gnu/linux during the next big refactor
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=no
11708 hardcode_into_libs=yes
11709 ;;
11710
11711 uts4*)
11712 version_type=linux # correct to gnu/linux during the next big refactor
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 ;;
11717
11718 *)
11719 dynamic_linker=no
11720 ;;
11721 esac
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11723 $as_echo "$dynamic_linker" >&6; }
11724 test "$dynamic_linker" = no && can_build_shared=no
11725
11726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11727 if test "$GCC" = yes; then
11728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11729 fi
11730
11731 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11732 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11733 fi
11734 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11735 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11736 fi
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11831 hardcode_action=
11832 if test -n "$hardcode_libdir_flag_spec" ||
11833 test -n "$runpath_var" ||
11834 test "X$hardcode_automatic" = "Xyes" ; then
11835
11836 # We can hardcode non-existent directories.
11837 if test "$hardcode_direct" != no &&
11838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11839 # have to relink, otherwise we might link with an installed library
11840 # when we should be linking with a yet-to-be-installed one
11841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11842 test "$hardcode_minus_L" != no; then
11843 # Linking always hardcodes the temporary library directory.
11844 hardcode_action=relink
11845 else
11846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11847 hardcode_action=immediate
11848 fi
11849 else
11850 # We cannot hardcode anything, or else we can only hardcode existing
11851 # directories.
11852 hardcode_action=unsupported
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11855 $as_echo "$hardcode_action" >&6; }
11856
11857 if test "$hardcode_action" = relink ||
11858 test "$inherit_rpath" = yes; then
11859 # Fast installation is not supported
11860 enable_fast_install=no
11861 elif test "$shlibpath_overrides_runpath" = yes ||
11862 test "$enable_shared" = no; then
11863 # Fast installation is not necessary
11864 enable_fast_install=needless
11865 fi
11866
11867
11868
11869
11870
11871
11872 if test "x$enable_dlopen" != xyes; then
11873 enable_dlopen=unknown
11874 enable_dlopen_self=unknown
11875 enable_dlopen_self_static=unknown
11876 else
11877 lt_cv_dlopen=no
11878 lt_cv_dlopen_libs=
11879
11880 case $host_os in
11881 beos*)
11882 lt_cv_dlopen="load_add_on"
11883 lt_cv_dlopen_libs=
11884 lt_cv_dlopen_self=yes
11885 ;;
11886
11887 mingw* | pw32* | cegcc*)
11888 lt_cv_dlopen="LoadLibrary"
11889 lt_cv_dlopen_libs=
11890 ;;
11891
11892 cygwin*)
11893 lt_cv_dlopen="dlopen"
11894 lt_cv_dlopen_libs=
11895 ;;
11896
11897 darwin*)
11898 # if libdl is installed we need to link against it
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11900 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11901 if ${ac_cv_lib_dl_dlopen+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-ldl $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dlopen ();
11916 int
11917 main ()
11918 {
11919 return dlopen ();
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_dl_dlopen=yes
11926 else
11927 ac_cv_lib_dl_dlopen=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11934 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11935 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11937 else
11938
11939 lt_cv_dlopen="dyld"
11940 lt_cv_dlopen_libs=
11941 lt_cv_dlopen_self=yes
11942
11943 fi
11944
11945 ;;
11946
11947 *)
11948 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11949 if test "x$ac_cv_func_shl_load" = xyes; then :
11950 lt_cv_dlopen="shl_load"
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11953 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11954 if ${ac_cv_lib_dld_shl_load+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-ldld $LIBS"
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char shl_load ();
11969 int
11970 main ()
11971 {
11972 return shl_load ();
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 if ac_fn_c_try_link "$LINENO"; then :
11978 ac_cv_lib_dld_shl_load=yes
11979 else
11980 ac_cv_lib_dld_shl_load=no
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11987 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11988 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11989 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11990 else
11991 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11992 if test "x$ac_cv_func_dlopen" = xyes; then :
11993 lt_cv_dlopen="dlopen"
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11996 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11997 if ${ac_cv_lib_dl_dlopen+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-ldl $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 char dlopen ();
12012 int
12013 main ()
12014 {
12015 return dlopen ();
12016 ;
12017 return 0;
12018 }
12019 _ACEOF
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_dl_dlopen=yes
12022 else
12023 ac_cv_lib_dl_dlopen=no
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12030 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12031 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12035 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12036 if ${ac_cv_lib_svld_dlopen+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-lsvld $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char dlopen ();
12051 int
12052 main ()
12053 {
12054 return dlopen ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_svld_dlopen=yes
12061 else
12062 ac_cv_lib_svld_dlopen=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12069 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12070 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12074 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12075 if ${ac_cv_lib_dld_dld_link+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-ldld $LIBS"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char dld_link ();
12090 int
12091 main ()
12092 {
12093 return dld_link ();
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 ac_cv_lib_dld_dld_link=yes
12100 else
12101 ac_cv_lib_dld_dld_link=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12108 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12109 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12110 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12111 fi
12112
12113
12114 fi
12115
12116
12117 fi
12118
12119
12120 fi
12121
12122
12123 fi
12124
12125
12126 fi
12127
12128 ;;
12129 esac
12130
12131 if test "x$lt_cv_dlopen" != xno; then
12132 enable_dlopen=yes
12133 else
12134 enable_dlopen=no
12135 fi
12136
12137 case $lt_cv_dlopen in
12138 dlopen)
12139 save_CPPFLAGS="$CPPFLAGS"
12140 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12141
12142 save_LDFLAGS="$LDFLAGS"
12143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12144
12145 save_LIBS="$LIBS"
12146 LIBS="$lt_cv_dlopen_libs $LIBS"
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12149 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12150 if ${lt_cv_dlopen_self+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 if test "$cross_compiling" = yes; then :
12154 lt_cv_dlopen_self=cross
12155 else
12156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12157 lt_status=$lt_dlunknown
12158 cat > conftest.$ac_ext <<_LT_EOF
12159 #line $LINENO "configure"
12160 #include "confdefs.h"
12161
12162 #if HAVE_DLFCN_H
12163 #include <dlfcn.h>
12164 #endif
12165
12166 #include <stdio.h>
12167
12168 #ifdef RTLD_GLOBAL
12169 # define LT_DLGLOBAL RTLD_GLOBAL
12170 #else
12171 # ifdef DL_GLOBAL
12172 # define LT_DLGLOBAL DL_GLOBAL
12173 # else
12174 # define LT_DLGLOBAL 0
12175 # endif
12176 #endif
12177
12178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12179 find out it does not work in some platform. */
12180 #ifndef LT_DLLAZY_OR_NOW
12181 # ifdef RTLD_LAZY
12182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12183 # else
12184 # ifdef DL_LAZY
12185 # define LT_DLLAZY_OR_NOW DL_LAZY
12186 # else
12187 # ifdef RTLD_NOW
12188 # define LT_DLLAZY_OR_NOW RTLD_NOW
12189 # else
12190 # ifdef DL_NOW
12191 # define LT_DLLAZY_OR_NOW DL_NOW
12192 # else
12193 # define LT_DLLAZY_OR_NOW 0
12194 # endif
12195 # endif
12196 # endif
12197 # endif
12198 #endif
12199
12200 /* When -fvisbility=hidden is used, assume the code has been annotated
12201 correspondingly for the symbols needed. */
12202 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12203 int fnord () __attribute__((visibility("default")));
12204 #endif
12205
12206 int fnord () { return 42; }
12207 int main ()
12208 {
12209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12210 int status = $lt_dlunknown;
12211
12212 if (self)
12213 {
12214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12215 else
12216 {
12217 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12218 else puts (dlerror ());
12219 }
12220 /* dlclose (self); */
12221 }
12222 else
12223 puts (dlerror ());
12224
12225 return status;
12226 }
12227 _LT_EOF
12228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12229 (eval $ac_link) 2>&5
12230 ac_status=$?
12231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12232 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12233 (./conftest; exit; ) >&5 2>/dev/null
12234 lt_status=$?
12235 case x$lt_status in
12236 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12237 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12238 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12239 esac
12240 else :
12241 # compilation failed
12242 lt_cv_dlopen_self=no
12243 fi
12244 fi
12245 rm -fr conftest*
12246
12247
12248 fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12250 $as_echo "$lt_cv_dlopen_self" >&6; }
12251
12252 if test "x$lt_cv_dlopen_self" = xyes; then
12253 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12255 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12256 if ${lt_cv_dlopen_self_static+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test "$cross_compiling" = yes; then :
12260 lt_cv_dlopen_self_static=cross
12261 else
12262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12263 lt_status=$lt_dlunknown
12264 cat > conftest.$ac_ext <<_LT_EOF
12265 #line $LINENO "configure"
12266 #include "confdefs.h"
12267
12268 #if HAVE_DLFCN_H
12269 #include <dlfcn.h>
12270 #endif
12271
12272 #include <stdio.h>
12273
12274 #ifdef RTLD_GLOBAL
12275 # define LT_DLGLOBAL RTLD_GLOBAL
12276 #else
12277 # ifdef DL_GLOBAL
12278 # define LT_DLGLOBAL DL_GLOBAL
12279 # else
12280 # define LT_DLGLOBAL 0
12281 # endif
12282 #endif
12283
12284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12285 find out it does not work in some platform. */
12286 #ifndef LT_DLLAZY_OR_NOW
12287 # ifdef RTLD_LAZY
12288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12289 # else
12290 # ifdef DL_LAZY
12291 # define LT_DLLAZY_OR_NOW DL_LAZY
12292 # else
12293 # ifdef RTLD_NOW
12294 # define LT_DLLAZY_OR_NOW RTLD_NOW
12295 # else
12296 # ifdef DL_NOW
12297 # define LT_DLLAZY_OR_NOW DL_NOW
12298 # else
12299 # define LT_DLLAZY_OR_NOW 0
12300 # endif
12301 # endif
12302 # endif
12303 # endif
12304 #endif
12305
12306 /* When -fvisbility=hidden is used, assume the code has been annotated
12307 correspondingly for the symbols needed. */
12308 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12309 int fnord () __attribute__((visibility("default")));
12310 #endif
12311
12312 int fnord () { return 42; }
12313 int main ()
12314 {
12315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12316 int status = $lt_dlunknown;
12317
12318 if (self)
12319 {
12320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12321 else
12322 {
12323 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12324 else puts (dlerror ());
12325 }
12326 /* dlclose (self); */
12327 }
12328 else
12329 puts (dlerror ());
12330
12331 return status;
12332 }
12333 _LT_EOF
12334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12335 (eval $ac_link) 2>&5
12336 ac_status=$?
12337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12338 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12339 (./conftest; exit; ) >&5 2>/dev/null
12340 lt_status=$?
12341 case x$lt_status in
12342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12344 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12345 esac
12346 else :
12347 # compilation failed
12348 lt_cv_dlopen_self_static=no
12349 fi
12350 fi
12351 rm -fr conftest*
12352
12353
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12356 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12357 fi
12358
12359 CPPFLAGS="$save_CPPFLAGS"
12360 LDFLAGS="$save_LDFLAGS"
12361 LIBS="$save_LIBS"
12362 ;;
12363 esac
12364
12365 case $lt_cv_dlopen_self in
12366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12367 *) enable_dlopen_self=unknown ;;
12368 esac
12369
12370 case $lt_cv_dlopen_self_static in
12371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12372 *) enable_dlopen_self_static=unknown ;;
12373 esac
12374 fi
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392 striplib=
12393 old_striplib=
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12395 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12396 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12397 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12398 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12401 else
12402 # FIXME - insert some real tests, host_os isn't really good enough
12403 case $host_os in
12404 darwin*)
12405 if test -n "$STRIP" ; then
12406 striplib="$STRIP -x"
12407 old_striplib="$STRIP -S"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12409 $as_echo "yes" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 fi
12414 ;;
12415 *)
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 ;;
12419 esac
12420 fi
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433 # Report which library types will actually be built
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12435 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12437 $as_echo "$can_build_shared" >&6; }
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12440 $as_echo_n "checking whether to build shared libraries... " >&6; }
12441 test "$can_build_shared" = "no" && enable_shared=no
12442
12443 # On AIX, shared libraries and static libraries use the same namespace, and
12444 # are all built from PIC.
12445 case $host_os in
12446 aix3*)
12447 test "$enable_shared" = yes && enable_static=no
12448 if test -n "$RANLIB"; then
12449 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12450 postinstall_cmds='$RANLIB $lib'
12451 fi
12452 ;;
12453
12454 aix[4-9]*)
12455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12456 test "$enable_shared" = yes && enable_static=no
12457 fi
12458 ;;
12459 esac
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12461 $as_echo "$enable_shared" >&6; }
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12464 $as_echo_n "checking whether to build static libraries... " >&6; }
12465 # Make sure either enable_shared or enable_static is yes.
12466 test "$enable_shared" = yes || enable_static=yes
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12468 $as_echo "$enable_static" >&6; }
12469
12470
12471
12472
12473 fi
12474 ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 CC="$lt_save_CC"
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496 ac_config_commands="$ac_config_commands libtool"
12497
12498
12499
12500
12501 # Only expand once:
12502
12503
12504
12505
12506 ac_config_files="$ac_config_files Makefile strpool/Makefile libatasmart.pc"
12507
12508 cat >confcache <<\_ACEOF
12509 # This file is a shell script that caches the results of configure
12510 # tests run on this system so they can be shared between configure
12511 # scripts and configure runs, see configure's option --config-cache.
12512 # It is not useful on other systems. If it contains results you don't
12513 # want to keep, you may remove or edit it.
12514 #
12515 # config.status only pays attention to the cache file if you give it
12516 # the --recheck option to rerun configure.
12517 #
12518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12520 # following values.
12521
12522 _ACEOF
12523
12524 # The following way of writing the cache mishandles newlines in values,
12525 # but we know of no workaround that is simple, portable, and efficient.
12526 # So, we kill variables containing newlines.
12527 # Ultrix sh set writes to stderr and can't be redirected directly,
12528 # and sets the high bit in the cache file unless we assign to the vars.
12529 (
12530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12531 eval ac_val=\$$ac_var
12532 case $ac_val in #(
12533 *${as_nl}*)
12534 case $ac_var in #(
12535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12537 esac
12538 case $ac_var in #(
12539 _ | IFS | as_nl) ;; #(
12540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12541 *) { eval $ac_var=; unset $ac_var;} ;;
12542 esac ;;
12543 esac
12544 done
12545
12546 (set) 2>&1 |
12547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12548 *${as_nl}ac_space=\ *)
12549 # `set' does not quote correctly, so add quotes: double-quote
12550 # substitution turns \\\\ into \\, and sed turns \\ into \.
12551 sed -n \
12552 "s/'/'\\\\''/g;
12553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12554 ;; #(
12555 *)
12556 # `set' quotes correctly as required by POSIX, so do not add quotes.
12557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12558 ;;
12559 esac |
12560 sort
12561 ) |
12562 sed '
12563 /^ac_cv_env_/b end
12564 t clear
12565 :clear
12566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12567 t end
12568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12569 :end' >>confcache
12570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12571 if test -w "$cache_file"; then
12572 if test "x$cache_file" != "x/dev/null"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12574 $as_echo "$as_me: updating cache $cache_file" >&6;}
12575 if test ! -f "$cache_file" || test -h "$cache_file"; then
12576 cat confcache >"$cache_file"
12577 else
12578 case $cache_file in #(
12579 */* | ?:*)
12580 mv -f confcache "$cache_file"$$ &&
12581 mv -f "$cache_file"$$ "$cache_file" ;; #(
12582 *)
12583 mv -f confcache "$cache_file" ;;
12584 esac
12585 fi
12586 fi
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12590 fi
12591 fi
12592 rm -f confcache
12593
12594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12595 # Let make expand exec_prefix.
12596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12597
12598 DEFS=-DHAVE_CONFIG_H
12599
12600 ac_libobjs=
12601 ac_ltlibobjs=
12602 U=
12603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12604 # 1. Remove the extension, and $U if already installed.
12605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12608 # will be set to the directory where LIBOBJS objects are built.
12609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12611 done
12612 LIBOBJS=$ac_libobjs
12613
12614 LTLIBOBJS=$ac_ltlibobjs
12615
12616
12617 if test -n "$EXEEXT"; then
12618 am__EXEEXT_TRUE=
12619 am__EXEEXT_FALSE='#'
12620 else
12621 am__EXEEXT_TRUE='#'
12622 am__EXEEXT_FALSE=
12623 fi
12624
12625 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12626 as_fn_error $? "conditional \"AMDEP\" was never defined.
12627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12628 fi
12629 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12630 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12632 fi
12633
12634 : "${CONFIG_STATUS=./config.status}"
12635 ac_write_fail=0
12636 ac_clean_files_save=$ac_clean_files
12637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12640 as_write_fail=0
12641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12642 #! $SHELL
12643 # Generated by $as_me.
12644 # Run this file to recreate the current configuration.
12645 # Compiler output produced by configure, useful for debugging
12646 # configure, is in config.log if it exists.
12647
12648 debug=false
12649 ac_cs_recheck=false
12650 ac_cs_silent=false
12651
12652 SHELL=\${CONFIG_SHELL-$SHELL}
12653 export SHELL
12654 _ASEOF
12655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12656 ## -------------------- ##
12657 ## M4sh Initialization. ##
12658 ## -------------------- ##
12659
12660 # Be more Bourne compatible
12661 DUALCASE=1; export DUALCASE # for MKS sh
12662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12663 emulate sh
12664 NULLCMD=:
12665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12666 # is contrary to our usage. Disable this feature.
12667 alias -g '${1+"$@"}'='"$@"'
12668 setopt NO_GLOB_SUBST
12669 else
12670 case `(set -o) 2>/dev/null` in #(
12671 *posix*) :
12672 set -o posix ;; #(
12673 *) :
12674 ;;
12675 esac
12676 fi
12677
12678
12679 as_nl='
12680 '
12681 export as_nl
12682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12686 # Prefer a ksh shell builtin over an external printf program on Solaris,
12687 # but without wasting forks for bash or zsh.
12688 if test -z "$BASH_VERSION$ZSH_VERSION" \
12689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12690 as_echo='print -r --'
12691 as_echo_n='print -rn --'
12692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12693 as_echo='printf %s\n'
12694 as_echo_n='printf %s'
12695 else
12696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12697 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12698 as_echo_n='/usr/ucb/echo -n'
12699 else
12700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12701 as_echo_n_body='eval
12702 arg=$1;
12703 case $arg in #(
12704 *"$as_nl"*)
12705 expr "X$arg" : "X\\(.*\\)$as_nl";
12706 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12707 esac;
12708 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12709 '
12710 export as_echo_n_body
12711 as_echo_n='sh -c $as_echo_n_body as_echo'
12712 fi
12713 export as_echo_body
12714 as_echo='sh -c $as_echo_body as_echo'
12715 fi
12716
12717 # The user is always right.
12718 if test "${PATH_SEPARATOR+set}" != set; then
12719 PATH_SEPARATOR=:
12720 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12721 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12722 PATH_SEPARATOR=';'
12723 }
12724 fi
12725
12726
12727 # IFS
12728 # We need space, tab and new line, in precisely that order. Quoting is
12729 # there to prevent editors from complaining about space-tab.
12730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12731 # splitting by setting IFS to empty value.)
12732 IFS=" "" $as_nl"
12733
12734 # Find who we are. Look in the path if we contain no directory separator.
12735 as_myself=
12736 case $0 in #((
12737 *[\\/]* ) as_myself=$0 ;;
12738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12740 do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12744 done
12745 IFS=$as_save_IFS
12746
12747 ;;
12748 esac
12749 # We did not find ourselves, most probably we were run as `sh COMMAND'
12750 # in which case we are not to be found in the path.
12751 if test "x$as_myself" = x; then
12752 as_myself=$0
12753 fi
12754 if test ! -f "$as_myself"; then
12755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12756 exit 1
12757 fi
12758
12759 # Unset variables that we do not need and which cause bugs (e.g. in
12760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12761 # suppresses any "Segmentation fault" message there. '((' could
12762 # trigger a bug in pdksh 5.2.14.
12763 for as_var in BASH_ENV ENV MAIL MAILPATH
12764 do eval test x\${$as_var+set} = xset \
12765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12766 done
12767 PS1='$ '
12768 PS2='> '
12769 PS4='+ '
12770
12771 # NLS nuisances.
12772 LC_ALL=C
12773 export LC_ALL
12774 LANGUAGE=C
12775 export LANGUAGE
12776
12777 # CDPATH.
12778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12779
12780
12781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12782 # ----------------------------------------
12783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12785 # script with STATUS, using 1 if that was 0.
12786 as_fn_error ()
12787 {
12788 as_status=$1; test $as_status -eq 0 && as_status=1
12789 if test "$4"; then
12790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12792 fi
12793 $as_echo "$as_me: error: $2" >&2
12794 as_fn_exit $as_status
12795 } # as_fn_error
12796
12797
12798 # as_fn_set_status STATUS
12799 # -----------------------
12800 # Set $? to STATUS, without forking.
12801 as_fn_set_status ()
12802 {
12803 return $1
12804 } # as_fn_set_status
12805
12806 # as_fn_exit STATUS
12807 # -----------------
12808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12809 as_fn_exit ()
12810 {
12811 set +e
12812 as_fn_set_status $1
12813 exit $1
12814 } # as_fn_exit
12815
12816 # as_fn_unset VAR
12817 # ---------------
12818 # Portably unset VAR.
12819 as_fn_unset ()
12820 {
12821 { eval $1=; unset $1;}
12822 }
12823 as_unset=as_fn_unset
12824 # as_fn_append VAR VALUE
12825 # ----------------------
12826 # Append the text in VALUE to the end of the definition contained in VAR. Take
12827 # advantage of any shell optimizations that allow amortized linear growth over
12828 # repeated appends, instead of the typical quadratic growth present in naive
12829 # implementations.
12830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12831 eval 'as_fn_append ()
12832 {
12833 eval $1+=\$2
12834 }'
12835 else
12836 as_fn_append ()
12837 {
12838 eval $1=\$$1\$2
12839 }
12840 fi # as_fn_append
12841
12842 # as_fn_arith ARG...
12843 # ------------------
12844 # Perform arithmetic evaluation on the ARGs, and store the result in the
12845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12846 # must be portable across $(()) and expr.
12847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12848 eval 'as_fn_arith ()
12849 {
12850 as_val=$(( $* ))
12851 }'
12852 else
12853 as_fn_arith ()
12854 {
12855 as_val=`expr "$@" || test $? -eq 1`
12856 }
12857 fi # as_fn_arith
12858
12859
12860 if expr a : '\(a\)' >/dev/null 2>&1 &&
12861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12862 as_expr=expr
12863 else
12864 as_expr=false
12865 fi
12866
12867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12868 as_basename=basename
12869 else
12870 as_basename=false
12871 fi
12872
12873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12874 as_dirname=dirname
12875 else
12876 as_dirname=false
12877 fi
12878
12879 as_me=`$as_basename -- "$0" ||
12880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12881 X"$0" : 'X\(//\)$' \| \
12882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12883 $as_echo X/"$0" |
12884 sed '/^.*\/\([^/][^/]*\)\/*$/{
12885 s//\1/
12886 q
12887 }
12888 /^X\/\(\/\/\)$/{
12889 s//\1/
12890 q
12891 }
12892 /^X\/\(\/\).*/{
12893 s//\1/
12894 q
12895 }
12896 s/.*/./; q'`
12897
12898 # Avoid depending upon Character Ranges.
12899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12902 as_cr_digits='0123456789'
12903 as_cr_alnum=$as_cr_Letters$as_cr_digits
12904
12905 ECHO_C= ECHO_N= ECHO_T=
12906 case `echo -n x` in #(((((
12907 -n*)
12908 case `echo 'xy\c'` in
12909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12910 xy) ECHO_C='\c';;
12911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12912 ECHO_T=' ';;
12913 esac;;
12914 *)
12915 ECHO_N='-n';;
12916 esac
12917
12918 rm -f conf$$ conf$$.exe conf$$.file
12919 if test -d conf$$.dir; then
12920 rm -f conf$$.dir/conf$$.file
12921 else
12922 rm -f conf$$.dir
12923 mkdir conf$$.dir 2>/dev/null
12924 fi
12925 if (echo >conf$$.file) 2>/dev/null; then
12926 if ln -s conf$$.file conf$$ 2>/dev/null; then
12927 as_ln_s='ln -s'
12928 # ... but there are two gotchas:
12929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12931 # In both cases, we have to default to `cp -p'.
12932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12933 as_ln_s='cp -p'
12934 elif ln conf$$.file conf$$ 2>/dev/null; then
12935 as_ln_s=ln
12936 else
12937 as_ln_s='cp -p'
12938 fi
12939 else
12940 as_ln_s='cp -p'
12941 fi
12942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12943 rmdir conf$$.dir 2>/dev/null
12944
12945
12946 # as_fn_mkdir_p
12947 # -------------
12948 # Create "$as_dir" as a directory, including parents if necessary.
12949 as_fn_mkdir_p ()
12950 {
12951
12952 case $as_dir in #(
12953 -*) as_dir=./$as_dir;;
12954 esac
12955 test -d "$as_dir" || eval $as_mkdir_p || {
12956 as_dirs=
12957 while :; do
12958 case $as_dir in #(
12959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12960 *) as_qdir=$as_dir;;
12961 esac
12962 as_dirs="'$as_qdir' $as_dirs"
12963 as_dir=`$as_dirname -- "$as_dir" ||
12964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12965 X"$as_dir" : 'X\(//\)[^/]' \| \
12966 X"$as_dir" : 'X\(//\)$' \| \
12967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12968 $as_echo X"$as_dir" |
12969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12970 s//\1/
12971 q
12972 }
12973 /^X\(\/\/\)[^/].*/{
12974 s//\1/
12975 q
12976 }
12977 /^X\(\/\/\)$/{
12978 s//\1/
12979 q
12980 }
12981 /^X\(\/\).*/{
12982 s//\1/
12983 q
12984 }
12985 s/.*/./; q'`
12986 test -d "$as_dir" && break
12987 done
12988 test -z "$as_dirs" || eval "mkdir $as_dirs"
12989 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12990
12991
12992 } # as_fn_mkdir_p
12993 if mkdir -p . 2>/dev/null; then
12994 as_mkdir_p='mkdir -p "$as_dir"'
12995 else
12996 test -d ./-p && rmdir ./-p
12997 as_mkdir_p=false
12998 fi
12999
13000 if test -x / >/dev/null 2>&1; then
13001 as_test_x='test -x'
13002 else
13003 if ls -dL / >/dev/null 2>&1; then
13004 as_ls_L_option=L
13005 else
13006 as_ls_L_option=
13007 fi
13008 as_test_x='
13009 eval sh -c '\''
13010 if test -d "$1"; then
13011 test -d "$1/.";
13012 else
13013 case $1 in #(
13014 -*)set "./$1";;
13015 esac;
13016 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13017 ???[sx]*):;;*)false;;esac;fi
13018 '\'' sh
13019 '
13020 fi
13021 as_executable_p=$as_test_x
13022
13023 # Sed expression to map a string onto a valid CPP name.
13024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13025
13026 # Sed expression to map a string onto a valid variable name.
13027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13028
13029
13030 exec 6>&1
13031 ## ----------------------------------- ##
13032 ## Main body of $CONFIG_STATUS script. ##
13033 ## ----------------------------------- ##
13034 _ASEOF
13035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13036
13037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13038 # Save the log message, to keep $0 and so on meaningful, and to
13039 # report actual input values of CONFIG_FILES etc. instead of their
13040 # values after options handling.
13041 ac_log="
13042 This file was extended by libatasmart $as_me 0.19, which was
13043 generated by GNU Autoconf 2.68. Invocation command line was
13044
13045 CONFIG_FILES = $CONFIG_FILES
13046 CONFIG_HEADERS = $CONFIG_HEADERS
13047 CONFIG_LINKS = $CONFIG_LINKS
13048 CONFIG_COMMANDS = $CONFIG_COMMANDS
13049 $ $0 $@
13050
13051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13052 "
13053
13054 _ACEOF
13055
13056 case $ac_config_files in *"
13057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13058 esac
13059
13060 case $ac_config_headers in *"
13061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13062 esac
13063
13064
13065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13066 # Files that config.status was made for.
13067 config_files="$ac_config_files"
13068 config_headers="$ac_config_headers"
13069 config_commands="$ac_config_commands"
13070
13071 _ACEOF
13072
13073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13074 ac_cs_usage="\
13075 \`$as_me' instantiates files and other configuration actions
13076 from templates according to the current configuration. Unless the files
13077 and actions are specified as TAGs, all are instantiated by default.
13078
13079 Usage: $0 [OPTION]... [TAG]...
13080
13081 -h, --help print this help, then exit
13082 -V, --version print version number and configuration settings, then exit
13083 --config print configuration, then exit
13084 -q, --quiet, --silent
13085 do not print progress messages
13086 -d, --debug don't remove temporary files
13087 --recheck update $as_me by reconfiguring in the same conditions
13088 --file=FILE[:TEMPLATE]
13089 instantiate the configuration file FILE
13090 --header=FILE[:TEMPLATE]
13091 instantiate the configuration header FILE
13092
13093 Configuration files:
13094 $config_files
13095
13096 Configuration headers:
13097 $config_headers
13098
13099 Configuration commands:
13100 $config_commands
13101
13102 Report bugs to <mzyvongnfzneg (at) 0pointer (dot) net>.
13103 libatasmart home page: <http://git.0pointer.de/?p=libatasmart.git>."
13104
13105 _ACEOF
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13108 ac_cs_version="\\
13109 libatasmart config.status 0.19
13110 configured by $0, generated by GNU Autoconf 2.68,
13111 with options \\"\$ac_cs_config\\"
13112
13113 Copyright (C) 2010 Free Software Foundation, Inc.
13114 This config.status script is free software; the Free Software Foundation
13115 gives unlimited permission to copy, distribute and modify it."
13116
13117 ac_pwd='$ac_pwd'
13118 srcdir='$srcdir'
13119 INSTALL='$INSTALL'
13120 MKDIR_P='$MKDIR_P'
13121 AWK='$AWK'
13122 test -n "\$AWK" || AWK=awk
13123 _ACEOF
13124
13125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13126 # The default lists apply if the user does not specify any file.
13127 ac_need_defaults=:
13128 while test $# != 0
13129 do
13130 case $1 in
13131 --*=?*)
13132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13134 ac_shift=:
13135 ;;
13136 --*=)
13137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13138 ac_optarg=
13139 ac_shift=:
13140 ;;
13141 *)
13142 ac_option=$1
13143 ac_optarg=$2
13144 ac_shift=shift
13145 ;;
13146 esac
13147
13148 case $ac_option in
13149 # Handling of the options.
13150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13151 ac_cs_recheck=: ;;
13152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13153 $as_echo "$ac_cs_version"; exit ;;
13154 --config | --confi | --conf | --con | --co | --c )
13155 $as_echo "$ac_cs_config"; exit ;;
13156 --debug | --debu | --deb | --de | --d | -d )
13157 debug=: ;;
13158 --file | --fil | --fi | --f )
13159 $ac_shift
13160 case $ac_optarg in
13161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13162 '') as_fn_error $? "missing file argument" ;;
13163 esac
13164 as_fn_append CONFIG_FILES " '$ac_optarg'"
13165 ac_need_defaults=false;;
13166 --header | --heade | --head | --hea )
13167 $ac_shift
13168 case $ac_optarg in
13169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13170 esac
13171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13172 ac_need_defaults=false;;
13173 --he | --h)
13174 # Conflict between --help and --header
13175 as_fn_error $? "ambiguous option: \`$1'
13176 Try \`$0 --help' for more information.";;
13177 --help | --hel | -h )
13178 $as_echo "$ac_cs_usage"; exit ;;
13179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13181 ac_cs_silent=: ;;
13182
13183 # This is an error.
13184 -*) as_fn_error $? "unrecognized option: \`$1'
13185 Try \`$0 --help' for more information." ;;
13186
13187 *) as_fn_append ac_config_targets " $1"
13188 ac_need_defaults=false ;;
13189
13190 esac
13191 shift
13192 done
13193
13194 ac_configure_extra_args=
13195
13196 if $ac_cs_silent; then
13197 exec 6>/dev/null
13198 ac_configure_extra_args="$ac_configure_extra_args --silent"
13199 fi
13200
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 if \$ac_cs_recheck; then
13204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13205 shift
13206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13207 CONFIG_SHELL='$SHELL'
13208 export CONFIG_SHELL
13209 exec "\$@"
13210 fi
13211
13212 _ACEOF
13213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13214 exec 5>>config.log
13215 {
13216 echo
13217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13218 ## Running $as_me. ##
13219 _ASBOX
13220 $as_echo "$ac_log"
13221 } >&5
13222
13223 _ACEOF
13224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13225 #
13226 # INIT-COMMANDS
13227 #
13228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13229
13230
13231 # The HP-UX ksh and POSIX shell print the target directory to stdout
13232 # if CDPATH is set.
13233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13234
13235 sed_quote_subst='$sed_quote_subst'
13236 double_quote_subst='$double_quote_subst'
13237 delay_variable_subst='$delay_variable_subst'
13238 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13239 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13240 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13241 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13242 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13243 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13244 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13245 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13246 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13247 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13248 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13249 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13250 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13251 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13252 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13253 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13254 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13255 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13256 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13257 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13258 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13259 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13260 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13261 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13262 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13263 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13264 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13265 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13266 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13267 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13268 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13269 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13270 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13271 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13272 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13273 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13274 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13275 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13276 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13277 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13278 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13279 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13280 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13281 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13282 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13283 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13284 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13285 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13286 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13287 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13288 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13289 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13290 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13291 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13292 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13293 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13294 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"`'
13295 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13296 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13297 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13298 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13299 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13300 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13301 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13302 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13303 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13304 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13305 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13306 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13307 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13308 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13309 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13310 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13311 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13312 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13313 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13314 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13315 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13316 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13317 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13318 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13319 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13320 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13321 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13322 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13323 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13324 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13325 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13326 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13327 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13328 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13329 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13330 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13331 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13332 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13333 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13334 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13335 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13336 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13337 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13338 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13339 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13340 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13341 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13342 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13343 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13344 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13345 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13346 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13347 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13348 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13349 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13350 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13351 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13352 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13353 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13354 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13355 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13356 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13357 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13358 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13359 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13360 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13361 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13362 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13363 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13364 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13365 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13366 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13367 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13368
13369 LTCC='$LTCC'
13370 LTCFLAGS='$LTCFLAGS'
13371 compiler='$compiler_DEFAULT'
13372
13373 # A function that is used when there is no print builtin or printf.
13374 func_fallback_echo ()
13375 {
13376 eval 'cat <<_LTECHO_EOF
13377 \$1
13378 _LTECHO_EOF'
13379 }
13380
13381 # Quote evaled strings.
13382 for var in SHELL \
13383 ECHO \
13384 PATH_SEPARATOR \
13385 SED \
13386 GREP \
13387 EGREP \
13388 FGREP \
13389 LD \
13390 NM \
13391 LN_S \
13392 lt_SP2NL \
13393 lt_NL2SP \
13394 reload_flag \
13395 OBJDUMP \
13396 deplibs_check_method \
13397 file_magic_cmd \
13398 file_magic_glob \
13399 want_nocaseglob \
13400 DLLTOOL \
13401 sharedlib_from_linklib_cmd \
13402 AR \
13403 AR_FLAGS \
13404 archiver_list_spec \
13405 STRIP \
13406 RANLIB \
13407 CC \
13408 CFLAGS \
13409 compiler \
13410 lt_cv_sys_global_symbol_pipe \
13411 lt_cv_sys_global_symbol_to_cdecl \
13412 lt_cv_sys_global_symbol_to_c_name_address \
13413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13414 nm_file_list_spec \
13415 lt_prog_compiler_no_builtin_flag \
13416 lt_prog_compiler_pic \
13417 lt_prog_compiler_wl \
13418 lt_prog_compiler_static \
13419 lt_cv_prog_compiler_c_o \
13420 need_locks \
13421 MANIFEST_TOOL \
13422 DSYMUTIL \
13423 NMEDIT \
13424 LIPO \
13425 OTOOL \
13426 OTOOL64 \
13427 shrext_cmds \
13428 export_dynamic_flag_spec \
13429 whole_archive_flag_spec \
13430 compiler_needs_object \
13431 with_gnu_ld \
13432 allow_undefined_flag \
13433 no_undefined_flag \
13434 hardcode_libdir_flag_spec \
13435 hardcode_libdir_separator \
13436 exclude_expsyms \
13437 include_expsyms \
13438 file_list_spec \
13439 variables_saved_for_relink \
13440 libname_spec \
13441 library_names_spec \
13442 soname_spec \
13443 install_override_mode \
13444 finish_eval \
13445 old_striplib \
13446 striplib; do
13447 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13448 *[\\\\\\\`\\"\\\$]*)
13449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13450 ;;
13451 *)
13452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13453 ;;
13454 esac
13455 done
13456
13457 # Double-quote double-evaled strings.
13458 for var in reload_cmds \
13459 old_postinstall_cmds \
13460 old_postuninstall_cmds \
13461 old_archive_cmds \
13462 extract_expsyms_cmds \
13463 old_archive_from_new_cmds \
13464 old_archive_from_expsyms_cmds \
13465 archive_cmds \
13466 archive_expsym_cmds \
13467 module_cmds \
13468 module_expsym_cmds \
13469 export_symbols_cmds \
13470 prelink_cmds \
13471 postlink_cmds \
13472 postinstall_cmds \
13473 postuninstall_cmds \
13474 finish_cmds \
13475 sys_lib_search_path_spec \
13476 sys_lib_dlsearch_path_spec; do
13477 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13478 *[\\\\\\\`\\"\\\$]*)
13479 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13480 ;;
13481 *)
13482 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13483 ;;
13484 esac
13485 done
13486
13487 ac_aux_dir='$ac_aux_dir'
13488 xsi_shell='$xsi_shell'
13489 lt_shell_append='$lt_shell_append'
13490
13491 # See if we are running on zsh, and set the options which allow our
13492 # commands through without removal of \ escapes INIT.
13493 if test -n "\${ZSH_VERSION+set}" ; then
13494 setopt NO_GLOB_SUBST
13495 fi
13496
13497
13498 PACKAGE='$PACKAGE'
13499 VERSION='$VERSION'
13500 TIMESTAMP='$TIMESTAMP'
13501 RM='$RM'
13502 ofile='$ofile'
13503
13504
13505
13506
13507 _ACEOF
13508
13509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13510
13511 # Handling of arguments.
13512 for ac_config_target in $ac_config_targets
13513 do
13514 case $ac_config_target in
13515 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13516 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13517 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13518 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13519 "strpool/Makefile") CONFIG_FILES="$CONFIG_FILES strpool/Makefile" ;;
13520 "libatasmart.pc") CONFIG_FILES="$CONFIG_FILES libatasmart.pc" ;;
13521
13522 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13523 esac
13524 done
13525
13526
13527 # If the user did not use the arguments to specify the items to instantiate,
13528 # then the envvar interface is used. Set only those that are not.
13529 # We use the long form for the default assignment because of an extremely
13530 # bizarre bug on SunOS 4.1.3.
13531 if $ac_need_defaults; then
13532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13535 fi
13536
13537 # Have a temporary directory for convenience. Make it in the build tree
13538 # simply because there is no reason against having it here, and in addition,
13539 # creating and moving files from /tmp can sometimes cause problems.
13540 # Hook for its removal unless debugging.
13541 # Note that there is a small window in which the directory will not be cleaned:
13542 # after its creation but before its name has been assigned to `$tmp'.
13543 $debug ||
13544 {
13545 tmp= ac_tmp=
13546 trap 'exit_status=$?
13547 : "${ac_tmp:=$tmp}"
13548 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13549 ' 0
13550 trap 'as_fn_exit 1' 1 2 13 15
13551 }
13552 # Create a (secure) tmp directory for tmp files.
13553
13554 {
13555 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13556 test -d "$tmp"
13557 } ||
13558 {
13559 tmp=./conf$$-$RANDOM
13560 (umask 077 && mkdir "$tmp")
13561 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13562 ac_tmp=$tmp
13563
13564 # Set up the scripts for CONFIG_FILES section.
13565 # No need to generate them if there are no CONFIG_FILES.
13566 # This happens for instance with `./config.status config.h'.
13567 if test -n "$CONFIG_FILES"; then
13568
13569
13570 ac_cr=`echo X | tr X '\015'`
13571 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13572 # But we know of no other shell where ac_cr would be empty at this
13573 # point, so we can use a bashism as a fallback.
13574 if test "x$ac_cr" = x; then
13575 eval ac_cr=\$\'\\r\'
13576 fi
13577 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13578 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13579 ac_cs_awk_cr='\\r'
13580 else
13581 ac_cs_awk_cr=$ac_cr
13582 fi
13583
13584 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13585 _ACEOF
13586
13587
13588 {
13589 echo "cat >conf$$subs.awk <<_ACEOF" &&
13590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13591 echo "_ACEOF"
13592 } >conf$$subs.sh ||
13593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13595 ac_delim='%!_!# '
13596 for ac_last_try in false false false false false :; do
13597 . ./conf$$subs.sh ||
13598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13599
13600 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13601 if test $ac_delim_n = $ac_delim_num; then
13602 break
13603 elif $ac_last_try; then
13604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13605 else
13606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13607 fi
13608 done
13609 rm -f conf$$subs.sh
13610
13611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13612 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13613 _ACEOF
13614 sed -n '
13615 h
13616 s/^/S["/; s/!.*/"]=/
13617 p
13618 g
13619 s/^[^!]*!//
13620 :repl
13621 t repl
13622 s/'"$ac_delim"'$//
13623 t delim
13624 :nl
13625 h
13626 s/\(.\{148\}\)..*/\1/
13627 t more1
13628 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13629 p
13630 n
13631 b repl
13632 :more1
13633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13634 p
13635 g
13636 s/.\{148\}//
13637 t nl
13638 :delim
13639 h
13640 s/\(.\{148\}\)..*/\1/
13641 t more2
13642 s/["\\]/\\&/g; s/^/"/; s/$/"/
13643 p
13644 b
13645 :more2
13646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13647 p
13648 g
13649 s/.\{148\}//
13650 t delim
13651 ' <conf$$subs.awk | sed '
13652 /^[^""]/{
13653 N
13654 s/\n//
13655 }
13656 ' >>$CONFIG_STATUS || ac_write_fail=1
13657 rm -f conf$$subs.awk
13658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13659 _ACAWK
13660 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13661 for (key in S) S_is_set[key] = 1
13662 FS = ""
13663
13664 }
13665 {
13666 line = $ 0
13667 nfields = split(line, field, "@")
13668 substed = 0
13669 len = length(field[1])
13670 for (i = 2; i < nfields; i++) {
13671 key = field[i]
13672 keylen = length(key)
13673 if (S_is_set[key]) {
13674 value = S[key]
13675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13676 len += length(value) + length(field[++i])
13677 substed = 1
13678 } else
13679 len += 1 + keylen
13680 }
13681
13682 print line
13683 }
13684
13685 _ACAWK
13686 _ACEOF
13687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13690 else
13691 cat
13692 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13694 _ACEOF
13695
13696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13698 # trailing colons and then remove the whole line if VPATH becomes empty
13699 # (actually we leave an empty line to preserve line numbers).
13700 if test "x$srcdir" = x.; then
13701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13702 h
13703 s///
13704 s/^/:/
13705 s/[ ]*$/:/
13706 s/:\$(srcdir):/:/g
13707 s/:\${srcdir}:/:/g
13708 s/:@srcdir@:/:/g
13709 s/^:*//
13710 s/:*$//
13711 x
13712 s/\(=[ ]*\).*/\1/
13713 G
13714 s/\n//
13715 s/^[^=]*=[ ]*$//
13716 }'
13717 fi
13718
13719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13720 fi # test -n "$CONFIG_FILES"
13721
13722 # Set up the scripts for CONFIG_HEADERS section.
13723 # No need to generate them if there are no CONFIG_HEADERS.
13724 # This happens for instance with `./config.status Makefile'.
13725 if test -n "$CONFIG_HEADERS"; then
13726 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13727 BEGIN {
13728 _ACEOF
13729
13730 # Transform confdefs.h into an awk script `defines.awk', embedded as
13731 # here-document in config.status, that substitutes the proper values into
13732 # config.h.in to produce config.h.
13733
13734 # Create a delimiter string that does not exist in confdefs.h, to ease
13735 # handling of long lines.
13736 ac_delim='%!_!# '
13737 for ac_last_try in false false :; do
13738 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13739 if test -z "$ac_tt"; then
13740 break
13741 elif $ac_last_try; then
13742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13743 else
13744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13745 fi
13746 done
13747
13748 # For the awk script, D is an array of macro values keyed by name,
13749 # likewise P contains macro parameters if any. Preserve backslash
13750 # newline sequences.
13751
13752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13753 sed -n '
13754 s/.\{148\}/&'"$ac_delim"'/g
13755 t rset
13756 :rset
13757 s/^[ ]*#[ ]*define[ ][ ]*/ /
13758 t def
13759 d
13760 :def
13761 s/\\$//
13762 t bsnl
13763 s/["\\]/\\&/g
13764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13765 D["\1"]=" \3"/p
13766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13767 d
13768 :bsnl
13769 s/["\\]/\\&/g
13770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13771 D["\1"]=" \3\\\\\\n"\\/p
13772 t cont
13773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13774 t cont
13775 d
13776 :cont
13777 n
13778 s/.\{148\}/&'"$ac_delim"'/g
13779 t clear
13780 :clear
13781 s/\\$//
13782 t bsnlc
13783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13784 d
13785 :bsnlc
13786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13787 b cont
13788 ' <confdefs.h | sed '
13789 s/'"$ac_delim"'/"\\\
13790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13791
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 for (key in D) D_is_set[key] = 1
13794 FS = ""
13795 }
13796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13797 line = \$ 0
13798 split(line, arg, " ")
13799 if (arg[1] == "#") {
13800 defundef = arg[2]
13801 mac1 = arg[3]
13802 } else {
13803 defundef = substr(arg[1], 2)
13804 mac1 = arg[2]
13805 }
13806 split(mac1, mac2, "(") #)
13807 macro = mac2[1]
13808 prefix = substr(line, 1, index(line, defundef) - 1)
13809 if (D_is_set[macro]) {
13810 # Preserve the white space surrounding the "#".
13811 print prefix "define", macro P[macro] D[macro]
13812 next
13813 } else {
13814 # Replace #undef with comments. This is necessary, for example,
13815 # in the case of _POSIX_SOURCE, which is predefined and required
13816 # on some systems where configure will not decide to define it.
13817 if (defundef == "undef") {
13818 print "/*", prefix defundef, macro, "*/"
13819 next
13820 }
13821 }
13822 }
13823 { print }
13824 _ACAWK
13825 _ACEOF
13826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13828 fi # test -n "$CONFIG_HEADERS"
13829
13830
13831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13832 shift
13833 for ac_tag
13834 do
13835 case $ac_tag in
13836 :[FHLC]) ac_mode=$ac_tag; continue;;
13837 esac
13838 case $ac_mode$ac_tag in
13839 :[FHL]*:*);;
13840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13841 :[FH]-) ac_tag=-:-;;
13842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13843 esac
13844 ac_save_IFS=$IFS
13845 IFS=:
13846 set x $ac_tag
13847 IFS=$ac_save_IFS
13848 shift
13849 ac_file=$1
13850 shift
13851
13852 case $ac_mode in
13853 :L) ac_source=$1;;
13854 :[FH])
13855 ac_file_inputs=
13856 for ac_f
13857 do
13858 case $ac_f in
13859 -) ac_f="$ac_tmp/stdin";;
13860 *) # Look for the file first in the build tree, then in the source tree
13861 # (if the path is not absolute). The absolute path cannot be DOS-style,
13862 # because $ac_f cannot contain `:'.
13863 test -f "$ac_f" ||
13864 case $ac_f in
13865 [\\/$]*) false;;
13866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13867 esac ||
13868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13869 esac
13870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13871 as_fn_append ac_file_inputs " '$ac_f'"
13872 done
13873
13874 # Let's still pretend it is `configure' which instantiates (i.e., don't
13875 # use $as_me), people would be surprised to read:
13876 # /* config.h. Generated by config.status. */
13877 configure_input='Generated from '`
13878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13879 `' by configure.'
13880 if test x"$ac_file" != x-; then
13881 configure_input="$ac_file. $configure_input"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13883 $as_echo "$as_me: creating $ac_file" >&6;}
13884 fi
13885 # Neutralize special characters interpreted by sed in replacement strings.
13886 case $configure_input in #(
13887 *\&* | *\|* | *\\* )
13888 ac_sed_conf_input=`$as_echo "$configure_input" |
13889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13890 *) ac_sed_conf_input=$configure_input;;
13891 esac
13892
13893 case $ac_tag in
13894 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13896 esac
13897 ;;
13898 esac
13899
13900 ac_dir=`$as_dirname -- "$ac_file" ||
13901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13902 X"$ac_file" : 'X\(//\)[^/]' \| \
13903 X"$ac_file" : 'X\(//\)$' \| \
13904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13905 $as_echo X"$ac_file" |
13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13907 s//\1/
13908 q
13909 }
13910 /^X\(\/\/\)[^/].*/{
13911 s//\1/
13912 q
13913 }
13914 /^X\(\/\/\)$/{
13915 s//\1/
13916 q
13917 }
13918 /^X\(\/\).*/{
13919 s//\1/
13920 q
13921 }
13922 s/.*/./; q'`
13923 as_dir="$ac_dir"; as_fn_mkdir_p
13924 ac_builddir=.
13925
13926 case "$ac_dir" in
13927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13928 *)
13929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13930 # A ".." for each directory in $ac_dir_suffix.
13931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13932 case $ac_top_builddir_sub in
13933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13935 esac ;;
13936 esac
13937 ac_abs_top_builddir=$ac_pwd
13938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13939 # for backward compatibility:
13940 ac_top_builddir=$ac_top_build_prefix
13941
13942 case $srcdir in
13943 .) # We are building in place.
13944 ac_srcdir=.
13945 ac_top_srcdir=$ac_top_builddir_sub
13946 ac_abs_top_srcdir=$ac_pwd ;;
13947 [\\/]* | ?:[\\/]* ) # Absolute name.
13948 ac_srcdir=$srcdir$ac_dir_suffix;
13949 ac_top_srcdir=$srcdir
13950 ac_abs_top_srcdir=$srcdir ;;
13951 *) # Relative name.
13952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13953 ac_top_srcdir=$ac_top_build_prefix$srcdir
13954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13955 esac
13956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13957
13958
13959 case $ac_mode in
13960 :F)
13961 #
13962 # CONFIG_FILE
13963 #
13964
13965 case $INSTALL in
13966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13968 esac
13969 ac_MKDIR_P=$MKDIR_P
13970 case $MKDIR_P in
13971 [\\/$]* | ?:[\\/]* ) ;;
13972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13973 esac
13974 _ACEOF
13975
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 # If the template does not know about datarootdir, expand it.
13978 # FIXME: This hack should be removed a few years after 2.60.
13979 ac_datarootdir_hack=; ac_datarootdir_seen=
13980 ac_sed_dataroot='
13981 /datarootdir/ {
13982 p
13983 q
13984 }
13985 /@datadir@/p
13986 /@docdir@/p
13987 /@infodir@/p
13988 /@localedir@/p
13989 /@mandir@/p'
13990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13991 *datarootdir*) ac_datarootdir_seen=yes;;
13992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13995 _ACEOF
13996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997 ac_datarootdir_hack='
13998 s&@datadir@&$datadir&g
13999 s&@docdir@&$docdir&g
14000 s&@infodir@&$infodir&g
14001 s&@localedir@&$localedir&g
14002 s&@mandir@&$mandir&g
14003 s&\\\${datarootdir}&$datarootdir&g' ;;
14004 esac
14005 _ACEOF
14006
14007 # Neutralize VPATH when `$srcdir' = `.'.
14008 # Shell code in configure.ac might set extrasub.
14009 # FIXME: do we really want to maintain this feature?
14010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14011 ac_sed_extra="$ac_vpsub
14012 $extrasub
14013 _ACEOF
14014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14015 :t
14016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14017 s|@configure_input@|$ac_sed_conf_input|;t t
14018 s&@top_builddir@&$ac_top_builddir_sub&;t t
14019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14020 s&@srcdir@&$ac_srcdir&;t t
14021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14022 s&@top_srcdir@&$ac_top_srcdir&;t t
14023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14024 s&@builddir@&$ac_builddir&;t t
14025 s&@abs_builddir@&$ac_abs_builddir&;t t
14026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14027 s&@INSTALL@&$ac_INSTALL&;t t
14028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14029 $ac_datarootdir_hack
14030 "
14031 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14032 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14033
14034 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14035 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14037 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14039 which seems to be undefined. Please make sure it is defined" >&5
14040 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14041 which seems to be undefined. Please make sure it is defined" >&2;}
14042
14043 rm -f "$ac_tmp/stdin"
14044 case $ac_file in
14045 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14046 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14047 esac \
14048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14049 ;;
14050 :H)
14051 #
14052 # CONFIG_HEADER
14053 #
14054 if test x"$ac_file" != x-; then
14055 {
14056 $as_echo "/* $configure_input */" \
14057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14058 } >"$ac_tmp/config.h" \
14059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14060 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14063 else
14064 rm -f "$ac_file"
14065 mv "$ac_tmp/config.h" "$ac_file" \
14066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14067 fi
14068 else
14069 $as_echo "/* $configure_input */" \
14070 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14071 || as_fn_error $? "could not create -" "$LINENO" 5
14072 fi
14073 # Compute "$ac_file"'s index in $config_headers.
14074 _am_arg="$ac_file"
14075 _am_stamp_count=1
14076 for _am_header in $config_headers :; do
14077 case $_am_header in
14078 $_am_arg | $_am_arg:* )
14079 break ;;
14080 * )
14081 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14082 esac
14083 done
14084 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14085 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14086 X"$_am_arg" : 'X\(//\)[^/]' \| \
14087 X"$_am_arg" : 'X\(//\)$' \| \
14088 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14089 $as_echo X"$_am_arg" |
14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14091 s//\1/
14092 q
14093 }
14094 /^X\(\/\/\)[^/].*/{
14095 s//\1/
14096 q
14097 }
14098 /^X\(\/\/\)$/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\).*/{
14103 s//\1/
14104 q
14105 }
14106 s/.*/./; q'`/stamp-h$_am_stamp_count
14107 ;;
14108
14109 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14110 $as_echo "$as_me: executing $ac_file commands" >&6;}
14111 ;;
14112 esac
14113
14114
14115 case $ac_file$ac_mode in
14116 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14117 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14118 # are listed without --file. Let's play safe and only enable the eval
14119 # if we detect the quoting.
14120 case $CONFIG_FILES in
14121 *\'*) eval set x "$CONFIG_FILES" ;;
14122 *) set x $CONFIG_FILES ;;
14123 esac
14124 shift
14125 for mf
14126 do
14127 # Strip MF so we end up with the name of the file.
14128 mf=`echo "$mf" | sed -e 's/:.*$//'`
14129 # Check whether this is an Automake generated Makefile or not.
14130 # We used to match only the files named `Makefile.in', but
14131 # some people rename them; so instead we look at the file content.
14132 # Grep'ing the first line is not enough: some people post-process
14133 # each Makefile.in and add a new line on top of each file to say so.
14134 # Grep'ing the whole file is not good either: AIX grep has a line
14135 # limit of 2048, but all sed's we know have understand at least 4000.
14136 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14137 dirpart=`$as_dirname -- "$mf" ||
14138 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14139 X"$mf" : 'X\(//\)[^/]' \| \
14140 X"$mf" : 'X\(//\)$' \| \
14141 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14142 $as_echo X"$mf" |
14143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14144 s//\1/
14145 q
14146 }
14147 /^X\(\/\/\)[^/].*/{
14148 s//\1/
14149 q
14150 }
14151 /^X\(\/\/\)$/{
14152 s//\1/
14153 q
14154 }
14155 /^X\(\/\).*/{
14156 s//\1/
14157 q
14158 }
14159 s/.*/./; q'`
14160 else
14161 continue
14162 fi
14163 # Extract the definition of DEPDIR, am__include, and am__quote
14164 # from the Makefile without running `make'.
14165 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14166 test -z "$DEPDIR" && continue
14167 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14168 test -z "am__include" && continue
14169 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14170 # When using ansi2knr, U may be empty or an underscore; expand it
14171 U=`sed -n 's/^U = //p' < "$mf"`
14172 # Find all dependency output files, they are included files with
14173 # $(DEPDIR) in their names. We invoke sed twice because it is the
14174 # simplest approach to changing $(DEPDIR) to its actual value in the
14175 # expansion.
14176 for file in `sed -n "
14177 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14178 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14179 # Make sure the directory exists.
14180 test -f "$dirpart/$file" && continue
14181 fdir=`$as_dirname -- "$file" ||
14182 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14183 X"$file" : 'X\(//\)[^/]' \| \
14184 X"$file" : 'X\(//\)$' \| \
14185 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14186 $as_echo X"$file" |
14187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14188 s//\1/
14189 q
14190 }
14191 /^X\(\/\/\)[^/].*/{
14192 s//\1/
14193 q
14194 }
14195 /^X\(\/\/\)$/{
14196 s//\1/
14197 q
14198 }
14199 /^X\(\/\).*/{
14200 s//\1/
14201 q
14202 }
14203 s/.*/./; q'`
14204 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14205 # echo "creating $dirpart/$file"
14206 echo '# dummy' > "$dirpart/$file"
14207 done
14208 done
14209 }
14210 ;;
14211 "libtool":C)
14212
14213 # See if we are running on zsh, and set the options which allow our
14214 # commands through without removal of \ escapes.
14215 if test -n "${ZSH_VERSION+set}" ; then
14216 setopt NO_GLOB_SUBST
14217 fi
14218
14219 cfgfile="${ofile}T"
14220 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14221 $RM "$cfgfile"
14222
14223 cat <<_LT_EOF >> "$cfgfile"
14224 #! $SHELL
14225
14226 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14227 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14228 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14229 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14230 #
14231 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14232 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14233 # Foundation, Inc.
14234 # Written by Gordon Matzigkeit, 1996
14235 #
14236 # This file is part of GNU Libtool.
14237 #
14238 # GNU Libtool is free software; you can redistribute it and/or
14239 # modify it under the terms of the GNU General Public License as
14240 # published by the Free Software Foundation; either version 2 of
14241 # the License, or (at your option) any later version.
14242 #
14243 # As a special exception to the GNU General Public License,
14244 # if you distribute this file as part of a program or library that
14245 # is built using GNU Libtool, you may include this file under the
14246 # same distribution terms that you use for the rest of that program.
14247 #
14248 # GNU Libtool is distributed in the hope that it will be useful,
14249 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14250 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14251 # GNU General Public License for more details.
14252 #
14253 # You should have received a copy of the GNU General Public License
14254 # along with GNU Libtool; see the file COPYING. If not, a copy
14255 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14256 # obtained by writing to the Free Software Foundation, Inc.,
14257 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14258
14259
14260 # The names of the tagged configurations supported by this script.
14261 available_tags=""
14262
14263 # ### BEGIN LIBTOOL CONFIG
14264
14265 # Which release of libtool.m4 was used?
14266 macro_version=$macro_version
14267 macro_revision=$macro_revision
14268
14269 # Whether or not to build static libraries.
14270 build_old_libs=$enable_static
14271
14272 # Whether or not to build shared libraries.
14273 build_libtool_libs=$enable_shared
14274
14275 # What type of objects to build.
14276 pic_mode=$pic_mode
14277
14278 # Whether or not to optimize for fast installation.
14279 fast_install=$enable_fast_install
14280
14281 # Shell to use when invoking shell scripts.
14282 SHELL=$lt_SHELL
14283
14284 # An echo program that protects backslashes.
14285 ECHO=$lt_ECHO
14286
14287 # The PATH separator for the build system.
14288 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14289
14290 # The host system.
14291 host_alias=$host_alias
14292 host=$host
14293 host_os=$host_os
14294
14295 # The build system.
14296 build_alias=$build_alias
14297 build=$build
14298 build_os=$build_os
14299
14300 # A sed program that does not truncate output.
14301 SED=$lt_SED
14302
14303 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14304 Xsed="\$SED -e 1s/^X//"
14305
14306 # A grep program that handles long lines.
14307 GREP=$lt_GREP
14308
14309 # An ERE matcher.
14310 EGREP=$lt_EGREP
14311
14312 # A literal string matcher.
14313 FGREP=$lt_FGREP
14314
14315 # A BSD- or MS-compatible name lister.
14316 NM=$lt_NM
14317
14318 # Whether we need soft or hard links.
14319 LN_S=$lt_LN_S
14320
14321 # What is the maximum length of a command?
14322 max_cmd_len=$max_cmd_len
14323
14324 # Object file suffix (normally "o").
14325 objext=$ac_objext
14326
14327 # Executable file suffix (normally "").
14328 exeext=$exeext
14329
14330 # whether the shell understands "unset".
14331 lt_unset=$lt_unset
14332
14333 # turn spaces into newlines.
14334 SP2NL=$lt_lt_SP2NL
14335
14336 # turn newlines into spaces.
14337 NL2SP=$lt_lt_NL2SP
14338
14339 # convert \$build file names to \$host format.
14340 to_host_file_cmd=$lt_cv_to_host_file_cmd
14341
14342 # convert \$build files to toolchain format.
14343 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14344
14345 # An object symbol dumper.
14346 OBJDUMP=$lt_OBJDUMP
14347
14348 # Method to check whether dependent libraries are shared objects.
14349 deplibs_check_method=$lt_deplibs_check_method
14350
14351 # Command to use when deplibs_check_method = "file_magic".
14352 file_magic_cmd=$lt_file_magic_cmd
14353
14354 # How to find potential files when deplibs_check_method = "file_magic".
14355 file_magic_glob=$lt_file_magic_glob
14356
14357 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14358 want_nocaseglob=$lt_want_nocaseglob
14359
14360 # DLL creation program.
14361 DLLTOOL=$lt_DLLTOOL
14362
14363 # Command to associate shared and link libraries.
14364 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14365
14366 # The archiver.
14367 AR=$lt_AR
14368
14369 # Flags to create an archive.
14370 AR_FLAGS=$lt_AR_FLAGS
14371
14372 # How to feed a file listing to the archiver.
14373 archiver_list_spec=$lt_archiver_list_spec
14374
14375 # A symbol stripping program.
14376 STRIP=$lt_STRIP
14377
14378 # Commands used to install an old-style archive.
14379 RANLIB=$lt_RANLIB
14380 old_postinstall_cmds=$lt_old_postinstall_cmds
14381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14382
14383 # Whether to use a lock for old archive extraction.
14384 lock_old_archive_extraction=$lock_old_archive_extraction
14385
14386 # A C compiler.
14387 LTCC=$lt_CC
14388
14389 # LTCC compiler flags.
14390 LTCFLAGS=$lt_CFLAGS
14391
14392 # Take the output of nm and produce a listing of raw symbols and C names.
14393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14394
14395 # Transform the output of nm in a proper C declaration.
14396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14397
14398 # Transform the output of nm in a C name address pair.
14399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14400
14401 # Transform the output of nm in a C name address pair when lib prefix is needed.
14402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14403
14404 # Specify filename containing input files for \$NM.
14405 nm_file_list_spec=$lt_nm_file_list_spec
14406
14407 # The root where to search for dependent libraries,and in which our libraries should be installed.
14408 lt_sysroot=$lt_sysroot
14409
14410 # The name of the directory that contains temporary libtool files.
14411 objdir=$objdir
14412
14413 # Used to examine libraries when file_magic_cmd begins with "file".
14414 MAGIC_CMD=$MAGIC_CMD
14415
14416 # Must we lock files when doing compilation?
14417 need_locks=$lt_need_locks
14418
14419 # Manifest tool.
14420 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14421
14422 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14423 DSYMUTIL=$lt_DSYMUTIL
14424
14425 # Tool to change global to local symbols on Mac OS X.
14426 NMEDIT=$lt_NMEDIT
14427
14428 # Tool to manipulate fat objects and archives on Mac OS X.
14429 LIPO=$lt_LIPO
14430
14431 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14432 OTOOL=$lt_OTOOL
14433
14434 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14435 OTOOL64=$lt_OTOOL64
14436
14437 # Old archive suffix (normally "a").
14438 libext=$libext
14439
14440 # Shared library suffix (normally ".so").
14441 shrext_cmds=$lt_shrext_cmds
14442
14443 # The commands to extract the exported symbol list from a shared archive.
14444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14445
14446 # Variables whose values should be saved in libtool wrapper scripts and
14447 # restored at link time.
14448 variables_saved_for_relink=$lt_variables_saved_for_relink
14449
14450 # Do we need the "lib" prefix for modules?
14451 need_lib_prefix=$need_lib_prefix
14452
14453 # Do we need a version for libraries?
14454 need_version=$need_version
14455
14456 # Library versioning type.
14457 version_type=$version_type
14458
14459 # Shared library runtime path variable.
14460 runpath_var=$runpath_var
14461
14462 # Shared library path variable.
14463 shlibpath_var=$shlibpath_var
14464
14465 # Is shlibpath searched before the hard-coded library search path?
14466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14467
14468 # Format of library name prefix.
14469 libname_spec=$lt_libname_spec
14470
14471 # List of archive names. First name is the real one, the rest are links.
14472 # The last name is the one that the linker finds with -lNAME
14473 library_names_spec=$lt_library_names_spec
14474
14475 # The coded name of the library, if different from the real name.
14476 soname_spec=$lt_soname_spec
14477
14478 # Permission mode override for installation of shared libraries.
14479 install_override_mode=$lt_install_override_mode
14480
14481 # Command to use after installation of a shared archive.
14482 postinstall_cmds=$lt_postinstall_cmds
14483
14484 # Command to use after uninstallation of a shared archive.
14485 postuninstall_cmds=$lt_postuninstall_cmds
14486
14487 # Commands used to finish a libtool library installation in a directory.
14488 finish_cmds=$lt_finish_cmds
14489
14490 # As "finish_cmds", except a single script fragment to be evaled but
14491 # not shown.
14492 finish_eval=$lt_finish_eval
14493
14494 # Whether we should hardcode library paths into libraries.
14495 hardcode_into_libs=$hardcode_into_libs
14496
14497 # Compile-time system search path for libraries.
14498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14499
14500 # Run-time system search path for libraries.
14501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14502
14503 # Whether dlopen is supported.
14504 dlopen_support=$enable_dlopen
14505
14506 # Whether dlopen of programs is supported.
14507 dlopen_self=$enable_dlopen_self
14508
14509 # Whether dlopen of statically linked programs is supported.
14510 dlopen_self_static=$enable_dlopen_self_static
14511
14512 # Commands to strip libraries.
14513 old_striplib=$lt_old_striplib
14514 striplib=$lt_striplib
14515
14516
14517 # The linker used to build libraries.
14518 LD=$lt_LD
14519
14520 # How to create reloadable object files.
14521 reload_flag=$lt_reload_flag
14522 reload_cmds=$lt_reload_cmds
14523
14524 # Commands used to build an old-style archive.
14525 old_archive_cmds=$lt_old_archive_cmds
14526
14527 # A language specific compiler.
14528 CC=$lt_compiler
14529
14530 # Is the compiler the GNU compiler?
14531 with_gcc=$GCC
14532
14533 # Compiler flag to turn off builtin functions.
14534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14535
14536 # Additional compiler flags for building library objects.
14537 pic_flag=$lt_lt_prog_compiler_pic
14538
14539 # How to pass a linker flag through the compiler.
14540 wl=$lt_lt_prog_compiler_wl
14541
14542 # Compiler flag to prevent dynamic linking.
14543 link_static_flag=$lt_lt_prog_compiler_static
14544
14545 # Does compiler simultaneously support -c and -o options?
14546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14547
14548 # Whether or not to add -lc for building shared libraries.
14549 build_libtool_need_lc=$archive_cmds_need_lc
14550
14551 # Whether or not to disallow shared libs when runtime libs are static.
14552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14553
14554 # Compiler flag to allow reflexive dlopens.
14555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14556
14557 # Compiler flag to generate shared objects directly from archives.
14558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14559
14560 # Whether the compiler copes with passing no objects directly.
14561 compiler_needs_object=$lt_compiler_needs_object
14562
14563 # Create an old-style archive from a shared archive.
14564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14565
14566 # Create a temporary old-style archive to link instead of a shared archive.
14567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14568
14569 # Commands used to build a shared archive.
14570 archive_cmds=$lt_archive_cmds
14571 archive_expsym_cmds=$lt_archive_expsym_cmds
14572
14573 # Commands used to build a loadable module if different from building
14574 # a shared archive.
14575 module_cmds=$lt_module_cmds
14576 module_expsym_cmds=$lt_module_expsym_cmds
14577
14578 # Whether we are building with GNU ld or not.
14579 with_gnu_ld=$lt_with_gnu_ld
14580
14581 # Flag that allows shared libraries with undefined symbols to be built.
14582 allow_undefined_flag=$lt_allow_undefined_flag
14583
14584 # Flag that enforces no undefined symbols.
14585 no_undefined_flag=$lt_no_undefined_flag
14586
14587 # Flag to hardcode \$libdir into a binary during linking.
14588 # This must work even if \$libdir does not exist
14589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14590
14591 # Whether we need a single "-rpath" flag with a separated argument.
14592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14593
14594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14595 # DIR into the resulting binary.
14596 hardcode_direct=$hardcode_direct
14597
14598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14599 # DIR into the resulting binary and the resulting library dependency is
14600 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14601 # library is relocated.
14602 hardcode_direct_absolute=$hardcode_direct_absolute
14603
14604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14605 # into the resulting binary.
14606 hardcode_minus_L=$hardcode_minus_L
14607
14608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14609 # into the resulting binary.
14610 hardcode_shlibpath_var=$hardcode_shlibpath_var
14611
14612 # Set to "yes" if building a shared library automatically hardcodes DIR
14613 # into the library and all subsequent libraries and executables linked
14614 # against it.
14615 hardcode_automatic=$hardcode_automatic
14616
14617 # Set to yes if linker adds runtime paths of dependent libraries
14618 # to runtime path list.
14619 inherit_rpath=$inherit_rpath
14620
14621 # Whether libtool must link a program against all its dependency libraries.
14622 link_all_deplibs=$link_all_deplibs
14623
14624 # Set to "yes" if exported symbols are required.
14625 always_export_symbols=$always_export_symbols
14626
14627 # The commands to list exported symbols.
14628 export_symbols_cmds=$lt_export_symbols_cmds
14629
14630 # Symbols that should not be listed in the preloaded symbols.
14631 exclude_expsyms=$lt_exclude_expsyms
14632
14633 # Symbols that must always be exported.
14634 include_expsyms=$lt_include_expsyms
14635
14636 # Commands necessary for linking programs (against libraries) with templates.
14637 prelink_cmds=$lt_prelink_cmds
14638
14639 # Commands necessary for finishing linking programs.
14640 postlink_cmds=$lt_postlink_cmds
14641
14642 # Specify filename containing input files.
14643 file_list_spec=$lt_file_list_spec
14644
14645 # How to hardcode a shared library path into an executable.
14646 hardcode_action=$hardcode_action
14647
14648 # ### END LIBTOOL CONFIG
14649
14650 _LT_EOF
14651
14652 case $host_os in
14653 aix3*)
14654 cat <<\_LT_EOF >> "$cfgfile"
14655 # AIX sometimes has problems with the GCC collect2 program. For some
14656 # reason, if we set the COLLECT_NAMES environment variable, the problems
14657 # vanish in a puff of smoke.
14658 if test "X${COLLECT_NAMES+set}" != Xset; then
14659 COLLECT_NAMES=
14660 export COLLECT_NAMES
14661 fi
14662 _LT_EOF
14663 ;;
14664 esac
14665
14666
14667 ltmain="$ac_aux_dir/ltmain.sh"
14668
14669
14670 # We use sed instead of cat because bash on DJGPP gets confused if
14671 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14672 # text mode, it properly converts lines to CR/LF. This bash problem
14673 # is reportedly fixed, but why not run on old versions too?
14674 sed '$q' "$ltmain" >> "$cfgfile" \
14675 || (rm -f "$cfgfile"; exit 1)
14676
14677 if test x"$xsi_shell" = xyes; then
14678 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14679 func_dirname ()\
14680 {\
14681 \ case ${1} in\
14682 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14683 \ * ) func_dirname_result="${3}" ;;\
14684 \ esac\
14685 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14686 && mv -f "$cfgfile.tmp" "$cfgfile" \
14687 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14688 test 0 -eq $? || _lt_function_replace_fail=:
14689
14690
14691 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14692 func_basename ()\
14693 {\
14694 \ func_basename_result="${1##*/}"\
14695 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14696 && mv -f "$cfgfile.tmp" "$cfgfile" \
14697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698 test 0 -eq $? || _lt_function_replace_fail=:
14699
14700
14701 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14702 func_dirname_and_basename ()\
14703 {\
14704 \ case ${1} in\
14705 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14706 \ * ) func_dirname_result="${3}" ;;\
14707 \ esac\
14708 \ func_basename_result="${1##*/}"\
14709 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14710 && mv -f "$cfgfile.tmp" "$cfgfile" \
14711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14712 test 0 -eq $? || _lt_function_replace_fail=:
14713
14714
14715 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14716 func_stripname ()\
14717 {\
14718 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14719 \ # positional parameters, so assign one to ordinary parameter first.\
14720 \ func_stripname_result=${3}\
14721 \ func_stripname_result=${func_stripname_result#"${1}"}\
14722 \ func_stripname_result=${func_stripname_result%"${2}"}\
14723 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14724 && mv -f "$cfgfile.tmp" "$cfgfile" \
14725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14726 test 0 -eq $? || _lt_function_replace_fail=:
14727
14728
14729 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14730 func_split_long_opt ()\
14731 {\
14732 \ func_split_long_opt_name=${1%%=*}\
14733 \ func_split_long_opt_arg=${1#*=}\
14734 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14735 && mv -f "$cfgfile.tmp" "$cfgfile" \
14736 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14737 test 0 -eq $? || _lt_function_replace_fail=:
14738
14739
14740 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14741 func_split_short_opt ()\
14742 {\
14743 \ func_split_short_opt_arg=${1#??}\
14744 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14745 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14746 && mv -f "$cfgfile.tmp" "$cfgfile" \
14747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14748 test 0 -eq $? || _lt_function_replace_fail=:
14749
14750
14751 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14752 func_lo2o ()\
14753 {\
14754 \ case ${1} in\
14755 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14756 \ *) func_lo2o_result=${1} ;;\
14757 \ esac\
14758 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14759 && mv -f "$cfgfile.tmp" "$cfgfile" \
14760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14761 test 0 -eq $? || _lt_function_replace_fail=:
14762
14763
14764 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14765 func_xform ()\
14766 {\
14767 func_xform_result=${1%.*}.lo\
14768 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14769 && mv -f "$cfgfile.tmp" "$cfgfile" \
14770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14771 test 0 -eq $? || _lt_function_replace_fail=:
14772
14773
14774 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14775 func_arith ()\
14776 {\
14777 func_arith_result=$(( $* ))\
14778 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14782
14783
14784 sed -e '/^func_len ()$/,/^} # func_len /c\
14785 func_len ()\
14786 {\
14787 func_len_result=${#1}\
14788 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14789 && mv -f "$cfgfile.tmp" "$cfgfile" \
14790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14791 test 0 -eq $? || _lt_function_replace_fail=:
14792
14793 fi
14794
14795 if test x"$lt_shell_append" = xyes; then
14796 sed -e '/^func_append ()$/,/^} # func_append /c\
14797 func_append ()\
14798 {\
14799 eval "${1}+=\\${2}"\
14800 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14801 && mv -f "$cfgfile.tmp" "$cfgfile" \
14802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14803 test 0 -eq $? || _lt_function_replace_fail=:
14804
14805
14806 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14807 func_append_quoted ()\
14808 {\
14809 \ func_quote_for_eval "${2}"\
14810 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14811 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14812 && mv -f "$cfgfile.tmp" "$cfgfile" \
14813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14814 test 0 -eq $? || _lt_function_replace_fail=:
14815
14816
14817 # Save a `func_append' function call where possible by direct use of '+='
14818 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14819 && mv -f "$cfgfile.tmp" "$cfgfile" \
14820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14821 test 0 -eq $? || _lt_function_replace_fail=:
14822 else
14823 # Save a `func_append' function call even when '+=' is not available
14824 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14825 && mv -f "$cfgfile.tmp" "$cfgfile" \
14826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14827 test 0 -eq $? || _lt_function_replace_fail=:
14828 fi
14829
14830 if test x"$_lt_function_replace_fail" = x":"; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14832 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14833 fi
14834
14835
14836 mv -f "$cfgfile" "$ofile" ||
14837 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14838 chmod +x "$ofile"
14839
14840 ;;
14841
14842 esac
14843 done # for ac_tag
14844
14845
14846 as_fn_exit 0
14847 _ACEOF
14848 ac_clean_files=$ac_clean_files_save
14849
14850 test $ac_write_fail = 0 ||
14851 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14852
14853
14854 # configure is writing to config.log, and then calls config.status.
14855 # config.status does its own redirection, appending to config.log.
14856 # Unfortunately, on DOS this fails, as config.log is still kept open
14857 # by configure, so config.status won't be able to write to it; its
14858 # output is simply discarded. So we exec the FD to /dev/null,
14859 # effectively closing config.log, so it can be properly (re)opened and
14860 # appended to by config.status. When coming back to configure, we
14861 # need to make the FD available again.
14862 if test "$no_create" != yes; then
14863 ac_cs_success=:
14864 ac_config_status_args=
14865 test "$silent" = yes &&
14866 ac_config_status_args="$ac_config_status_args --quiet"
14867 exec 5>/dev/null
14868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14869 exec 5>>config.log
14870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14871 # would make configure fail if this is the last instruction.
14872 $ac_cs_success || as_fn_exit 1
14873 fi
14874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14877 fi
14878
14879
14880 echo "
14881 ---{ $PACKAGE_NAME $VERSION }---
14882
14883 prefix: ${prefix}
14884 sysconfdir: ${sysconfdir}
14885 localstatedir: ${localstatedir}
14886 Compiler: ${CC}
14887 CFLAGS: ${CFLAGS}
14888 "