Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / libhmac / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libhmac 1.00.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libhmac'
592 PACKAGE_TARNAME='libhmac'
593 PACKAGE_VERSION='1.00'
594 PACKAGE_STRING='libhmac 1.00'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="hmac.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 TESTPROGS
640 hashlibs
641 CPP
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 MANIFEST_TOOL
648 RANLIB
649 ac_ct_AR
650 AR
651 DLLTOOL
652 OBJDUMP
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 LN_S
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP'
775
776
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
798
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
824
825 ac_prev=
826 ac_dashdash=
827 for ac_option
828 do
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
834 fi
835
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 ;;
1181
1182 esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203 do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)[^/].*/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\).*/{
1272 s//\1/
1273 q
1274 }
1275 s/.*/./; q'`
1276 srcdir=$ac_confdir
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 srcdir=..
1279 fi
1280 else
1281 ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290 pwd)`
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294 fi
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1298 case $srcdir in
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 esac
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 done
1307
1308 #
1309 # Report the --help message.
1310 #
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
1315 \`configure' configures libhmac 1.00 to adapt to many kinds of systems.
1316
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322 Defaults for the options are specified in brackets.
1323
1324 Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 [PREFIX]
1340
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1345
1346 For better control, use the options below.
1347
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1368 _ACEOF
1369
1370 cat <<\_ACEOF
1371
1372 Program names:
1373 --program-prefix=PREFIX prepend PREFIX to installed program names
1374 --program-suffix=SUFFIX append SUFFIX to installed program names
1375 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1376
1377 System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of libhmac 1.00:";;
1386 esac
1387 cat <<\_ACEOF
1388
1389 Optional Features:
1390 --disable-option-checking ignore unrecognized --enable/--with options
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-silent-rules less verbose build output (undo: "make V=1")
1394 --disable-silent-rules verbose build output (undo: "make V=0")
1395 --enable-dependency-tracking
1396 do not reject slow dependency extractors
1397 --disable-dependency-tracking
1398 speeds up one-time build
1399 --enable-shared[=PKGS] build shared libraries [default=yes]
1400 --enable-static[=PKGS] build static 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
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to <courier-users@lists.sourceforge.net>.
1428 _ACEOF
1429 ac_status=$?
1430 fi
1431
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1439
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *)
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1455
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1485 fi
1486
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 libhmac configure 1.00
1491 generated by GNU Autoconf 2.69
1492
1493 Copyright (C) 2012 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1498 fi
1499
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1503
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540 } # ac_fn_c_try_compile
1541
1542 # ac_fn_c_try_link LINENO
1543 # -----------------------
1544 # Try to link conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_link ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext conftest$ac_exeext
1549 if { { ac_try="$ac_link"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_link") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest$ac_exeext && {
1568 test "$cross_compiling" = yes ||
1569 test -x conftest$ac_exeext
1570 }; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1579 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1580 # interfere with the next link command; also delete a directory that is
1581 # left behind by Apple's compiler. We do this before executing the actions.
1582 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_link
1587
1588 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1589 # -------------------------------------------------------
1590 # Tests whether HEADER exists and can be compiled using the include files in
1591 # INCLUDES, setting the cache variable VAR accordingly.
1592 ac_fn_c_check_header_compile ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if eval \${$3+:} false; then :
1598 $as_echo_n "(cached) " >&6
1599 else
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 $4
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 eval "$3=yes"
1607 else
1608 eval "$3=no"
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 fi
1612 eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
1617 } # ac_fn_c_check_header_compile
1618
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_cpp
1655
1656 # ac_fn_c_try_run LINENO
1657 # ----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659 # that executables *can* be run.
1660 ac_fn_c_try_run ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674 { { case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_try") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; }; }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: program exited with status $ac_status" >&5
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=$ac_status
1691 fi
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_run
1697
1698 # ac_fn_c_check_func LINENO FUNC VAR
1699 # ----------------------------------
1700 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1701 ac_fn_c_check_func ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1713 #define $2 innocuous_$2
1714
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $2 (); below.
1717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1718 <limits.h> exists even on freestanding compilers. */
1719
1720 #ifdef __STDC__
1721 # include <limits.h>
1722 #else
1723 # include <assert.h>
1724 #endif
1725
1726 #undef $2
1727
1728 /* Override any GCC internal prototype to avoid an error.
1729 Use char because int might match the return type of a GCC
1730 builtin and then its argument prototype would still apply. */
1731 #ifdef __cplusplus
1732 extern "C"
1733 #endif
1734 char $2 ();
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined __stub_$2 || defined __stub___$2
1739 choke me
1740 #endif
1741
1742 int
1743 main ()
1744 {
1745 return $2 ();
1746 ;
1747 return 0;
1748 }
1749 _ACEOF
1750 if ac_fn_c_try_link "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext \
1756 conftest$ac_exeext conftest.$ac_ext
1757 fi
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_func
1764
1765 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1766 # -------------------------------------------
1767 # Tests whether TYPE exists after having included INCLUDES, setting cache
1768 # variable VAR accordingly.
1769 ac_fn_c_check_type ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=no"
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 int
1782 main ()
1783 {
1784 if (sizeof ($2))
1785 return 0;
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 int
1795 main ()
1796 {
1797 if (sizeof (($2)))
1798 return 0;
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804
1805 else
1806 eval "$3=yes"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_type
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1821
1822 It was created by libhmac $as_me 1.00, which was
1823 generated by GNU Autoconf 2.69. Invocation command line was
1824
1825 $ $0 $@
1826
1827 _ACEOF
1828 exec 5>>config.log
1829 {
1830 cat <<_ASUNAME
1831 ## --------- ##
1832 ## Platform. ##
1833 ## --------- ##
1834
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1843
1844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851
1852 _ASUNAME
1853
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1860 done
1861 IFS=$as_save_IFS
1862
1863 } >&5
1864
1865 cat >&5 <<_ACEOF
1866
1867
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1871
1872 _ACEOF
1873
1874
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1885 do
1886 for ac_arg
1887 do
1888 case $ac_arg in
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1892 continue ;;
1893 *\'*)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 esac
1896 case $ac_pass in
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898 2)
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1902 else
1903 case $ac_arg in
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910 esac
1911 ;;
1912 -* ) ac_must_keep_next=true ;;
1913 esac
1914 fi
1915 as_fn_append ac_configure_args " '$ac_arg'"
1916 ;;
1917 esac
1918 done
1919 done
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1922
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1930 {
1931 echo
1932
1933 $as_echo "## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##"
1936 echo
1937 # The following way of writing the cache mishandles newlines in values,
1938 (
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1951 esac ;;
1952 esac
1953 done
1954 (set) 2>&1 |
1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
1957 sed -n \
1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960 ;; #(
1961 *)
1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963 ;;
1964 esac |
1965 sort
1966 )
1967 echo
1968
1969 $as_echo "## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##"
1972 echo
1973 for ac_var in $ac_subst_vars
1974 do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1978 esac
1979 $as_echo "$ac_var='\''$ac_val'\''"
1980 done | sort
1981 echo
1982
1983 if test -n "$ac_subst_files"; then
1984 $as_echo "## ------------------- ##
1985 ## File substitutions. ##
1986 ## ------------------- ##"
1987 echo
1988 for ac_var in $ac_subst_files
1989 do
1990 eval ac_val=\$$ac_var
1991 case $ac_val in
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993 esac
1994 $as_echo "$ac_var='\''$ac_val'\''"
1995 done | sort
1996 echo
1997 fi
1998
1999 if test -s confdefs.h; then
2000 $as_echo "## ----------- ##
2001 ## confdefs.h. ##
2002 ## ----------- ##"
2003 echo
2004 cat confdefs.h
2005 echo
2006 fi
2007 test "$ac_signal" != 0 &&
2008 $as_echo "$as_me: caught signal $ac_signal"
2009 $as_echo "$as_me: exit $exit_status"
2010 } >&5
2011 rm -f core *.core core.conftest.* &&
2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013 exit $exit_status
2014 ' 0
2015 for ac_signal in 1 2 13 15; do
2016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017 done
2018 ac_signal=0
2019
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2022
2023 $as_echo "/* confdefs.h */" > confdefs.h
2024
2025 # Predefined preprocessor variables.
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2049 _ACEOF
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 ac_site_file1=NONE
2055 ac_site_file2=NONE
2056 if test -n "$CONFIG_SITE"; then
2057 # We do not want a PATH search for config.site.
2058 case $CONFIG_SITE in #((
2059 -*) ac_site_file1=./$CONFIG_SITE;;
2060 */*) ac_site_file1=$CONFIG_SITE;;
2061 *) ac_site_file1=./$CONFIG_SITE;;
2062 esac
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2066 else
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2069 fi
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071 do
2072 test "x$ac_site_file" = xNONE && continue
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2077 . "$ac_site_file" \
2078 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2082 fi
2083 done
2084
2085 if test -r "$cache_file"; then
2086 # Some versions of bash will fail to source /dev/null (special files
2087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2091 case $cache_file in
2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
2094 esac
2095 fi
2096 else
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2099 >$cache_file
2100 fi
2101
2102 # Check that the precious variables saved in the cache have kept the same
2103 # value.
2104 ac_cache_corrupted=false
2105 for ac_var in $ac_precious_vars; do
2106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107 eval ac_new_set=\$ac_env_${ac_var}_set
2108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109 eval ac_new_val=\$ac_env_${ac_var}_value
2110 case $ac_old_set,$ac_new_set in
2111 set,)
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2115 ,set)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,);;
2120 *)
2121 if test "x$ac_old_val" != "x$ac_new_val"; then
2122 # differences in whitespace do not lead to failure.
2123 ac_old_val_w=`echo x $ac_old_val`
2124 ac_new_val_w=`echo x $ac_new_val`
2125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128 ac_cache_corrupted=:
2129 else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132 eval $ac_var=\$ac_old_val
2133 fi
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2135 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2138 fi;;
2139 esac
2140 # Pass precious variables to config.status.
2141 if test "$ac_new_set" = set; then
2142 case $ac_new_val in
2143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 *) ac_arg=$ac_var=$ac_new_val ;;
2145 esac
2146 case " $ac_configure_args " in
2147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149 esac
2150 fi
2151 done
2152 if $ac_cache_corrupted; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 fi
2159 ## -------------------- ##
2160 ## Main body of script. ##
2161 ## -------------------- ##
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171 >confdefs.h # Kill PACKAGE_ macros
2172
2173
2174 ac_aux_dir=
2175 for ac_dir in ../.. "$srcdir"/../..; do
2176 if test -f "$ac_dir/install-sh"; then
2177 ac_aux_dir=$ac_dir
2178 ac_install_sh="$ac_aux_dir/install-sh -c"
2179 break
2180 elif test -f "$ac_dir/install.sh"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/install.sh -c"
2183 break
2184 elif test -f "$ac_dir/shtool"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/shtool install -c"
2187 break
2188 fi
2189 done
2190 if test -z "$ac_aux_dir"; then
2191 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2192 fi
2193
2194 # These three variables are undocumented and unsupported,
2195 # and are intended to be withdrawn in a future Autoconf release.
2196 # They can cause serious problems if a builder's source tree is in a directory
2197 # whose full name contains unusual characters.
2198 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2199 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2200 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2201
2202
2203 am__api_version='1.13'
2204
2205 # Find a good install program. We prefer a C program (faster),
2206 # so one script is as good as another. But avoid the broken or
2207 # incompatible versions:
2208 # SysV /etc/install, /usr/sbin/install
2209 # SunOS /usr/etc/install
2210 # IRIX /sbin/install
2211 # AIX /bin/install
2212 # AmigaOS /C/install, which installs bootblocks on floppy discs
2213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216 # OS/2's system install, which has a completely different semantic
2217 # ./install, which can be erroneously created by make from ./install.sh.
2218 # Reject install programs that cannot install multiple files.
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2220 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2221 if test -z "$INSTALL"; then
2222 if ${ac_cv_path_install+:} false; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 # Account for people who put trailing slashes in PATH elements.
2231 case $as_dir/ in #((
2232 ./ | .// | /[cC]/* | \
2233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2234 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2235 /usr/ucb/* ) ;;
2236 *)
2237 # OSF1 and SCO ODT 3.0 have their own names for install.
2238 # Don't use installbsd from OSF since it installs stuff as root
2239 # by default.
2240 for ac_prog in ginstall scoinst install; do
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2243 if test $ac_prog = install &&
2244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # AIX install. It has an incompatible calling convention.
2246 :
2247 elif test $ac_prog = install &&
2248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # program-specific install script used by HP pwplus--don't use.
2250 :
2251 else
2252 rm -rf conftest.one conftest.two conftest.dir
2253 echo one > conftest.one
2254 echo two > conftest.two
2255 mkdir conftest.dir
2256 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2257 test -s conftest.one && test -s conftest.two &&
2258 test -s conftest.dir/conftest.one &&
2259 test -s conftest.dir/conftest.two
2260 then
2261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2262 break 3
2263 fi
2264 fi
2265 fi
2266 done
2267 done
2268 ;;
2269 esac
2270
2271 done
2272 IFS=$as_save_IFS
2273
2274 rm -rf conftest.one conftest.two conftest.dir
2275
2276 fi
2277 if test "${ac_cv_path_install+set}" = set; then
2278 INSTALL=$ac_cv_path_install
2279 else
2280 # As a last resort, use the slow shell script. Don't cache a
2281 # value for INSTALL within a source directory, because that will
2282 # break other packages using the cache if that directory is
2283 # removed, or if the value is a relative name.
2284 INSTALL=$ac_install_sh
2285 fi
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2288 $as_echo "$INSTALL" >&6; }
2289
2290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2291 # It thinks the first close brace ends the variable substitution.
2292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2293
2294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2295
2296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2299 $as_echo_n "checking whether build environment is sane... " >&6; }
2300 # Reject unsafe characters in $srcdir or the absolute working directory
2301 # name. Accept space and tab only in the latter.
2302 am_lf='
2303 '
2304 case `pwd` in
2305 *[\\\"\#\$\&\'\`$am_lf]*)
2306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2307 esac
2308 case $srcdir in
2309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2310 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2311 esac
2312
2313 # Do 'set' in a subshell so we don't clobber the current shell's
2314 # arguments. Must try -L first in case configure is actually a
2315 # symlink; some systems play weird games with the mod time of symlinks
2316 # (eg FreeBSD returns the mod time of the symlink's containing
2317 # directory).
2318 if (
2319 am_has_slept=no
2320 for am_try in 1 2; do
2321 echo "timestamp, slept: $am_has_slept" > conftest.file
2322 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2323 if test "$*" = "X"; then
2324 # -L didn't work.
2325 set X `ls -t "$srcdir/configure" conftest.file`
2326 fi
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2329
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2336 fi
2337 if test "$2" = conftest.file || test $am_try -eq 2; then
2338 break
2339 fi
2340 # Just in case.
2341 sleep 1
2342 am_has_slept=yes
2343 done
2344 test "$2" = conftest.file
2345 )
2346 then
2347 # Ok.
2348 :
2349 else
2350 as_fn_error $? "newly created file is older than distributed files!
2351 Check your system clock" "$LINENO" 5
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2354 $as_echo "yes" >&6; }
2355 # If we didn't sleep, we still need to ensure time stamps of config.status and
2356 # generated files are strictly newer.
2357 am_sleep_pid=
2358 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2359 ( sleep 1 ) &
2360 am_sleep_pid=$!
2361 fi
2362
2363 rm -f conftest.file
2364
2365 test "$program_prefix" != NONE &&
2366 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367 # Use a double $ so make ignores it.
2368 test "$program_suffix" != NONE &&
2369 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370 # Double any \ or $.
2371 # By default was `s,x,x', remove it if useless.
2372 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2374
2375 # expand $ac_aux_dir to an absolute path
2376 am_aux_dir=`cd $ac_aux_dir && pwd`
2377
2378 if test x"${MISSING+set}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2382 *)
2383 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384 esac
2385 fi
2386 # Use eval to expand $SHELL
2387 if eval "$MISSING --is-lightweight"; then
2388 am_missing_run="$MISSING "
2389 else
2390 am_missing_run=
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2392 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2393 fi
2394
2395 if test x"${install_sh}" != xset; then
2396 case $am_aux_dir in
2397 *\ * | *\ *)
2398 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2399 *)
2400 install_sh="\${SHELL} $am_aux_dir/install-sh"
2401 esac
2402 fi
2403
2404 # Installed binaries are usually stripped using 'strip' when the user
2405 # run "make install-strip". However 'strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the 'STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_STRIP+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$ac_cv_prog_STRIP"; then
2449 ac_ct_STRIP=$STRIP
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy 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_ac_ct_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486 if test "x$ac_ct_STRIP" = x; then
2487 STRIP=":"
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2496 fi
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2499 fi
2500
2501 fi
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506 if test -z "$MKDIR_P"; then
2507 if ${ac_cv_path_mkdir+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_prog in mkdir gmkdir; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2518 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519 'mkdir (GNU coreutils) '* | \
2520 'mkdir (coreutils) '* | \
2521 'mkdir (fileutils) '4.1*)
2522 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523 break 3;;
2524 esac
2525 done
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531
2532 test -d ./--version && rmdir ./--version
2533 if test "${ac_cv_path_mkdir+set}" = set; then
2534 MKDIR_P="$ac_cv_path_mkdir -p"
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for MKDIR_P within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 MKDIR_P="$ac_install_sh -d"
2541 fi
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544 $as_echo "$MKDIR_P" >&6; }
2545
2546 for ac_prog in gawk mawk nawk awk
2547 do
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy $ac_prog; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_AWK+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$AWK"; then
2556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_AWK="$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 AWK=$ac_cv_prog_AWK
2576 if test -n "$AWK"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2578 $as_echo "$AWK" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 fi
2583
2584
2585 test -n "$AWK" && break
2586 done
2587
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2589 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2590 set x ${MAKE-make}
2591 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2592 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat >conftest.make <<\_ACEOF
2596 SHELL = /bin/sh
2597 all:
2598 @echo '@@@%%%=$(MAKE)=@@@%%%'
2599 _ACEOF
2600 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2601 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2602 *@@@%%%=?*=@@@%%%*)
2603 eval ac_cv_prog_make_${ac_make}_set=yes;;
2604 *)
2605 eval ac_cv_prog_make_${ac_make}_set=no;;
2606 esac
2607 rm -f conftest.make
2608 fi
2609 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 SET_MAKE=
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 SET_MAKE="MAKE=${MAKE-make}"
2617 fi
2618
2619 rm -rf .tst 2>/dev/null
2620 mkdir .tst 2>/dev/null
2621 if test -d .tst; then
2622 am__leading_dot=.
2623 else
2624 am__leading_dot=_
2625 fi
2626 rmdir .tst 2>/dev/null
2627
2628 # Check whether --enable-silent-rules was given.
2629 if test "${enable_silent_rules+set}" = set; then :
2630 enableval=$enable_silent_rules;
2631 fi
2632
2633 case $enable_silent_rules in # (((
2634 yes) AM_DEFAULT_VERBOSITY=0;;
2635 no) AM_DEFAULT_VERBOSITY=1;;
2636 *) AM_DEFAULT_VERBOSITY=1;;
2637 esac
2638 am_make=${MAKE-make}
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2640 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2641 if ${am_cv_make_support_nested_variables+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if $as_echo 'TRUE=$(BAR$(V))
2645 BAR0=false
2646 BAR1=true
2647 V=1
2648 am__doit:
2649 @$(TRUE)
2650 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2651 am_cv_make_support_nested_variables=yes
2652 else
2653 am_cv_make_support_nested_variables=no
2654 fi
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2657 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2658 if test $am_cv_make_support_nested_variables = yes; then
2659 AM_V='$(V)'
2660 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2661 else
2662 AM_V=$AM_DEFAULT_VERBOSITY
2663 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2664 fi
2665 AM_BACKSLASH='\'
2666
2667 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669 # is not polluted with repeated "-I."
2670 am__isrc=' -I$(srcdir)'
2671 # test to see if srcdir already configured
2672 if test -f $srcdir/config.status; then
2673 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2674 fi
2675 fi
2676
2677 # test whether we have cygpath
2678 if test -z "$CYGPATH_W"; then
2679 if (cygpath --version) >/dev/null 2>/dev/null; then
2680 CYGPATH_W='cygpath -w'
2681 else
2682 CYGPATH_W=echo
2683 fi
2684 fi
2685
2686
2687 # Define the identity of the package.
2688 PACKAGE='libhmac'
2689 VERSION='1.00'
2690
2691
2692 # Some tools Automake needs.
2693
2694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2695
2696
2697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2698
2699
2700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2701
2702
2703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2704
2705
2706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2707
2708 # For better backward compatibility. To be removed once Automake 1.9.x
2709 # dies out for good. For more background, see:
2710 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2711 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2712 mkdir_p='$(MKDIR_P)'
2713
2714 # We need awk for the "check" target. The system "awk" is bad on
2715 # some platforms.
2716 # Always define AMTAR for backward compatibility. Yes, it's still used
2717 # in the wild :-( We should find a proper way to deprecate it ...
2718 AMTAR='$${TAR-tar}'
2719
2720
2721 # We'll loop over all known methods to create a tar archive until one works.
2722 _am_tools='gnutar pax cpio none'
2723
2724 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2725
2726
2727
2728
2729
2730
2731
2732
2733 ac_config_headers="$ac_config_headers config.h"
2734
2735
2736 for ac_prog in gawk mawk nawk awk
2737 do
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_AWK+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$AWK"; then
2746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_AWK="$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 AWK=$ac_cv_prog_AWK
2766 if test -n "$AWK"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768 $as_echo "$AWK" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775 test -n "$AWK" && break
2776 done
2777
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2780 $as_echo_n "checking whether ln -s works... " >&6; }
2781 LN_S=$as_ln_s
2782 if test "$LN_S" = "ln -s"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2787 $as_echo "no, using $LN_S" >&6; }
2788 fi
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_CC+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2816 fi
2817 done
2818 done
2819 IFS=$as_save_IFS
2820
2821 fi
2822 fi
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832
2833 fi
2834 if test -z "$ac_cv_prog_CC"; then
2835 ac_ct_CC=$CC
2836 # Extract the first word of "gcc", so it can be a program name with args.
2837 set dummy gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_CC="gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881 CC=$ac_ct_CC
2882 fi
2883 else
2884 CC="$ac_cv_prog_CC"
2885 fi
2886
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}cc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_CC="${ac_tool_prefix}cc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 fi
2928 if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930 set dummy cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 ac_prog_rejected=no
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected=yes
2949 continue
2950 fi
2951 ac_cv_prog_CC="cc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 if test $ac_prog_rejected = yes; then
2960 # We found a bogon in the path, so make sure we never use it.
2961 set dummy $ac_cv_prog_CC
2962 shift
2963 if test $# != 0; then
2964 # We chose a different compiler from the bogus one.
2965 # However, it has the same basename, so the bogon will be chosen
2966 # first if we set CC to just the basename; use the full file name.
2967 shift
2968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2969 fi
2970 fi
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 for ac_prog in cl.exe
2987 do
2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 test -n "$CC" && break
3026 done
3027 fi
3028 if test -z "$CC"; then
3029 ac_ct_CC=$CC
3030 for ac_prog in cl.exe
3031 do
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_ac_ct_CC="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062 $as_echo "$ac_ct_CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 test -n "$ac_ct_CC" && break
3070 done
3071
3072 if test "x$ac_ct_CC" = x; then
3073 CC=""
3074 else
3075 case $cross_compiling:$ac_tool_warned in
3076 yes:)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081 CC=$ac_ct_CC
3082 fi
3083 fi
3084
3085 fi
3086
3087
3088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error $? "no acceptable C compiler found in \$PATH
3091 See \`config.log' for more details" "$LINENO" 5; }
3092
3093 # Provide some information about the compiler.
3094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3095 set X $ac_compile
3096 ac_compiler=$2
3097 for ac_option in --version -v -V -qversion; do
3098 { { ac_try="$ac_compiler $ac_option >&5"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3106 ac_status=$?
3107 if test -s conftest.err; then
3108 sed '10a\
3109 ... rest of stderr output deleted ...
3110 10q' conftest.err >conftest.er1
3111 cat conftest.er1 >&5
3112 fi
3113 rm -f conftest.er1 conftest.err
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }
3116 done
3117
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 ac_clean_files_save=$ac_clean_files
3130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3131 # Try to create an executable without -o first, disregard a.out.
3132 # It will help us diagnose broken compilers, and finding out an intuition
3133 # of exeext.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135 $as_echo_n "checking whether the C compiler works... " >&6; }
3136 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137
3138 # The possible output files:
3139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3140
3141 ac_rmfiles=
3142 for ac_file in $ac_files
3143 do
3144 case $ac_file in
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147 esac
3148 done
3149 rm -f $ac_rmfiles
3150
3151 if { { ac_try="$ac_link_default"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link_default") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3165 # so that the user can short-circuit this test for compilers unknown to
3166 # Autoconf.
3167 for ac_file in $ac_files ''
3168 do
3169 test -f "$ac_file" || continue
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3172 ;;
3173 [ab].out )
3174 # We found the default executable, but exeext='' is most
3175 # certainly right.
3176 break;;
3177 *.* )
3178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3179 then :; else
3180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 fi
3182 # We set ac_cv_exeext here because the later test for it is not
3183 # safe: cross compilers may not add the suffix if given an `-o'
3184 # argument, so we may need to know it at that point already.
3185 # Even if this section looks crufty: it has the advantage of
3186 # actually working.
3187 break;;
3188 * )
3189 break;;
3190 esac
3191 done
3192 test "$ac_cv_exeext" = no && ac_cv_exeext=
3193
3194 else
3195 ac_file=''
3196 fi
3197 if test -z "$ac_file"; then :
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { $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 77 "C compiler cannot create executables
3206 See \`config.log' for more details" "$LINENO" 5; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3212 $as_echo_n "checking for C compiler default output file name... " >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3214 $as_echo "$ac_file" >&6; }
3215 ac_exeext=$ac_cv_exeext
3216
3217 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3220 $as_echo_n "checking for suffix of executables... " >&6; }
3221 if { { ac_try="$ac_link"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_link") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
3232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3234 # work properly (i.e., refer to `conftest.exe'), while it won't with
3235 # `rm'.
3236 for ac_file in conftest.exe conftest conftest.*; do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 break;;
3242 * ) break;;
3243 esac
3244 done
3245 else
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 fi
3251 rm -f conftest conftest$ac_cv_exeext
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3253 $as_echo "$ac_cv_exeext" >&6; }
3254
3255 rm -f conftest.$ac_ext
3256 EXEEXT=$ac_cv_exeext
3257 ac_exeext=$EXEEXT
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260 #include <stdio.h>
3261 int
3262 main ()
3263 {
3264 FILE *f = fopen ("conftest.out", "w");
3265 return ferror (f) || fclose (f) != 0;
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 ac_clean_files="$ac_clean_files conftest.out"
3272 # Check that the compiler produces executables we can run. If not, either
3273 # the compiler is broken, or we cross compile.
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3275 $as_echo_n "checking whether we are cross compiling... " >&6; }
3276 if test "$cross_compiling" != yes; then
3277 { { ac_try="$ac_link"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3288 if { ac_try='./conftest$ac_cv_exeext'
3289 { { case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_try") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; }; then
3299 cross_compiling=no
3300 else
3301 if test "$cross_compiling" = maybe; then
3302 cross_compiling=yes
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot run C compiled programs.
3307 If you meant to cross compile, use \`--host'.
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 fi
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3313 $as_echo "$cross_compiling" >&6; }
3314
3315 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3316 ac_clean_files=$ac_clean_files_save
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3318 $as_echo_n "checking for suffix of object files... " >&6; }
3319 if ${ac_cv_objext+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.o conftest.obj
3334 if { { ac_try="$ac_compile"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compile") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
3347 case $ac_file in
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 break;;
3351 esac
3352 done
3353 else
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details" "$LINENO" 5; }
3361 fi
3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3365 $as_echo "$ac_cv_objext" >&6; }
3366 OBJEXT=$ac_cv_objext
3367 ac_objext=$OBJEXT
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3369 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3370 if ${ac_cv_c_compiler_gnu+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379 #ifndef __GNUC__
3380 choke me
3381 #endif
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_compiler_gnu=yes
3389 else
3390 ac_compiler_gnu=no
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3397 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3398 if test $ac_compiler_gnu = yes; then
3399 GCC=yes
3400 else
3401 GCC=
3402 fi
3403 ac_test_CFLAGS=${CFLAGS+set}
3404 ac_save_CFLAGS=$CFLAGS
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3406 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3407 if ${ac_cv_prog_cc_g+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 ac_save_c_werror_flag=$ac_c_werror_flag
3411 ac_c_werror_flag=yes
3412 ac_cv_prog_cc_g=no
3413 CFLAGS="-g"
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_g=yes
3427 else
3428 CFLAGS=""
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441
3442 else
3443 ac_c_werror_flag=$ac_save_c_werror_flag
3444 CFLAGS="-g"
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_cv_prog_cc_g=yes
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3467 $as_echo "$ac_cv_prog_cc_g" >&6; }
3468 if test "$ac_test_CFLAGS" = set; then
3469 CFLAGS=$ac_save_CFLAGS
3470 elif test $ac_cv_prog_cc_g = yes; then
3471 if test "$GCC" = yes; then
3472 CFLAGS="-g -O2"
3473 else
3474 CFLAGS="-g"
3475 fi
3476 else
3477 if test "$GCC" = yes; then
3478 CFLAGS="-O2"
3479 else
3480 CFLAGS=
3481 fi
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3484 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3485 if ${ac_cv_prog_cc_c89+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 ac_cv_prog_cc_c89=no
3489 ac_save_CC=$CC
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #include <stdarg.h>
3493 #include <stdio.h>
3494 struct stat;
3495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3496 struct buf { int x; };
3497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3498 static char *e (p, i)
3499 char **p;
3500 int i;
3501 {
3502 return p[i];
3503 }
3504 static char *f (char * (*g) (char **, int), char **p, ...)
3505 {
3506 char *s;
3507 va_list v;
3508 va_start (v,p);
3509 s = g (p, va_arg (v,int));
3510 va_end (v);
3511 return s;
3512 }
3513
3514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3515 function prototypes and stuff, but not '\xHH' hex character constants.
3516 These don't provoke an error unfortunately, instead are silently treated
3517 as 'x'. The following induces an error, until -std is added to get
3518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3519 array size at least. It's necessary to write '\x00'==0 to get something
3520 that's true only with -std. */
3521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3522
3523 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3524 inside strings and character constants. */
3525 #define FOO(x) 'x'
3526 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3527
3528 int test (int i, double x);
3529 struct s1 {int (*f) (int a);};
3530 struct s2 {int (*f) (double a);};
3531 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532 int argc;
3533 char **argv;
3534 int
3535 main ()
3536 {
3537 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3543 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3544 do
3545 CC="$ac_save_CC $ac_arg"
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_cv_prog_cc_c89=$ac_arg
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext
3550 test "x$ac_cv_prog_cc_c89" != "xno" && break
3551 done
3552 rm -f conftest.$ac_ext
3553 CC=$ac_save_CC
3554
3555 fi
3556 # AC_CACHE_VAL
3557 case "x$ac_cv_prog_cc_c89" in
3558 x)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3560 $as_echo "none needed" >&6; } ;;
3561 xno)
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3563 $as_echo "unsupported" >&6; } ;;
3564 *)
3565 CC="$CC $ac_cv_prog_cc_c89"
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3567 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3568 esac
3569 if test "x$ac_cv_prog_cc_c89" != xno; then :
3570
3571 fi
3572
3573 ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 DEPDIR="${am__leading_dot}deps"
3579
3580 ac_config_commands="$ac_config_commands depfiles"
3581
3582
3583 am_make=${MAKE-make}
3584 cat > confinc << 'END'
3585 am__doit:
3586 @echo this is the am__doit target
3587 .PHONY: am__doit
3588 END
3589 # If we don't find an include directive, just comment out the code.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3591 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3592 am__include="#"
3593 am__quote=
3594 _am_result=none
3595 # First try GNU make style include.
3596 echo "include confinc" > confmf
3597 # Ignore all kinds of additional output from 'make'.
3598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=include
3601 am__quote=
3602 _am_result=GNU
3603 ;;
3604 esac
3605 # Now try BSD make style include.
3606 if test "$am__include" = "#"; then
3607 echo '.include "confinc"' > confmf
3608 case `$am_make -s -f confmf 2> /dev/null` in #(
3609 *the\ am__doit\ target*)
3610 am__include=.include
3611 am__quote="\""
3612 _am_result=BSD
3613 ;;
3614 esac
3615 fi
3616
3617
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3619 $as_echo "$_am_result" >&6; }
3620 rm -f confinc confmf
3621
3622 # Check whether --enable-dependency-tracking was given.
3623 if test "${enable_dependency_tracking+set}" = set; then :
3624 enableval=$enable_dependency_tracking;
3625 fi
3626
3627 if test "x$enable_dependency_tracking" != xno; then
3628 am_depcomp="$ac_aux_dir/depcomp"
3629 AMDEPBACKSLASH='\'
3630 am__nodep='_no'
3631 fi
3632 if test "x$enable_dependency_tracking" != xno; then
3633 AMDEP_TRUE=
3634 AMDEP_FALSE='#'
3635 else
3636 AMDEP_TRUE='#'
3637 AMDEP_FALSE=
3638 fi
3639
3640
3641
3642 depcc="$CC" am_compiler_list=
3643
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3645 $as_echo_n "checking dependency style of $depcc... " >&6; }
3646 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650 # We make a subdir and do the tests there. Otherwise we can end up
3651 # making bogus files that we don't know about and never remove. For
3652 # instance it was reported that on HP-UX the gcc test will end up
3653 # making a dummy file named 'D' -- because '-MD' means "put the output
3654 # in D".
3655 rm -rf conftest.dir
3656 mkdir conftest.dir
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3660 cd conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3666 # directory.
3667 mkdir sub
3668
3669 am_cv_CC_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 fi
3673 am__universal=false
3674 case " $depcc " in #(
3675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676 esac
3677
3678 for depmode in $am_compiler_list; do
3679 # Setup a source with many dependencies, because some compilers
3680 # like to wrap large dependency lists on column 80 (with \), and
3681 # we should not choose a depcomp mode which is confused by this.
3682 #
3683 # We need to recreate these files for each test, as the compiler may
3684 # overwrite some of them when testing with obscure command lines.
3685 # This happens at least with the AIX C compiler.
3686 : > sub/conftest.c
3687 for i in 1 2 3 4 5 6; do
3688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3690 # Solaris 10 /bin/sh.
3691 echo '/* dummy */' > sub/conftst$i.h
3692 done
3693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694
3695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3696 # mode. It turns out that the SunPro C++ compiler does not properly
3697 # handle '-M -o', and we need to detect this. Also, some Intel
3698 # versions had trouble with output in subdirs.
3699 am__obj=sub/conftest.${OBJEXT-o}
3700 am__minus_obj="-o $am__obj"
3701 case $depmode in
3702 gcc)
3703 # This depmode causes a compiler race in universal mode.
3704 test "$am__universal" = false || continue
3705 ;;
3706 nosideeffect)
3707 # After this tag, mechanisms are not by side-effect, so they'll
3708 # only be used when explicitly requested.
3709 if test "x$enable_dependency_tracking" = xyes; then
3710 continue
3711 else
3712 break
3713 fi
3714 ;;
3715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3716 # This compiler won't grok '-c -o', but also, the minuso test has
3717 # not run yet. These depmodes are late enough in the game, and
3718 # so weak that their functioning should not be impacted.
3719 am__obj=conftest.${OBJEXT-o}
3720 am__minus_obj=
3721 ;;
3722 none) break ;;
3723 esac
3724 if depmode=$depmode \
3725 source=sub/conftest.c object=$am__obj \
3726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3728 >/dev/null 2>conftest.err &&
3729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742 am_cv_CC_dependencies_compiler_type=$depmode
3743 break
3744 fi
3745 fi
3746 done
3747
3748 cd ..
3749 rm -rf conftest.dir
3750 else
3751 am_cv_CC_dependencies_compiler_type=none
3752 fi
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3756 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3758
3759 if
3760 test "x$enable_dependency_tracking" != xno \
3761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3762 am__fastdepCC_TRUE=
3763 am__fastdepCC_FALSE='#'
3764 else
3765 am__fastdepCC_TRUE='#'
3766 am__fastdepCC_FALSE=
3767 fi
3768
3769
3770 case `pwd` in
3771 *\ * | *\ *)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3773 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3774 esac
3775
3776
3777
3778 macro_version='2.4.2'
3779 macro_revision='1.3337'
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793 ltmain="$ac_aux_dir/ltmain.sh"
3794
3795 # Make sure we can run config.sub.
3796 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3800 $as_echo_n "checking build system type... " >&6; }
3801 if ${ac_cv_build+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 ac_build_alias=$build_alias
3805 test "x$ac_build_alias" = x &&
3806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807 test "x$ac_build_alias" = x &&
3808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3811
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3814 $as_echo "$ac_cv_build" >&6; }
3815 case $ac_cv_build in
3816 *-*-*) ;;
3817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3818 esac
3819 build=$ac_cv_build
3820 ac_save_IFS=$IFS; IFS='-'
3821 set x $ac_cv_build
3822 shift
3823 build_cpu=$1
3824 build_vendor=$2
3825 shift; shift
3826 # Remember, the first character of IFS is used to create $*,
3827 # except with old shells:
3828 build_os=$*
3829 IFS=$ac_save_IFS
3830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3834 $as_echo_n "checking host system type... " >&6; }
3835 if ${ac_cv_host+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test "x$host_alias" = x; then
3839 ac_cv_host=$ac_cv_build
3840 else
3841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3843 fi
3844
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3847 $as_echo "$ac_cv_host" >&6; }
3848 case $ac_cv_host in
3849 *-*-*) ;;
3850 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3851 esac
3852 host=$ac_cv_host
3853 ac_save_IFS=$IFS; IFS='-'
3854 set x $ac_cv_host
3855 shift
3856 host_cpu=$1
3857 host_vendor=$2
3858 shift; shift
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3861 host_os=$*
3862 IFS=$ac_save_IFS
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864
3865
3866 # Backslashify metacharacters that are still active within
3867 # double-quoted strings.
3868 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3869
3870 # Same as above, but do not quote variable references.
3871 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3872
3873 # Sed substitution to delay expansion of an escaped shell variable in a
3874 # double_quote_subst'ed string.
3875 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3876
3877 # Sed substitution to delay expansion of an escaped single quote.
3878 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3879
3880 # Sed substitution to avoid accidental globbing in evaled expressions
3881 no_glob_subst='s/\*/\\\*/g'
3882
3883 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3884 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3885 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3886
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3888 $as_echo_n "checking how to print strings... " >&6; }
3889 # Test print first, because it will be a builtin if present.
3890 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3891 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3892 ECHO='print -r --'
3893 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3894 ECHO='printf %s\n'
3895 else
3896 # Use this function as a fallback that always works.
3897 func_fallback_echo ()
3898 {
3899 eval 'cat <<_LTECHO_EOF
3900 $1
3901 _LTECHO_EOF'
3902 }
3903 ECHO='func_fallback_echo'
3904 fi
3905
3906 # func_echo_all arg...
3907 # Invoke $ECHO with all args, space-separated.
3908 func_echo_all ()
3909 {
3910 $ECHO ""
3911 }
3912
3913 case "$ECHO" in
3914 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3915 $as_echo "printf" >&6; } ;;
3916 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3917 $as_echo "print -r" >&6; } ;;
3918 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3919 $as_echo "cat" >&6; } ;;
3920 esac
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3936 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3937 if ${ac_cv_path_SED+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3941 for ac_i in 1 2 3 4 5 6 7; do
3942 ac_script="$ac_script$as_nl$ac_script"
3943 done
3944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3945 { ac_script=; unset ac_script;}
3946 if test -z "$SED"; then
3947 ac_path_SED_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in sed gsed; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3957 as_fn_executable_p "$ac_path_SED" || continue
3958 # Check for GNU ac_path_SED and select it if it is found.
3959 # Check for GNU $ac_path_SED
3960 case `"$ac_path_SED" --version 2>&1` in
3961 *GNU*)
3962 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3963 *)
3964 ac_count=0
3965 $as_echo_n 0123456789 >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 $as_echo '' >> "conftest.nl"
3972 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 as_fn_arith $ac_count + 1 && ac_count=$as_val
3975 if test $ac_count -gt ${ac_path_SED_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_SED="$ac_path_SED"
3978 ac_path_SED_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984 esac
3985
3986 $ac_path_SED_found && break 3
3987 done
3988 done
3989 done
3990 IFS=$as_save_IFS
3991 if test -z "$ac_cv_path_SED"; then
3992 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3993 fi
3994 else
3995 ac_cv_path_SED=$SED
3996 fi
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4000 $as_echo "$ac_cv_path_SED" >&6; }
4001 SED="$ac_cv_path_SED"
4002 rm -f conftest.sed
4003
4004 test -z "$SED" && SED=sed
4005 Xsed="$SED -e 1s/^X//"
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4018 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4019 if ${ac_cv_path_GREP+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if test -z "$GREP"; then
4023 ac_path_GREP_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in grep ggrep; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4033 as_fn_executable_p "$ac_path_GREP" || continue
4034 # Check for GNU ac_path_GREP and select it if it is found.
4035 # Check for GNU $ac_path_GREP
4036 case `"$ac_path_GREP" --version 2>&1` in
4037 *GNU*)
4038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4039 *)
4040 ac_count=0
4041 $as_echo_n 0123456789 >"conftest.in"
4042 while :
4043 do
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'GREP' >> "conftest.nl"
4048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_GREP="$ac_path_GREP"
4054 ac_path_GREP_max=$ac_count
4055 fi
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4058 done
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062 $ac_path_GREP_found && break 3
4063 done
4064 done
4065 done
4066 IFS=$as_save_IFS
4067 if test -z "$ac_cv_path_GREP"; then
4068 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069 fi
4070 else
4071 ac_cv_path_GREP=$GREP
4072 fi
4073
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4076 $as_echo "$ac_cv_path_GREP" >&6; }
4077 GREP="$ac_cv_path_GREP"
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4081 $as_echo_n "checking for egrep... " >&6; }
4082 if ${ac_cv_path_EGREP+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4086 then ac_cv_path_EGREP="$GREP -E"
4087 else
4088 if test -z "$EGREP"; then
4089 ac_path_EGREP_found=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_prog in egrep; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4099 as_fn_executable_p "$ac_path_EGREP" || continue
4100 # Check for GNU ac_path_EGREP and select it if it is found.
4101 # Check for GNU $ac_path_EGREP
4102 case `"$ac_path_EGREP" --version 2>&1` in
4103 *GNU*)
4104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4105 *)
4106 ac_count=0
4107 $as_echo_n 0123456789 >"conftest.in"
4108 while :
4109 do
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'EGREP' >> "conftest.nl"
4114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4116 as_fn_arith $ac_count + 1 && ac_count=$as_val
4117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_EGREP="$ac_path_EGREP"
4120 ac_path_EGREP_max=$ac_count
4121 fi
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4124 done
4125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 esac
4127
4128 $ac_path_EGREP_found && break 3
4129 done
4130 done
4131 done
4132 IFS=$as_save_IFS
4133 if test -z "$ac_cv_path_EGREP"; then
4134 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4135 fi
4136 else
4137 ac_cv_path_EGREP=$EGREP
4138 fi
4139
4140 fi
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4143 $as_echo "$ac_cv_path_EGREP" >&6; }
4144 EGREP="$ac_cv_path_EGREP"
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4148 $as_echo_n "checking for fgrep... " >&6; }
4149 if ${ac_cv_path_FGREP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4153 then ac_cv_path_FGREP="$GREP -F"
4154 else
4155 if test -z "$FGREP"; then
4156 ac_path_FGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160 do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in fgrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4166 as_fn_executable_p "$ac_path_FGREP" || continue
4167 # Check for GNU ac_path_FGREP and select it if it is found.
4168 # Check for GNU $ac_path_FGREP
4169 case `"$ac_path_FGREP" --version 2>&1` in
4170 *GNU*)
4171 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4172 *)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo 'FGREP' >> "conftest.nl"
4181 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
4184 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_FGREP="$ac_path_FGREP"
4187 ac_path_FGREP_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4194
4195 $ac_path_FGREP_found && break 3
4196 done
4197 done
4198 done
4199 IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_FGREP"; then
4201 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4202 fi
4203 else
4204 ac_cv_path_FGREP=$FGREP
4205 fi
4206
4207 fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4210 $as_echo "$ac_cv_path_FGREP" >&6; }
4211 FGREP="$ac_cv_path_FGREP"
4212
4213
4214 test -z "$GREP" && GREP=grep
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234 # Check whether --with-gnu-ld was given.
4235 if test "${with_gnu_ld+set}" = set; then :
4236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4237 else
4238 with_gnu_ld=no
4239 fi
4240
4241 ac_prog=ld
4242 if test "$GCC" = yes; then
4243 # Check if gcc -print-prog-name=ld gives a path.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4245 $as_echo_n "checking for ld used by $CC... " >&6; }
4246 case $host in
4247 *-*-mingw*)
4248 # gcc leaves a trailing carriage return which upsets mingw
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4250 *)
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4252 esac
4253 case $ac_prog in
4254 # Accept absolute paths.
4255 [\\/]* | ?:[\\/]*)
4256 re_direlt='/[^/][^/]*/\.\./'
4257 # Canonicalize the pathname of ld
4258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4261 done
4262 test -z "$LD" && LD="$ac_prog"
4263 ;;
4264 "")
4265 # If it fails, then pretend we aren't using GCC.
4266 ac_prog=ld
4267 ;;
4268 *)
4269 # If it is relative, then search for the first ld in PATH.
4270 with_gnu_ld=unknown
4271 ;;
4272 esac
4273 elif test "$with_gnu_ld" = yes; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4275 $as_echo_n "checking for GNU ld... " >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4278 $as_echo_n "checking for non-GNU ld... " >&6; }
4279 fi
4280 if ${lt_cv_path_LD+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$LD"; then
4284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4285 for ac_dir in $PATH; do
4286 IFS="$lt_save_ifs"
4287 test -z "$ac_dir" && ac_dir=.
4288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4289 lt_cv_path_LD="$ac_dir/$ac_prog"
4290 # Check to see if the program is GNU ld. I'd rather use --version,
4291 # but apparently some variants of GNU ld only accept -v.
4292 # Break only if it was the GNU/non-GNU ld that we prefer.
4293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4294 *GNU* | *'with BFD'*)
4295 test "$with_gnu_ld" != no && break
4296 ;;
4297 *)
4298 test "$with_gnu_ld" != yes && break
4299 ;;
4300 esac
4301 fi
4302 done
4303 IFS="$lt_save_ifs"
4304 else
4305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4306 fi
4307 fi
4308
4309 LD="$lt_cv_path_LD"
4310 if test -n "$LD"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4312 $as_echo "$LD" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4319 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4320 if ${lt_cv_prog_gnu_ld+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4324 case `$LD -v 2>&1 </dev/null` in
4325 *GNU* | *'with BFD'*)
4326 lt_cv_prog_gnu_ld=yes
4327 ;;
4328 *)
4329 lt_cv_prog_gnu_ld=no
4330 ;;
4331 esac
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4334 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4335 with_gnu_ld=$lt_cv_prog_gnu_ld
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4346 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4347 if ${lt_cv_path_NM+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$NM"; then
4351 # Let the user override the test.
4352 lt_cv_path_NM="$NM"
4353 else
4354 lt_nm_to_check="${ac_tool_prefix}nm"
4355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4356 lt_nm_to_check="$lt_nm_to_check nm"
4357 fi
4358 for lt_tmp_nm in $lt_nm_to_check; do
4359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4360 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4361 IFS="$lt_save_ifs"
4362 test -z "$ac_dir" && ac_dir=.
4363 tmp_nm="$ac_dir/$lt_tmp_nm"
4364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4365 # Check to see if the nm accepts a BSD-compat flag.
4366 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4367 # nm: unknown option "B" ignored
4368 # Tru64's nm complains that /dev/null is an invalid object file
4369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4370 */dev/null* | *'Invalid file or object type'*)
4371 lt_cv_path_NM="$tmp_nm -B"
4372 break
4373 ;;
4374 *)
4375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4376 */dev/null*)
4377 lt_cv_path_NM="$tmp_nm -p"
4378 break
4379 ;;
4380 *)
4381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4382 continue # so that we can try to find one that supports BSD flags
4383 ;;
4384 esac
4385 ;;
4386 esac
4387 fi
4388 done
4389 IFS="$lt_save_ifs"
4390 done
4391 : ${lt_cv_path_NM=no}
4392 fi
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4395 $as_echo "$lt_cv_path_NM" >&6; }
4396 if test "$lt_cv_path_NM" != "no"; then
4397 NM="$lt_cv_path_NM"
4398 else
4399 # Didn't find any BSD compatible name lister, look for dumpbin.
4400 if test -n "$DUMPBIN"; then :
4401 # Let the user override the test.
4402 else
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog in dumpbin "link -dump"
4405 do
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_DUMPBIN+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$DUMPBIN"; then
4414 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431 fi
4432 fi
4433 DUMPBIN=$ac_cv_prog_DUMPBIN
4434 if test -n "$DUMPBIN"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4436 $as_echo "$DUMPBIN" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440 fi
4441
4442
4443 test -n "$DUMPBIN" && break
4444 done
4445 fi
4446 if test -z "$DUMPBIN"; then
4447 ac_ct_DUMPBIN=$DUMPBIN
4448 for ac_prog in dumpbin "link -dump"
4449 do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$ac_ct_DUMPBIN"; then
4458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 fi
4476 fi
4477 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4478 if test -n "$ac_ct_DUMPBIN"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4480 $as_echo "$ac_ct_DUMPBIN" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 fi
4485
4486
4487 test -n "$ac_ct_DUMPBIN" && break
4488 done
4489
4490 if test "x$ac_ct_DUMPBIN" = x; then
4491 DUMPBIN=":"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 DUMPBIN=$ac_ct_DUMPBIN
4500 fi
4501 fi
4502
4503 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4504 *COFF*)
4505 DUMPBIN="$DUMPBIN -symbols"
4506 ;;
4507 *)
4508 DUMPBIN=:
4509 ;;
4510 esac
4511 fi
4512
4513 if test "$DUMPBIN" != ":"; then
4514 NM="$DUMPBIN"
4515 fi
4516 fi
4517 test -z "$NM" && NM=nm
4518
4519
4520
4521
4522
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4525 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4526 if ${lt_cv_nm_interface+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 lt_cv_nm_interface="BSD nm"
4530 echo "int some_variable = 0;" > conftest.$ac_ext
4531 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4532 (eval "$ac_compile" 2>conftest.err)
4533 cat conftest.err >&5
4534 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4535 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4536 cat conftest.err >&5
4537 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4538 cat conftest.out >&5
4539 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4540 lt_cv_nm_interface="MS dumpbin"
4541 fi
4542 rm -f conftest*
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4545 $as_echo "$lt_cv_nm_interface" >&6; }
4546
4547 # find the maximum length of command line arguments
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4549 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4550 if ${lt_cv_sys_max_cmd_len+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 i=0
4554 teststring="ABCD"
4555
4556 case $build_os in
4557 msdosdjgpp*)
4558 # On DJGPP, this test can blow up pretty badly due to problems in libc
4559 # (any single argument exceeding 2000 bytes causes a buffer overrun
4560 # during glob expansion). Even if it were fixed, the result of this
4561 # check would be larger than it should be.
4562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4563 ;;
4564
4565 gnu*)
4566 # Under GNU Hurd, this test is not required because there is
4567 # no limit to the length of command line arguments.
4568 # Libtool will interpret -1 as no limit whatsoever
4569 lt_cv_sys_max_cmd_len=-1;
4570 ;;
4571
4572 cygwin* | mingw* | cegcc*)
4573 # On Win9x/ME, this test blows up -- it succeeds, but takes
4574 # about 5 minutes as the teststring grows exponentially.
4575 # Worse, since 9x/ME are not pre-emptively multitasking,
4576 # you end up with a "frozen" computer, even though with patience
4577 # the test eventually succeeds (with a max line length of 256k).
4578 # Instead, let's just punt: use the minimum linelength reported by
4579 # all of the supported platforms: 8192 (on NT/2K/XP).
4580 lt_cv_sys_max_cmd_len=8192;
4581 ;;
4582
4583 mint*)
4584 # On MiNT this can take a long time and run out of memory.
4585 lt_cv_sys_max_cmd_len=8192;
4586 ;;
4587
4588 amigaos*)
4589 # On AmigaOS with pdksh, this test takes hours, literally.
4590 # So we just punt and use a minimum line length of 8192.
4591 lt_cv_sys_max_cmd_len=8192;
4592 ;;
4593
4594 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4595 # This has been around since 386BSD, at least. Likely further.
4596 if test -x /sbin/sysctl; then
4597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4598 elif test -x /usr/sbin/sysctl; then
4599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4600 else
4601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4602 fi
4603 # And add a safety zone
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4606 ;;
4607
4608 interix*)
4609 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4610 lt_cv_sys_max_cmd_len=196608
4611 ;;
4612
4613 os2*)
4614 # The test takes a long time on OS/2.
4615 lt_cv_sys_max_cmd_len=8192
4616 ;;
4617
4618 osf*)
4619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4621 # nice to cause kernel panics so lets avoid the loop below.
4622 # First set a reasonable default.
4623 lt_cv_sys_max_cmd_len=16384
4624 #
4625 if test -x /sbin/sysconfig; then
4626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4627 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4628 esac
4629 fi
4630 ;;
4631 sco3.2v5*)
4632 lt_cv_sys_max_cmd_len=102400
4633 ;;
4634 sysv5* | sco5v6* | sysv4.2uw2*)
4635 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4636 if test -n "$kargmax"; then
4637 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4638 else
4639 lt_cv_sys_max_cmd_len=32768
4640 fi
4641 ;;
4642 *)
4643 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4644 if test -n "$lt_cv_sys_max_cmd_len"; then
4645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4647 else
4648 # Make teststring a little bigger before we do anything with it.
4649 # a 1K string should be a reasonable start.
4650 for i in 1 2 3 4 5 6 7 8 ; do
4651 teststring=$teststring$teststring
4652 done
4653 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4654 # If test is not a shell built-in, we'll probably end up computing a
4655 # maximum length that is only half of the actual maximum length, but
4656 # we can't tell.
4657 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4658 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4659 test $i != 17 # 1/2 MB should be enough
4660 do
4661 i=`expr $i + 1`
4662 teststring=$teststring$teststring
4663 done
4664 # Only check the string length outside the loop.
4665 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4666 teststring=
4667 # Add a significant safety factor because C++ compilers can tack on
4668 # massive amounts of additional arguments before passing them to the
4669 # linker. It appears as though 1/2 is a usable value.
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4671 fi
4672 ;;
4673 esac
4674
4675 fi
4676
4677 if test -n $lt_cv_sys_max_cmd_len ; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4679 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4682 $as_echo "none" >&6; }
4683 fi
4684 max_cmd_len=$lt_cv_sys_max_cmd_len
4685
4686
4687
4688
4689
4690
4691 : ${CP="cp -f"}
4692 : ${MV="mv -f"}
4693 : ${RM="rm -f"}
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4696 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4697 # Try some XSI features
4698 xsi_shell=no
4699 ( _lt_dummy="a/b/c"
4700 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4701 = c,a/b,b/c, \
4702 && eval 'test $(( 1 + 1 )) -eq 2 \
4703 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4704 && xsi_shell=yes
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4706 $as_echo "$xsi_shell" >&6; }
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4710 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4711 lt_shell_append=no
4712 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4713 >/dev/null 2>&1 \
4714 && lt_shell_append=yes
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4716 $as_echo "$lt_shell_append" >&6; }
4717
4718
4719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4720 lt_unset=unset
4721 else
4722 lt_unset=false
4723 fi
4724
4725
4726
4727
4728
4729 # test EBCDIC or ASCII
4730 case `echo X|tr X '\101'` in
4731 A) # ASCII based system
4732 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4733 lt_SP2NL='tr \040 \012'
4734 lt_NL2SP='tr \015\012 \040\040'
4735 ;;
4736 *) # EBCDIC based system
4737 lt_SP2NL='tr \100 \n'
4738 lt_NL2SP='tr \r\n \100\100'
4739 ;;
4740 esac
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4751 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4752 if ${lt_cv_to_host_file_cmd+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 case $host in
4756 *-*-mingw* )
4757 case $build in
4758 *-*-mingw* ) # actually msys
4759 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4760 ;;
4761 *-*-cygwin* )
4762 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4763 ;;
4764 * ) # otherwise, assume *nix
4765 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4766 ;;
4767 esac
4768 ;;
4769 *-*-cygwin* )
4770 case $build in
4771 *-*-mingw* ) # actually msys
4772 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4773 ;;
4774 *-*-cygwin* )
4775 lt_cv_to_host_file_cmd=func_convert_file_noop
4776 ;;
4777 * ) # otherwise, assume *nix
4778 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4779 ;;
4780 esac
4781 ;;
4782 * ) # unhandled hosts (and "normal" native builds)
4783 lt_cv_to_host_file_cmd=func_convert_file_noop
4784 ;;
4785 esac
4786
4787 fi
4788
4789 to_host_file_cmd=$lt_cv_to_host_file_cmd
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4791 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4792
4793
4794
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4798 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4799 if ${lt_cv_to_tool_file_cmd+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 #assume ordinary cross tools, or native build.
4803 lt_cv_to_tool_file_cmd=func_convert_file_noop
4804 case $host in
4805 *-*-mingw* )
4806 case $build in
4807 *-*-mingw* ) # actually msys
4808 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4809 ;;
4810 esac
4811 ;;
4812 esac
4813
4814 fi
4815
4816 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4818 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4819
4820
4821
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4825 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4826 if ${lt_cv_ld_reload_flag+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 lt_cv_ld_reload_flag='-r'
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4832 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4833 reload_flag=$lt_cv_ld_reload_flag
4834 case $reload_flag in
4835 "" | " "*) ;;
4836 *) reload_flag=" $reload_flag" ;;
4837 esac
4838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839 case $host_os in
4840 cygwin* | mingw* | pw32* | cegcc*)
4841 if test "$GCC" != yes; then
4842 reload_cmds=false
4843 fi
4844 ;;
4845 darwin*)
4846 if test "$GCC" = yes; then
4847 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4848 else
4849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4850 fi
4851 ;;
4852 esac
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_OBJDUMP+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$OBJDUMP"; then
4871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 OBJDUMP=$ac_cv_prog_OBJDUMP
4891 if test -n "$OBJDUMP"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4893 $as_echo "$OBJDUMP" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900 fi
4901 if test -z "$ac_cv_prog_OBJDUMP"; then
4902 ac_ct_OBJDUMP=$OBJDUMP
4903 # Extract the first word of "objdump", so it can be a program name with args.
4904 set dummy objdump; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$ac_ct_OBJDUMP"; then
4911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4933 $as_echo "$ac_ct_OBJDUMP" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939 if test "x$ac_ct_OBJDUMP" = x; then
4940 OBJDUMP="false"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946 ac_tool_warned=yes ;;
4947 esac
4948 OBJDUMP=$ac_ct_OBJDUMP
4949 fi
4950 else
4951 OBJDUMP="$ac_cv_prog_OBJDUMP"
4952 fi
4953
4954 test -z "$OBJDUMP" && OBJDUMP=objdump
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4965 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4966 if ${lt_cv_deplibs_check_method+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 lt_cv_file_magic_cmd='$MAGIC_CMD'
4970 lt_cv_file_magic_test_file=
4971 lt_cv_deplibs_check_method='unknown'
4972 # Need to set the preceding variable on all platforms that support
4973 # interlibrary dependencies.
4974 # 'none' -- dependencies not supported.
4975 # `unknown' -- same as none, but documents that we really don't know.
4976 # 'pass_all' -- all dependencies passed with no checks.
4977 # 'test_compile' -- check by making test program.
4978 # 'file_magic [[regex]]' -- check by looking for files in library path
4979 # which responds to the $file_magic_cmd with a given extended regex.
4980 # If you have `file' or equivalent on your system and you're not sure
4981 # whether `pass_all' will *always* work, you probably want this one.
4982
4983 case $host_os in
4984 aix[4-9]*)
4985 lt_cv_deplibs_check_method=pass_all
4986 ;;
4987
4988 beos*)
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
4991
4992 bsdi[45]*)
4993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4994 lt_cv_file_magic_cmd='/usr/bin/file -L'
4995 lt_cv_file_magic_test_file=/shlib/libc.so
4996 ;;
4997
4998 cygwin*)
4999 # func_win32_libid is a shell function defined in ltmain.sh
5000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5001 lt_cv_file_magic_cmd='func_win32_libid'
5002 ;;
5003
5004 mingw* | pw32*)
5005 # Base MSYS/MinGW do not provide the 'file' command needed by
5006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5007 # unless we find 'file', for example because we are cross-compiling.
5008 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5009 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5012 else
5013 # Keep this pattern in sync with the one in func_win32_libid.
5014 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5015 lt_cv_file_magic_cmd='$OBJDUMP -f'
5016 fi
5017 ;;
5018
5019 cegcc*)
5020 # use the weaker test based on 'objdump'. See mingw*.
5021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5022 lt_cv_file_magic_cmd='$OBJDUMP -f'
5023 ;;
5024
5025 darwin* | rhapsody*)
5026 lt_cv_deplibs_check_method=pass_all
5027 ;;
5028
5029 freebsd* | dragonfly*)
5030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5031 case $host_cpu in
5032 i*86 )
5033 # Not sure whether the presence of OpenBSD here was a mistake.
5034 # Let's accept both of them until this is cleared up.
5035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5036 lt_cv_file_magic_cmd=/usr/bin/file
5037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5038 ;;
5039 esac
5040 else
5041 lt_cv_deplibs_check_method=pass_all
5042 fi
5043 ;;
5044
5045 gnu*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048
5049 haiku*)
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
5053 hpux10.20* | hpux11*)
5054 lt_cv_file_magic_cmd=/usr/bin/file
5055 case $host_cpu in
5056 ia64*)
5057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5059 ;;
5060 hppa*64*)
5061 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]'
5062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5063 ;;
5064 *)
5065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5067 ;;
5068 esac
5069 ;;
5070
5071 interix[3-9]*)
5072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5074 ;;
5075
5076 irix5* | irix6* | nonstopux*)
5077 case $LD in
5078 *-32|*"-32 ") libmagic=32-bit;;
5079 *-n32|*"-n32 ") libmagic=N32;;
5080 *-64|*"-64 ") libmagic=64-bit;;
5081 *) libmagic=never-match;;
5082 esac
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086 # This must be glibc/ELF.
5087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091 netbsd*)
5092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5094 else
5095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5096 fi
5097 ;;
5098
5099 newos6*)
5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5101 lt_cv_file_magic_cmd=/usr/bin/file
5102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5103 ;;
5104
5105 *nto* | *qnx*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109 openbsd*)
5110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5112 else
5113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5114 fi
5115 ;;
5116
5117 osf3* | osf4* | osf5*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121 rdos*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 solaris*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133 sysv4 | sysv4.3*)
5134 case $host_vendor in
5135 motorola)
5136 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]'
5137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5138 ;;
5139 ncr)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142 sequent)
5143 lt_cv_file_magic_cmd='/bin/file'
5144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5145 ;;
5146 sni)
5147 lt_cv_file_magic_cmd='/bin/file'
5148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5149 lt_cv_file_magic_test_file=/lib/libc.so
5150 ;;
5151 siemens)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154 pc)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157 esac
5158 ;;
5159
5160 tpf*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163 esac
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5168
5169 file_magic_glob=
5170 want_nocaseglob=no
5171 if test "$build" = "$host"; then
5172 case $host_os in
5173 mingw* | pw32*)
5174 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5175 want_nocaseglob=yes
5176 else
5177 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5178 fi
5179 ;;
5180 esac
5181 fi
5182
5183 file_magic_cmd=$lt_cv_file_magic_cmd
5184 deplibs_check_method=$lt_cv_deplibs_check_method
5185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208 if test -n "$ac_tool_prefix"; then
5209 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5210 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_prog_DLLTOOL+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$DLLTOOL"; then
5217 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 DLLTOOL=$ac_cv_prog_DLLTOOL
5237 if test -n "$DLLTOOL"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5239 $as_echo "$DLLTOOL" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245
5246 fi
5247 if test -z "$ac_cv_prog_DLLTOOL"; then
5248 ac_ct_DLLTOOL=$DLLTOOL
5249 # Extract the first word of "dlltool", so it can be a program name with args.
5250 set dummy dlltool; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$ac_ct_DLLTOOL"; then
5257 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5277 if test -n "$ac_ct_DLLTOOL"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5279 $as_echo "$ac_ct_DLLTOOL" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285 if test "x$ac_ct_DLLTOOL" = x; then
5286 DLLTOOL="false"
5287 else
5288 case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5293 esac
5294 DLLTOOL=$ac_ct_DLLTOOL
5295 fi
5296 else
5297 DLLTOOL="$ac_cv_prog_DLLTOOL"
5298 fi
5299
5300 test -z "$DLLTOOL" && DLLTOOL=dlltool
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5312 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5313 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 lt_cv_sharedlib_from_linklib_cmd='unknown'
5317
5318 case $host_os in
5319 cygwin* | mingw* | pw32* | cegcc*)
5320 # two different shell functions defined in ltmain.sh
5321 # decide which to use based on capabilities of $DLLTOOL
5322 case `$DLLTOOL --help 2>&1` in
5323 *--identify-strict*)
5324 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5325 ;;
5326 *)
5327 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5328 ;;
5329 esac
5330 ;;
5331 *)
5332 # fallback: assume linklib IS sharedlib
5333 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5334 ;;
5335 esac
5336
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5339 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5340 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5341 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5342
5343
5344
5345
5346
5347
5348
5349
5350 if test -n "$ac_tool_prefix"; then
5351 for ac_prog in ar
5352 do
5353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_AR+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$AR"; then
5361 ac_cv_prog_AR="$AR" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 AR=$ac_cv_prog_AR
5381 if test -n "$AR"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5383 $as_echo "$AR" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 test -n "$AR" && break
5391 done
5392 fi
5393 if test -z "$AR"; then
5394 ac_ct_AR=$AR
5395 for ac_prog in ar
5396 do
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy $ac_prog; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_AR="$ac_prog"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425 if test -n "$ac_ct_AR"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5427 $as_echo "$ac_ct_AR" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433
5434 test -n "$ac_ct_AR" && break
5435 done
5436
5437 if test "x$ac_ct_AR" = x; then
5438 AR="false"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned=yes ;;
5445 esac
5446 AR=$ac_ct_AR
5447 fi
5448 fi
5449
5450 : ${AR=ar}
5451 : ${AR_FLAGS=cru}
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5464 $as_echo_n "checking for archiver @FILE support... " >&6; }
5465 if ${lt_cv_ar_at_file+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 lt_cv_ar_at_file=no
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471
5472 int
5473 main ()
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 echo conftest.$ac_objext > conftest.lst
5482 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5484 (eval $lt_ar_try) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }
5488 if test "$ac_status" -eq 0; then
5489 # Ensure the archiver fails upon bogus file names.
5490 rm -f conftest.$ac_objext libconftest.a
5491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5492 (eval $lt_ar_try) 2>&5
5493 ac_status=$?
5494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5495 test $ac_status = 0; }
5496 if test "$ac_status" -ne 0; then
5497 lt_cv_ar_at_file=@
5498 fi
5499 fi
5500 rm -f conftest.* libconftest.a
5501
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5507 $as_echo "$lt_cv_ar_at_file" >&6; }
5508
5509 if test "x$lt_cv_ar_at_file" = xno; then
5510 archiver_list_spec=
5511 else
5512 archiver_list_spec=$lt_cv_ar_at_file
5513 fi
5514
5515
5516
5517
5518
5519
5520
5521 if test -n "$ac_tool_prefix"; then
5522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5523 set dummy ${ac_tool_prefix}strip; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_STRIP+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if test -n "$STRIP"; then
5530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5542 fi
5543 done
5544 done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 STRIP=$ac_cv_prog_STRIP
5550 if test -n "$STRIP"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5552 $as_echo "$STRIP" >&6; }
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558
5559 fi
5560 if test -z "$ac_cv_prog_STRIP"; then
5561 ac_ct_STRIP=$STRIP
5562 # Extract the first word of "strip", so it can be a program name with args.
5563 set dummy strip; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -n "$ac_ct_STRIP"; then
5570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_ac_ct_STRIP="strip"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5590 if test -n "$ac_ct_STRIP"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5592 $as_echo "$ac_ct_STRIP" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598 if test "x$ac_ct_STRIP" = x; then
5599 STRIP=":"
5600 else
5601 case $cross_compiling:$ac_tool_warned in
5602 yes:)
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5605 ac_tool_warned=yes ;;
5606 esac
5607 STRIP=$ac_ct_STRIP
5608 fi
5609 else
5610 STRIP="$ac_cv_prog_STRIP"
5611 fi
5612
5613 test -z "$STRIP" && STRIP=:
5614
5615
5616
5617
5618
5619
5620 if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_RANLIB+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if test -n "$RANLIB"; then
5629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642 done
5643 done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 RANLIB=$ac_cv_prog_RANLIB
5649 if test -n "$RANLIB"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5651 $as_echo "$RANLIB" >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658 fi
5659 if test -z "$ac_cv_prog_RANLIB"; then
5660 ac_ct_RANLIB=$RANLIB
5661 # Extract the first word of "ranlib", so it can be a program name with args.
5662 set dummy ranlib; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 if test -n "$ac_ct_RANLIB"; then
5669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678 ac_cv_prog_ac_ct_RANLIB="ranlib"
5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5681 fi
5682 done
5683 done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5689 if test -n "$ac_ct_RANLIB"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5691 $as_echo "$ac_ct_RANLIB" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697 if test "x$ac_ct_RANLIB" = x; then
5698 RANLIB=":"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704 ac_tool_warned=yes ;;
5705 esac
5706 RANLIB=$ac_ct_RANLIB
5707 fi
5708 else
5709 RANLIB="$ac_cv_prog_RANLIB"
5710 fi
5711
5712 test -z "$RANLIB" && RANLIB=:
5713
5714
5715
5716
5717
5718
5719 # Determine commands to create old-style static archives.
5720 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5721 old_postinstall_cmds='chmod 644 $oldlib'
5722 old_postuninstall_cmds=
5723
5724 if test -n "$RANLIB"; then
5725 case $host_os in
5726 openbsd*)
5727 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5728 ;;
5729 *)
5730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5731 ;;
5732 esac
5733 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5734 fi
5735
5736 case $host_os in
5737 darwin*)
5738 lock_old_archive_extraction=yes ;;
5739 *)
5740 lock_old_archive_extraction=no ;;
5741 esac
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781 # If no C compiler was specified, use CC.
5782 LTCC=${LTCC-"$CC"}
5783
5784 # If no C compiler flags were specified, use CFLAGS.
5785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5786
5787 # Allow CC to be a program name with arguments.
5788 compiler=$CC
5789
5790
5791 # Check for command to grab the raw symbol name followed by C symbol from nm.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5793 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5794 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797
5798 # These are sane defaults that work on at least a few old systems.
5799 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5800
5801 # Character class describing NM global symbol codes.
5802 symcode='[BCDEGRST]'
5803
5804 # Regexp to match symbols that can be accessed directly from C.
5805 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5806
5807 # Define system-specific variables.
5808 case $host_os in
5809 aix*)
5810 symcode='[BCDT]'
5811 ;;
5812 cygwin* | mingw* | pw32* | cegcc*)
5813 symcode='[ABCDGISTW]'
5814 ;;
5815 hpux*)
5816 if test "$host_cpu" = ia64; then
5817 symcode='[ABCDEGRST]'
5818 fi
5819 ;;
5820 irix* | nonstopux*)
5821 symcode='[BCDEGRST]'
5822 ;;
5823 osf*)
5824 symcode='[BCDEGQRST]'
5825 ;;
5826 solaris*)
5827 symcode='[BDRT]'
5828 ;;
5829 sco3.2v5*)
5830 symcode='[DT]'
5831 ;;
5832 sysv4.2uw2*)
5833 symcode='[DT]'
5834 ;;
5835 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5836 symcode='[ABDT]'
5837 ;;
5838 sysv4)
5839 symcode='[DFNSTU]'
5840 ;;
5841 esac
5842
5843 # If we're using GNU nm, then use its standard symbol codes.
5844 case `$NM -V 2>&1` in
5845 *GNU* | *'with BFD'*)
5846 symcode='[ABCDGIRSTW]' ;;
5847 esac
5848
5849 # Transform an extracted symbol line into a proper C declaration.
5850 # Some systems (esp. on ia64) link data and code symbols differently,
5851 # so use this general approach.
5852 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5853
5854 # Transform an extracted symbol line into symbol name and symbol address
5855 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5856 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'"
5857
5858 # Handle CRLF in mingw tool chain
5859 opt_cr=
5860 case $build_os in
5861 mingw*)
5862 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5863 ;;
5864 esac
5865
5866 # Try without a prefix underscore, then with it.
5867 for ac_symprfx in "" "_"; do
5868
5869 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5870 symxfrm="\\1 $ac_symprfx\\2 \\2"
5871
5872 # Write the raw and C identifiers.
5873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5874 # Fake it for dumpbin and say T for any non-static function
5875 # and D for any global variable.
5876 # Also find C++ and __fastcall symbols from MSVC++,
5877 # which start with @ or ?.
5878 lt_cv_sys_global_symbol_pipe="$AWK '"\
5879 " {last_section=section; section=\$ 3};"\
5880 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5881 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5882 " \$ 0!~/External *\|/{next};"\
5883 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5884 " {if(hide[section]) next};"\
5885 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5886 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5887 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5888 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5889 " ' prfx=^$ac_symprfx"
5890 else
5891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5892 fi
5893 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5894
5895 # Check to see that the pipe works correctly.
5896 pipe_works=no
5897
5898 rm -f conftest*
5899 cat > conftest.$ac_ext <<_LT_EOF
5900 #ifdef __cplusplus
5901 extern "C" {
5902 #endif
5903 char nm_test_var;
5904 void nm_test_func(void);
5905 void nm_test_func(void){}
5906 #ifdef __cplusplus
5907 }
5908 #endif
5909 int main(){nm_test_var='a';nm_test_func();return(0);}
5910 _LT_EOF
5911
5912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913 (eval $ac_compile) 2>&5
5914 ac_status=$?
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; }; then
5917 # Now try to grab the symbols.
5918 nlist=conftest.nm
5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5920 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } && test -s "$nlist"; then
5924 # Try sorting and uniquifying the output.
5925 if sort "$nlist" | uniq > "$nlist"T; then
5926 mv -f "$nlist"T "$nlist"
5927 else
5928 rm -f "$nlist"T
5929 fi
5930
5931 # Make sure that we snagged all the symbols we need.
5932 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5933 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5934 cat <<_LT_EOF > conftest.$ac_ext
5935 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5936 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5937 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5938 relocations are performed -- see ld's documentation on pseudo-relocs. */
5939 # define LT_DLSYM_CONST
5940 #elif defined(__osf__)
5941 /* This system does not cope well with relocations in const data. */
5942 # define LT_DLSYM_CONST
5943 #else
5944 # define LT_DLSYM_CONST const
5945 #endif
5946
5947 #ifdef __cplusplus
5948 extern "C" {
5949 #endif
5950
5951 _LT_EOF
5952 # Now generate the symbol file.
5953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5954
5955 cat <<_LT_EOF >> conftest.$ac_ext
5956
5957 /* The mapping between symbol names and symbols. */
5958 LT_DLSYM_CONST struct {
5959 const char *name;
5960 void *address;
5961 }
5962 lt__PROGRAM__LTX_preloaded_symbols[] =
5963 {
5964 { "@PROGRAM@", (void *) 0 },
5965 _LT_EOF
5966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5967 cat <<\_LT_EOF >> conftest.$ac_ext
5968 {0, (void *) 0}
5969 };
5970
5971 /* This works around a problem in FreeBSD linker */
5972 #ifdef FREEBSD_WORKAROUND
5973 static const void *lt_preloaded_setup() {
5974 return lt__PROGRAM__LTX_preloaded_symbols;
5975 }
5976 #endif
5977
5978 #ifdef __cplusplus
5979 }
5980 #endif
5981 _LT_EOF
5982 # Now try linking the two files.
5983 mv conftest.$ac_objext conftstm.$ac_objext
5984 lt_globsym_save_LIBS=$LIBS
5985 lt_globsym_save_CFLAGS=$CFLAGS
5986 LIBS="conftstm.$ac_objext"
5987 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5989 (eval $ac_link) 2>&5
5990 ac_status=$?
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5993 pipe_works=yes
5994 fi
5995 LIBS=$lt_globsym_save_LIBS
5996 CFLAGS=$lt_globsym_save_CFLAGS
5997 else
5998 echo "cannot find nm_test_func in $nlist" >&5
5999 fi
6000 else
6001 echo "cannot find nm_test_var in $nlist" >&5
6002 fi
6003 else
6004 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6005 fi
6006 else
6007 echo "$progname: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 fi
6010 rm -rf conftest* conftst*
6011
6012 # Do not use the global_symbol_pipe unless it works.
6013 if test "$pipe_works" = yes; then
6014 break
6015 else
6016 lt_cv_sys_global_symbol_pipe=
6017 fi
6018 done
6019
6020 fi
6021
6022 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6023 lt_cv_sys_global_symbol_to_cdecl=
6024 fi
6025 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6027 $as_echo "failed" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6030 $as_echo "ok" >&6; }
6031 fi
6032
6033 # Response file support.
6034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6035 nm_file_list_spec='@'
6036 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6037 nm_file_list_spec='@'
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6067 $as_echo_n "checking for sysroot... " >&6; }
6068
6069 # Check whether --with-sysroot was given.
6070 if test "${with_sysroot+set}" = set; then :
6071 withval=$with_sysroot;
6072 else
6073 with_sysroot=no
6074 fi
6075
6076
6077 lt_sysroot=
6078 case ${with_sysroot} in #(
6079 yes)
6080 if test "$GCC" = yes; then
6081 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6082 fi
6083 ;; #(
6084 /*)
6085 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6086 ;; #(
6087 no|'')
6088 ;; #(
6089 *)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6091 $as_echo "${with_sysroot}" >&6; }
6092 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6093 ;;
6094 esac
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6097 $as_echo "${lt_sysroot:-no}" >&6; }
6098
6099
6100
6101
6102
6103 # Check whether --enable-libtool-lock was given.
6104 if test "${enable_libtool_lock+set}" = set; then :
6105 enableval=$enable_libtool_lock;
6106 fi
6107
6108 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6109
6110 # Some flags need to be propagated to the compiler or linker for good
6111 # libtool support.
6112 case $host in
6113 ia64-*-hpux*)
6114 # Find out which ABI we are using.
6115 echo 'int i;' > conftest.$ac_ext
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 case `/usr/bin/file conftest.$ac_objext` in
6122 *ELF-32*)
6123 HPUX_IA64_MODE="32"
6124 ;;
6125 *ELF-64*)
6126 HPUX_IA64_MODE="64"
6127 ;;
6128 esac
6129 fi
6130 rm -rf conftest*
6131 ;;
6132 *-*-irix6*)
6133 # Find out which ABI we are using.
6134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6136 (eval $ac_compile) 2>&5
6137 ac_status=$?
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; then
6140 if test "$lt_cv_prog_gnu_ld" = yes; then
6141 case `/usr/bin/file conftest.$ac_objext` in
6142 *32-bit*)
6143 LD="${LD-ld} -melf32bsmip"
6144 ;;
6145 *N32*)
6146 LD="${LD-ld} -melf32bmipn32"
6147 ;;
6148 *64-bit*)
6149 LD="${LD-ld} -melf64bmip"
6150 ;;
6151 esac
6152 else
6153 case `/usr/bin/file conftest.$ac_objext` in
6154 *32-bit*)
6155 LD="${LD-ld} -32"
6156 ;;
6157 *N32*)
6158 LD="${LD-ld} -n32"
6159 ;;
6160 *64-bit*)
6161 LD="${LD-ld} -64"
6162 ;;
6163 esac
6164 fi
6165 fi
6166 rm -rf conftest*
6167 ;;
6168
6169 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6170 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6171 # Find out which ABI we are using.
6172 echo 'int i;' > conftest.$ac_ext
6173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6174 (eval $ac_compile) 2>&5
6175 ac_status=$?
6176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177 test $ac_status = 0; }; then
6178 case `/usr/bin/file conftest.o` in
6179 *32-bit*)
6180 case $host in
6181 x86_64-*kfreebsd*-gnu)
6182 LD="${LD-ld} -m elf_i386_fbsd"
6183 ;;
6184 x86_64-*linux*)
6185 LD="${LD-ld} -m elf_i386"
6186 ;;
6187 ppc64-*linux*|powerpc64-*linux*)
6188 LD="${LD-ld} -m elf32ppclinux"
6189 ;;
6190 s390x-*linux*)
6191 LD="${LD-ld} -m elf_s390"
6192 ;;
6193 sparc64-*linux*)
6194 LD="${LD-ld} -m elf32_sparc"
6195 ;;
6196 esac
6197 ;;
6198 *64-bit*)
6199 case $host in
6200 x86_64-*kfreebsd*-gnu)
6201 LD="${LD-ld} -m elf_x86_64_fbsd"
6202 ;;
6203 x86_64-*linux*)
6204 LD="${LD-ld} -m elf_x86_64"
6205 ;;
6206 ppc*-*linux*|powerpc*-*linux*)
6207 LD="${LD-ld} -m elf64ppc"
6208 ;;
6209 s390*-*linux*|s390*-*tpf*)
6210 LD="${LD-ld} -m elf64_s390"
6211 ;;
6212 sparc*-*linux*)
6213 LD="${LD-ld} -m elf64_sparc"
6214 ;;
6215 esac
6216 ;;
6217 esac
6218 fi
6219 rm -rf conftest*
6220 ;;
6221
6222 *-*-sco3.2v5*)
6223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6224 SAVE_CFLAGS="$CFLAGS"
6225 CFLAGS="$CFLAGS -belf"
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6227 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6228 if ${lt_cv_cc_needs_belf+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239
6240 int
6241 main ()
6242 {
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 lt_cv_cc_needs_belf=yes
6250 else
6251 lt_cv_cc_needs_belf=no
6252 fi
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6263 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6266 CFLAGS="$SAVE_CFLAGS"
6267 fi
6268 ;;
6269 *-*solaris*)
6270 # Find out which ABI we are using.
6271 echo 'int i;' > conftest.$ac_ext
6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }; then
6277 case `/usr/bin/file conftest.o` in
6278 *64-bit*)
6279 case $lt_cv_prog_gnu_ld in
6280 yes*)
6281 case $host in
6282 i?86-*-solaris*)
6283 LD="${LD-ld} -m elf_x86_64"
6284 ;;
6285 sparc*-*-solaris*)
6286 LD="${LD-ld} -m elf64_sparc"
6287 ;;
6288 esac
6289 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6290 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6291 LD="${LD-ld}_sol2"
6292 fi
6293 ;;
6294 *)
6295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6296 LD="${LD-ld} -64"
6297 fi
6298 ;;
6299 esac
6300 ;;
6301 esac
6302 fi
6303 rm -rf conftest*
6304 ;;
6305 esac
6306
6307 need_locks="$enable_libtool_lock"
6308
6309 if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}mt; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 if test -n "$MANIFEST_TOOL"; then
6318 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6338 if test -n "$MANIFEST_TOOL"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6340 $as_echo "$MANIFEST_TOOL" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347 fi
6348 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6349 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6350 # Extract the first word of "mt", so it can be a program name with args.
6351 set dummy mt; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$ac_ct_MANIFEST_TOOL"; then
6358 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6378 if test -n "$ac_ct_MANIFEST_TOOL"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6380 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6387 MANIFEST_TOOL=":"
6388 else
6389 case $cross_compiling:$ac_tool_warned in
6390 yes:)
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6394 esac
6395 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6396 fi
6397 else
6398 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6399 fi
6400
6401 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6403 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6404 if ${lt_cv_path_mainfest_tool+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 lt_cv_path_mainfest_tool=no
6408 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6409 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6410 cat conftest.err >&5
6411 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6412 lt_cv_path_mainfest_tool=yes
6413 fi
6414 rm -f conftest*
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6417 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6418 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6419 MANIFEST_TOOL=:
6420 fi
6421
6422
6423
6424
6425
6426
6427 case $host_os in
6428 rhapsody* | darwin*)
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$DSYMUTIL"; then
6438 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6458 if test -n "$DSYMUTIL"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6460 $as_echo "$DSYMUTIL" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_DSYMUTIL"; then
6469 ac_ct_DSYMUTIL=$DSYMUTIL
6470 # Extract the first word of "dsymutil", so it can be a program name with args.
6471 set dummy dsymutil; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_DSYMUTIL"; then
6478 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6498 if test -n "$ac_ct_DSYMUTIL"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6500 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506 if test "x$ac_ct_DSYMUTIL" = x; then
6507 DSYMUTIL=":"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 DSYMUTIL=$ac_ct_DSYMUTIL
6516 fi
6517 else
6518 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6519 fi
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_NMEDIT+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$NMEDIT"; then
6530 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 NMEDIT=$ac_cv_prog_NMEDIT
6550 if test -n "$NMEDIT"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6552 $as_echo "$NMEDIT" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_NMEDIT"; then
6561 ac_ct_NMEDIT=$NMEDIT
6562 # Extract the first word of "nmedit", so it can be a program name with args.
6563 set dummy nmedit; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_NMEDIT"; then
6570 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6590 if test -n "$ac_ct_NMEDIT"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6592 $as_echo "$ac_ct_NMEDIT" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_NMEDIT" = x; then
6599 NMEDIT=":"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 NMEDIT=$ac_ct_NMEDIT
6608 fi
6609 else
6610 NMEDIT="$ac_cv_prog_NMEDIT"
6611 fi
6612
6613 if test -n "$ac_tool_prefix"; then
6614 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_LIPO+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test -n "$LIPO"; then
6622 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 LIPO=$ac_cv_prog_LIPO
6642 if test -n "$LIPO"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6644 $as_echo "$LIPO" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651 fi
6652 if test -z "$ac_cv_prog_LIPO"; then
6653 ac_ct_LIPO=$LIPO
6654 # Extract the first word of "lipo", so it can be a program name with args.
6655 set dummy lipo; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 if test -n "$ac_ct_LIPO"; then
6662 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671 ac_cv_prog_ac_ct_LIPO="lipo"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675 done
6676 done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6682 if test -n "$ac_ct_LIPO"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6684 $as_echo "$ac_ct_LIPO" >&6; }
6685 else
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690 if test "x$ac_ct_LIPO" = x; then
6691 LIPO=":"
6692 else
6693 case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699 LIPO=$ac_ct_LIPO
6700 fi
6701 else
6702 LIPO="$ac_cv_prog_LIPO"
6703 fi
6704
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}otool; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_OTOOL+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$OTOOL"; then
6714 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 OTOOL=$ac_cv_prog_OTOOL
6734 if test -n "$OTOOL"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6736 $as_echo "$OTOOL" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_OTOOL"; then
6745 ac_ct_OTOOL=$OTOOL
6746 # Extract the first word of "otool", so it can be a program name with args.
6747 set dummy otool; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 if test -n "$ac_ct_OTOOL"; then
6754 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_ac_ct_OTOOL="otool"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6774 if test -n "$ac_ct_OTOOL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6776 $as_echo "$ac_ct_OTOOL" >&6; }
6777 else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782 if test "x$ac_ct_OTOOL" = x; then
6783 OTOOL=":"
6784 else
6785 case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791 OTOOL=$ac_ct_OTOOL
6792 fi
6793 else
6794 OTOOL="$ac_cv_prog_OTOOL"
6795 fi
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_OTOOL64+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$OTOOL64"; then
6806 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 OTOOL64=$ac_cv_prog_OTOOL64
6826 if test -n "$OTOOL64"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6828 $as_echo "$OTOOL64" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_OTOOL64"; then
6837 ac_ct_OTOOL64=$OTOOL64
6838 # Extract the first word of "otool64", so it can be a program name with args.
6839 set dummy otool64; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_OTOOL64"; then
6846 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_OTOOL64="otool64"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6866 if test -n "$ac_ct_OTOOL64"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6868 $as_echo "$ac_ct_OTOOL64" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_OTOOL64" = x; then
6875 OTOOL64=":"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 OTOOL64=$ac_ct_OTOOL64
6884 fi
6885 else
6886 OTOOL64="$ac_cv_prog_OTOOL64"
6887 fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6916 $as_echo_n "checking for -single_module linker flag... " >&6; }
6917 if ${lt_cv_apple_cc_single_mod+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 lt_cv_apple_cc_single_mod=no
6921 if test -z "${LT_MULTI_MODULE}"; then
6922 # By default we will add the -single_module flag. You can override
6923 # by either setting the environment variable LT_MULTI_MODULE
6924 # non-empty at configure time, or by adding -multi_module to the
6925 # link flags.
6926 rm -rf libconftest.dylib*
6927 echo "int foo(void){return 1;}" > conftest.c
6928 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6929 -dynamiclib -Wl,-single_module conftest.c" >&5
6930 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6931 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6932 _lt_result=$?
6933 # If there is a non-empty error log, and "single_module"
6934 # appears in it, assume the flag caused a linker warning
6935 if test -s conftest.err && $GREP single_module conftest.err; then
6936 cat conftest.err >&5
6937 # Otherwise, if the output was created with a 0 exit code from
6938 # the compiler, it worked.
6939 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6940 lt_cv_apple_cc_single_mod=yes
6941 else
6942 cat conftest.err >&5
6943 fi
6944 rm -rf libconftest.dylib*
6945 rm -f conftest.*
6946 fi
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6949 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6952 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6953 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 lt_cv_ld_exported_symbols_list=no
6957 save_LDFLAGS=$LDFLAGS
6958 echo "_main" > conftest.sym
6959 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962
6963 int
6964 main ()
6965 {
6966
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_link "$LINENO"; then :
6972 lt_cv_ld_exported_symbols_list=yes
6973 else
6974 lt_cv_ld_exported_symbols_list=no
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LDFLAGS="$save_LDFLAGS"
6979
6980 fi
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6982 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6983
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985 $as_echo_n "checking for -force_load linker flag... " >&6; }
6986 if ${lt_cv_ld_force_load+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 lt_cv_ld_force_load=no
6990 cat > conftest.c << _LT_EOF
6991 int forced_loaded() { return 2;}
6992 _LT_EOF
6993 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995 echo "$AR cru libconftest.a conftest.o" >&5
6996 $AR cru libconftest.a conftest.o 2>&5
6997 echo "$RANLIB libconftest.a" >&5
6998 $RANLIB libconftest.a 2>&5
6999 cat > conftest.c << _LT_EOF
7000 int main() { return 0;}
7001 _LT_EOF
7002 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7004 _lt_result=$?
7005 if test -s conftest.err && $GREP force_load conftest.err; then
7006 cat conftest.err >&5
7007 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
7014
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017 $as_echo "$lt_cv_ld_force_load" >&6; }
7018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 10.[012]*)
7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7035 ;;
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7039 fi
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 fi
7045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7049 fi
7050 ;;
7051 esac
7052
7053 ac_ext=c
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7060 # On Suns, sometimes $CPP names a directory.
7061 if test -n "$CPP" && test -d "$CPP"; then
7062 CPP=
7063 fi
7064 if test -z "$CPP"; then
7065 if ${ac_cv_prog_CPP+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 # Double quotes because CPP needs to be expanded
7069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 do
7071 ac_preproc_ok=false
7072 for ac_c_preproc_warn_flag in '' yes
7073 do
7074 # Use a header file that comes with gcc, so configuring glibc
7075 # with a fresh cross-compiler works.
7076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 # <limits.h> exists even on freestanding compilers.
7078 # On the NeXT, cc -E runs the code through the compiler's parser,
7079 # not just through cpp. "Syntax error" is here to catch this case.
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #ifdef __STDC__
7083 # include <limits.h>
7084 #else
7085 # include <assert.h>
7086 #endif
7087 Syntax error
7088 _ACEOF
7089 if ac_fn_c_try_cpp "$LINENO"; then :
7090
7091 else
7092 # Broken: fails on valid input.
7093 continue
7094 fi
7095 rm -f conftest.err conftest.i conftest.$ac_ext
7096
7097 # OK, works on sane cases. Now check whether nonexistent headers
7098 # can be detected and how.
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 #include <ac_nonexistent.h>
7102 _ACEOF
7103 if ac_fn_c_try_cpp "$LINENO"; then :
7104 # Broken: success on invalid input.
7105 continue
7106 else
7107 # Passes both tests.
7108 ac_preproc_ok=:
7109 break
7110 fi
7111 rm -f conftest.err conftest.i conftest.$ac_ext
7112
7113 done
7114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7115 rm -f conftest.i conftest.err conftest.$ac_ext
7116 if $ac_preproc_ok; then :
7117 break
7118 fi
7119
7120 done
7121 ac_cv_prog_CPP=$CPP
7122
7123 fi
7124 CPP=$ac_cv_prog_CPP
7125 else
7126 ac_cv_prog_CPP=$CPP
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7129 $as_echo "$CPP" >&6; }
7130 ac_preproc_ok=false
7131 for ac_c_preproc_warn_flag in '' yes
7132 do
7133 # Use a header file that comes with gcc, so configuring glibc
7134 # with a fresh cross-compiler works.
7135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7136 # <limits.h> exists even on freestanding compilers.
7137 # On the NeXT, cc -E runs the code through the compiler's parser,
7138 # not just through cpp. "Syntax error" is here to catch this case.
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 #ifdef __STDC__
7142 # include <limits.h>
7143 #else
7144 # include <assert.h>
7145 #endif
7146 Syntax error
7147 _ACEOF
7148 if ac_fn_c_try_cpp "$LINENO"; then :
7149
7150 else
7151 # Broken: fails on valid input.
7152 continue
7153 fi
7154 rm -f conftest.err conftest.i conftest.$ac_ext
7155
7156 # OK, works on sane cases. Now check whether nonexistent headers
7157 # can be detected and how.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <ac_nonexistent.h>
7161 _ACEOF
7162 if ac_fn_c_try_cpp "$LINENO"; then :
7163 # Broken: success on invalid input.
7164 continue
7165 else
7166 # Passes both tests.
7167 ac_preproc_ok=:
7168 break
7169 fi
7170 rm -f conftest.err conftest.i conftest.$ac_ext
7171
7172 done
7173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7174 rm -f conftest.i conftest.err conftest.$ac_ext
7175 if $ac_preproc_ok; then :
7176
7177 else
7178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7181 See \`config.log' for more details" "$LINENO" 5; }
7182 fi
7183
7184 ac_ext=c
7185 ac_cpp='$CPP $CPPFLAGS'
7186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7192 $as_echo_n "checking for ANSI C header files... " >&6; }
7193 if ${ac_cv_header_stdc+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <stdlib.h>
7199 #include <stdarg.h>
7200 #include <string.h>
7201 #include <float.h>
7202
7203 int
7204 main ()
7205 {
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 ac_cv_header_stdc=yes
7213 else
7214 ac_cv_header_stdc=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217
7218 if test $ac_cv_header_stdc = yes; then
7219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <string.h>
7223
7224 _ACEOF
7225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7226 $EGREP "memchr" >/dev/null 2>&1; then :
7227
7228 else
7229 ac_cv_header_stdc=no
7230 fi
7231 rm -f conftest*
7232
7233 fi
7234
7235 if test $ac_cv_header_stdc = yes; then
7236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 #include <stdlib.h>
7240
7241 _ACEOF
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 $EGREP "free" >/dev/null 2>&1; then :
7244
7245 else
7246 ac_cv_header_stdc=no
7247 fi
7248 rm -f conftest*
7249
7250 fi
7251
7252 if test $ac_cv_header_stdc = yes; then
7253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7254 if test "$cross_compiling" = yes; then :
7255 :
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 #include <ctype.h>
7260 #include <stdlib.h>
7261 #if ((' ' & 0x0FF) == 0x020)
7262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7264 #else
7265 # define ISLOWER(c) \
7266 (('a' <= (c) && (c) <= 'i') \
7267 || ('j' <= (c) && (c) <= 'r') \
7268 || ('s' <= (c) && (c) <= 'z'))
7269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7270 #endif
7271
7272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7273 int
7274 main ()
7275 {
7276 int i;
7277 for (i = 0; i < 256; i++)
7278 if (XOR (islower (i), ISLOWER (i))
7279 || toupper (i) != TOUPPER (i))
7280 return 2;
7281 return 0;
7282 }
7283 _ACEOF
7284 if ac_fn_c_try_run "$LINENO"; then :
7285
7286 else
7287 ac_cv_header_stdc=no
7288 fi
7289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7290 conftest.$ac_objext conftest.beam conftest.$ac_ext
7291 fi
7292
7293 fi
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7296 $as_echo "$ac_cv_header_stdc" >&6; }
7297 if test $ac_cv_header_stdc = yes; then
7298
7299 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7300
7301 fi
7302
7303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7305 inttypes.h stdint.h unistd.h
7306 do :
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7309 "
7310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313 _ACEOF
7314
7315 fi
7316
7317 done
7318
7319
7320 for ac_header in dlfcn.h
7321 do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7323 "
7324 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_DLFCN_H 1
7327 _ACEOF
7328
7329 fi
7330
7331 done
7332
7333
7334
7335
7336
7337 # Set options
7338
7339
7340
7341 enable_dlopen=no
7342
7343
7344 enable_win32_dll=no
7345
7346
7347 # Check whether --enable-shared was given.
7348 if test "${enable_shared+set}" = set; then :
7349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7353 *)
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
7361 fi
7362 done
7363 IFS="$lt_save_ifs"
7364 ;;
7365 esac
7366 else
7367 enable_shared=yes
7368 fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # Check whether --enable-static was given.
7379 if test "${enable_static+set}" = set; then :
7380 enableval=$enable_static; p=${PACKAGE-default}
7381 case $enableval in
7382 yes) enable_static=yes ;;
7383 no) enable_static=no ;;
7384 *)
7385 enable_static=no
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388 for pkg in $enableval; do
7389 IFS="$lt_save_ifs"
7390 if test "X$pkg" = "X$p"; then
7391 enable_static=yes
7392 fi
7393 done
7394 IFS="$lt_save_ifs"
7395 ;;
7396 esac
7397 else
7398 enable_static=yes
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410 # Check whether --with-pic was given.
7411 if test "${with_pic+set}" = set; then :
7412 withval=$with_pic; lt_p=${PACKAGE-default}
7413 case $withval in
7414 yes|no) pic_mode=$withval ;;
7415 *)
7416 pic_mode=default
7417 # Look at the argument we got. We use all the common list separators.
7418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419 for lt_pkg in $withval; do
7420 IFS="$lt_save_ifs"
7421 if test "X$lt_pkg" = "X$lt_p"; then
7422 pic_mode=yes
7423 fi
7424 done
7425 IFS="$lt_save_ifs"
7426 ;;
7427 esac
7428 else
7429 pic_mode=default
7430 fi
7431
7432
7433 test -z "$pic_mode" && pic_mode=default
7434
7435
7436
7437
7438
7439
7440
7441 # Check whether --enable-fast-install was given.
7442 if test "${enable_fast_install+set}" = set; then :
7443 enableval=$enable_fast_install; p=${PACKAGE-default}
7444 case $enableval in
7445 yes) enable_fast_install=yes ;;
7446 no) enable_fast_install=no ;;
7447 *)
7448 enable_fast_install=no
7449 # Look at the argument we got. We use all the common list separators.
7450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7451 for pkg in $enableval; do
7452 IFS="$lt_save_ifs"
7453 if test "X$pkg" = "X$p"; then
7454 enable_fast_install=yes
7455 fi
7456 done
7457 IFS="$lt_save_ifs"
7458 ;;
7459 esac
7460 else
7461 enable_fast_install=yes
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 # This can be used to rebuild libtool when needed
7475 LIBTOOL_DEPS="$ltmain"
7476
7477 # Always use our own libtool.
7478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 test -z "$LN_S" && LN_S="ln -s"
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7526 fi
7527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7529 $as_echo_n "checking for objdir... " >&6; }
7530 if ${lt_cv_objdir+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 rm -f .libs 2>/dev/null
7534 mkdir .libs 2>/dev/null
7535 if test -d .libs; then
7536 lt_cv_objdir=.libs
7537 else
7538 # MS-DOS does not allow filenames that begin with a dot.
7539 lt_cv_objdir=_libs
7540 fi
7541 rmdir .libs 2>/dev/null
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7544 $as_echo "$lt_cv_objdir" >&6; }
7545 objdir=$lt_cv_objdir
7546
7547
7548
7549
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define LT_OBJDIR "$lt_cv_objdir/"
7553 _ACEOF
7554
7555
7556
7557
7558 case $host_os in
7559 aix3*)
7560 # AIX sometimes has problems with the GCC collect2 program. For some
7561 # reason, if we set the COLLECT_NAMES environment variable, the problems
7562 # vanish in a puff of smoke.
7563 if test "X${COLLECT_NAMES+set}" != Xset; then
7564 COLLECT_NAMES=
7565 export COLLECT_NAMES
7566 fi
7567 ;;
7568 esac
7569
7570 # Global variables:
7571 ofile=libtool
7572 can_build_shared=yes
7573
7574 # All known linkers require a `.a' archive for static linking (except MSVC,
7575 # which needs '.lib').
7576 libext=a
7577
7578 with_gnu_ld="$lt_cv_prog_gnu_ld"
7579
7580 old_CC="$CC"
7581 old_CFLAGS="$CFLAGS"
7582
7583 # Set sane defaults for various variables
7584 test -z "$CC" && CC=cc
7585 test -z "$LTCC" && LTCC=$CC
7586 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7587 test -z "$LD" && LD=ld
7588 test -z "$ac_objext" && ac_objext=o
7589
7590 for cc_temp in $compiler""; do
7591 case $cc_temp in
7592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7594 \-*) ;;
7595 *) break;;
7596 esac
7597 done
7598 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7599
7600
7601 # Only perform the check for file, if the check method requires it
7602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7603 case $deplibs_check_method in
7604 file_magic*)
7605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7607 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 case $MAGIC_CMD in
7612 [\\/*] | ?:[\\/]*)
7613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7614 ;;
7615 *)
7616 lt_save_MAGIC_CMD="$MAGIC_CMD"
7617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619 for ac_dir in $ac_dummy; do
7620 IFS="$lt_save_ifs"
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/${ac_tool_prefix}file; then
7623 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7624 if test -n "$file_magic_test_file"; then
7625 case $deplibs_check_method in
7626 "file_magic "*)
7627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630 $EGREP "$file_magic_regex" > /dev/null; then
7631 :
7632 else
7633 cat <<_LT_EOF 1>&2
7634
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such. This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem. Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7643
7644 _LT_EOF
7645 fi ;;
7646 esac
7647 fi
7648 break
7649 fi
7650 done
7651 IFS="$lt_save_ifs"
7652 MAGIC_CMD="$lt_save_MAGIC_CMD"
7653 ;;
7654 esac
7655 fi
7656
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667
7668
7669
7670 if test -z "$lt_cv_path_MAGIC_CMD"; then
7671 if test -n "$ac_tool_prefix"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7673 $as_echo_n "checking for file... " >&6; }
7674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 case $MAGIC_CMD in
7678 [\\/*] | ?:[\\/]*)
7679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 lt_save_MAGIC_CMD="$MAGIC_CMD"
7683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir in $ac_dummy; do
7686 IFS="$lt_save_ifs"
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/file; then
7689 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7692 "file_magic "*)
7693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696 $EGREP "$file_magic_regex" > /dev/null; then
7697 :
7698 else
7699 cat <<_LT_EOF 1>&2
7700
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such. This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem. Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7709
7710 _LT_EOF
7711 fi ;;
7712 esac
7713 fi
7714 break
7715 fi
7716 done
7717 IFS="$lt_save_ifs"
7718 MAGIC_CMD="$lt_save_MAGIC_CMD"
7719 ;;
7720 esac
7721 fi
7722
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 else
7734 MAGIC_CMD=:
7735 fi
7736 fi
7737
7738 fi
7739 ;;
7740 esac
7741
7742 # Use C for the default configuration in the libtool script
7743
7744 lt_save_CC="$CC"
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751
7752 # Source file extension for C test sources.
7753 ac_ext=c
7754
7755 # Object file extension for compiled C test sources.
7756 objext=o
7757 objext=$objext
7758
7759 # Code to be used in simple compile tests
7760 lt_simple_compile_test_code="int some_variable = 0;"
7761
7762 # Code to be used in simple link tests
7763 lt_simple_link_test_code='int main(){return(0);}'
7764
7765
7766
7767
7768
7769
7770
7771 # If no C compiler was specified, use CC.
7772 LTCC=${LTCC-"$CC"}
7773
7774 # If no C compiler flags were specified, use CFLAGS.
7775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7776
7777 # Allow CC to be a program name with arguments.
7778 compiler=$CC
7779
7780 # Save the default compiler, since it gets overwritten when the other
7781 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7782 compiler_DEFAULT=$CC
7783
7784 # save warnings/boilerplate of simple test code
7785 ac_outfile=conftest.$ac_objext
7786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7788 _lt_compiler_boilerplate=`cat conftest.err`
7789 $RM conftest*
7790
7791 ac_outfile=conftest.$ac_objext
7792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7794 _lt_linker_boilerplate=`cat conftest.err`
7795 $RM -r conftest*
7796
7797
7798 if test -n "$compiler"; then
7799
7800 lt_prog_compiler_no_builtin_flag=
7801
7802 if test "$GCC" = yes; then
7803 case $cc_basename in
7804 nvcc*)
7805 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7806 *)
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7808 esac
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7811 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7812 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 lt_cv_prog_compiler_rtti_exceptions=no
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
7828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
7836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
7842 $RM conftest*
7843
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7846 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7847
7848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7850 else
7851 :
7852 fi
7853
7854 fi
7855
7856
7857
7858
7859
7860
7861 lt_prog_compiler_wl=
7862 lt_prog_compiler_pic=
7863 lt_prog_compiler_static=
7864
7865
7866 if test "$GCC" = yes; then
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_static='-static'
7869
7870 case $host_os in
7871 aix*)
7872 # All AIX code is PIC.
7873 if test "$host_cpu" = ia64; then
7874 # AIX 5 now supports IA64 processor
7875 lt_prog_compiler_static='-Bstatic'
7876 fi
7877 ;;
7878
7879 amigaos*)
7880 case $host_cpu in
7881 powerpc)
7882 # see comment about AmigaOS4 .so support
7883 lt_prog_compiler_pic='-fPIC'
7884 ;;
7885 m68k)
7886 # FIXME: we need at least 68020 code to build shared libraries, but
7887 # adding the `-m68020' flag to GCC prevents building anything better,
7888 # like `-m68040'.
7889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7890 ;;
7891 esac
7892 ;;
7893
7894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7895 # PIC is the default for these OSes.
7896 ;;
7897
7898 mingw* | cygwin* | pw32* | os2* | cegcc*)
7899 # This hack is so that the source file can tell whether it is being
7900 # built for inclusion in a dll (and should export symbols for example).
7901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7902 # (--disable-auto-import) libraries
7903 lt_prog_compiler_pic='-DDLL_EXPORT'
7904 ;;
7905
7906 darwin* | rhapsody*)
7907 # PIC is the default on this platform
7908 # Common symbols not allowed in MH_DYLIB files
7909 lt_prog_compiler_pic='-fno-common'
7910 ;;
7911
7912 haiku*)
7913 # PIC is the default for Haiku.
7914 # The "-static" flag exists, but is broken.
7915 lt_prog_compiler_static=
7916 ;;
7917
7918 hpux*)
7919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7921 # sets the default TLS model and affects inlining.
7922 case $host_cpu in
7923 hppa*64*)
7924 # +Z the default
7925 ;;
7926 *)
7927 lt_prog_compiler_pic='-fPIC'
7928 ;;
7929 esac
7930 ;;
7931
7932 interix[3-9]*)
7933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7934 # Instead, we relocate shared libraries at runtime.
7935 ;;
7936
7937 msdosdjgpp*)
7938 # Just because we use GCC doesn't mean we suddenly get shared libraries
7939 # on systems that don't support them.
7940 lt_prog_compiler_can_build_shared=no
7941 enable_shared=no
7942 ;;
7943
7944 *nto* | *qnx*)
7945 # QNX uses GNU C++, but need to define -shared option too, otherwise
7946 # it will coredump.
7947 lt_prog_compiler_pic='-fPIC -shared'
7948 ;;
7949
7950 sysv4*MP*)
7951 if test -d /usr/nec; then
7952 lt_prog_compiler_pic=-Kconform_pic
7953 fi
7954 ;;
7955
7956 *)
7957 lt_prog_compiler_pic='-fPIC'
7958 ;;
7959 esac
7960
7961 case $cc_basename in
7962 nvcc*) # Cuda Compiler Driver 2.2
7963 lt_prog_compiler_wl='-Xlinker '
7964 if test -n "$lt_prog_compiler_pic"; then
7965 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7966 fi
7967 ;;
7968 esac
7969 else
7970 # PORTME Check for flag to pass linker flags through the system compiler.
7971 case $host_os in
7972 aix*)
7973 lt_prog_compiler_wl='-Wl,'
7974 if test "$host_cpu" = ia64; then
7975 # AIX 5 now supports IA64 processor
7976 lt_prog_compiler_static='-Bstatic'
7977 else
7978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7979 fi
7980 ;;
7981
7982 mingw* | cygwin* | pw32* | os2* | cegcc*)
7983 # This hack is so that the source file can tell whether it is being
7984 # built for inclusion in a dll (and should export symbols for example).
7985 lt_prog_compiler_pic='-DDLL_EXPORT'
7986 ;;
7987
7988 hpux9* | hpux10* | hpux11*)
7989 lt_prog_compiler_wl='-Wl,'
7990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7991 # not for PA HP-UX.
7992 case $host_cpu in
7993 hppa*64*|ia64*)
7994 # +Z the default
7995 ;;
7996 *)
7997 lt_prog_compiler_pic='+Z'
7998 ;;
7999 esac
8000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8001 lt_prog_compiler_static='${wl}-a ${wl}archive'
8002 ;;
8003
8004 irix5* | irix6* | nonstopux*)
8005 lt_prog_compiler_wl='-Wl,'
8006 # PIC (with -KPIC) is the default.
8007 lt_prog_compiler_static='-non_shared'
8008 ;;
8009
8010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8011 case $cc_basename in
8012 # old Intel for x86_64 which still supported -KPIC.
8013 ecc*)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-static'
8017 ;;
8018 # icc used to be incompatible with GCC.
8019 # ICC 10 doesn't accept -KPIC any more.
8020 icc* | ifort*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-fPIC'
8023 lt_prog_compiler_static='-static'
8024 ;;
8025 # Lahey Fortran 8.1.
8026 lf95*)
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='--shared'
8029 lt_prog_compiler_static='--static'
8030 ;;
8031 nagfor*)
8032 # NAG Fortran compiler
8033 lt_prog_compiler_wl='-Wl,-Wl,,'
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 ;;
8037 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8038 # Portland Group compilers (*not* the Pentium gcc compiler,
8039 # which looks to be a dead project)
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-fpic'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044 ccc*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # All Alpha code is PIC.
8047 lt_prog_compiler_static='-non_shared'
8048 ;;
8049 xl* | bgxl* | bgf* | mpixl*)
8050 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-qpic'
8053 lt_prog_compiler_static='-qstaticlink'
8054 ;;
8055 *)
8056 case `$CC -V 2>&1 | sed 5q` in
8057 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8058 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 lt_prog_compiler_wl=''
8062 ;;
8063 *Sun\ F* | *Sun*Fortran*)
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8066 lt_prog_compiler_wl='-Qoption ld '
8067 ;;
8068 *Sun\ C*)
8069 # Sun C 5.9
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl='-Wl,'
8073 ;;
8074 *Intel*\ [CF]*Compiler*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='-fPIC'
8077 lt_prog_compiler_static='-static'
8078 ;;
8079 *Portland\ Group*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-fpic'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084 esac
8085 ;;
8086 esac
8087 ;;
8088
8089 newsos6)
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
8093
8094 *nto* | *qnx*)
8095 # QNX uses GNU C++, but need to define -shared option too, otherwise
8096 # it will coredump.
8097 lt_prog_compiler_pic='-fPIC -shared'
8098 ;;
8099
8100 osf3* | osf4* | osf5*)
8101 lt_prog_compiler_wl='-Wl,'
8102 # All OSF/1 code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8104 ;;
8105
8106 rdos*)
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
8109
8110 solaris*)
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 case $cc_basename in
8114 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8115 lt_prog_compiler_wl='-Qoption ld ';;
8116 *)
8117 lt_prog_compiler_wl='-Wl,';;
8118 esac
8119 ;;
8120
8121 sunos4*)
8122 lt_prog_compiler_wl='-Qoption ld '
8123 lt_prog_compiler_pic='-PIC'
8124 lt_prog_compiler_static='-Bstatic'
8125 ;;
8126
8127 sysv4 | sysv4.2uw2* | sysv4.3*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 ;;
8132
8133 sysv4*MP*)
8134 if test -d /usr/nec ;then
8135 lt_prog_compiler_pic='-Kconform_pic'
8136 lt_prog_compiler_static='-Bstatic'
8137 fi
8138 ;;
8139
8140 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145
8146 unicos*)
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_can_build_shared=no
8149 ;;
8150
8151 uts4*)
8152 lt_prog_compiler_pic='-pic'
8153 lt_prog_compiler_static='-Bstatic'
8154 ;;
8155
8156 *)
8157 lt_prog_compiler_can_build_shared=no
8158 ;;
8159 esac
8160 fi
8161
8162 case $host_os in
8163 # For platforms which do not support PIC, -DPIC is meaningless:
8164 *djgpp*)
8165 lt_prog_compiler_pic=
8166 ;;
8167 *)
8168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8169 ;;
8170 esac
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8174 if ${lt_cv_prog_compiler_pic+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8180 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8181 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8182
8183 #
8184 # Check to make sure the PIC flag actually works.
8185 #
8186 if test -n "$lt_prog_compiler_pic"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8188 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8189 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 lt_cv_prog_compiler_pic_works=no
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8196 # Insert the option either (1) after the last *FLAGS variable, or
8197 # (2) before a word containing "conftest.", or (3) at the end.
8198 # Note that $ac_compile itself does not contain backslashes and begins
8199 # with a dollar sign (not a hyphen), so the echo should work correctly.
8200 # The option is referenced via a variable to avoid confusing sed.
8201 lt_compile=`echo "$ac_compile" | $SED \
8202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204 -e 's:$: $lt_compiler_flag:'`
8205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8206 (eval "$lt_compile" 2>conftest.err)
8207 ac_status=$?
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 if (exit $ac_status) && test -s "$ac_outfile"; then
8211 # The compiler can only warn and ignore the option if not recognized
8212 # So say no if there are warnings other than the usual output.
8213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8216 lt_cv_prog_compiler_pic_works=yes
8217 fi
8218 fi
8219 $RM conftest*
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8223 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8224
8225 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8226 case $lt_prog_compiler_pic in
8227 "" | " "*) ;;
8228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8229 esac
8230 else
8231 lt_prog_compiler_pic=
8232 lt_prog_compiler_can_build_shared=no
8233 fi
8234
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 #
8248 # Check to make sure the static flag actually works.
8249 #
8250 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8252 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8253 if ${lt_cv_prog_compiler_static_works+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 lt_cv_prog_compiler_static_works=no
8257 save_LDFLAGS="$LDFLAGS"
8258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8261 # The linker can only warn and ignore the option if not recognized
8262 # So say no if there are warnings
8263 if test -s conftest.err; then
8264 # Append any errors to the config.log.
8265 cat conftest.err 1>&5
8266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_static_works=yes
8270 fi
8271 else
8272 lt_cv_prog_compiler_static_works=yes
8273 fi
8274 fi
8275 $RM -r conftest*
8276 LDFLAGS="$save_LDFLAGS"
8277
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8280 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8281
8282 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8283 :
8284 else
8285 lt_prog_compiler_static=
8286 fi
8287
8288
8289
8290
8291
8292
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8296 if ${lt_cv_prog_compiler_c_o+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 lt_cv_prog_compiler_c_o=no
8300 $RM -r conftest 2>/dev/null
8301 mkdir conftest
8302 cd conftest
8303 mkdir out
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305
8306 lt_compiler_flag="-o out/conftest2.$ac_objext"
8307 # Insert the option either (1) after the last *FLAGS variable, or
8308 # (2) before a word containing "conftest.", or (3) at the end.
8309 # Note that $ac_compile itself does not contain backslashes and begins
8310 # with a dollar sign (not a hyphen), so the echo should work correctly.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
8315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8316 (eval "$lt_compile" 2>out/conftest.err)
8317 ac_status=$?
8318 cat out/conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8321 then
8322 # The compiler can only warn and ignore the option if not recognized
8323 # So say no if there are warnings
8324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8327 lt_cv_prog_compiler_c_o=yes
8328 fi
8329 fi
8330 chmod u+w . 2>&5
8331 $RM conftest*
8332 # SGI C++ compiler will create directory out/ii_files/ for
8333 # template instantiation
8334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8335 $RM out/* && rmdir out
8336 cd ..
8337 $RM -r conftest
8338 $RM conftest*
8339
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8342 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8343
8344
8345
8346
8347
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8351 if ${lt_cv_prog_compiler_c_o+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 lt_cv_prog_compiler_c_o=no
8355 $RM -r conftest 2>/dev/null
8356 mkdir conftest
8357 cd conftest
8358 mkdir out
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8360
8361 lt_compiler_flag="-o out/conftest2.$ac_objext"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
8370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8371 (eval "$lt_compile" 2>out/conftest.err)
8372 ac_status=$?
8373 cat out/conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_c_o=yes
8383 fi
8384 fi
8385 chmod u+w . 2>&5
8386 $RM conftest*
8387 # SGI C++ compiler will create directory out/ii_files/ for
8388 # template instantiation
8389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8390 $RM out/* && rmdir out
8391 cd ..
8392 $RM -r conftest
8393 $RM conftest*
8394
8395 fi
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8397 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8398
8399
8400
8401
8402 hard_links="nottested"
8403 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8404 # do not overwrite the value of need_locks provided by the user
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8406 $as_echo_n "checking if we can lock with hard links... " >&6; }
8407 hard_links=yes
8408 $RM conftest*
8409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8410 touch conftest.a
8411 ln conftest.a conftest.b 2>&5 || hard_links=no
8412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8414 $as_echo "$hard_links" >&6; }
8415 if test "$hard_links" = no; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8417 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8418 need_locks=warn
8419 fi
8420 else
8421 need_locks=no
8422 fi
8423
8424
8425
8426
8427
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8430 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8431
8432 runpath_var=
8433 allow_undefined_flag=
8434 always_export_symbols=no
8435 archive_cmds=
8436 archive_expsym_cmds=
8437 compiler_needs_object=no
8438 enable_shared_with_static_runtimes=no
8439 export_dynamic_flag_spec=
8440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8441 hardcode_automatic=no
8442 hardcode_direct=no
8443 hardcode_direct_absolute=no
8444 hardcode_libdir_flag_spec=
8445 hardcode_libdir_separator=
8446 hardcode_minus_L=no
8447 hardcode_shlibpath_var=unsupported
8448 inherit_rpath=no
8449 link_all_deplibs=unknown
8450 module_cmds=
8451 module_expsym_cmds=
8452 old_archive_from_new_cmds=
8453 old_archive_from_expsyms_cmds=
8454 thread_safe_flag_spec=
8455 whole_archive_flag_spec=
8456 # include_expsyms should be a list of space-separated symbols to be *always*
8457 # included in the symbol list
8458 include_expsyms=
8459 # exclude_expsyms can be an extended regexp of symbols to exclude
8460 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8461 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8462 # as well as any symbol that contains `d'.
8463 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8464 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8465 # platforms (ab)use it in PIC code, but their linkers get confused if
8466 # the symbol is explicitly referenced. Since portable code cannot
8467 # rely on this symbol name, it's probably fine to never include it in
8468 # preloaded symbol tables.
8469 # Exclude shared library initialization/finalization symbols.
8470 extract_expsyms_cmds=
8471
8472 case $host_os in
8473 cygwin* | mingw* | pw32* | cegcc*)
8474 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8475 # When not using gcc, we currently assume that we are using
8476 # Microsoft Visual C++.
8477 if test "$GCC" != yes; then
8478 with_gnu_ld=no
8479 fi
8480 ;;
8481 interix*)
8482 # we just hope/assume this is gcc and not c89 (= MSVC++)
8483 with_gnu_ld=yes
8484 ;;
8485 openbsd*)
8486 with_gnu_ld=no
8487 ;;
8488 esac
8489
8490 ld_shlibs=yes
8491
8492 # On some targets, GNU ld is compatible enough with the native linker
8493 # that we're better off using the native interface for both.
8494 lt_use_gnu_ld_interface=no
8495 if test "$with_gnu_ld" = yes; then
8496 case $host_os in
8497 aix*)
8498 # The AIX port of GNU ld has always aspired to compatibility
8499 # with the native linker. However, as the warning in the GNU ld
8500 # block says, versions before 2.19.5* couldn't really create working
8501 # shared libraries, regardless of the interface used.
8502 case `$LD -v 2>&1` in
8503 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8504 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8505 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8506 *)
8507 lt_use_gnu_ld_interface=yes
8508 ;;
8509 esac
8510 ;;
8511 *)
8512 lt_use_gnu_ld_interface=yes
8513 ;;
8514 esac
8515 fi
8516
8517 if test "$lt_use_gnu_ld_interface" = yes; then
8518 # If archive_cmds runs LD, not CC, wlarc should be empty
8519 wlarc='${wl}'
8520
8521 # Set some defaults for GNU ld with shared library support. These
8522 # are reset later if shared libraries are not supported. Putting them
8523 # here allows them to be overridden if necessary.
8524 runpath_var=LD_RUN_PATH
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 export_dynamic_flag_spec='${wl}--export-dynamic'
8527 # ancient GNU ld didn't support --whole-archive et. al.
8528 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8529 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8530 else
8531 whole_archive_flag_spec=
8532 fi
8533 supports_anon_versioning=no
8534 case `$LD -v 2>&1` in
8535 *GNU\ gold*) supports_anon_versioning=yes ;;
8536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8539 *\ 2.11.*) ;; # other 2.11 versions
8540 *) supports_anon_versioning=yes ;;
8541 esac
8542
8543 # See if GNU ld supports shared libraries.
8544 case $host_os in
8545 aix[3-9]*)
8546 # On AIX/PPC, the GNU linker is very broken
8547 if test "$host_cpu" != ia64; then
8548 ld_shlibs=no
8549 cat <<_LT_EOF 1>&2
8550
8551 *** Warning: the GNU linker, at least up to release 2.19, is reported
8552 *** to be unable to reliably create shared libraries on AIX.
8553 *** Therefore, libtool is disabling shared libraries support. If you
8554 *** really care for shared libraries, you may want to install binutils
8555 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8556 *** You will then need to restart the configuration process.
8557
8558 _LT_EOF
8559 fi
8560 ;;
8561
8562 amigaos*)
8563 case $host_cpu in
8564 powerpc)
8565 # see comment about AmigaOS4 .so support
8566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds=''
8568 ;;
8569 m68k)
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 ;;
8574 esac
8575 ;;
8576
8577 beos*)
8578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8579 allow_undefined_flag=unsupported
8580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8581 # support --undefined. This deserves some investigation. FIXME
8582 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 else
8584 ld_shlibs=no
8585 fi
8586 ;;
8587
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8590 # as there is no search path for DLLs.
8591 hardcode_libdir_flag_spec='-L$libdir'
8592 export_dynamic_flag_spec='${wl}--export-all-symbols'
8593 allow_undefined_flag=unsupported
8594 always_export_symbols=no
8595 enable_shared_with_static_runtimes=yes
8596 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'
8597 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8598
8599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8601 # If the export-symbols file already is a .def file (1st line
8602 # is EXPORTS), use it as is; otherwise, prepend...
8603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8604 cp $export_symbols $output_objdir/$soname.def;
8605 else
8606 echo EXPORTS > $output_objdir/$soname.def;
8607 cat $export_symbols >> $output_objdir/$soname.def;
8608 fi~
8609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
8614
8615 haiku*)
8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617 link_all_deplibs=yes
8618 ;;
8619
8620 interix[3-9]*)
8621 hardcode_direct=no
8622 hardcode_shlibpath_var=no
8623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8624 export_dynamic_flag_spec='${wl}-E'
8625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8626 # Instead, shared libraries are loaded at an image base (0x10000000 by
8627 # default) and relocated if they conflict, which is a slow very memory
8628 # consuming and fragmenting process. To avoid this, we pick a random,
8629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8632 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'
8633 ;;
8634
8635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8636 tmp_diet=no
8637 if test "$host_os" = linux-dietlibc; then
8638 case $cc_basename in
8639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8640 esac
8641 fi
8642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8643 && test "$tmp_diet" = no
8644 then
8645 tmp_addflag=' $pic_flag'
8646 tmp_sharedflag='-shared'
8647 case $cc_basename,$host_cpu in
8648 pgcc*) # Portland Group C compiler
8649 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'
8650 tmp_addflag=' $pic_flag'
8651 ;;
8652 pgf77* | pgf90* | pgf95* | pgfortran*)
8653 # Portland Group f77 and f90 compilers
8654 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'
8655 tmp_addflag=' $pic_flag -Mnomain' ;;
8656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8657 tmp_addflag=' -i_dynamic' ;;
8658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8659 tmp_addflag=' -i_dynamic -nofor_main' ;;
8660 ifc* | ifort*) # Intel Fortran compiler
8661 tmp_addflag=' -nofor_main' ;;
8662 lf95*) # Lahey Fortran 8.1
8663 whole_archive_flag_spec=
8664 tmp_sharedflag='--shared' ;;
8665 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8666 tmp_sharedflag='-qmkshrobj'
8667 tmp_addflag= ;;
8668 nvcc*) # Cuda Compiler Driver 2.2
8669 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'
8670 compiler_needs_object=yes
8671 ;;
8672 esac
8673 case `$CC -V 2>&1 | sed 5q` in
8674 *Sun\ C*) # Sun C 5.9
8675 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'
8676 compiler_needs_object=yes
8677 tmp_sharedflag='-G' ;;
8678 *Sun\ F*) # Sun Fortran 8.3
8679 tmp_sharedflag='-G' ;;
8680 esac
8681 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682
8683 if test "x$supports_anon_versioning" = xyes; then
8684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8686 echo "local: *; };" >> $output_objdir/$libname.ver~
8687 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8688 fi
8689
8690 case $cc_basename in
8691 xlf* | bgf* | bgxlf* | mpixlf*)
8692 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8693 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8696 if test "x$supports_anon_versioning" = xyes; then
8697 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699 echo "local: *; };" >> $output_objdir/$libname.ver~
8700 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8701 fi
8702 ;;
8703 esac
8704 else
8705 ld_shlibs=no
8706 fi
8707 ;;
8708
8709 netbsd*)
8710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8711 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8712 wlarc=
8713 else
8714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8716 fi
8717 ;;
8718
8719 solaris*)
8720 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8721 ld_shlibs=no
8722 cat <<_LT_EOF 1>&2
8723
8724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8725 *** create shared libraries on Solaris systems. Therefore, libtool
8726 *** is disabling shared libraries support. We urge you to upgrade GNU
8727 *** binutils to release 2.9.1 or newer. Another option is to modify
8728 *** your PATH or compiler configuration so that the native linker is
8729 *** used, and then restart.
8730
8731 _LT_EOF
8732 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
8739
8740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8741 case `$LD -v 2>&1` in
8742 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8743 ld_shlibs=no
8744 cat <<_LT_EOF 1>&2
8745
8746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8747 *** reliably create shared libraries on SCO systems. Therefore, libtool
8748 *** is disabling shared libraries support. We urge you to upgrade GNU
8749 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8750 *** your PATH or compiler configuration so that the native linker is
8751 *** used, and then restart.
8752
8753 _LT_EOF
8754 ;;
8755 *)
8756 # For security reasons, it is highly recommended that you always
8757 # use absolute paths for naming shared libraries, and exclude the
8758 # DT_RUNPATH tag from executables and libraries. But doing so
8759 # requires that you compile everything twice, which is a pain.
8760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768 esac
8769 ;;
8770
8771 sunos4*)
8772 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8773 wlarc=
8774 hardcode_direct=yes
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 *)
8779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786 esac
8787
8788 if test "$ld_shlibs" = no; then
8789 runpath_var=
8790 hardcode_libdir_flag_spec=
8791 export_dynamic_flag_spec=
8792 whole_archive_flag_spec=
8793 fi
8794 else
8795 # PORTME fill in a description of your system's linker (not GNU ld)
8796 case $host_os in
8797 aix3*)
8798 allow_undefined_flag=unsupported
8799 always_export_symbols=yes
8800 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'
8801 # Note: this linker hardcodes the directories in LIBPATH if there
8802 # are no directories specified by -L.
8803 hardcode_minus_L=yes
8804 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8805 # Neither direct hardcoding nor static linking is supported with a
8806 # broken collect2.
8807 hardcode_direct=unsupported
8808 fi
8809 ;;
8810
8811 aix[4-9]*)
8812 if test "$host_cpu" = ia64; then
8813 # On IA64, the linker does run time linking by default, so we don't
8814 # have to do anything special.
8815 aix_use_runtimelinking=no
8816 exp_sym_flag='-Bexport'
8817 no_entry_flag=""
8818 else
8819 # If we're using GNU nm, then we don't want the "-C" option.
8820 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8821 # Also, AIX nm treats weak defined symbols like other global
8822 # defined symbols, whereas GNU nm marks them as "W".
8823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8824 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'
8825 else
8826 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'
8827 fi
8828 aix_use_runtimelinking=no
8829
8830 # Test if we are trying to use run time linking or normal
8831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8832 # need to do runtime linking.
8833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8834 for ld_flag in $LDFLAGS; do
8835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8836 aix_use_runtimelinking=yes
8837 break
8838 fi
8839 done
8840 ;;
8841 esac
8842
8843 exp_sym_flag='-bexport'
8844 no_entry_flag='-bnoentry'
8845 fi
8846
8847 # When large executables or shared objects are built, AIX ld can
8848 # have problems creating the table of contents. If linking a library
8849 # or program results in "error TOC overflow" add -mminimal-toc to
8850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8852
8853 archive_cmds=''
8854 hardcode_direct=yes
8855 hardcode_direct_absolute=yes
8856 hardcode_libdir_separator=':'
8857 link_all_deplibs=yes
8858 file_list_spec='${wl}-f,'
8859
8860 if test "$GCC" = yes; then
8861 case $host_os in aix4.[012]|aix4.[012].*)
8862 # We only want to do this on AIX 4.2 and lower, the check
8863 # below for broken collect2 doesn't work under 4.3+
8864 collect2name=`${CC} -print-prog-name=collect2`
8865 if test -f "$collect2name" &&
8866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8867 then
8868 # We have reworked collect2
8869 :
8870 else
8871 # We have old collect2
8872 hardcode_direct=unsupported
8873 # It fails to find uninstalled libraries when the uninstalled
8874 # path is not listed in the libpath. Setting hardcode_minus_L
8875 # to unsupported forces relinking
8876 hardcode_minus_L=yes
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 hardcode_libdir_separator=
8879 fi
8880 ;;
8881 esac
8882 shared_flag='-shared'
8883 if test "$aix_use_runtimelinking" = yes; then
8884 shared_flag="$shared_flag "'${wl}-G'
8885 fi
8886 else
8887 # not using gcc
8888 if test "$host_cpu" = ia64; then
8889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8890 # chokes on -Wl,-G. The following line is correct:
8891 shared_flag='-G'
8892 else
8893 if test "$aix_use_runtimelinking" = yes; then
8894 shared_flag='${wl}-G'
8895 else
8896 shared_flag='${wl}-bM:SRE'
8897 fi
8898 fi
8899 fi
8900
8901 export_dynamic_flag_spec='${wl}-bexpall'
8902 # It seems that -bexpall does not export symbols beginning with
8903 # underscore (_), so it is better to generate a list of symbols to export.
8904 always_export_symbols=yes
8905 if test "$aix_use_runtimelinking" = yes; then
8906 # Warning - without using the other runtime loading flags (-brtl),
8907 # -berok will link without error, but may produce a broken library.
8908 allow_undefined_flag='-berok'
8909 # Determine the default libpath from the value encoded in an
8910 # empty executable.
8911 if test "${lt_cv_aix_libpath+set}" = set; then
8912 aix_libpath=$lt_cv_aix_libpath
8913 else
8914 if ${lt_cv_aix_libpath_+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919
8920 int
8921 main ()
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929
8930 lt_aix_libpath_sed='
8931 /Import File Strings/,/^$/ {
8932 /^0/ {
8933 s/^0 *\([^ ]*\) *$/\1/
8934 p
8935 }
8936 }'
8937 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 # Check for a 64-bit object if we didn't find anything.
8939 if test -z "$lt_cv_aix_libpath_"; then
8940 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8941 fi
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 if test -z "$lt_cv_aix_libpath_"; then
8946 lt_cv_aix_libpath_="/usr/lib:/lib"
8947 fi
8948
8949 fi
8950
8951 aix_libpath=$lt_cv_aix_libpath_
8952 fi
8953
8954 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8955 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"
8956 else
8957 if test "$host_cpu" = ia64; then
8958 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8959 allow_undefined_flag="-z nodefs"
8960 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"
8961 else
8962 # Determine the default libpath from the value encoded in an
8963 # empty executable.
8964 if test "${lt_cv_aix_libpath+set}" = set; then
8965 aix_libpath=$lt_cv_aix_libpath
8966 else
8967 if ${lt_cv_aix_libpath_+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972
8973 int
8974 main ()
8975 {
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_link "$LINENO"; then :
8982
8983 lt_aix_libpath_sed='
8984 /Import File Strings/,/^$/ {
8985 /^0/ {
8986 s/^0 *\([^ ]*\) *$/\1/
8987 p
8988 }
8989 }'
8990 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$lt_cv_aix_libpath_"; then
8993 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994 fi
8995 fi
8996 rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 if test -z "$lt_cv_aix_libpath_"; then
8999 lt_cv_aix_libpath_="/usr/lib:/lib"
9000 fi
9001
9002 fi
9003
9004 aix_libpath=$lt_cv_aix_libpath_
9005 fi
9006
9007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9008 # Warning - without using the other run time loading flags,
9009 # -berok will link without error, but may produce a broken library.
9010 no_undefined_flag=' ${wl}-bernotok'
9011 allow_undefined_flag=' ${wl}-berok'
9012 if test "$with_gnu_ld" = yes; then
9013 # We only use this code for GNU lds that support --whole-archive.
9014 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9015 else
9016 # Exported symbols can be pulled into shared objects from archives
9017 whole_archive_flag_spec='$convenience'
9018 fi
9019 archive_cmds_need_lc=yes
9020 # This is similar to how AIX traditionally builds its shared libraries.
9021 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'
9022 fi
9023 fi
9024 ;;
9025
9026 amigaos*)
9027 case $host_cpu in
9028 powerpc)
9029 # see comment about AmigaOS4 .so support
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds=''
9032 ;;
9033 m68k)
9034 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)'
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_minus_L=yes
9037 ;;
9038 esac
9039 ;;
9040
9041 bsdi[45]*)
9042 export_dynamic_flag_spec=-rdynamic
9043 ;;
9044
9045 cygwin* | mingw* | pw32* | cegcc*)
9046 # When not using gcc, we currently assume that we are using
9047 # Microsoft Visual C++.
9048 # hardcode_libdir_flag_spec is actually meaningless, as there is
9049 # no search path for DLLs.
9050 case $cc_basename in
9051 cl*)
9052 # Native MSVC
9053 hardcode_libdir_flag_spec=' '
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=yes
9056 file_list_spec='@'
9057 # Tell ltmain to make .lib files, not .a files.
9058 libext=lib
9059 # Tell ltmain to make .dll files, not .so files.
9060 shrext_cmds=".dll"
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9063 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9064 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9065 else
9066 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9067 fi~
9068 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9069 linknames='
9070 # The linker will not automatically build a static lib if we build a DLL.
9071 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9072 enable_shared_with_static_runtimes=yes
9073 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9075 # Don't use ranlib
9076 old_postinstall_cmds='chmod 644 $oldlib'
9077 postlink_cmds='lt_outputfile="@OUTPUT@"~
9078 lt_tool_outputfile="@TOOL_OUTPUT@"~
9079 case $lt_outputfile in
9080 *.exe|*.EXE) ;;
9081 *)
9082 lt_outputfile="$lt_outputfile.exe"
9083 lt_tool_outputfile="$lt_tool_outputfile.exe"
9084 ;;
9085 esac~
9086 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9087 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9088 $RM "$lt_outputfile.manifest";
9089 fi'
9090 ;;
9091 *)
9092 # Assume MSVC wrapper
9093 hardcode_libdir_flag_spec=' '
9094 allow_undefined_flag=unsupported
9095 # Tell ltmain to make .lib files, not .a files.
9096 libext=lib
9097 # Tell ltmain to make .dll files, not .so files.
9098 shrext_cmds=".dll"
9099 # FIXME: Setting linknames here is a bad hack.
9100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9101 # The linker will automatically build a .lib file if we build a DLL.
9102 old_archive_from_new_cmds='true'
9103 # FIXME: Should let the user specify the lib program.
9104 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9105 enable_shared_with_static_runtimes=yes
9106 ;;
9107 esac
9108 ;;
9109
9110 darwin* | rhapsody*)
9111
9112
9113 archive_cmds_need_lc=no
9114 hardcode_direct=no
9115 hardcode_automatic=yes
9116 hardcode_shlibpath_var=unsupported
9117 if test "$lt_cv_ld_force_load" = "yes"; then
9118 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\"`'
9119
9120 else
9121 whole_archive_flag_spec=''
9122 fi
9123 link_all_deplibs=yes
9124 allow_undefined_flag="$_lt_dar_allow_undefined"
9125 case $cc_basename in
9126 ifort*) _lt_dar_can_shared=yes ;;
9127 *) _lt_dar_can_shared=$GCC ;;
9128 esac
9129 if test "$_lt_dar_can_shared" = "yes"; then
9130 output_verbose_link_cmd=func_echo_all
9131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9133 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}"
9134 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}"
9135
9136 else
9137 ld_shlibs=no
9138 fi
9139
9140 ;;
9141
9142 dgux*)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_shlibpath_var=no
9146 ;;
9147
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9151 # extra space).
9152 freebsd2.2*)
9153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9160 freebsd2.*)
9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_direct=yes
9163 hardcode_minus_L=yes
9164 hardcode_shlibpath_var=no
9165 ;;
9166
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd* | dragonfly*)
9169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9170 hardcode_libdir_flag_spec='-R$libdir'
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 ;;
9174
9175 hpux9*)
9176 if test "$GCC" = yes; then
9177 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'
9178 else
9179 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'
9180 fi
9181 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
9184
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189 ;;
9190
9191 hpux10*)
9192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9194 else
9195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 fi
9197 if test "$with_gnu_ld" = no; then
9198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_separator=:
9200 hardcode_direct=yes
9201 hardcode_direct_absolute=yes
9202 export_dynamic_flag_spec='${wl}-E'
9203 # hardcode_minus_L: Not really in the search PATH,
9204 # but as the default location of the library.
9205 hardcode_minus_L=yes
9206 fi
9207 ;;
9208
9209 hpux11*)
9210 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9211 case $host_cpu in
9212 hppa*64*)
9213 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 ;;
9215 ia64*)
9216 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217 ;;
9218 *)
9219 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 ;;
9221 esac
9222 else
9223 case $host_cpu in
9224 hppa*64*)
9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 ;;
9227 ia64*)
9228 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9229 ;;
9230 *)
9231
9232 # Older versions of the 11.00 compiler do not understand -b yet
9233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9235 $as_echo_n "checking if $CC understands -b... " >&6; }
9236 if ${lt_cv_prog_compiler__b+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 lt_cv_prog_compiler__b=no
9240 save_LDFLAGS="$LDFLAGS"
9241 LDFLAGS="$LDFLAGS -b"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler__b=yes
9253 fi
9254 else
9255 lt_cv_prog_compiler__b=yes
9256 fi
9257 fi
9258 $RM -r conftest*
9259 LDFLAGS="$save_LDFLAGS"
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9263 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9264
9265 if test x"$lt_cv_prog_compiler__b" = xyes; then
9266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267 else
9268 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 fi
9270
9271 ;;
9272 esac
9273 fi
9274 if test "$with_gnu_ld" = no; then
9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277
9278 case $host_cpu in
9279 hppa*64*|ia64*)
9280 hardcode_direct=no
9281 hardcode_shlibpath_var=no
9282 ;;
9283 *)
9284 hardcode_direct=yes
9285 hardcode_direct_absolute=yes
9286 export_dynamic_flag_spec='${wl}-E'
9287
9288 # hardcode_minus_L: Not really in the search PATH,
9289 # but as the default location of the library.
9290 hardcode_minus_L=yes
9291 ;;
9292 esac
9293 fi
9294 ;;
9295
9296 irix5* | irix6* | nonstopux*)
9297 if test "$GCC" = yes; then
9298 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'
9299 # Try to use the -exported_symbol ld option, if it does not
9300 # work, assume that -exports_file does not work either and
9301 # implicitly export all symbols.
9302 # This should be the same for all languages, so no per-tag cache variable.
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9304 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9305 if ${lt_cv_irix_exported_symbol+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 save_LDFLAGS="$LDFLAGS"
9309 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int foo (void) { return 0; }
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 lt_cv_irix_exported_symbol=yes
9316 else
9317 lt_cv_irix_exported_symbol=no
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LDFLAGS="$save_LDFLAGS"
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9324 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9325 if test "$lt_cv_irix_exported_symbol" = yes; then
9326 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'
9327 fi
9328 else
9329 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'
9330 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'
9331 fi
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9334 hardcode_libdir_separator=:
9335 inherit_rpath=yes
9336 link_all_deplibs=yes
9337 ;;
9338
9339 netbsd*)
9340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9342 else
9343 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9344 fi
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_direct=yes
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 newsos6)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_direct=yes
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 hardcode_libdir_separator=:
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 *nto* | *qnx*)
9359 ;;
9360
9361 openbsd*)
9362 if test -f /usr/libexec/ld.so; then
9363 hardcode_direct=yes
9364 hardcode_shlibpath_var=no
9365 hardcode_direct_absolute=yes
9366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9370 export_dynamic_flag_spec='${wl}-E'
9371 else
9372 case $host_os in
9373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_libdir_flag_spec='-R$libdir'
9376 ;;
9377 *)
9378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9380 ;;
9381 esac
9382 fi
9383 else
9384 ld_shlibs=no
9385 fi
9386 ;;
9387
9388 os2*)
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_minus_L=yes
9391 allow_undefined_flag=unsupported
9392 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'
9393 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9394 ;;
9395
9396 osf3*)
9397 if test "$GCC" = yes; then
9398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9399 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'
9400 else
9401 allow_undefined_flag=' -expect_unresolved \*'
9402 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'
9403 fi
9404 archive_cmds_need_lc='no'
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 ;;
9408
9409 osf4* | osf5*) # as osf3* with the addition of -msym flag
9410 if test "$GCC" = yes; then
9411 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9412 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'
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 else
9415 allow_undefined_flag=' -expect_unresolved \*'
9416 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'
9417 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~
9418 $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'
9419
9420 # Both c and cxx compiler support -rpath directly
9421 hardcode_libdir_flag_spec='-rpath $libdir'
9422 fi
9423 archive_cmds_need_lc='no'
9424 hardcode_libdir_separator=:
9425 ;;
9426
9427 solaris*)
9428 no_undefined_flag=' -z defs'
9429 if test "$GCC" = yes; then
9430 wlarc='${wl}'
9431 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9433 $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'
9434 else
9435 case `$CC -V 2>&1` in
9436 *"Compilers 5.0"*)
9437 wlarc=''
9438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9441 ;;
9442 *)
9443 wlarc='${wl}'
9444 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9446 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9447 ;;
9448 esac
9449 fi
9450 hardcode_libdir_flag_spec='-R$libdir'
9451 hardcode_shlibpath_var=no
9452 case $host_os in
9453 solaris2.[0-5] | solaris2.[0-5].*) ;;
9454 *)
9455 # The compiler driver will combine and reorder linker options,
9456 # but understands `-z linker_flag'. GCC discards it without `$wl',
9457 # but is careful enough not to reorder.
9458 # Supported since Solaris 2.6 (maybe 2.5.1?)
9459 if test "$GCC" = yes; then
9460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9461 else
9462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9463 fi
9464 ;;
9465 esac
9466 link_all_deplibs=yes
9467 ;;
9468
9469 sunos4*)
9470 if test "x$host_vendor" = xsequent; then
9471 # Use $CC to link under sequent, because it throws in some extra .o
9472 # files that make .init and .fini sections work.
9473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9474 else
9475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9476 fi
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_direct=yes
9479 hardcode_minus_L=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 sysv4)
9484 case $host_vendor in
9485 sni)
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_direct=yes # is this really true???
9488 ;;
9489 siemens)
9490 ## LD is ld it makes a PLAMLIB
9491 ## CC just makes a GrossModule.
9492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9493 reload_cmds='$CC -r -o $output$reload_objs'
9494 hardcode_direct=no
9495 ;;
9496 motorola)
9497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9499 ;;
9500 esac
9501 runpath_var='LD_RUN_PATH'
9502 hardcode_shlibpath_var=no
9503 ;;
9504
9505 sysv4.3*)
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_shlibpath_var=no
9508 export_dynamic_flag_spec='-Bexport'
9509 ;;
9510
9511 sysv4*MP*)
9512 if test -d /usr/nec; then
9513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_shlibpath_var=no
9515 runpath_var=LD_RUN_PATH
9516 hardcode_runpath_var=yes
9517 ld_shlibs=yes
9518 fi
9519 ;;
9520
9521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9522 no_undefined_flag='${wl}-z,text'
9523 archive_cmds_need_lc=no
9524 hardcode_shlibpath_var=no
9525 runpath_var='LD_RUN_PATH'
9526
9527 if test "$GCC" = yes; then
9528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 else
9531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 fi
9534 ;;
9535
9536 sysv5* | sco3.2v5* | sco5v6*)
9537 # Note: We can NOT use -z defs as we might desire, because we do not
9538 # link with -lc, and that would cause any symbols used from libc to
9539 # always be unresolved, which means just about no library would
9540 # ever link correctly. If we're not using GNU ld we use -z text
9541 # though, which does catch some bad symbols but isn't as heavy-handed
9542 # as -z defs.
9543 no_undefined_flag='${wl}-z,text'
9544 allow_undefined_flag='${wl}-z,nodefs'
9545 archive_cmds_need_lc=no
9546 hardcode_shlibpath_var=no
9547 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9548 hardcode_libdir_separator=':'
9549 link_all_deplibs=yes
9550 export_dynamic_flag_spec='${wl}-Bexport'
9551 runpath_var='LD_RUN_PATH'
9552
9553 if test "$GCC" = yes; then
9554 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 else
9557 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 fi
9560 ;;
9561
9562 uts4*)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_shlibpath_var=no
9566 ;;
9567
9568 *)
9569 ld_shlibs=no
9570 ;;
9571 esac
9572
9573 if test x$host_vendor = xsni; then
9574 case $host in
9575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9576 export_dynamic_flag_spec='${wl}-Blargedynsym'
9577 ;;
9578 esac
9579 fi
9580 fi
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9583 $as_echo "$ld_shlibs" >&6; }
9584 test "$ld_shlibs" = no && can_build_shared=no
9585
9586 with_gnu_ld=$with_gnu_ld
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 #
9603 # Do we need to explicitly link libc?
9604 #
9605 case "x$archive_cmds_need_lc" in
9606 x|xyes)
9607 # Assume -lc should be added
9608 archive_cmds_need_lc=yes
9609
9610 if test "$enable_shared" = yes && test "$GCC" = yes; then
9611 case $archive_cmds in
9612 *'~'*)
9613 # FIXME: we may have to deal with multi-command sequences.
9614 ;;
9615 '$CC '*)
9616 # Test whether the compiler implicitly links with -lc since on some
9617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9618 # to ld, don't add -lc before -lgcc.
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9620 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9621 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 $RM conftest*
9625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9626
9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9628 (eval $ac_compile) 2>&5
9629 ac_status=$?
9630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; } 2>conftest.err; then
9632 soname=conftest
9633 lib=conftest
9634 libobjs=conftest.$ac_objext
9635 deplibs=
9636 wl=$lt_prog_compiler_wl
9637 pic_flag=$lt_prog_compiler_pic
9638 compiler_flags=-v
9639 linker_flags=-v
9640 verstring=
9641 output_objdir=.
9642 libname=conftest
9643 lt_save_allow_undefined_flag=$allow_undefined_flag
9644 allow_undefined_flag=
9645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9646 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9647 ac_status=$?
9648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9649 test $ac_status = 0; }
9650 then
9651 lt_cv_archive_cmds_need_lc=no
9652 else
9653 lt_cv_archive_cmds_need_lc=yes
9654 fi
9655 allow_undefined_flag=$lt_save_allow_undefined_flag
9656 else
9657 cat conftest.err 1>&5
9658 fi
9659 $RM conftest*
9660
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9663 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9664 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9665 ;;
9666 esac
9667 fi
9668 ;;
9669 esac
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9823 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9824
9825 if test "$GCC" = yes; then
9826 case $host_os in
9827 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9828 *) lt_awk_arg="/^libraries:/" ;;
9829 esac
9830 case $host_os in
9831 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9832 *) lt_sed_strip_eq="s,=/,/,g" ;;
9833 esac
9834 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9835 case $lt_search_path_spec in
9836 *\;*)
9837 # if the path contains ";" then we assume it to be the separator
9838 # otherwise default to the standard path separator (i.e. ":") - it is
9839 # assumed that no part of a normal pathname contains ";" but that should
9840 # okay in the real world where ";" in dirpaths is itself problematic.
9841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9842 ;;
9843 *)
9844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9845 ;;
9846 esac
9847 # Ok, now we have the path, separated by spaces, we can step through it
9848 # and add multilib dir if necessary.
9849 lt_tmp_lt_search_path_spec=
9850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9851 for lt_sys_path in $lt_search_path_spec; do
9852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9854 else
9855 test -d "$lt_sys_path" && \
9856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9857 fi
9858 done
9859 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9860 BEGIN {RS=" "; FS="/|\n";} {
9861 lt_foo="";
9862 lt_count=0;
9863 for (lt_i = NF; lt_i > 0; lt_i--) {
9864 if ($lt_i != "" && $lt_i != ".") {
9865 if ($lt_i == "..") {
9866 lt_count++;
9867 } else {
9868 if (lt_count == 0) {
9869 lt_foo="/" $lt_i lt_foo;
9870 } else {
9871 lt_count--;
9872 }
9873 }
9874 }
9875 }
9876 if (lt_foo != "") { lt_freq[lt_foo]++; }
9877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9878 }'`
9879 # AWK program above erroneously prepends '/' to C:/dos/paths
9880 # for these hosts.
9881 case $host_os in
9882 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9883 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9884 esac
9885 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9886 else
9887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9888 fi
9889 library_names_spec=
9890 libname_spec='lib$name'
9891 soname_spec=
9892 shrext_cmds=".so"
9893 postinstall_cmds=
9894 postuninstall_cmds=
9895 finish_cmds=
9896 finish_eval=
9897 shlibpath_var=
9898 shlibpath_overrides_runpath=unknown
9899 version_type=none
9900 dynamic_linker="$host_os ld.so"
9901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9904
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9908
9909 case $host_os in
9910 aix3*)
9911 version_type=linux # correct to gnu/linux during the next big refactor
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913 shlibpath_var=LIBPATH
9914
9915 # AIX 3 has no versioning support, so we append a major version to the name.
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 ;;
9918
9919 aix[4-9]*)
9920 version_type=linux # correct to gnu/linux during the next big refactor
9921 need_lib_prefix=no
9922 need_version=no
9923 hardcode_into_libs=yes
9924 if test "$host_cpu" = ia64; then
9925 # AIX 5 supports IA64
9926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 else
9929 # With GCC up to 2.95.x, collect2 would create an import file
9930 # for dependence libraries. The import file would start with
9931 # the line `#! .'. This would cause the generated library to
9932 # depend on `.', always an invalid library. This was fixed in
9933 # development snapshots of GCC prior to 3.0.
9934 case $host_os in
9935 aix4 | aix4.[01] | aix4.[01].*)
9936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937 echo ' yes '
9938 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9939 :
9940 else
9941 can_build_shared=no
9942 fi
9943 ;;
9944 esac
9945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946 # soname into executable. Probably we can add versioning support to
9947 # collect2, so additional links can be useful in future.
9948 if test "$aix_use_runtimelinking" = yes; then
9949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950 # instead of lib<name>.a to let people know that these are not
9951 # typical AIX shared libraries.
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 else
9954 # We preserve .a as extension for shared libraries through AIX4.2
9955 # and later when we are not doing run time linking.
9956 library_names_spec='${libname}${release}.a $libname.a'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 fi
9959 shlibpath_var=LIBPATH
9960 fi
9961 ;;
9962
9963 amigaos*)
9964 case $host_cpu in
9965 powerpc)
9966 # Since July 2007 AmigaOS4 officially supports .so libraries.
9967 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969 ;;
9970 m68k)
9971 library_names_spec='$libname.ixlibrary $libname.a'
9972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9973 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'
9974 ;;
9975 esac
9976 ;;
9977
9978 beos*)
9979 library_names_spec='${libname}${shared_ext}'
9980 dynamic_linker="$host_os ld.so"
9981 shlibpath_var=LIBRARY_PATH
9982 ;;
9983
9984 bsdi[45]*)
9985 version_type=linux # correct to gnu/linux during the next big refactor
9986 need_version=no
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9993 # the default ld.so.conf also contains /usr/contrib/lib and
9994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9995 # libtool to hard-code these into programs
9996 ;;
9997
9998 cygwin* | mingw* | pw32* | cegcc*)
9999 version_type=windows
10000 shrext_cmds=".dll"
10001 need_version=no
10002 need_lib_prefix=no
10003
10004 case $GCC,$cc_basename in
10005 yes,*)
10006 # gcc
10007 library_names_spec='$libname.dll.a'
10008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10009 postinstall_cmds='base_file=`basename \${file}`~
10010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10011 dldir=$destdir/`dirname \$dlpath`~
10012 test -d \$dldir || mkdir -p \$dldir~
10013 $install_prog $dir/$dlname \$dldir/$dlname~
10014 chmod a+x \$dldir/$dlname~
10015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10017 fi'
10018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10019 dlpath=$dir/\$dldll~
10020 $RM \$dlpath'
10021 shlibpath_overrides_runpath=yes
10022
10023 case $host_os in
10024 cygwin*)
10025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10027
10028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10029 ;;
10030 mingw* | cegcc*)
10031 # MinGW DLLs use traditional 'lib' prefix
10032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10033 ;;
10034 pw32*)
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 ;;
10038 esac
10039 dynamic_linker='Win32 ld.exe'
10040 ;;
10041
10042 *,cl*)
10043 # Native MSVC
10044 libname_spec='$name'
10045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046 library_names_spec='${libname}.dll.lib'
10047
10048 case $build_os in
10049 mingw*)
10050 sys_lib_search_path_spec=
10051 lt_save_ifs=$IFS
10052 IFS=';'
10053 for lt_path in $LIB
10054 do
10055 IFS=$lt_save_ifs
10056 # Let DOS variable expansion print the short 8.3 style file name.
10057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10059 done
10060 IFS=$lt_save_ifs
10061 # Convert to MSYS style.
10062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10063 ;;
10064 cygwin*)
10065 # Convert to unix form, then to dos form, then back to unix form
10066 # but this time dos style (no spaces!) so that the unix form looks
10067 # like /cygdrive/c/PROGRA~1:/cygdr...
10068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10071 ;;
10072 *)
10073 sys_lib_search_path_spec="$LIB"
10074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10075 # It is most probably a Windows format PATH.
10076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10077 else
10078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10079 fi
10080 # FIXME: find the short name or the path components, as spaces are
10081 # common. (e.g. "Program Files" -> "PROGRA~1")
10082 ;;
10083 esac
10084
10085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10086 postinstall_cmds='base_file=`basename \${file}`~
10087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10088 dldir=$destdir/`dirname \$dlpath`~
10089 test -d \$dldir || mkdir -p \$dldir~
10090 $install_prog $dir/$dlname \$dldir/$dlname'
10091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10092 dlpath=$dir/\$dldll~
10093 $RM \$dlpath'
10094 shlibpath_overrides_runpath=yes
10095 dynamic_linker='Win32 link.exe'
10096 ;;
10097
10098 *)
10099 # Assume MSVC wrapper
10100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10101 dynamic_linker='Win32 ld.exe'
10102 ;;
10103 esac
10104 # FIXME: first we should search . and the directory the executable is in
10105 shlibpath_var=PATH
10106 ;;
10107
10108 darwin* | rhapsody*)
10109 dynamic_linker="$host_os dyld"
10110 version_type=darwin
10111 need_lib_prefix=no
10112 need_version=no
10113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10114 soname_spec='${libname}${release}${major}$shared_ext'
10115 shlibpath_overrides_runpath=yes
10116 shlibpath_var=DYLD_LIBRARY_PATH
10117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10118
10119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10121 ;;
10122
10123 dgux*)
10124 version_type=linux # correct to gnu/linux during the next big refactor
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 ;;
10131
10132 freebsd* | dragonfly*)
10133 # DragonFly does not have aout. When/if they implement a new
10134 # versioning mechanism, adjust this.
10135 if test -x /usr/bin/objformat; then
10136 objformat=`/usr/bin/objformat`
10137 else
10138 case $host_os in
10139 freebsd[23].*) objformat=aout ;;
10140 *) objformat=elf ;;
10141 esac
10142 fi
10143 version_type=freebsd-$objformat
10144 case $version_type in
10145 freebsd-elf*)
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10147 need_version=no
10148 need_lib_prefix=no
10149 ;;
10150 freebsd-*)
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10152 need_version=yes
10153 ;;
10154 esac
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_os in
10157 freebsd2.*)
10158 shlibpath_overrides_runpath=yes
10159 ;;
10160 freebsd3.[01]* | freebsdelf3.[01]*)
10161 shlibpath_overrides_runpath=yes
10162 hardcode_into_libs=yes
10163 ;;
10164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10166 shlibpath_overrides_runpath=no
10167 hardcode_into_libs=yes
10168 ;;
10169 *) # from 4.6 on, and DragonFly
10170 shlibpath_overrides_runpath=yes
10171 hardcode_into_libs=yes
10172 ;;
10173 esac
10174 ;;
10175
10176 gnu*)
10177 version_type=linux # correct to gnu/linux during the next big refactor
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 ;;
10186
10187 haiku*)
10188 version_type=linux # correct to gnu/linux during the next big refactor
10189 need_lib_prefix=no
10190 need_version=no
10191 dynamic_linker="$host_os runtime_loader"
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes
10196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10197 hardcode_into_libs=yes
10198 ;;
10199
10200 hpux9* | hpux10* | hpux11*)
10201 # Give a soname corresponding to the major version so that dld.sl refuses to
10202 # link against other versions.
10203 version_type=sunos
10204 need_lib_prefix=no
10205 need_version=no
10206 case $host_cpu in
10207 ia64*)
10208 shrext_cmds='.so'
10209 hardcode_into_libs=yes
10210 dynamic_linker="$host_os dld.so"
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 if test "X$HPUX_IA64_MODE" = X32; then
10216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10217 else
10218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10219 fi
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221 ;;
10222 hppa*64*)
10223 shrext_cmds='.sl'
10224 hardcode_into_libs=yes
10225 dynamic_linker="$host_os dld.sl"
10226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10232 ;;
10233 *)
10234 shrext_cmds='.sl'
10235 dynamic_linker="$host_os dld.sl"
10236 shlibpath_var=SHLIB_PATH
10237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 ;;
10241 esac
10242 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10243 postinstall_cmds='chmod 555 $lib'
10244 # or fails outright, so override atomically:
10245 install_override_mode=555
10246 ;;
10247
10248 interix[3-9]*)
10249 version_type=linux # correct to gnu/linux during the next big refactor
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=no
10257 hardcode_into_libs=yes
10258 ;;
10259
10260 irix5* | irix6* | nonstopux*)
10261 case $host_os in
10262 nonstopux*) version_type=nonstopux ;;
10263 *)
10264 if test "$lt_cv_prog_gnu_ld" = yes; then
10265 version_type=linux # correct to gnu/linux during the next big refactor
10266 else
10267 version_type=irix
10268 fi ;;
10269 esac
10270 need_lib_prefix=no
10271 need_version=no
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10274 case $host_os in
10275 irix5* | nonstopux*)
10276 libsuff= shlibsuff=
10277 ;;
10278 *)
10279 case $LD in # libtool.m4 will add one of these switches to LD
10280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10281 libsuff= shlibsuff= libmagic=32-bit;;
10282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10283 libsuff=32 shlibsuff=N32 libmagic=N32;;
10284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10286 *) libsuff= shlibsuff= libmagic=never-match;;
10287 esac
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10291 shlibpath_overrides_runpath=no
10292 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10293 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10294 hardcode_into_libs=yes
10295 ;;
10296
10297 # No shared lib support for Linux oldld, aout, or coff.
10298 linux*oldld* | linux*aout* | linux*coff*)
10299 dynamic_linker=no
10300 ;;
10301
10302 # This must be glibc/ELF.
10303 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10304 version_type=linux # correct to gnu/linux during the next big refactor
10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=no
10312
10313 # Some binutils ld are patched to set DT_RUNPATH
10314 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 lt_cv_shlibpath_overrides_runpath=no
10318 save_LDFLAGS=$LDFLAGS
10319 save_libdir=$libdir
10320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324
10325 int
10326 main ()
10327 {
10328
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10335 lt_cv_shlibpath_overrides_runpath=yes
10336 fi
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LDFLAGS=$save_LDFLAGS
10341 libdir=$save_libdir
10342
10343 fi
10344
10345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10346
10347 # This implies no fast_install, which is unacceptable.
10348 # Some rework will be needed to allow for fast_install
10349 # before this can be enabled.
10350 hardcode_into_libs=yes
10351
10352 # Add ABI-specific directories to the system library path.
10353 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10354
10355 # Append ld.so.conf contents to the search path
10356 if test -f /etc/ld.so.conf; then
10357 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' ' '`
10358 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10359
10360 fi
10361
10362 # We used to test for /lib/ld.so.1 and disable shared libraries on
10363 # powerpc, because MkLinux only supported shared libraries with the
10364 # GNU dynamic linker. Since this was broken with cross compilers,
10365 # most powerpc-linux boxes support dynamic linking these days and
10366 # people can always --disable-shared, the test was removed, and we
10367 # assume the GNU/Linux dynamic linker is in use.
10368 dynamic_linker='GNU/Linux ld.so'
10369 ;;
10370
10371 netbsd*)
10372 version_type=sunos
10373 need_lib_prefix=no
10374 need_version=no
10375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10378 dynamic_linker='NetBSD (a.out) ld.so'
10379 else
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 dynamic_linker='NetBSD ld.elf_so'
10383 fi
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 hardcode_into_libs=yes
10387 ;;
10388
10389 newsos6)
10390 version_type=linux # correct to gnu/linux during the next big refactor
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=yes
10394 ;;
10395
10396 *nto* | *qnx*)
10397 version_type=qnx
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 dynamic_linker='ldqnx.so'
10406 ;;
10407
10408 openbsd*)
10409 version_type=sunos
10410 sys_lib_dlsearch_path_spec="/usr/lib"
10411 need_lib_prefix=no
10412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10413 case $host_os in
10414 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10415 *) need_version=no ;;
10416 esac
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421 case $host_os in
10422 openbsd2.[89] | openbsd2.[89].*)
10423 shlibpath_overrides_runpath=no
10424 ;;
10425 *)
10426 shlibpath_overrides_runpath=yes
10427 ;;
10428 esac
10429 else
10430 shlibpath_overrides_runpath=yes
10431 fi
10432 ;;
10433
10434 os2*)
10435 libname_spec='$name'
10436 shrext_cmds=".dll"
10437 need_lib_prefix=no
10438 library_names_spec='$libname${shared_ext} $libname.a'
10439 dynamic_linker='OS/2 ld.exe'
10440 shlibpath_var=LIBPATH
10441 ;;
10442
10443 osf3* | osf4* | osf5*)
10444 version_type=osf
10445 need_lib_prefix=no
10446 need_version=no
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10452 ;;
10453
10454 rdos*)
10455 dynamic_linker=no
10456 ;;
10457
10458 solaris*)
10459 version_type=linux # correct to gnu/linux during the next big refactor
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10466 hardcode_into_libs=yes
10467 # ldd complains unless libraries are executable
10468 postinstall_cmds='chmod +x $lib'
10469 ;;
10470
10471 sunos4*)
10472 version_type=sunos
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 shlibpath_overrides_runpath=yes
10477 if test "$with_gnu_ld" = yes; then
10478 need_lib_prefix=no
10479 fi
10480 need_version=yes
10481 ;;
10482
10483 sysv4 | sysv4.3*)
10484 version_type=linux # correct to gnu/linux during the next big refactor
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 case $host_vendor in
10489 sni)
10490 shlibpath_overrides_runpath=no
10491 need_lib_prefix=no
10492 runpath_var=LD_RUN_PATH
10493 ;;
10494 siemens)
10495 need_lib_prefix=no
10496 ;;
10497 motorola)
10498 need_lib_prefix=no
10499 need_version=no
10500 shlibpath_overrides_runpath=no
10501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10502 ;;
10503 esac
10504 ;;
10505
10506 sysv4*MP*)
10507 if test -d /usr/nec ;then
10508 version_type=linux # correct to gnu/linux during the next big refactor
10509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10510 soname_spec='$libname${shared_ext}.$major'
10511 shlibpath_var=LD_LIBRARY_PATH
10512 fi
10513 ;;
10514
10515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10516 version_type=freebsd-elf
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10524 if test "$with_gnu_ld" = yes; then
10525 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10526 else
10527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10528 case $host_os in
10529 sco3.2v5*)
10530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10531 ;;
10532 esac
10533 fi
10534 sys_lib_dlsearch_path_spec='/usr/lib'
10535 ;;
10536
10537 tpf*)
10538 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10539 version_type=linux # correct to gnu/linux during the next big refactor
10540 need_lib_prefix=no
10541 need_version=no
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545 hardcode_into_libs=yes
10546 ;;
10547
10548 uts4*)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 ;;
10554
10555 *)
10556 dynamic_linker=no
10557 ;;
10558 esac
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10560 $as_echo "$dynamic_linker" >&6; }
10561 test "$dynamic_linker" = no && can_build_shared=no
10562
10563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10564 if test "$GCC" = yes; then
10565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10566 fi
10567
10568 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10569 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10570 fi
10571 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10572 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10573 fi
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10668 hardcode_action=
10669 if test -n "$hardcode_libdir_flag_spec" ||
10670 test -n "$runpath_var" ||
10671 test "X$hardcode_automatic" = "Xyes" ; then
10672
10673 # We can hardcode non-existent directories.
10674 if test "$hardcode_direct" != no &&
10675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10676 # have to relink, otherwise we might link with an installed library
10677 # when we should be linking with a yet-to-be-installed one
10678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10679 test "$hardcode_minus_L" != no; then
10680 # Linking always hardcodes the temporary library directory.
10681 hardcode_action=relink
10682 else
10683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10684 hardcode_action=immediate
10685 fi
10686 else
10687 # We cannot hardcode anything, or else we can only hardcode existing
10688 # directories.
10689 hardcode_action=unsupported
10690 fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10692 $as_echo "$hardcode_action" >&6; }
10693
10694 if test "$hardcode_action" = relink ||
10695 test "$inherit_rpath" = yes; then
10696 # Fast installation is not supported
10697 enable_fast_install=no
10698 elif test "$shlibpath_overrides_runpath" = yes ||
10699 test "$enable_shared" = no; then
10700 # Fast installation is not necessary
10701 enable_fast_install=needless
10702 fi
10703
10704
10705
10706
10707
10708
10709 if test "x$enable_dlopen" != xyes; then
10710 enable_dlopen=unknown
10711 enable_dlopen_self=unknown
10712 enable_dlopen_self_static=unknown
10713 else
10714 lt_cv_dlopen=no
10715 lt_cv_dlopen_libs=
10716
10717 case $host_os in
10718 beos*)
10719 lt_cv_dlopen="load_add_on"
10720 lt_cv_dlopen_libs=
10721 lt_cv_dlopen_self=yes
10722 ;;
10723
10724 mingw* | pw32* | cegcc*)
10725 lt_cv_dlopen="LoadLibrary"
10726 lt_cv_dlopen_libs=
10727 ;;
10728
10729 cygwin*)
10730 lt_cv_dlopen="dlopen"
10731 lt_cv_dlopen_libs=
10732 ;;
10733
10734 darwin*)
10735 # if libdl is installed we need to link against it
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10738 if ${ac_cv_lib_dl_dlopen+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-ldl $LIBS"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char dlopen ();
10753 int
10754 main ()
10755 {
10756 return dlopen ();
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_lib_dl_dlopen=yes
10763 else
10764 ac_cv_lib_dl_dlopen=no
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 LIBS=$ac_check_lib_save_LIBS
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10772 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10774 else
10775
10776 lt_cv_dlopen="dyld"
10777 lt_cv_dlopen_libs=
10778 lt_cv_dlopen_self=yes
10779
10780 fi
10781
10782 ;;
10783
10784 *)
10785 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10786 if test "x$ac_cv_func_shl_load" = xyes; then :
10787 lt_cv_dlopen="shl_load"
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10790 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10791 if ${ac_cv_lib_dld_shl_load+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-ldld $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char shl_load ();
10806 int
10807 main ()
10808 {
10809 return shl_load ();
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_dld_shl_load=yes
10816 else
10817 ac_cv_lib_dld_shl_load=no
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10824 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10825 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10827 else
10828 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10829 if test "x$ac_cv_func_dlopen" = xyes; then :
10830 lt_cv_dlopen="dlopen"
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10834 if ${ac_cv_lib_dl_dlopen+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl $LIBS"
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char dlopen ();
10849 int
10850 main ()
10851 {
10852 return dlopen ();
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 ac_cv_lib_dl_dlopen=yes
10859 else
10860 ac_cv_lib_dl_dlopen=no
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10868 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10872 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10873 if ${ac_cv_lib_svld_dlopen+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lsvld $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10880
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 char dlopen ();
10888 int
10889 main ()
10890 {
10891 return dlopen ();
10892 ;
10893 return 0;
10894 }
10895 _ACEOF
10896 if ac_fn_c_try_link "$LINENO"; then :
10897 ac_cv_lib_svld_dlopen=yes
10898 else
10899 ac_cv_lib_svld_dlopen=no
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10904 fi
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10906 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10907 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10912 if ${ac_cv_lib_dld_dld_link+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-ldld $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char dld_link ();
10927 int
10928 main ()
10929 {
10930 return dld_link ();
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_dld_dld_link=yes
10937 else
10938 ac_cv_lib_dld_dld_link=no
10939 fi
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10946 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10947 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10948 fi
10949
10950
10951 fi
10952
10953
10954 fi
10955
10956
10957 fi
10958
10959
10960 fi
10961
10962
10963 fi
10964
10965 ;;
10966 esac
10967
10968 if test "x$lt_cv_dlopen" != xno; then
10969 enable_dlopen=yes
10970 else
10971 enable_dlopen=no
10972 fi
10973
10974 case $lt_cv_dlopen in
10975 dlopen)
10976 save_CPPFLAGS="$CPPFLAGS"
10977 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10978
10979 save_LDFLAGS="$LDFLAGS"
10980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10981
10982 save_LIBS="$LIBS"
10983 LIBS="$lt_cv_dlopen_libs $LIBS"
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10986 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10987 if ${lt_cv_dlopen_self+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test "$cross_compiling" = yes; then :
10991 lt_cv_dlopen_self=cross
10992 else
10993 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10994 lt_status=$lt_dlunknown
10995 cat > conftest.$ac_ext <<_LT_EOF
10996 #line $LINENO "configure"
10997 #include "confdefs.h"
10998
10999 #if HAVE_DLFCN_H
11000 #include <dlfcn.h>
11001 #endif
11002
11003 #include <stdio.h>
11004
11005 #ifdef RTLD_GLOBAL
11006 # define LT_DLGLOBAL RTLD_GLOBAL
11007 #else
11008 # ifdef DL_GLOBAL
11009 # define LT_DLGLOBAL DL_GLOBAL
11010 # else
11011 # define LT_DLGLOBAL 0
11012 # endif
11013 #endif
11014
11015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11016 find out it does not work in some platform. */
11017 #ifndef LT_DLLAZY_OR_NOW
11018 # ifdef RTLD_LAZY
11019 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11020 # else
11021 # ifdef DL_LAZY
11022 # define LT_DLLAZY_OR_NOW DL_LAZY
11023 # else
11024 # ifdef RTLD_NOW
11025 # define LT_DLLAZY_OR_NOW RTLD_NOW
11026 # else
11027 # ifdef DL_NOW
11028 # define LT_DLLAZY_OR_NOW DL_NOW
11029 # else
11030 # define LT_DLLAZY_OR_NOW 0
11031 # endif
11032 # endif
11033 # endif
11034 # endif
11035 #endif
11036
11037 /* When -fvisbility=hidden is used, assume the code has been annotated
11038 correspondingly for the symbols needed. */
11039 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11040 int fnord () __attribute__((visibility("default")));
11041 #endif
11042
11043 int fnord () { return 42; }
11044 int main ()
11045 {
11046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11047 int status = $lt_dlunknown;
11048
11049 if (self)
11050 {
11051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11052 else
11053 {
11054 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11055 else puts (dlerror ());
11056 }
11057 /* dlclose (self); */
11058 }
11059 else
11060 puts (dlerror ());
11061
11062 return status;
11063 }
11064 _LT_EOF
11065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11069 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11070 (./conftest; exit; ) >&5 2>/dev/null
11071 lt_status=$?
11072 case x$lt_status in
11073 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11074 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11075 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11076 esac
11077 else :
11078 # compilation failed
11079 lt_cv_dlopen_self=no
11080 fi
11081 fi
11082 rm -fr conftest*
11083
11084
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11087 $as_echo "$lt_cv_dlopen_self" >&6; }
11088
11089 if test "x$lt_cv_dlopen_self" = xyes; then
11090 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11092 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11093 if ${lt_cv_dlopen_self_static+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if test "$cross_compiling" = yes; then :
11097 lt_cv_dlopen_self_static=cross
11098 else
11099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11100 lt_status=$lt_dlunknown
11101 cat > conftest.$ac_ext <<_LT_EOF
11102 #line $LINENO "configure"
11103 #include "confdefs.h"
11104
11105 #if HAVE_DLFCN_H
11106 #include <dlfcn.h>
11107 #endif
11108
11109 #include <stdio.h>
11110
11111 #ifdef RTLD_GLOBAL
11112 # define LT_DLGLOBAL RTLD_GLOBAL
11113 #else
11114 # ifdef DL_GLOBAL
11115 # define LT_DLGLOBAL DL_GLOBAL
11116 # else
11117 # define LT_DLGLOBAL 0
11118 # endif
11119 #endif
11120
11121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11122 find out it does not work in some platform. */
11123 #ifndef LT_DLLAZY_OR_NOW
11124 # ifdef RTLD_LAZY
11125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11126 # else
11127 # ifdef DL_LAZY
11128 # define LT_DLLAZY_OR_NOW DL_LAZY
11129 # else
11130 # ifdef RTLD_NOW
11131 # define LT_DLLAZY_OR_NOW RTLD_NOW
11132 # else
11133 # ifdef DL_NOW
11134 # define LT_DLLAZY_OR_NOW DL_NOW
11135 # else
11136 # define LT_DLLAZY_OR_NOW 0
11137 # endif
11138 # endif
11139 # endif
11140 # endif
11141 #endif
11142
11143 /* When -fvisbility=hidden is used, assume the code has been annotated
11144 correspondingly for the symbols needed. */
11145 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11146 int fnord () __attribute__((visibility("default")));
11147 #endif
11148
11149 int fnord () { return 42; }
11150 int main ()
11151 {
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
11154
11155 if (self)
11156 {
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11158 else
11159 {
11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11161 else puts (dlerror ());
11162 }
11163 /* dlclose (self); */
11164 }
11165 else
11166 puts (dlerror ());
11167
11168 return status;
11169 }
11170 _LT_EOF
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11172 (eval $ac_link) 2>&5
11173 ac_status=$?
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11176 (./conftest; exit; ) >&5 2>/dev/null
11177 lt_status=$?
11178 case x$lt_status in
11179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11181 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11182 esac
11183 else :
11184 # compilation failed
11185 lt_cv_dlopen_self_static=no
11186 fi
11187 fi
11188 rm -fr conftest*
11189
11190
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11193 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11194 fi
11195
11196 CPPFLAGS="$save_CPPFLAGS"
11197 LDFLAGS="$save_LDFLAGS"
11198 LIBS="$save_LIBS"
11199 ;;
11200 esac
11201
11202 case $lt_cv_dlopen_self in
11203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11204 *) enable_dlopen_self=unknown ;;
11205 esac
11206
11207 case $lt_cv_dlopen_self_static in
11208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11209 *) enable_dlopen_self_static=unknown ;;
11210 esac
11211 fi
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 striplib=
11230 old_striplib=
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11232 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11233 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11234 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11235 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237 $as_echo "yes" >&6; }
11238 else
11239 # FIXME - insert some real tests, host_os isn't really good enough
11240 case $host_os in
11241 darwin*)
11242 if test -n "$STRIP" ; then
11243 striplib="$STRIP -x"
11244 old_striplib="$STRIP -S"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249 $as_echo "no" >&6; }
11250 fi
11251 ;;
11252 *)
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 ;;
11256 esac
11257 fi
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270 # Report which library types will actually be built
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11272 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11274 $as_echo "$can_build_shared" >&6; }
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11277 $as_echo_n "checking whether to build shared libraries... " >&6; }
11278 test "$can_build_shared" = "no" && enable_shared=no
11279
11280 # On AIX, shared libraries and static libraries use the same namespace, and
11281 # are all built from PIC.
11282 case $host_os in
11283 aix3*)
11284 test "$enable_shared" = yes && enable_static=no
11285 if test -n "$RANLIB"; then
11286 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11287 postinstall_cmds='$RANLIB $lib'
11288 fi
11289 ;;
11290
11291 aix[4-9]*)
11292 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11293 test "$enable_shared" = yes && enable_static=no
11294 fi
11295 ;;
11296 esac
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11298 $as_echo "$enable_shared" >&6; }
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11301 $as_echo_n "checking whether to build static libraries... " >&6; }
11302 # Make sure either enable_shared or enable_static is yes.
11303 test "$enable_shared" = yes || enable_static=yes
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11305 $as_echo "$enable_static" >&6; }
11306
11307
11308
11309
11310 fi
11311 ac_ext=c
11312 ac_cpp='$CPP $CPPFLAGS'
11313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316
11317 CC="$lt_save_CC"
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333 ac_config_commands="$ac_config_commands libtool"
11334
11335
11336
11337
11338 # Only expand once:
11339
11340
11341
11342 if test "$GCC" = yes
11343 then
11344 CFLAGS="-Wall $CFLAGS"
11345 fi
11346
11347 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
11348
11349
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11351 $as_echo_n "checking for ANSI C header files... " >&6; }
11352 if ${ac_cv_header_stdc+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #include <stdlib.h>
11358 #include <stdarg.h>
11359 #include <string.h>
11360 #include <float.h>
11361
11362 int
11363 main ()
11364 {
11365
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_compile "$LINENO"; then :
11371 ac_cv_header_stdc=yes
11372 else
11373 ac_cv_header_stdc=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376
11377 if test $ac_cv_header_stdc = yes; then
11378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 #include <string.h>
11382
11383 _ACEOF
11384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11385 $EGREP "memchr" >/dev/null 2>&1; then :
11386
11387 else
11388 ac_cv_header_stdc=no
11389 fi
11390 rm -f conftest*
11391
11392 fi
11393
11394 if test $ac_cv_header_stdc = yes; then
11395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398 #include <stdlib.h>
11399
11400 _ACEOF
11401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11402 $EGREP "free" >/dev/null 2>&1; then :
11403
11404 else
11405 ac_cv_header_stdc=no
11406 fi
11407 rm -f conftest*
11408
11409 fi
11410
11411 if test $ac_cv_header_stdc = yes; then
11412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11413 if test "$cross_compiling" = yes; then :
11414 :
11415 else
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418 #include <ctype.h>
11419 #include <stdlib.h>
11420 #if ((' ' & 0x0FF) == 0x020)
11421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11423 #else
11424 # define ISLOWER(c) \
11425 (('a' <= (c) && (c) <= 'i') \
11426 || ('j' <= (c) && (c) <= 'r') \
11427 || ('s' <= (c) && (c) <= 'z'))
11428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11429 #endif
11430
11431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11432 int
11433 main ()
11434 {
11435 int i;
11436 for (i = 0; i < 256; i++)
11437 if (XOR (islower (i), ISLOWER (i))
11438 || toupper (i) != TOUPPER (i))
11439 return 2;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_run "$LINENO"; then :
11444
11445 else
11446 ac_cv_header_stdc=no
11447 fi
11448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11449 conftest.$ac_objext conftest.beam conftest.$ac_ext
11450 fi
11451
11452 fi
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11455 $as_echo "$ac_cv_header_stdc" >&6; }
11456 if test $ac_cv_header_stdc = yes; then
11457
11458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11459
11460 fi
11461
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11464 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11465 if ${ac_cv_c_const+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470
11471 int
11472 main ()
11473 {
11474
11475 #ifndef __cplusplus
11476 /* Ultrix mips cc rejects this sort of thing. */
11477 typedef int charset[2];
11478 const charset cs = { 0, 0 };
11479 /* SunOS 4.1.1 cc rejects this. */
11480 char const *const *pcpcc;
11481 char **ppc;
11482 /* NEC SVR4.0.2 mips cc rejects this. */
11483 struct point {int x, y;};
11484 static struct point const zero = {0,0};
11485 /* AIX XL C 1.02.0.0 rejects this.
11486 It does not let you subtract one const X* pointer from another in
11487 an arm of an if-expression whose if-part is not a constant
11488 expression */
11489 const char *g = "string";
11490 pcpcc = &g + (g ? g-g : 0);
11491 /* HPUX 7.0 cc rejects these. */
11492 ++pcpcc;
11493 ppc = (char**) pcpcc;
11494 pcpcc = (char const *const *) ppc;
11495 { /* SCO 3.2v4 cc rejects this sort of thing. */
11496 char tx;
11497 char *t = &tx;
11498 char const *s = 0 ? (char *) 0 : (char const *) 0;
11499
11500 *t++ = 0;
11501 if (s) return 0;
11502 }
11503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11504 int x[] = {25, 17};
11505 const int *foo = &x[0];
11506 ++foo;
11507 }
11508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11509 typedef const int *iptr;
11510 iptr p = 0;
11511 ++p;
11512 }
11513 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11515 struct s { int j; const int *ap[3]; } bx;
11516 struct s *b = &bx; b->j = 5;
11517 }
11518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11519 const int foo = 10;
11520 if (!foo) return 0;
11521 }
11522 return !cs[0] && !zero.x;
11523 #endif
11524
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530 ac_cv_c_const=yes
11531 else
11532 ac_cv_c_const=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 fi
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11537 $as_echo "$ac_cv_c_const" >&6; }
11538 if test $ac_cv_c_const = no; then
11539
11540 $as_echo "#define const /**/" >>confdefs.h
11541
11542 fi
11543
11544 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11545 if test "x$ac_cv_type_size_t" = xyes; then :
11546
11547 else
11548
11549 cat >>confdefs.h <<_ACEOF
11550 #define size_t unsigned int
11551 _ACEOF
11552
11553 fi
11554
11555
11556
11557
11558 TESTPROGS=""
11559
11560 hmac_list=""
11561
11562 hashlibs=""
11563 if test -d ${srcdir}/../md5
11564 then
11565 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
11566 hmac_list="$hmac_list &hmac_md5,"
11567 hashlibs="$hashlibs ../md5/libmd5.la"
11568 fi
11569
11570 if test -d ${srcdir}/../sha1
11571 then
11572 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
11573 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
11574 hashlibs="$hashlibs ../sha1/libsha1.la"
11575 fi
11576
11577
11578 hmac_list="$hmac_list 0"
11579
11580
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define HMAC_LIST $hmac_list
11584 _ACEOF
11585
11586
11587 ac_config_files="$ac_config_files Makefile"
11588
11589 cat >confcache <<\_ACEOF
11590 # This file is a shell script that caches the results of configure
11591 # tests run on this system so they can be shared between configure
11592 # scripts and configure runs, see configure's option --config-cache.
11593 # It is not useful on other systems. If it contains results you don't
11594 # want to keep, you may remove or edit it.
11595 #
11596 # config.status only pays attention to the cache file if you give it
11597 # the --recheck option to rerun configure.
11598 #
11599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11601 # following values.
11602
11603 _ACEOF
11604
11605 # The following way of writing the cache mishandles newlines in values,
11606 # but we know of no workaround that is simple, portable, and efficient.
11607 # So, we kill variables containing newlines.
11608 # Ultrix sh set writes to stderr and can't be redirected directly,
11609 # and sets the high bit in the cache file unless we assign to the vars.
11610 (
11611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11612 eval ac_val=\$$ac_var
11613 case $ac_val in #(
11614 *${as_nl}*)
11615 case $ac_var in #(
11616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11618 esac
11619 case $ac_var in #(
11620 _ | IFS | as_nl) ;; #(
11621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11622 *) { eval $ac_var=; unset $ac_var;} ;;
11623 esac ;;
11624 esac
11625 done
11626
11627 (set) 2>&1 |
11628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11629 *${as_nl}ac_space=\ *)
11630 # `set' does not quote correctly, so add quotes: double-quote
11631 # substitution turns \\\\ into \\, and sed turns \\ into \.
11632 sed -n \
11633 "s/'/'\\\\''/g;
11634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11635 ;; #(
11636 *)
11637 # `set' quotes correctly as required by POSIX, so do not add quotes.
11638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11639 ;;
11640 esac |
11641 sort
11642 ) |
11643 sed '
11644 /^ac_cv_env_/b end
11645 t clear
11646 :clear
11647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11648 t end
11649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11650 :end' >>confcache
11651 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11652 if test -w "$cache_file"; then
11653 if test "x$cache_file" != "x/dev/null"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11655 $as_echo "$as_me: updating cache $cache_file" >&6;}
11656 if test ! -f "$cache_file" || test -h "$cache_file"; then
11657 cat confcache >"$cache_file"
11658 else
11659 case $cache_file in #(
11660 */* | ?:*)
11661 mv -f confcache "$cache_file"$$ &&
11662 mv -f "$cache_file"$$ "$cache_file" ;; #(
11663 *)
11664 mv -f confcache "$cache_file" ;;
11665 esac
11666 fi
11667 fi
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11671 fi
11672 fi
11673 rm -f confcache
11674
11675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11676 # Let make expand exec_prefix.
11677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11678
11679 DEFS=-DHAVE_CONFIG_H
11680
11681 ac_libobjs=
11682 ac_ltlibobjs=
11683 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11684 # 1. Remove the extension, and $U if already installed.
11685 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11686 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11687 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11688 # will be set to the directory where LIBOBJS objects are built.
11689 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11690 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11691 done
11692 LIBOBJS=$ac_libobjs
11693
11694 LTLIBOBJS=$ac_ltlibobjs
11695
11696
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11698 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11699 if test -n "$am_sleep_pid"; then
11700 # Hide warnings about reused PIDs.
11701 wait $am_sleep_pid 2>/dev/null
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11704 $as_echo "done" >&6; }
11705 if test -n "$EXEEXT"; then
11706 am__EXEEXT_TRUE=
11707 am__EXEEXT_FALSE='#'
11708 else
11709 am__EXEEXT_TRUE='#'
11710 am__EXEEXT_FALSE=
11711 fi
11712
11713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11714 as_fn_error $? "conditional \"AMDEP\" was never defined.
11715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11716 fi
11717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11718 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11720 fi
11721
11722 : "${CONFIG_STATUS=./config.status}"
11723 ac_write_fail=0
11724 ac_clean_files_save=$ac_clean_files
11725 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11727 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11728 as_write_fail=0
11729 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11730 #! $SHELL
11731 # Generated by $as_me.
11732 # Run this file to recreate the current configuration.
11733 # Compiler output produced by configure, useful for debugging
11734 # configure, is in config.log if it exists.
11735
11736 debug=false
11737 ac_cs_recheck=false
11738 ac_cs_silent=false
11739
11740 SHELL=\${CONFIG_SHELL-$SHELL}
11741 export SHELL
11742 _ASEOF
11743 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11744 ## -------------------- ##
11745 ## M4sh Initialization. ##
11746 ## -------------------- ##
11747
11748 # Be more Bourne compatible
11749 DUALCASE=1; export DUALCASE # for MKS sh
11750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11751 emulate sh
11752 NULLCMD=:
11753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11754 # is contrary to our usage. Disable this feature.
11755 alias -g '${1+"$@"}'='"$@"'
11756 setopt NO_GLOB_SUBST
11757 else
11758 case `(set -o) 2>/dev/null` in #(
11759 *posix*) :
11760 set -o posix ;; #(
11761 *) :
11762 ;;
11763 esac
11764 fi
11765
11766
11767 as_nl='
11768 '
11769 export as_nl
11770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11774 # Prefer a ksh shell builtin over an external printf program on Solaris,
11775 # but without wasting forks for bash or zsh.
11776 if test -z "$BASH_VERSION$ZSH_VERSION" \
11777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11778 as_echo='print -r --'
11779 as_echo_n='print -rn --'
11780 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11781 as_echo='printf %s\n'
11782 as_echo_n='printf %s'
11783 else
11784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11786 as_echo_n='/usr/ucb/echo -n'
11787 else
11788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11789 as_echo_n_body='eval
11790 arg=$1;
11791 case $arg in #(
11792 *"$as_nl"*)
11793 expr "X$arg" : "X\\(.*\\)$as_nl";
11794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11795 esac;
11796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11797 '
11798 export as_echo_n_body
11799 as_echo_n='sh -c $as_echo_n_body as_echo'
11800 fi
11801 export as_echo_body
11802 as_echo='sh -c $as_echo_body as_echo'
11803 fi
11804
11805 # The user is always right.
11806 if test "${PATH_SEPARATOR+set}" != set; then
11807 PATH_SEPARATOR=:
11808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11810 PATH_SEPARATOR=';'
11811 }
11812 fi
11813
11814
11815 # IFS
11816 # We need space, tab and new line, in precisely that order. Quoting is
11817 # there to prevent editors from complaining about space-tab.
11818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11819 # splitting by setting IFS to empty value.)
11820 IFS=" "" $as_nl"
11821
11822 # Find who we are. Look in the path if we contain no directory separator.
11823 as_myself=
11824 case $0 in #((
11825 *[\\/]* ) as_myself=$0 ;;
11826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11828 do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11832 done
11833 IFS=$as_save_IFS
11834
11835 ;;
11836 esac
11837 # We did not find ourselves, most probably we were run as `sh COMMAND'
11838 # in which case we are not to be found in the path.
11839 if test "x$as_myself" = x; then
11840 as_myself=$0
11841 fi
11842 if test ! -f "$as_myself"; then
11843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11844 exit 1
11845 fi
11846
11847 # Unset variables that we do not need and which cause bugs (e.g. in
11848 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11849 # suppresses any "Segmentation fault" message there. '((' could
11850 # trigger a bug in pdksh 5.2.14.
11851 for as_var in BASH_ENV ENV MAIL MAILPATH
11852 do eval test x\${$as_var+set} = xset \
11853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11854 done
11855 PS1='$ '
11856 PS2='> '
11857 PS4='+ '
11858
11859 # NLS nuisances.
11860 LC_ALL=C
11861 export LC_ALL
11862 LANGUAGE=C
11863 export LANGUAGE
11864
11865 # CDPATH.
11866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11867
11868
11869 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11870 # ----------------------------------------
11871 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11872 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11873 # script with STATUS, using 1 if that was 0.
11874 as_fn_error ()
11875 {
11876 as_status=$1; test $as_status -eq 0 && as_status=1
11877 if test "$4"; then
11878 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11879 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11880 fi
11881 $as_echo "$as_me: error: $2" >&2
11882 as_fn_exit $as_status
11883 } # as_fn_error
11884
11885
11886 # as_fn_set_status STATUS
11887 # -----------------------
11888 # Set $? to STATUS, without forking.
11889 as_fn_set_status ()
11890 {
11891 return $1
11892 } # as_fn_set_status
11893
11894 # as_fn_exit STATUS
11895 # -----------------
11896 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11897 as_fn_exit ()
11898 {
11899 set +e
11900 as_fn_set_status $1
11901 exit $1
11902 } # as_fn_exit
11903
11904 # as_fn_unset VAR
11905 # ---------------
11906 # Portably unset VAR.
11907 as_fn_unset ()
11908 {
11909 { eval $1=; unset $1;}
11910 }
11911 as_unset=as_fn_unset
11912 # as_fn_append VAR VALUE
11913 # ----------------------
11914 # Append the text in VALUE to the end of the definition contained in VAR. Take
11915 # advantage of any shell optimizations that allow amortized linear growth over
11916 # repeated appends, instead of the typical quadratic growth present in naive
11917 # implementations.
11918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11919 eval 'as_fn_append ()
11920 {
11921 eval $1+=\$2
11922 }'
11923 else
11924 as_fn_append ()
11925 {
11926 eval $1=\$$1\$2
11927 }
11928 fi # as_fn_append
11929
11930 # as_fn_arith ARG...
11931 # ------------------
11932 # Perform arithmetic evaluation on the ARGs, and store the result in the
11933 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11934 # must be portable across $(()) and expr.
11935 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11936 eval 'as_fn_arith ()
11937 {
11938 as_val=$(( $* ))
11939 }'
11940 else
11941 as_fn_arith ()
11942 {
11943 as_val=`expr "$@" || test $? -eq 1`
11944 }
11945 fi # as_fn_arith
11946
11947
11948 if expr a : '\(a\)' >/dev/null 2>&1 &&
11949 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11950 as_expr=expr
11951 else
11952 as_expr=false
11953 fi
11954
11955 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11956 as_basename=basename
11957 else
11958 as_basename=false
11959 fi
11960
11961 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11962 as_dirname=dirname
11963 else
11964 as_dirname=false
11965 fi
11966
11967 as_me=`$as_basename -- "$0" ||
11968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11969 X"$0" : 'X\(//\)$' \| \
11970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11971 $as_echo X/"$0" |
11972 sed '/^.*\/\([^/][^/]*\)\/*$/{
11973 s//\1/
11974 q
11975 }
11976 /^X\/\(\/\/\)$/{
11977 s//\1/
11978 q
11979 }
11980 /^X\/\(\/\).*/{
11981 s//\1/
11982 q
11983 }
11984 s/.*/./; q'`
11985
11986 # Avoid depending upon Character Ranges.
11987 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11988 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11989 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11990 as_cr_digits='0123456789'
11991 as_cr_alnum=$as_cr_Letters$as_cr_digits
11992
11993 ECHO_C= ECHO_N= ECHO_T=
11994 case `echo -n x` in #(((((
11995 -n*)
11996 case `echo 'xy\c'` in
11997 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11998 xy) ECHO_C='\c';;
11999 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12000 ECHO_T=' ';;
12001 esac;;
12002 *)
12003 ECHO_N='-n';;
12004 esac
12005
12006 rm -f conf$$ conf$$.exe conf$$.file
12007 if test -d conf$$.dir; then
12008 rm -f conf$$.dir/conf$$.file
12009 else
12010 rm -f conf$$.dir
12011 mkdir conf$$.dir 2>/dev/null
12012 fi
12013 if (echo >conf$$.file) 2>/dev/null; then
12014 if ln -s conf$$.file conf$$ 2>/dev/null; then
12015 as_ln_s='ln -s'
12016 # ... but there are two gotchas:
12017 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12018 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12019 # In both cases, we have to default to `cp -pR'.
12020 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12021 as_ln_s='cp -pR'
12022 elif ln conf$$.file conf$$ 2>/dev/null; then
12023 as_ln_s=ln
12024 else
12025 as_ln_s='cp -pR'
12026 fi
12027 else
12028 as_ln_s='cp -pR'
12029 fi
12030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12031 rmdir conf$$.dir 2>/dev/null
12032
12033
12034 # as_fn_mkdir_p
12035 # -------------
12036 # Create "$as_dir" as a directory, including parents if necessary.
12037 as_fn_mkdir_p ()
12038 {
12039
12040 case $as_dir in #(
12041 -*) as_dir=./$as_dir;;
12042 esac
12043 test -d "$as_dir" || eval $as_mkdir_p || {
12044 as_dirs=
12045 while :; do
12046 case $as_dir in #(
12047 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12048 *) as_qdir=$as_dir;;
12049 esac
12050 as_dirs="'$as_qdir' $as_dirs"
12051 as_dir=`$as_dirname -- "$as_dir" ||
12052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12053 X"$as_dir" : 'X\(//\)[^/]' \| \
12054 X"$as_dir" : 'X\(//\)$' \| \
12055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12056 $as_echo X"$as_dir" |
12057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12058 s//\1/
12059 q
12060 }
12061 /^X\(\/\/\)[^/].*/{
12062 s//\1/
12063 q
12064 }
12065 /^X\(\/\/\)$/{
12066 s//\1/
12067 q
12068 }
12069 /^X\(\/\).*/{
12070 s//\1/
12071 q
12072 }
12073 s/.*/./; q'`
12074 test -d "$as_dir" && break
12075 done
12076 test -z "$as_dirs" || eval "mkdir $as_dirs"
12077 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12078
12079
12080 } # as_fn_mkdir_p
12081 if mkdir -p . 2>/dev/null; then
12082 as_mkdir_p='mkdir -p "$as_dir"'
12083 else
12084 test -d ./-p && rmdir ./-p
12085 as_mkdir_p=false
12086 fi
12087
12088
12089 # as_fn_executable_p FILE
12090 # -----------------------
12091 # Test if FILE is an executable regular file.
12092 as_fn_executable_p ()
12093 {
12094 test -f "$1" && test -x "$1"
12095 } # as_fn_executable_p
12096 as_test_x='test -x'
12097 as_executable_p=as_fn_executable_p
12098
12099 # Sed expression to map a string onto a valid CPP name.
12100 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12101
12102 # Sed expression to map a string onto a valid variable name.
12103 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12104
12105
12106 exec 6>&1
12107 ## ----------------------------------- ##
12108 ## Main body of $CONFIG_STATUS script. ##
12109 ## ----------------------------------- ##
12110 _ASEOF
12111 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12112
12113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114 # Save the log message, to keep $0 and so on meaningful, and to
12115 # report actual input values of CONFIG_FILES etc. instead of their
12116 # values after options handling.
12117 ac_log="
12118 This file was extended by libhmac $as_me 1.00, which was
12119 generated by GNU Autoconf 2.69. Invocation command line was
12120
12121 CONFIG_FILES = $CONFIG_FILES
12122 CONFIG_HEADERS = $CONFIG_HEADERS
12123 CONFIG_LINKS = $CONFIG_LINKS
12124 CONFIG_COMMANDS = $CONFIG_COMMANDS
12125 $ $0 $@
12126
12127 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12128 "
12129
12130 _ACEOF
12131
12132 case $ac_config_files in *"
12133 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12134 esac
12135
12136 case $ac_config_headers in *"
12137 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12138 esac
12139
12140
12141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142 # Files that config.status was made for.
12143 config_files="$ac_config_files"
12144 config_headers="$ac_config_headers"
12145 config_commands="$ac_config_commands"
12146
12147 _ACEOF
12148
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150 ac_cs_usage="\
12151 \`$as_me' instantiates files and other configuration actions
12152 from templates according to the current configuration. Unless the files
12153 and actions are specified as TAGs, all are instantiated by default.
12154
12155 Usage: $0 [OPTION]... [TAG]...
12156
12157 -h, --help print this help, then exit
12158 -V, --version print version number and configuration settings, then exit
12159 --config print configuration, then exit
12160 -q, --quiet, --silent
12161 do not print progress messages
12162 -d, --debug don't remove temporary files
12163 --recheck update $as_me by reconfiguring in the same conditions
12164 --file=FILE[:TEMPLATE]
12165 instantiate the configuration file FILE
12166 --header=FILE[:TEMPLATE]
12167 instantiate the configuration header FILE
12168
12169 Configuration files:
12170 $config_files
12171
12172 Configuration headers:
12173 $config_headers
12174
12175 Configuration commands:
12176 $config_commands
12177
12178 Report bugs to <courier-users@lists.sourceforge.net>."
12179
12180 _ACEOF
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12182 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12183 ac_cs_version="\\
12184 libhmac config.status 1.00
12185 configured by $0, generated by GNU Autoconf 2.69,
12186 with options \\"\$ac_cs_config\\"
12187
12188 Copyright (C) 2012 Free Software Foundation, Inc.
12189 This config.status script is free software; the Free Software Foundation
12190 gives unlimited permission to copy, distribute and modify it."
12191
12192 ac_pwd='$ac_pwd'
12193 srcdir='$srcdir'
12194 INSTALL='$INSTALL'
12195 MKDIR_P='$MKDIR_P'
12196 AWK='$AWK'
12197 test -n "\$AWK" || AWK=awk
12198 _ACEOF
12199
12200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201 # The default lists apply if the user does not specify any file.
12202 ac_need_defaults=:
12203 while test $# != 0
12204 do
12205 case $1 in
12206 --*=?*)
12207 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12208 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12209 ac_shift=:
12210 ;;
12211 --*=)
12212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12213 ac_optarg=
12214 ac_shift=:
12215 ;;
12216 *)
12217 ac_option=$1
12218 ac_optarg=$2
12219 ac_shift=shift
12220 ;;
12221 esac
12222
12223 case $ac_option in
12224 # Handling of the options.
12225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12226 ac_cs_recheck=: ;;
12227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12228 $as_echo "$ac_cs_version"; exit ;;
12229 --config | --confi | --conf | --con | --co | --c )
12230 $as_echo "$ac_cs_config"; exit ;;
12231 --debug | --debu | --deb | --de | --d | -d )
12232 debug=: ;;
12233 --file | --fil | --fi | --f )
12234 $ac_shift
12235 case $ac_optarg in
12236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12237 '') as_fn_error $? "missing file argument" ;;
12238 esac
12239 as_fn_append CONFIG_FILES " '$ac_optarg'"
12240 ac_need_defaults=false;;
12241 --header | --heade | --head | --hea )
12242 $ac_shift
12243 case $ac_optarg in
12244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12245 esac
12246 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12247 ac_need_defaults=false;;
12248 --he | --h)
12249 # Conflict between --help and --header
12250 as_fn_error $? "ambiguous option: \`$1'
12251 Try \`$0 --help' for more information.";;
12252 --help | --hel | -h )
12253 $as_echo "$ac_cs_usage"; exit ;;
12254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12255 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12256 ac_cs_silent=: ;;
12257
12258 # This is an error.
12259 -*) as_fn_error $? "unrecognized option: \`$1'
12260 Try \`$0 --help' for more information." ;;
12261
12262 *) as_fn_append ac_config_targets " $1"
12263 ac_need_defaults=false ;;
12264
12265 esac
12266 shift
12267 done
12268
12269 ac_configure_extra_args=
12270
12271 if $ac_cs_silent; then
12272 exec 6>/dev/null
12273 ac_configure_extra_args="$ac_configure_extra_args --silent"
12274 fi
12275
12276 _ACEOF
12277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12278 if \$ac_cs_recheck; then
12279 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12280 shift
12281 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12282 CONFIG_SHELL='$SHELL'
12283 export CONFIG_SHELL
12284 exec "\$@"
12285 fi
12286
12287 _ACEOF
12288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289 exec 5>>config.log
12290 {
12291 echo
12292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12293 ## Running $as_me. ##
12294 _ASBOX
12295 $as_echo "$ac_log"
12296 } >&5
12297
12298 _ACEOF
12299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12300 #
12301 # INIT-COMMANDS
12302 #
12303 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12304
12305
12306 # The HP-UX ksh and POSIX shell print the target directory to stdout
12307 # if CDPATH is set.
12308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12309
12310 sed_quote_subst='$sed_quote_subst'
12311 double_quote_subst='$double_quote_subst'
12312 delay_variable_subst='$delay_variable_subst'
12313 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12314 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12315 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12316 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12317 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12318 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12319 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12320 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12321 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12322 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12323 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12324 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12325 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12326 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12327 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12328 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12329 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12330 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12331 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12332 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12333 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12334 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12335 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12336 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12337 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12338 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12339 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12340 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12341 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12342 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12343 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12344 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12345 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12346 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12347 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12348 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12349 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12350 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12351 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12352 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12353 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12354 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12355 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12356 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12357 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12358 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12359 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12360 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12361 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12362 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12363 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12364 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12365 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12366 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12367 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12368 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12369 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"`'
12370 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12371 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12372 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12373 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12374 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12375 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12376 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12377 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12378 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12379 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12380 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12381 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12382 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12383 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12384 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12385 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12386 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12387 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12388 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12389 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12390 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12391 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12392 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12393 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12394 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12395 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12396 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12397 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12398 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12399 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12400 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12401 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12402 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12403 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12404 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12405 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12406 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12407 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12408 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12409 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12410 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12411 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12412 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12413 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12414 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12415 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12416 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12417 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12418 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12419 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12420 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12421 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12422 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12423 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12424 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12425 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12426 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12427 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12428 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12429 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12430 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12431 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12432 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12433 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12434 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12435 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12436 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12437 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12438 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12439 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12440 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12441 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12442 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12443
12444 LTCC='$LTCC'
12445 LTCFLAGS='$LTCFLAGS'
12446 compiler='$compiler_DEFAULT'
12447
12448 # A function that is used when there is no print builtin or printf.
12449 func_fallback_echo ()
12450 {
12451 eval 'cat <<_LTECHO_EOF
12452 \$1
12453 _LTECHO_EOF'
12454 }
12455
12456 # Quote evaled strings.
12457 for var in SHELL \
12458 ECHO \
12459 PATH_SEPARATOR \
12460 SED \
12461 GREP \
12462 EGREP \
12463 FGREP \
12464 LD \
12465 NM \
12466 LN_S \
12467 lt_SP2NL \
12468 lt_NL2SP \
12469 reload_flag \
12470 OBJDUMP \
12471 deplibs_check_method \
12472 file_magic_cmd \
12473 file_magic_glob \
12474 want_nocaseglob \
12475 DLLTOOL \
12476 sharedlib_from_linklib_cmd \
12477 AR \
12478 AR_FLAGS \
12479 archiver_list_spec \
12480 STRIP \
12481 RANLIB \
12482 CC \
12483 CFLAGS \
12484 compiler \
12485 lt_cv_sys_global_symbol_pipe \
12486 lt_cv_sys_global_symbol_to_cdecl \
12487 lt_cv_sys_global_symbol_to_c_name_address \
12488 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12489 nm_file_list_spec \
12490 lt_prog_compiler_no_builtin_flag \
12491 lt_prog_compiler_pic \
12492 lt_prog_compiler_wl \
12493 lt_prog_compiler_static \
12494 lt_cv_prog_compiler_c_o \
12495 need_locks \
12496 MANIFEST_TOOL \
12497 DSYMUTIL \
12498 NMEDIT \
12499 LIPO \
12500 OTOOL \
12501 OTOOL64 \
12502 shrext_cmds \
12503 export_dynamic_flag_spec \
12504 whole_archive_flag_spec \
12505 compiler_needs_object \
12506 with_gnu_ld \
12507 allow_undefined_flag \
12508 no_undefined_flag \
12509 hardcode_libdir_flag_spec \
12510 hardcode_libdir_separator \
12511 exclude_expsyms \
12512 include_expsyms \
12513 file_list_spec \
12514 variables_saved_for_relink \
12515 libname_spec \
12516 library_names_spec \
12517 soname_spec \
12518 install_override_mode \
12519 finish_eval \
12520 old_striplib \
12521 striplib; do
12522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12523 *[\\\\\\\`\\"\\\$]*)
12524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12525 ;;
12526 *)
12527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12528 ;;
12529 esac
12530 done
12531
12532 # Double-quote double-evaled strings.
12533 for var in reload_cmds \
12534 old_postinstall_cmds \
12535 old_postuninstall_cmds \
12536 old_archive_cmds \
12537 extract_expsyms_cmds \
12538 old_archive_from_new_cmds \
12539 old_archive_from_expsyms_cmds \
12540 archive_cmds \
12541 archive_expsym_cmds \
12542 module_cmds \
12543 module_expsym_cmds \
12544 export_symbols_cmds \
12545 prelink_cmds \
12546 postlink_cmds \
12547 postinstall_cmds \
12548 postuninstall_cmds \
12549 finish_cmds \
12550 sys_lib_search_path_spec \
12551 sys_lib_dlsearch_path_spec; do
12552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12553 *[\\\\\\\`\\"\\\$]*)
12554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12555 ;;
12556 *)
12557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12558 ;;
12559 esac
12560 done
12561
12562 ac_aux_dir='$ac_aux_dir'
12563 xsi_shell='$xsi_shell'
12564 lt_shell_append='$lt_shell_append'
12565
12566 # See if we are running on zsh, and set the options which allow our
12567 # commands through without removal of \ escapes INIT.
12568 if test -n "\${ZSH_VERSION+set}" ; then
12569 setopt NO_GLOB_SUBST
12570 fi
12571
12572
12573 PACKAGE='$PACKAGE'
12574 VERSION='$VERSION'
12575 TIMESTAMP='$TIMESTAMP'
12576 RM='$RM'
12577 ofile='$ofile'
12578
12579
12580
12581
12582 _ACEOF
12583
12584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12585
12586 # Handling of arguments.
12587 for ac_config_target in $ac_config_targets
12588 do
12589 case $ac_config_target in
12590 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12594
12595 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12596 esac
12597 done
12598
12599
12600 # If the user did not use the arguments to specify the items to instantiate,
12601 # then the envvar interface is used. Set only those that are not.
12602 # We use the long form for the default assignment because of an extremely
12603 # bizarre bug on SunOS 4.1.3.
12604 if $ac_need_defaults; then
12605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12608 fi
12609
12610 # Have a temporary directory for convenience. Make it in the build tree
12611 # simply because there is no reason against having it here, and in addition,
12612 # creating and moving files from /tmp can sometimes cause problems.
12613 # Hook for its removal unless debugging.
12614 # Note that there is a small window in which the directory will not be cleaned:
12615 # after its creation but before its name has been assigned to `$tmp'.
12616 $debug ||
12617 {
12618 tmp= ac_tmp=
12619 trap 'exit_status=$?
12620 : "${ac_tmp:=$tmp}"
12621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12622 ' 0
12623 trap 'as_fn_exit 1' 1 2 13 15
12624 }
12625 # Create a (secure) tmp directory for tmp files.
12626
12627 {
12628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12629 test -d "$tmp"
12630 } ||
12631 {
12632 tmp=./conf$$-$RANDOM
12633 (umask 077 && mkdir "$tmp")
12634 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12635 ac_tmp=$tmp
12636
12637 # Set up the scripts for CONFIG_FILES section.
12638 # No need to generate them if there are no CONFIG_FILES.
12639 # This happens for instance with `./config.status config.h'.
12640 if test -n "$CONFIG_FILES"; then
12641
12642
12643 ac_cr=`echo X | tr X '\015'`
12644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12645 # But we know of no other shell where ac_cr would be empty at this
12646 # point, so we can use a bashism as a fallback.
12647 if test "x$ac_cr" = x; then
12648 eval ac_cr=\$\'\\r\'
12649 fi
12650 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12652 ac_cs_awk_cr='\\r'
12653 else
12654 ac_cs_awk_cr=$ac_cr
12655 fi
12656
12657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12658 _ACEOF
12659
12660
12661 {
12662 echo "cat >conf$$subs.awk <<_ACEOF" &&
12663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12664 echo "_ACEOF"
12665 } >conf$$subs.sh ||
12666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12668 ac_delim='%!_!# '
12669 for ac_last_try in false false false false false :; do
12670 . ./conf$$subs.sh ||
12671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12672
12673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12674 if test $ac_delim_n = $ac_delim_num; then
12675 break
12676 elif $ac_last_try; then
12677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12678 else
12679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12680 fi
12681 done
12682 rm -f conf$$subs.sh
12683
12684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12685 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12686 _ACEOF
12687 sed -n '
12688 h
12689 s/^/S["/; s/!.*/"]=/
12690 p
12691 g
12692 s/^[^!]*!//
12693 :repl
12694 t repl
12695 s/'"$ac_delim"'$//
12696 t delim
12697 :nl
12698 h
12699 s/\(.\{148\}\)..*/\1/
12700 t more1
12701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12702 p
12703 n
12704 b repl
12705 :more1
12706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12707 p
12708 g
12709 s/.\{148\}//
12710 t nl
12711 :delim
12712 h
12713 s/\(.\{148\}\)..*/\1/
12714 t more2
12715 s/["\\]/\\&/g; s/^/"/; s/$/"/
12716 p
12717 b
12718 :more2
12719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12720 p
12721 g
12722 s/.\{148\}//
12723 t delim
12724 ' <conf$$subs.awk | sed '
12725 /^[^""]/{
12726 N
12727 s/\n//
12728 }
12729 ' >>$CONFIG_STATUS || ac_write_fail=1
12730 rm -f conf$$subs.awk
12731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12732 _ACAWK
12733 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12734 for (key in S) S_is_set[key] = 1
12735 FS = "\a"
12736
12737 }
12738 {
12739 line = $ 0
12740 nfields = split(line, field, "@")
12741 substed = 0
12742 len = length(field[1])
12743 for (i = 2; i < nfields; i++) {
12744 key = field[i]
12745 keylen = length(key)
12746 if (S_is_set[key]) {
12747 value = S[key]
12748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12749 len += length(value) + length(field[++i])
12750 substed = 1
12751 } else
12752 len += 1 + keylen
12753 }
12754
12755 print line
12756 }
12757
12758 _ACAWK
12759 _ACEOF
12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12762 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12763 else
12764 cat
12765 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12766 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12767 _ACEOF
12768
12769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12771 # trailing colons and then remove the whole line if VPATH becomes empty
12772 # (actually we leave an empty line to preserve line numbers).
12773 if test "x$srcdir" = x.; then
12774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12775 h
12776 s///
12777 s/^/:/
12778 s/[ ]*$/:/
12779 s/:\$(srcdir):/:/g
12780 s/:\${srcdir}:/:/g
12781 s/:@srcdir@:/:/g
12782 s/^:*//
12783 s/:*$//
12784 x
12785 s/\(=[ ]*\).*/\1/
12786 G
12787 s/\n//
12788 s/^[^=]*=[ ]*$//
12789 }'
12790 fi
12791
12792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793 fi # test -n "$CONFIG_FILES"
12794
12795 # Set up the scripts for CONFIG_HEADERS section.
12796 # No need to generate them if there are no CONFIG_HEADERS.
12797 # This happens for instance with `./config.status Makefile'.
12798 if test -n "$CONFIG_HEADERS"; then
12799 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12800 BEGIN {
12801 _ACEOF
12802
12803 # Transform confdefs.h into an awk script `defines.awk', embedded as
12804 # here-document in config.status, that substitutes the proper values into
12805 # config.h.in to produce config.h.
12806
12807 # Create a delimiter string that does not exist in confdefs.h, to ease
12808 # handling of long lines.
12809 ac_delim='%!_!# '
12810 for ac_last_try in false false :; do
12811 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12812 if test -z "$ac_tt"; then
12813 break
12814 elif $ac_last_try; then
12815 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12816 else
12817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12818 fi
12819 done
12820
12821 # For the awk script, D is an array of macro values keyed by name,
12822 # likewise P contains macro parameters if any. Preserve backslash
12823 # newline sequences.
12824
12825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12826 sed -n '
12827 s/.\{148\}/&'"$ac_delim"'/g
12828 t rset
12829 :rset
12830 s/^[ ]*#[ ]*define[ ][ ]*/ /
12831 t def
12832 d
12833 :def
12834 s/\\$//
12835 t bsnl
12836 s/["\\]/\\&/g
12837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12838 D["\1"]=" \3"/p
12839 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12840 d
12841 :bsnl
12842 s/["\\]/\\&/g
12843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12844 D["\1"]=" \3\\\\\\n"\\/p
12845 t cont
12846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12847 t cont
12848 d
12849 :cont
12850 n
12851 s/.\{148\}/&'"$ac_delim"'/g
12852 t clear
12853 :clear
12854 s/\\$//
12855 t bsnlc
12856 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12857 d
12858 :bsnlc
12859 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12860 b cont
12861 ' <confdefs.h | sed '
12862 s/'"$ac_delim"'/"\\\
12863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12864
12865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12866 for (key in D) D_is_set[key] = 1
12867 FS = "\a"
12868 }
12869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12870 line = \$ 0
12871 split(line, arg, " ")
12872 if (arg[1] == "#") {
12873 defundef = arg[2]
12874 mac1 = arg[3]
12875 } else {
12876 defundef = substr(arg[1], 2)
12877 mac1 = arg[2]
12878 }
12879 split(mac1, mac2, "(") #)
12880 macro = mac2[1]
12881 prefix = substr(line, 1, index(line, defundef) - 1)
12882 if (D_is_set[macro]) {
12883 # Preserve the white space surrounding the "#".
12884 print prefix "define", macro P[macro] D[macro]
12885 next
12886 } else {
12887 # Replace #undef with comments. This is necessary, for example,
12888 # in the case of _POSIX_SOURCE, which is predefined and required
12889 # on some systems where configure will not decide to define it.
12890 if (defundef == "undef") {
12891 print "/*", prefix defundef, macro, "*/"
12892 next
12893 }
12894 }
12895 }
12896 { print }
12897 _ACAWK
12898 _ACEOF
12899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12900 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12901 fi # test -n "$CONFIG_HEADERS"
12902
12903
12904 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12905 shift
12906 for ac_tag
12907 do
12908 case $ac_tag in
12909 :[FHLC]) ac_mode=$ac_tag; continue;;
12910 esac
12911 case $ac_mode$ac_tag in
12912 :[FHL]*:*);;
12913 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12914 :[FH]-) ac_tag=-:-;;
12915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12916 esac
12917 ac_save_IFS=$IFS
12918 IFS=:
12919 set x $ac_tag
12920 IFS=$ac_save_IFS
12921 shift
12922 ac_file=$1
12923 shift
12924
12925 case $ac_mode in
12926 :L) ac_source=$1;;
12927 :[FH])
12928 ac_file_inputs=
12929 for ac_f
12930 do
12931 case $ac_f in
12932 -) ac_f="$ac_tmp/stdin";;
12933 *) # Look for the file first in the build tree, then in the source tree
12934 # (if the path is not absolute). The absolute path cannot be DOS-style,
12935 # because $ac_f cannot contain `:'.
12936 test -f "$ac_f" ||
12937 case $ac_f in
12938 [\\/$]*) false;;
12939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12940 esac ||
12941 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12942 esac
12943 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12944 as_fn_append ac_file_inputs " '$ac_f'"
12945 done
12946
12947 # Let's still pretend it is `configure' which instantiates (i.e., don't
12948 # use $as_me), people would be surprised to read:
12949 # /* config.h. Generated by config.status. */
12950 configure_input='Generated from '`
12951 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12952 `' by configure.'
12953 if test x"$ac_file" != x-; then
12954 configure_input="$ac_file. $configure_input"
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12956 $as_echo "$as_me: creating $ac_file" >&6;}
12957 fi
12958 # Neutralize special characters interpreted by sed in replacement strings.
12959 case $configure_input in #(
12960 *\&* | *\|* | *\\* )
12961 ac_sed_conf_input=`$as_echo "$configure_input" |
12962 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12963 *) ac_sed_conf_input=$configure_input;;
12964 esac
12965
12966 case $ac_tag in
12967 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12969 esac
12970 ;;
12971 esac
12972
12973 ac_dir=`$as_dirname -- "$ac_file" ||
12974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12975 X"$ac_file" : 'X\(//\)[^/]' \| \
12976 X"$ac_file" : 'X\(//\)$' \| \
12977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12978 $as_echo X"$ac_file" |
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12980 s//\1/
12981 q
12982 }
12983 /^X\(\/\/\)[^/].*/{
12984 s//\1/
12985 q
12986 }
12987 /^X\(\/\/\)$/{
12988 s//\1/
12989 q
12990 }
12991 /^X\(\/\).*/{
12992 s//\1/
12993 q
12994 }
12995 s/.*/./; q'`
12996 as_dir="$ac_dir"; as_fn_mkdir_p
12997 ac_builddir=.
12998
12999 case "$ac_dir" in
13000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13001 *)
13002 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13003 # A ".." for each directory in $ac_dir_suffix.
13004 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13005 case $ac_top_builddir_sub in
13006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13008 esac ;;
13009 esac
13010 ac_abs_top_builddir=$ac_pwd
13011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13012 # for backward compatibility:
13013 ac_top_builddir=$ac_top_build_prefix
13014
13015 case $srcdir in
13016 .) # We are building in place.
13017 ac_srcdir=.
13018 ac_top_srcdir=$ac_top_builddir_sub
13019 ac_abs_top_srcdir=$ac_pwd ;;
13020 [\\/]* | ?:[\\/]* ) # Absolute name.
13021 ac_srcdir=$srcdir$ac_dir_suffix;
13022 ac_top_srcdir=$srcdir
13023 ac_abs_top_srcdir=$srcdir ;;
13024 *) # Relative name.
13025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13026 ac_top_srcdir=$ac_top_build_prefix$srcdir
13027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13028 esac
13029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13030
13031
13032 case $ac_mode in
13033 :F)
13034 #
13035 # CONFIG_FILE
13036 #
13037
13038 case $INSTALL in
13039 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13040 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13041 esac
13042 ac_MKDIR_P=$MKDIR_P
13043 case $MKDIR_P in
13044 [\\/$]* | ?:[\\/]* ) ;;
13045 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13046 esac
13047 _ACEOF
13048
13049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13050 # If the template does not know about datarootdir, expand it.
13051 # FIXME: This hack should be removed a few years after 2.60.
13052 ac_datarootdir_hack=; ac_datarootdir_seen=
13053 ac_sed_dataroot='
13054 /datarootdir/ {
13055 p
13056 q
13057 }
13058 /@datadir@/p
13059 /@docdir@/p
13060 /@infodir@/p
13061 /@localedir@/p
13062 /@mandir@/p'
13063 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13064 *datarootdir*) ac_datarootdir_seen=yes;;
13065 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13067 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13068 _ACEOF
13069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070 ac_datarootdir_hack='
13071 s&@datadir@&$datadir&g
13072 s&@docdir@&$docdir&g
13073 s&@infodir@&$infodir&g
13074 s&@localedir@&$localedir&g
13075 s&@mandir@&$mandir&g
13076 s&\\\${datarootdir}&$datarootdir&g' ;;
13077 esac
13078 _ACEOF
13079
13080 # Neutralize VPATH when `$srcdir' = `.'.
13081 # Shell code in configure.ac might set extrasub.
13082 # FIXME: do we really want to maintain this feature?
13083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13084 ac_sed_extra="$ac_vpsub
13085 $extrasub
13086 _ACEOF
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 :t
13089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13090 s|@configure_input@|$ac_sed_conf_input|;t t
13091 s&@top_builddir@&$ac_top_builddir_sub&;t t
13092 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13093 s&@srcdir@&$ac_srcdir&;t t
13094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13095 s&@top_srcdir@&$ac_top_srcdir&;t t
13096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13097 s&@builddir@&$ac_builddir&;t t
13098 s&@abs_builddir@&$ac_abs_builddir&;t t
13099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13100 s&@INSTALL@&$ac_INSTALL&;t t
13101 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13102 $ac_datarootdir_hack
13103 "
13104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13106
13107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13112 which seems to be undefined. Please make sure it is defined" >&5
13113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13114 which seems to be undefined. Please make sure it is defined" >&2;}
13115
13116 rm -f "$ac_tmp/stdin"
13117 case $ac_file in
13118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13120 esac \
13121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13122 ;;
13123 :H)
13124 #
13125 # CONFIG_HEADER
13126 #
13127 if test x"$ac_file" != x-; then
13128 {
13129 $as_echo "/* $configure_input */" \
13130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13131 } >"$ac_tmp/config.h" \
13132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13136 else
13137 rm -f "$ac_file"
13138 mv "$ac_tmp/config.h" "$ac_file" \
13139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13140 fi
13141 else
13142 $as_echo "/* $configure_input */" \
13143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13144 || as_fn_error $? "could not create -" "$LINENO" 5
13145 fi
13146 # Compute "$ac_file"'s index in $config_headers.
13147 _am_arg="$ac_file"
13148 _am_stamp_count=1
13149 for _am_header in $config_headers :; do
13150 case $_am_header in
13151 $_am_arg | $_am_arg:* )
13152 break ;;
13153 * )
13154 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13155 esac
13156 done
13157 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13158 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159 X"$_am_arg" : 'X\(//\)[^/]' \| \
13160 X"$_am_arg" : 'X\(//\)$' \| \
13161 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13162 $as_echo X"$_am_arg" |
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13164 s//\1/
13165 q
13166 }
13167 /^X\(\/\/\)[^/].*/{
13168 s//\1/
13169 q
13170 }
13171 /^X\(\/\/\)$/{
13172 s//\1/
13173 q
13174 }
13175 /^X\(\/\).*/{
13176 s//\1/
13177 q
13178 }
13179 s/.*/./; q'`/stamp-h$_am_stamp_count
13180 ;;
13181
13182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13183 $as_echo "$as_me: executing $ac_file commands" >&6;}
13184 ;;
13185 esac
13186
13187
13188 case $ac_file$ac_mode in
13189 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13190 # Older Autoconf quotes --file arguments for eval, but not when files
13191 # are listed without --file. Let's play safe and only enable the eval
13192 # if we detect the quoting.
13193 case $CONFIG_FILES in
13194 *\'*) eval set x "$CONFIG_FILES" ;;
13195 *) set x $CONFIG_FILES ;;
13196 esac
13197 shift
13198 for mf
13199 do
13200 # Strip MF so we end up with the name of the file.
13201 mf=`echo "$mf" | sed -e 's/:.*$//'`
13202 # Check whether this is an Automake generated Makefile or not.
13203 # We used to match only the files named 'Makefile.in', but
13204 # some people rename them; so instead we look at the file content.
13205 # Grep'ing the first line is not enough: some people post-process
13206 # each Makefile.in and add a new line on top of each file to say so.
13207 # Grep'ing the whole file is not good either: AIX grep has a line
13208 # limit of 2048, but all sed's we know have understand at least 4000.
13209 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13210 dirpart=`$as_dirname -- "$mf" ||
13211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13212 X"$mf" : 'X\(//\)[^/]' \| \
13213 X"$mf" : 'X\(//\)$' \| \
13214 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13215 $as_echo X"$mf" |
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13217 s//\1/
13218 q
13219 }
13220 /^X\(\/\/\)[^/].*/{
13221 s//\1/
13222 q
13223 }
13224 /^X\(\/\/\)$/{
13225 s//\1/
13226 q
13227 }
13228 /^X\(\/\).*/{
13229 s//\1/
13230 q
13231 }
13232 s/.*/./; q'`
13233 else
13234 continue
13235 fi
13236 # Extract the definition of DEPDIR, am__include, and am__quote
13237 # from the Makefile without running 'make'.
13238 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13239 test -z "$DEPDIR" && continue
13240 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13241 test -z "$am__include" && continue
13242 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13243 # Find all dependency output files, they are included files with
13244 # $(DEPDIR) in their names. We invoke sed twice because it is the
13245 # simplest approach to changing $(DEPDIR) to its actual value in the
13246 # expansion.
13247 for file in `sed -n "
13248 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13249 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13250 # Make sure the directory exists.
13251 test -f "$dirpart/$file" && continue
13252 fdir=`$as_dirname -- "$file" ||
13253 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254 X"$file" : 'X\(//\)[^/]' \| \
13255 X"$file" : 'X\(//\)$' \| \
13256 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13257 $as_echo X"$file" |
13258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13259 s//\1/
13260 q
13261 }
13262 /^X\(\/\/\)[^/].*/{
13263 s//\1/
13264 q
13265 }
13266 /^X\(\/\/\)$/{
13267 s//\1/
13268 q
13269 }
13270 /^X\(\/\).*/{
13271 s//\1/
13272 q
13273 }
13274 s/.*/./; q'`
13275 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13276 # echo "creating $dirpart/$file"
13277 echo '# dummy' > "$dirpart/$file"
13278 done
13279 done
13280 }
13281 ;;
13282 "libtool":C)
13283
13284 # See if we are running on zsh, and set the options which allow our
13285 # commands through without removal of \ escapes.
13286 if test -n "${ZSH_VERSION+set}" ; then
13287 setopt NO_GLOB_SUBST
13288 fi
13289
13290 cfgfile="${ofile}T"
13291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13292 $RM "$cfgfile"
13293
13294 cat <<_LT_EOF >> "$cfgfile"
13295 #! $SHELL
13296
13297 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13298 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13300 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13301 #
13302 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13303 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13304 # Foundation, Inc.
13305 # Written by Gordon Matzigkeit, 1996
13306 #
13307 # This file is part of GNU Libtool.
13308 #
13309 # GNU Libtool is free software; you can redistribute it and/or
13310 # modify it under the terms of the GNU General Public License as
13311 # published by the Free Software Foundation; either version 2 of
13312 # the License, or (at your option) any later version.
13313 #
13314 # As a special exception to the GNU General Public License,
13315 # if you distribute this file as part of a program or library that
13316 # is built using GNU Libtool, you may include this file under the
13317 # same distribution terms that you use for the rest of that program.
13318 #
13319 # GNU Libtool is distributed in the hope that it will be useful,
13320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13322 # GNU General Public License for more details.
13323 #
13324 # You should have received a copy of the GNU General Public License
13325 # along with GNU Libtool; see the file COPYING. If not, a copy
13326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13327 # obtained by writing to the Free Software Foundation, Inc.,
13328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13329
13330
13331 # The names of the tagged configurations supported by this script.
13332 available_tags=""
13333
13334 # ### BEGIN LIBTOOL CONFIG
13335
13336 # Which release of libtool.m4 was used?
13337 macro_version=$macro_version
13338 macro_revision=$macro_revision
13339
13340 # Whether or not to build shared libraries.
13341 build_libtool_libs=$enable_shared
13342
13343 # Whether or not to build static libraries.
13344 build_old_libs=$enable_static
13345
13346 # What type of objects to build.
13347 pic_mode=$pic_mode
13348
13349 # Whether or not to optimize for fast installation.
13350 fast_install=$enable_fast_install
13351
13352 # Shell to use when invoking shell scripts.
13353 SHELL=$lt_SHELL
13354
13355 # An echo program that protects backslashes.
13356 ECHO=$lt_ECHO
13357
13358 # The PATH separator for the build system.
13359 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13360
13361 # The host system.
13362 host_alias=$host_alias
13363 host=$host
13364 host_os=$host_os
13365
13366 # The build system.
13367 build_alias=$build_alias
13368 build=$build
13369 build_os=$build_os
13370
13371 # A sed program that does not truncate output.
13372 SED=$lt_SED
13373
13374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13375 Xsed="\$SED -e 1s/^X//"
13376
13377 # A grep program that handles long lines.
13378 GREP=$lt_GREP
13379
13380 # An ERE matcher.
13381 EGREP=$lt_EGREP
13382
13383 # A literal string matcher.
13384 FGREP=$lt_FGREP
13385
13386 # A BSD- or MS-compatible name lister.
13387 NM=$lt_NM
13388
13389 # Whether we need soft or hard links.
13390 LN_S=$lt_LN_S
13391
13392 # What is the maximum length of a command?
13393 max_cmd_len=$max_cmd_len
13394
13395 # Object file suffix (normally "o").
13396 objext=$ac_objext
13397
13398 # Executable file suffix (normally "").
13399 exeext=$exeext
13400
13401 # whether the shell understands "unset".
13402 lt_unset=$lt_unset
13403
13404 # turn spaces into newlines.
13405 SP2NL=$lt_lt_SP2NL
13406
13407 # turn newlines into spaces.
13408 NL2SP=$lt_lt_NL2SP
13409
13410 # convert \$build file names to \$host format.
13411 to_host_file_cmd=$lt_cv_to_host_file_cmd
13412
13413 # convert \$build files to toolchain format.
13414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13415
13416 # An object symbol dumper.
13417 OBJDUMP=$lt_OBJDUMP
13418
13419 # Method to check whether dependent libraries are shared objects.
13420 deplibs_check_method=$lt_deplibs_check_method
13421
13422 # Command to use when deplibs_check_method = "file_magic".
13423 file_magic_cmd=$lt_file_magic_cmd
13424
13425 # How to find potential files when deplibs_check_method = "file_magic".
13426 file_magic_glob=$lt_file_magic_glob
13427
13428 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13429 want_nocaseglob=$lt_want_nocaseglob
13430
13431 # DLL creation program.
13432 DLLTOOL=$lt_DLLTOOL
13433
13434 # Command to associate shared and link libraries.
13435 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13436
13437 # The archiver.
13438 AR=$lt_AR
13439
13440 # Flags to create an archive.
13441 AR_FLAGS=$lt_AR_FLAGS
13442
13443 # How to feed a file listing to the archiver.
13444 archiver_list_spec=$lt_archiver_list_spec
13445
13446 # A symbol stripping program.
13447 STRIP=$lt_STRIP
13448
13449 # Commands used to install an old-style archive.
13450 RANLIB=$lt_RANLIB
13451 old_postinstall_cmds=$lt_old_postinstall_cmds
13452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13453
13454 # Whether to use a lock for old archive extraction.
13455 lock_old_archive_extraction=$lock_old_archive_extraction
13456
13457 # A C compiler.
13458 LTCC=$lt_CC
13459
13460 # LTCC compiler flags.
13461 LTCFLAGS=$lt_CFLAGS
13462
13463 # Take the output of nm and produce a listing of raw symbols and C names.
13464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13465
13466 # Transform the output of nm in a proper C declaration.
13467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13468
13469 # Transform the output of nm in a C name address pair.
13470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13471
13472 # Transform the output of nm in a C name address pair when lib prefix is needed.
13473 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13474
13475 # Specify filename containing input files for \$NM.
13476 nm_file_list_spec=$lt_nm_file_list_spec
13477
13478 # The root where to search for dependent libraries,and in which our libraries should be installed.
13479 lt_sysroot=$lt_sysroot
13480
13481 # The name of the directory that contains temporary libtool files.
13482 objdir=$objdir
13483
13484 # Used to examine libraries when file_magic_cmd begins with "file".
13485 MAGIC_CMD=$MAGIC_CMD
13486
13487 # Must we lock files when doing compilation?
13488 need_locks=$lt_need_locks
13489
13490 # Manifest tool.
13491 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13492
13493 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13494 DSYMUTIL=$lt_DSYMUTIL
13495
13496 # Tool to change global to local symbols on Mac OS X.
13497 NMEDIT=$lt_NMEDIT
13498
13499 # Tool to manipulate fat objects and archives on Mac OS X.
13500 LIPO=$lt_LIPO
13501
13502 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13503 OTOOL=$lt_OTOOL
13504
13505 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13506 OTOOL64=$lt_OTOOL64
13507
13508 # Old archive suffix (normally "a").
13509 libext=$libext
13510
13511 # Shared library suffix (normally ".so").
13512 shrext_cmds=$lt_shrext_cmds
13513
13514 # The commands to extract the exported symbol list from a shared archive.
13515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13516
13517 # Variables whose values should be saved in libtool wrapper scripts and
13518 # restored at link time.
13519 variables_saved_for_relink=$lt_variables_saved_for_relink
13520
13521 # Do we need the "lib" prefix for modules?
13522 need_lib_prefix=$need_lib_prefix
13523
13524 # Do we need a version for libraries?
13525 need_version=$need_version
13526
13527 # Library versioning type.
13528 version_type=$version_type
13529
13530 # Shared library runtime path variable.
13531 runpath_var=$runpath_var
13532
13533 # Shared library path variable.
13534 shlibpath_var=$shlibpath_var
13535
13536 # Is shlibpath searched before the hard-coded library search path?
13537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13538
13539 # Format of library name prefix.
13540 libname_spec=$lt_libname_spec
13541
13542 # List of archive names. First name is the real one, the rest are links.
13543 # The last name is the one that the linker finds with -lNAME
13544 library_names_spec=$lt_library_names_spec
13545
13546 # The coded name of the library, if different from the real name.
13547 soname_spec=$lt_soname_spec
13548
13549 # Permission mode override for installation of shared libraries.
13550 install_override_mode=$lt_install_override_mode
13551
13552 # Command to use after installation of a shared archive.
13553 postinstall_cmds=$lt_postinstall_cmds
13554
13555 # Command to use after uninstallation of a shared archive.
13556 postuninstall_cmds=$lt_postuninstall_cmds
13557
13558 # Commands used to finish a libtool library installation in a directory.
13559 finish_cmds=$lt_finish_cmds
13560
13561 # As "finish_cmds", except a single script fragment to be evaled but
13562 # not shown.
13563 finish_eval=$lt_finish_eval
13564
13565 # Whether we should hardcode library paths into libraries.
13566 hardcode_into_libs=$hardcode_into_libs
13567
13568 # Compile-time system search path for libraries.
13569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13570
13571 # Run-time system search path for libraries.
13572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13573
13574 # Whether dlopen is supported.
13575 dlopen_support=$enable_dlopen
13576
13577 # Whether dlopen of programs is supported.
13578 dlopen_self=$enable_dlopen_self
13579
13580 # Whether dlopen of statically linked programs is supported.
13581 dlopen_self_static=$enable_dlopen_self_static
13582
13583 # Commands to strip libraries.
13584 old_striplib=$lt_old_striplib
13585 striplib=$lt_striplib
13586
13587
13588 # The linker used to build libraries.
13589 LD=$lt_LD
13590
13591 # How to create reloadable object files.
13592 reload_flag=$lt_reload_flag
13593 reload_cmds=$lt_reload_cmds
13594
13595 # Commands used to build an old-style archive.
13596 old_archive_cmds=$lt_old_archive_cmds
13597
13598 # A language specific compiler.
13599 CC=$lt_compiler
13600
13601 # Is the compiler the GNU compiler?
13602 with_gcc=$GCC
13603
13604 # Compiler flag to turn off builtin functions.
13605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13606
13607 # Additional compiler flags for building library objects.
13608 pic_flag=$lt_lt_prog_compiler_pic
13609
13610 # How to pass a linker flag through the compiler.
13611 wl=$lt_lt_prog_compiler_wl
13612
13613 # Compiler flag to prevent dynamic linking.
13614 link_static_flag=$lt_lt_prog_compiler_static
13615
13616 # Does compiler simultaneously support -c and -o options?
13617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13618
13619 # Whether or not to add -lc for building shared libraries.
13620 build_libtool_need_lc=$archive_cmds_need_lc
13621
13622 # Whether or not to disallow shared libs when runtime libs are static.
13623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13624
13625 # Compiler flag to allow reflexive dlopens.
13626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13627
13628 # Compiler flag to generate shared objects directly from archives.
13629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13630
13631 # Whether the compiler copes with passing no objects directly.
13632 compiler_needs_object=$lt_compiler_needs_object
13633
13634 # Create an old-style archive from a shared archive.
13635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13636
13637 # Create a temporary old-style archive to link instead of a shared archive.
13638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13639
13640 # Commands used to build a shared archive.
13641 archive_cmds=$lt_archive_cmds
13642 archive_expsym_cmds=$lt_archive_expsym_cmds
13643
13644 # Commands used to build a loadable module if different from building
13645 # a shared archive.
13646 module_cmds=$lt_module_cmds
13647 module_expsym_cmds=$lt_module_expsym_cmds
13648
13649 # Whether we are building with GNU ld or not.
13650 with_gnu_ld=$lt_with_gnu_ld
13651
13652 # Flag that allows shared libraries with undefined symbols to be built.
13653 allow_undefined_flag=$lt_allow_undefined_flag
13654
13655 # Flag that enforces no undefined symbols.
13656 no_undefined_flag=$lt_no_undefined_flag
13657
13658 # Flag to hardcode \$libdir into a binary during linking.
13659 # This must work even if \$libdir does not exist
13660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13661
13662 # Whether we need a single "-rpath" flag with a separated argument.
13663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13664
13665 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13666 # DIR into the resulting binary.
13667 hardcode_direct=$hardcode_direct
13668
13669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13670 # DIR into the resulting binary and the resulting library dependency is
13671 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13672 # library is relocated.
13673 hardcode_direct_absolute=$hardcode_direct_absolute
13674
13675 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13676 # into the resulting binary.
13677 hardcode_minus_L=$hardcode_minus_L
13678
13679 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13680 # into the resulting binary.
13681 hardcode_shlibpath_var=$hardcode_shlibpath_var
13682
13683 # Set to "yes" if building a shared library automatically hardcodes DIR
13684 # into the library and all subsequent libraries and executables linked
13685 # against it.
13686 hardcode_automatic=$hardcode_automatic
13687
13688 # Set to yes if linker adds runtime paths of dependent libraries
13689 # to runtime path list.
13690 inherit_rpath=$inherit_rpath
13691
13692 # Whether libtool must link a program against all its dependency libraries.
13693 link_all_deplibs=$link_all_deplibs
13694
13695 # Set to "yes" if exported symbols are required.
13696 always_export_symbols=$always_export_symbols
13697
13698 # The commands to list exported symbols.
13699 export_symbols_cmds=$lt_export_symbols_cmds
13700
13701 # Symbols that should not be listed in the preloaded symbols.
13702 exclude_expsyms=$lt_exclude_expsyms
13703
13704 # Symbols that must always be exported.
13705 include_expsyms=$lt_include_expsyms
13706
13707 # Commands necessary for linking programs (against libraries) with templates.
13708 prelink_cmds=$lt_prelink_cmds
13709
13710 # Commands necessary for finishing linking programs.
13711 postlink_cmds=$lt_postlink_cmds
13712
13713 # Specify filename containing input files.
13714 file_list_spec=$lt_file_list_spec
13715
13716 # How to hardcode a shared library path into an executable.
13717 hardcode_action=$hardcode_action
13718
13719 # ### END LIBTOOL CONFIG
13720
13721 _LT_EOF
13722
13723 case $host_os in
13724 aix3*)
13725 cat <<\_LT_EOF >> "$cfgfile"
13726 # AIX sometimes has problems with the GCC collect2 program. For some
13727 # reason, if we set the COLLECT_NAMES environment variable, the problems
13728 # vanish in a puff of smoke.
13729 if test "X${COLLECT_NAMES+set}" != Xset; then
13730 COLLECT_NAMES=
13731 export COLLECT_NAMES
13732 fi
13733 _LT_EOF
13734 ;;
13735 esac
13736
13737
13738 ltmain="$ac_aux_dir/ltmain.sh"
13739
13740
13741 # We use sed instead of cat because bash on DJGPP gets confused if
13742 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13743 # text mode, it properly converts lines to CR/LF. This bash problem
13744 # is reportedly fixed, but why not run on old versions too?
13745 sed '$q' "$ltmain" >> "$cfgfile" \
13746 || (rm -f "$cfgfile"; exit 1)
13747
13748 if test x"$xsi_shell" = xyes; then
13749 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13750 func_dirname ()\
13751 {\
13752 \ case ${1} in\
13753 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13754 \ * ) func_dirname_result="${3}" ;;\
13755 \ esac\
13756 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13757 && mv -f "$cfgfile.tmp" "$cfgfile" \
13758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13759 test 0 -eq $? || _lt_function_replace_fail=:
13760
13761
13762 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13763 func_basename ()\
13764 {\
13765 \ func_basename_result="${1##*/}"\
13766 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13767 && mv -f "$cfgfile.tmp" "$cfgfile" \
13768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13769 test 0 -eq $? || _lt_function_replace_fail=:
13770
13771
13772 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13773 func_dirname_and_basename ()\
13774 {\
13775 \ case ${1} in\
13776 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13777 \ * ) func_dirname_result="${3}" ;;\
13778 \ esac\
13779 \ func_basename_result="${1##*/}"\
13780 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13781 && mv -f "$cfgfile.tmp" "$cfgfile" \
13782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13783 test 0 -eq $? || _lt_function_replace_fail=:
13784
13785
13786 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13787 func_stripname ()\
13788 {\
13789 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13790 \ # positional parameters, so assign one to ordinary parameter first.\
13791 \ func_stripname_result=${3}\
13792 \ func_stripname_result=${func_stripname_result#"${1}"}\
13793 \ func_stripname_result=${func_stripname_result%"${2}"}\
13794 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13795 && mv -f "$cfgfile.tmp" "$cfgfile" \
13796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13797 test 0 -eq $? || _lt_function_replace_fail=:
13798
13799
13800 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13801 func_split_long_opt ()\
13802 {\
13803 \ func_split_long_opt_name=${1%%=*}\
13804 \ func_split_long_opt_arg=${1#*=}\
13805 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13806 && mv -f "$cfgfile.tmp" "$cfgfile" \
13807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13808 test 0 -eq $? || _lt_function_replace_fail=:
13809
13810
13811 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13812 func_split_short_opt ()\
13813 {\
13814 \ func_split_short_opt_arg=${1#??}\
13815 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13816 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13817 && mv -f "$cfgfile.tmp" "$cfgfile" \
13818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13819 test 0 -eq $? || _lt_function_replace_fail=:
13820
13821
13822 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13823 func_lo2o ()\
13824 {\
13825 \ case ${1} in\
13826 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13827 \ *) func_lo2o_result=${1} ;;\
13828 \ esac\
13829 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13830 && mv -f "$cfgfile.tmp" "$cfgfile" \
13831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13832 test 0 -eq $? || _lt_function_replace_fail=:
13833
13834
13835 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13836 func_xform ()\
13837 {\
13838 func_xform_result=${1%.*}.lo\
13839 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13840 && mv -f "$cfgfile.tmp" "$cfgfile" \
13841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13842 test 0 -eq $? || _lt_function_replace_fail=:
13843
13844
13845 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13846 func_arith ()\
13847 {\
13848 func_arith_result=$(( $* ))\
13849 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13850 && mv -f "$cfgfile.tmp" "$cfgfile" \
13851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13852 test 0 -eq $? || _lt_function_replace_fail=:
13853
13854
13855 sed -e '/^func_len ()$/,/^} # func_len /c\
13856 func_len ()\
13857 {\
13858 func_len_result=${#1}\
13859 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13860 && mv -f "$cfgfile.tmp" "$cfgfile" \
13861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13862 test 0 -eq $? || _lt_function_replace_fail=:
13863
13864 fi
13865
13866 if test x"$lt_shell_append" = xyes; then
13867 sed -e '/^func_append ()$/,/^} # func_append /c\
13868 func_append ()\
13869 {\
13870 eval "${1}+=\\${2}"\
13871 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13872 && mv -f "$cfgfile.tmp" "$cfgfile" \
13873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13874 test 0 -eq $? || _lt_function_replace_fail=:
13875
13876
13877 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13878 func_append_quoted ()\
13879 {\
13880 \ func_quote_for_eval "${2}"\
13881 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13882 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13883 && mv -f "$cfgfile.tmp" "$cfgfile" \
13884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13885 test 0 -eq $? || _lt_function_replace_fail=:
13886
13887
13888 # Save a `func_append' function call where possible by direct use of '+='
13889 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13890 && mv -f "$cfgfile.tmp" "$cfgfile" \
13891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13892 test 0 -eq $? || _lt_function_replace_fail=:
13893 else
13894 # Save a `func_append' function call even when '+=' is not available
13895 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13896 && mv -f "$cfgfile.tmp" "$cfgfile" \
13897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13898 test 0 -eq $? || _lt_function_replace_fail=:
13899 fi
13900
13901 if test x"$_lt_function_replace_fail" = x":"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13903 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13904 fi
13905
13906
13907 mv -f "$cfgfile" "$ofile" ||
13908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13909 chmod +x "$ofile"
13910
13911 ;;
13912
13913 esac
13914 done # for ac_tag
13915
13916
13917 as_fn_exit 0
13918 _ACEOF
13919 ac_clean_files=$ac_clean_files_save
13920
13921 test $ac_write_fail = 0 ||
13922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13923
13924
13925 # configure is writing to config.log, and then calls config.status.
13926 # config.status does its own redirection, appending to config.log.
13927 # Unfortunately, on DOS this fails, as config.log is still kept open
13928 # by configure, so config.status won't be able to write to it; its
13929 # output is simply discarded. So we exec the FD to /dev/null,
13930 # effectively closing config.log, so it can be properly (re)opened and
13931 # appended to by config.status. When coming back to configure, we
13932 # need to make the FD available again.
13933 if test "$no_create" != yes; then
13934 ac_cs_success=:
13935 ac_config_status_args=
13936 test "$silent" = yes &&
13937 ac_config_status_args="$ac_config_status_args --quiet"
13938 exec 5>/dev/null
13939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13940 exec 5>>config.log
13941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13942 # would make configure fail if this is the last instruction.
13943 $ac_cs_success || as_fn_exit 1
13944 fi
13945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13948 fi
13949