c861e837a4d754827b95262cad23d09bb12c74e9
[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 LT_SYS_LIBRARY_PATH
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 LN_S
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_silent_rules
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_aix_soname
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 LT_SYS_LIBRARY_PATH
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures libhmac 1.00 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of libhmac 1.00:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1412 both]
1413 --with-aix-soname=aix|svr4|both
1414 shared library versioning (aka "SONAME") variant to
1415 provide on AIX, [default=aix].
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1418 compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 LT_SYS_LIBRARY_PATH
1429 User-defined run-time library search path.
1430 CPP C preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to <courier-users@lists.sourceforge.net>.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 libhmac configure 1.00
1499 generated by GNU Autoconf 2.69
1500
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607 else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615 else
1616 eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699 fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754 ;
1755 return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1774 # -------------------------------------------
1775 # Tests whether TYPE exists after having included INCLUDES, setting cache
1776 # variable VAR accordingly.
1777 ac_fn_c_check_type ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 eval "$3=no"
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 int
1790 main ()
1791 {
1792 if (sizeof ($2))
1793 return 0;
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main ()
1804 {
1805 if (sizeof (($2)))
1806 return 0;
1807 ;
1808 return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812
1813 else
1814 eval "$3=yes"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825 } # ac_fn_c_check_type
1826 cat >config.log <<_ACEOF
1827 This file contains any messages produced by compilers while
1828 running configure, to aid debugging if configure makes a mistake.
1829
1830 It was created by libhmac $as_me 1.00, which was
1831 generated by GNU Autoconf 2.69. Invocation command line was
1832
1833 $ $0 $@
1834
1835 _ACEOF
1836 exec 5>>config.log
1837 {
1838 cat <<_ASUNAME
1839 ## --------- ##
1840 ## Platform. ##
1841 ## --------- ##
1842
1843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1848
1849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1851
1852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859
1860 _ASUNAME
1861
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 $as_echo "PATH: $as_dir"
1868 done
1869 IFS=$as_save_IFS
1870
1871 } >&5
1872
1873 cat >&5 <<_ACEOF
1874
1875
1876 ## ----------- ##
1877 ## Core tests. ##
1878 ## ----------- ##
1879
1880 _ACEOF
1881
1882
1883 # Keep a trace of the command line.
1884 # Strip out --no-create and --no-recursion so they do not pile up.
1885 # Strip out --silent because we don't want to record it for future runs.
1886 # Also quote any args containing shell meta-characters.
1887 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_configure_args=
1889 ac_configure_args0=
1890 ac_configure_args1=
1891 ac_must_keep_next=false
1892 for ac_pass in 1 2
1893 do
1894 for ac_arg
1895 do
1896 case $ac_arg in
1897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899 | -silent | --silent | --silen | --sile | --sil)
1900 continue ;;
1901 *\'*)
1902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 esac
1904 case $ac_pass in
1905 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1906 2)
1907 as_fn_append ac_configure_args1 " '$ac_arg'"
1908 if test $ac_must_keep_next = true; then
1909 ac_must_keep_next=false # Got value, back to normal.
1910 else
1911 case $ac_arg in
1912 *=* | --config-cache | -C | -disable-* | --disable-* \
1913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1915 | -with-* | --with-* | -without-* | --without-* | --x)
1916 case "$ac_configure_args0 " in
1917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1918 esac
1919 ;;
1920 -* ) ac_must_keep_next=true ;;
1921 esac
1922 fi
1923 as_fn_append ac_configure_args " '$ac_arg'"
1924 ;;
1925 esac
1926 done
1927 done
1928 { ac_configure_args0=; unset ac_configure_args0;}
1929 { ac_configure_args1=; unset ac_configure_args1;}
1930
1931 # When interrupted or exit'd, cleanup temporary files, and complete
1932 # config.log. We remove comments because anyway the quotes in there
1933 # would cause problems or look ugly.
1934 # WARNING: Use '\'' to represent an apostrophe within the trap.
1935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1936 trap 'exit_status=$?
1937 # Save into config.log some information that might help in debugging.
1938 {
1939 echo
1940
1941 $as_echo "## ---------------- ##
1942 ## Cache variables. ##
1943 ## ---------------- ##"
1944 echo
1945 # The following way of writing the cache mishandles newlines in values,
1946 (
1947 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948 eval ac_val=\$$ac_var
1949 case $ac_val in #(
1950 *${as_nl}*)
1951 case $ac_var in #(
1952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954 esac
1955 case $ac_var in #(
1956 _ | IFS | as_nl) ;; #(
1957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958 *) { eval $ac_var=; unset $ac_var;} ;;
1959 esac ;;
1960 esac
1961 done
1962 (set) 2>&1 |
1963 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964 *${as_nl}ac_space=\ *)
1965 sed -n \
1966 "s/'\''/'\''\\\\'\'''\''/g;
1967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968 ;; #(
1969 *)
1970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971 ;;
1972 esac |
1973 sort
1974 )
1975 echo
1976
1977 $as_echo "## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##"
1980 echo
1981 for ac_var in $ac_subst_vars
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 $as_echo "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990
1991 if test -n "$ac_subst_files"; then
1992 $as_echo "## ------------------- ##
1993 ## File substitutions. ##
1994 ## ------------------- ##"
1995 echo
1996 for ac_var in $ac_subst_files
1997 do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in
2000 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001 esac
2002 $as_echo "$ac_var='\''$ac_val'\''"
2003 done | sort
2004 echo
2005 fi
2006
2007 if test -s confdefs.h; then
2008 $as_echo "## ----------- ##
2009 ## confdefs.h. ##
2010 ## ----------- ##"
2011 echo
2012 cat confdefs.h
2013 echo
2014 fi
2015 test "$ac_signal" != 0 &&
2016 $as_echo "$as_me: caught signal $ac_signal"
2017 $as_echo "$as_me: exit $exit_status"
2018 } >&5
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 exit $exit_status
2022 ' 0
2023 for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 done
2026 ac_signal=0
2027
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2030
2031 $as_echo "/* confdefs.h */" > confdefs.h
2032
2033 # Predefined preprocessor variables.
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_NAME "$PACKAGE_NAME"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2049 _ACEOF
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_URL "$PACKAGE_URL"
2057 _ACEOF
2058
2059
2060 # Let the site file select an alternate cache file if it wants to.
2061 # Prefer an explicitly selected file to automatically selected ones.
2062 ac_site_file1=NONE
2063 ac_site_file2=NONE
2064 if test -n "$CONFIG_SITE"; then
2065 # We do not want a PATH search for config.site.
2066 case $CONFIG_SITE in #((
2067 -*) ac_site_file1=./$CONFIG_SITE;;
2068 */*) ac_site_file1=$CONFIG_SITE;;
2069 *) ac_site_file1=./$CONFIG_SITE;;
2070 esac
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074 else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2077 fi
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 do
2080 test "x$ac_site_file" = xNONE && continue
2081 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2085 . "$ac_site_file" \
2086 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 as_fn_error $? "failed to load site script $ac_site_file
2089 See \`config.log' for more details" "$LINENO" 5; }
2090 fi
2091 done
2092
2093 if test -r "$cache_file"; then
2094 # Some versions of bash will fail to source /dev/null (special files
2095 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2096 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2098 $as_echo "$as_me: loading cache $cache_file" >&6;}
2099 case $cache_file in
2100 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2101 *) . "./$cache_file";;
2102 esac
2103 fi
2104 else
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2106 $as_echo "$as_me: creating cache $cache_file" >&6;}
2107 >$cache_file
2108 fi
2109
2110 # Check that the precious variables saved in the cache have kept the same
2111 # value.
2112 ac_cache_corrupted=false
2113 for ac_var in $ac_precious_vars; do
2114 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2115 eval ac_new_set=\$ac_env_${ac_var}_set
2116 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2117 eval ac_new_val=\$ac_env_${ac_var}_value
2118 case $ac_old_set,$ac_new_set in
2119 set,)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,set)
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2127 ,);;
2128 *)
2129 if test "x$ac_old_val" != "x$ac_new_val"; then
2130 # differences in whitespace do not lead to failure.
2131 ac_old_val_w=`echo x $ac_old_val`
2132 ac_new_val_w=`echo x $ac_new_val`
2133 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2135 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2136 ac_cache_corrupted=:
2137 else
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2139 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2140 eval $ac_var=\$ac_old_val
2141 fi
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2143 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2145 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2146 fi;;
2147 esac
2148 # Pass precious variables to config.status.
2149 if test "$ac_new_set" = set; then
2150 case $ac_new_val in
2151 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 *) ac_arg=$ac_var=$ac_new_val ;;
2153 esac
2154 case " $ac_configure_args " in
2155 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2156 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2157 esac
2158 fi
2159 done
2160 if $ac_cache_corrupted; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2164 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2165 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2166 fi
2167 ## -------------------- ##
2168 ## Main body of script. ##
2169 ## -------------------- ##
2170
2171 ac_ext=c
2172 ac_cpp='$CPP $CPPFLAGS'
2173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176
2177
2178
2179 >confdefs.h # Kill PACKAGE_ macros
2180
2181
2182 ac_aux_dir=
2183 for ac_dir in ../.. "$srcdir"/../..; do
2184 if test -f "$ac_dir/install-sh"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/install-sh -c"
2187 break
2188 elif test -f "$ac_dir/install.sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install.sh -c"
2191 break
2192 elif test -f "$ac_dir/shtool"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/shtool install -c"
2195 break
2196 fi
2197 done
2198 if test -z "$ac_aux_dir"; then
2199 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2200 fi
2201
2202 # These three variables are undocumented and unsupported,
2203 # and are intended to be withdrawn in a future Autoconf release.
2204 # They can cause serious problems if a builder's source tree is in a directory
2205 # whose full name contains unusual characters.
2206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209
2210
2211 am__api_version='1.15'
2212
2213 # Find a good install program. We prefer a C program (faster),
2214 # so one script is as good as another. But avoid the broken or
2215 # incompatible versions:
2216 # SysV /etc/install, /usr/sbin/install
2217 # SunOS /usr/etc/install
2218 # IRIX /sbin/install
2219 # AIX /bin/install
2220 # AmigaOS /C/install, which installs bootblocks on floppy discs
2221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2224 # OS/2's system install, which has a completely different semantic
2225 # ./install, which can be erroneously created by make from ./install.sh.
2226 # Reject install programs that cannot install multiple files.
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2228 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2229 if test -z "$INSTALL"; then
2230 if ${ac_cv_path_install+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 # Account for people who put trailing slashes in PATH elements.
2239 case $as_dir/ in #((
2240 ./ | .// | /[cC]/* | \
2241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2242 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2243 /usr/ucb/* ) ;;
2244 *)
2245 # OSF1 and SCO ODT 3.0 have their own names for install.
2246 # Don't use installbsd from OSF since it installs stuff as root
2247 # by default.
2248 for ac_prog in ginstall scoinst install; do
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2251 if test $ac_prog = install &&
2252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # AIX install. It has an incompatible calling convention.
2254 :
2255 elif test $ac_prog = install &&
2256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2257 # program-specific install script used by HP pwplus--don't use.
2258 :
2259 else
2260 rm -rf conftest.one conftest.two conftest.dir
2261 echo one > conftest.one
2262 echo two > conftest.two
2263 mkdir conftest.dir
2264 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2265 test -s conftest.one && test -s conftest.two &&
2266 test -s conftest.dir/conftest.one &&
2267 test -s conftest.dir/conftest.two
2268 then
2269 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2270 break 3
2271 fi
2272 fi
2273 fi
2274 done
2275 done
2276 ;;
2277 esac
2278
2279 done
2280 IFS=$as_save_IFS
2281
2282 rm -rf conftest.one conftest.two conftest.dir
2283
2284 fi
2285 if test "${ac_cv_path_install+set}" = set; then
2286 INSTALL=$ac_cv_path_install
2287 else
2288 # As a last resort, use the slow shell script. Don't cache a
2289 # value for INSTALL within a source directory, because that will
2290 # break other packages using the cache if that directory is
2291 # removed, or if the value is a relative name.
2292 INSTALL=$ac_install_sh
2293 fi
2294 fi
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2296 $as_echo "$INSTALL" >&6; }
2297
2298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2299 # It thinks the first close brace ends the variable substitution.
2300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2301
2302 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2303
2304 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2305
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2307 $as_echo_n "checking whether build environment is sane... " >&6; }
2308 # Reject unsafe characters in $srcdir or the absolute working directory
2309 # name. Accept space and tab only in the latter.
2310 am_lf='
2311 '
2312 case `pwd` in
2313 *[\\\"\#\$\&\'\`$am_lf]*)
2314 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2315 esac
2316 case $srcdir in
2317 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2318 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2319 esac
2320
2321 # Do 'set' in a subshell so we don't clobber the current shell's
2322 # arguments. Must try -L first in case configure is actually a
2323 # symlink; some systems play weird games with the mod time of symlinks
2324 # (eg FreeBSD returns the mod time of the symlink's containing
2325 # directory).
2326 if (
2327 am_has_slept=no
2328 for am_try in 1 2; do
2329 echo "timestamp, slept: $am_has_slept" > conftest.file
2330 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2331 if test "$*" = "X"; then
2332 # -L didn't work.
2333 set X `ls -t "$srcdir/configure" conftest.file`
2334 fi
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2337
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" "$LINENO" 5
2344 fi
2345 if test "$2" = conftest.file || test $am_try -eq 2; then
2346 break
2347 fi
2348 # Just in case.
2349 sleep 1
2350 am_has_slept=yes
2351 done
2352 test "$2" = conftest.file
2353 )
2354 then
2355 # Ok.
2356 :
2357 else
2358 as_fn_error $? "newly created file is older than distributed files!
2359 Check your system clock" "$LINENO" 5
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362 $as_echo "yes" >&6; }
2363 # If we didn't sleep, we still need to ensure time stamps of config.status and
2364 # generated files are strictly newer.
2365 am_sleep_pid=
2366 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2367 ( sleep 1 ) &
2368 am_sleep_pid=$!
2369 fi
2370
2371 rm -f conftest.file
2372
2373 test "$program_prefix" != NONE &&
2374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2375 # Use a double $ so make ignores it.
2376 test "$program_suffix" != NONE &&
2377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2378 # Double any \ or $.
2379 # By default was `s,x,x', remove it if useless.
2380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2382
2383 # Expand $ac_aux_dir to an absolute path.
2384 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2385
2386 if test x"${MISSING+set}" != xset; then
2387 case $am_aux_dir in
2388 *\ * | *\ *)
2389 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2390 *)
2391 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2392 esac
2393 fi
2394 # Use eval to expand $SHELL
2395 if eval "$MISSING --is-lightweight"; then
2396 am_missing_run="$MISSING "
2397 else
2398 am_missing_run=
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2400 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2401 fi
2402
2403 if test x"${install_sh+set}" != xset; then
2404 case $am_aux_dir in
2405 *\ * | *\ *)
2406 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2407 *)
2408 install_sh="\${SHELL} $am_aux_dir/install-sh"
2409 esac
2410 fi
2411
2412 # Installed binaries are usually stripped using 'strip' when the user
2413 # run "make install-strip". However 'strip' might not be the right
2414 # tool to use in cross-compilation environments, therefore Automake
2415 # will honor the 'STRIP' environment variable to overrule this program.
2416 if test "$cross_compiling" != no; then
2417 if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2419 set dummy ${ac_tool_prefix}strip; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_STRIP+:} false; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test -n "$STRIP"; then
2426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 STRIP=$ac_cv_prog_STRIP
2446 if test -n "$STRIP"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2448 $as_echo "$STRIP" >&6; }
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455 fi
2456 if test -z "$ac_cv_prog_STRIP"; then
2457 ac_ct_STRIP=$STRIP
2458 # Extract the first word of "strip", so it can be a program name with args.
2459 set dummy strip; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test -n "$ac_ct_STRIP"; then
2466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_prog_ac_ct_STRIP="strip"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2486 if test -n "$ac_ct_STRIP"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2488 $as_echo "$ac_ct_STRIP" >&6; }
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494 if test "x$ac_ct_STRIP" = x; then
2495 STRIP=":"
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498 yes:)
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2501 ac_tool_warned=yes ;;
2502 esac
2503 STRIP=$ac_ct_STRIP
2504 fi
2505 else
2506 STRIP="$ac_cv_prog_STRIP"
2507 fi
2508
2509 fi
2510 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2511
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2513 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2514 if test -z "$MKDIR_P"; then
2515 if ${ac_cv_path_mkdir+:} false; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_prog in mkdir gmkdir; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2526 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2527 'mkdir (GNU coreutils) '* | \
2528 'mkdir (coreutils) '* | \
2529 'mkdir (fileutils) '4.1*)
2530 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2531 break 3;;
2532 esac
2533 done
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539
2540 test -d ./--version && rmdir ./--version
2541 if test "${ac_cv_path_mkdir+set}" = set; then
2542 MKDIR_P="$ac_cv_path_mkdir -p"
2543 else
2544 # As a last resort, use the slow shell script. Don't cache a
2545 # value for MKDIR_P within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the value is a relative name.
2548 MKDIR_P="$ac_install_sh -d"
2549 fi
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2552 $as_echo "$MKDIR_P" >&6; }
2553
2554 for ac_prog in gawk mawk nawk awk
2555 do
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_AWK+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 ac_cv_prog_AWK="$ac_prog"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 AWK=$ac_cv_prog_AWK
2584 if test -n "$AWK"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586 $as_echo "$AWK" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592
2593 test -n "$AWK" && break
2594 done
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598 set x ${MAKE-make}
2599 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 cat >conftest.make <<\_ACEOF
2604 SHELL = /bin/sh
2605 all:
2606 @echo '@@@%%%=$(MAKE)=@@@%%%'
2607 _ACEOF
2608 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610 *@@@%%%=?*=@@@%%%*)
2611 eval ac_cv_prog_make_${ac_make}_set=yes;;
2612 *)
2613 eval ac_cv_prog_make_${ac_make}_set=no;;
2614 esac
2615 rm -f conftest.make
2616 fi
2617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 SET_MAKE=
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 SET_MAKE="MAKE=${MAKE-make}"
2625 fi
2626
2627 rm -rf .tst 2>/dev/null
2628 mkdir .tst 2>/dev/null
2629 if test -d .tst; then
2630 am__leading_dot=.
2631 else
2632 am__leading_dot=_
2633 fi
2634 rmdir .tst 2>/dev/null
2635
2636 # Check whether --enable-silent-rules was given.
2637 if test "${enable_silent_rules+set}" = set; then :
2638 enableval=$enable_silent_rules;
2639 fi
2640
2641 case $enable_silent_rules in # (((
2642 yes) AM_DEFAULT_VERBOSITY=0;;
2643 no) AM_DEFAULT_VERBOSITY=1;;
2644 *) AM_DEFAULT_VERBOSITY=1;;
2645 esac
2646 am_make=${MAKE-make}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2648 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2649 if ${am_cv_make_support_nested_variables+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if $as_echo 'TRUE=$(BAR$(V))
2653 BAR0=false
2654 BAR1=true
2655 V=1
2656 am__doit:
2657 @$(TRUE)
2658 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2659 am_cv_make_support_nested_variables=yes
2660 else
2661 am_cv_make_support_nested_variables=no
2662 fi
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2665 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2666 if test $am_cv_make_support_nested_variables = yes; then
2667 AM_V='$(V)'
2668 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2669 else
2670 AM_V=$AM_DEFAULT_VERBOSITY
2671 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2672 fi
2673 AM_BACKSLASH='\'
2674
2675 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2676 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2677 # is not polluted with repeated "-I."
2678 am__isrc=' -I$(srcdir)'
2679 # test to see if srcdir already configured
2680 if test -f $srcdir/config.status; then
2681 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2682 fi
2683 fi
2684
2685 # test whether we have cygpath
2686 if test -z "$CYGPATH_W"; then
2687 if (cygpath --version) >/dev/null 2>/dev/null; then
2688 CYGPATH_W='cygpath -w'
2689 else
2690 CYGPATH_W=echo
2691 fi
2692 fi
2693
2694
2695 # Define the identity of the package.
2696 PACKAGE='libhmac'
2697 VERSION='1.00'
2698
2699
2700 # Some tools Automake needs.
2701
2702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2703
2704
2705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2706
2707
2708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2709
2710
2711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2712
2713
2714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2715
2716 # For better backward compatibility. To be removed once Automake 1.9.x
2717 # dies out for good. For more background, see:
2718 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2719 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2720 mkdir_p='$(MKDIR_P)'
2721
2722 # We need awk for the "check" target (and possibly the TAP driver). The
2723 # system "awk" is bad on some platforms.
2724 # Always define AMTAR for backward compatibility. Yes, it's still used
2725 # in the wild :-( We should find a proper way to deprecate it ...
2726 AMTAR='$${TAR-tar}'
2727
2728
2729 # We'll loop over all known methods to create a tar archive until one works.
2730 _am_tools='gnutar pax cpio none'
2731
2732 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2733
2734
2735
2736
2737
2738
2739 # POSIX will say in a future version that running "rm -f" with no argument
2740 # is OK; and we want to be able to make that assumption in our Makefile
2741 # recipes. So use an aggressive probe to check that the usage we want is
2742 # actually supported "in the wild" to an acceptable degree.
2743 # See automake bug#10828.
2744 # To make any issue more visible, cause the running configure to be aborted
2745 # by default if the 'rm' program in use doesn't match our expectations; the
2746 # user can still override this though.
2747 if rm -f && rm -fr && rm -rf; then : OK; else
2748 cat >&2 <<'END'
2749 Oops!
2750
2751 Your 'rm' program seems unable to run without file operands specified
2752 on the command line, even when the '-f' option is present. This is contrary
2753 to the behaviour of most rm programs out there, and not conforming with
2754 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2755
2756 Please tell bug-automake@gnu.org about your system, including the value
2757 of your $PATH and any error possibly output before this message. This
2758 can help us improve future automake versions.
2759
2760 END
2761 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2762 echo 'Configuration will proceed anyway, since you have set the' >&2
2763 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2764 echo >&2
2765 else
2766 cat >&2 <<'END'
2767 Aborting the configuration process, to ensure you take notice of the issue.
2768
2769 You can download and install GNU coreutils to get an 'rm' implementation
2770 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2771
2772 If you want to complete the configuration process using your problematic
2773 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2774 to "yes", and re-run configure.
2775
2776 END
2777 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2778 fi
2779 fi
2780
2781
2782
2783 ac_config_headers="$ac_config_headers config.h"
2784
2785
2786 for ac_prog in gawk mawk nawk awk
2787 do
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_AWK+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$AWK"; then
2796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_AWK="$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 AWK=$ac_cv_prog_AWK
2816 if test -n "$AWK"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2818 $as_echo "$AWK" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 test -n "$AWK" && break
2826 done
2827
2828
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2830 $as_echo_n "checking whether ln -s works... " >&6; }
2831 LN_S=$as_ln_s
2832 if test "$LN_S" = "ln -s"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834 $as_echo "yes" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2837 $as_echo "no, using $LN_S" >&6; }
2838 fi
2839
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CC+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$ac_cv_prog_CC"; then
2885 ac_ct_CC=$CC
2886 # Extract the first word of "gcc", so it can be a program name with args.
2887 set dummy gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$ac_ct_CC"; then
2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CC="gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 CC=$ac_ct_CC
2932 fi
2933 else
2934 CC="$ac_cv_prog_CC"
2935 fi
2936
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}cc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_CC="${ac_tool_prefix}cc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 fi
2978 if test -z "$CC"; then
2979 # Extract the first word of "cc", so it can be a program name with args.
2980 set dummy cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 ac_prog_rejected=no
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2998 ac_prog_rejected=yes
2999 continue
3000 fi
3001 ac_cv_prog_CC="cc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
3013 if test $# != 0; then
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3019 fi
3020 fi
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 fi
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 for ac_prog in cl.exe
3037 do
3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 test -n "$CC" && break
3076 done
3077 fi
3078 if test -z "$CC"; then
3079 ac_ct_CC=$CC
3080 for ac_prog in cl.exe
3081 do
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_ac_ct_CC="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 test -n "$ac_ct_CC" && break
3120 done
3121
3122 if test "x$ac_ct_CC" = x; then
3123 CC=""
3124 else
3125 case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131 CC=$ac_ct_CC
3132 fi
3133 fi
3134
3135 fi
3136
3137
3138 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details" "$LINENO" 5; }
3142
3143 # Provide some information about the compiler.
3144 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3145 set X $ac_compile
3146 ac_compiler=$2
3147 for ac_option in --version -v -V -qversion; do
3148 { { ac_try="$ac_compiler $ac_option >&5"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3156 ac_status=$?
3157 if test -s conftest.err; then
3158 sed '10a\
3159 ... rest of stderr output deleted ...
3160 10q' conftest.err >conftest.er1
3161 cat conftest.er1 >&5
3162 fi
3163 rm -f conftest.er1 conftest.err
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }
3166 done
3167
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3170
3171 int
3172 main ()
3173 {
3174
3175 ;
3176 return 0;
3177 }
3178 _ACEOF
3179 ac_clean_files_save=$ac_clean_files
3180 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181 # Try to create an executable without -o first, disregard a.out.
3182 # It will help us diagnose broken compilers, and finding out an intuition
3183 # of exeext.
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3185 $as_echo_n "checking whether the C compiler works... " >&6; }
3186 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187
3188 # The possible output files:
3189 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3190
3191 ac_rmfiles=
3192 for ac_file in $ac_files
3193 do
3194 case $ac_file in
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197 esac
3198 done
3199 rm -f $ac_rmfiles
3200
3201 if { { ac_try="$ac_link_default"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link_default") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3215 # so that the user can short-circuit this test for compilers unknown to
3216 # Autoconf.
3217 for ac_file in $ac_files ''
3218 do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3222 ;;
3223 [ab].out )
3224 # We found the default executable, but exeext='' is most
3225 # certainly right.
3226 break;;
3227 *.* )
3228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229 then :; else
3230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 fi
3232 # We set ac_cv_exeext here because the later test for it is not
3233 # safe: cross compilers may not add the suffix if given an `-o'
3234 # argument, so we may need to know it at that point already.
3235 # Even if this section looks crufty: it has the advantage of
3236 # actually working.
3237 break;;
3238 * )
3239 break;;
3240 esac
3241 done
3242 test "$ac_cv_exeext" = no && ac_cv_exeext=
3243
3244 else
3245 ac_file=''
3246 fi
3247 if test -z "$ac_file"; then :
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error 77 "C compiler cannot create executables
3256 See \`config.log' for more details" "$LINENO" 5; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3262 $as_echo_n "checking for C compiler default output file name... " >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3264 $as_echo "$ac_file" >&6; }
3265 ac_exeext=$ac_cv_exeext
3266
3267 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3270 $as_echo_n "checking for suffix of executables... " >&6; }
3271 if { { ac_try="$ac_link"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3284 # work properly (i.e., refer to `conftest.exe'), while it won't with
3285 # `rm'.
3286 for ac_file in conftest.exe conftest conftest.*; do
3287 test -f "$ac_file" || continue
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291 break;;
3292 * ) break;;
3293 esac
3294 done
3295 else
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 fi
3301 rm -f conftest conftest$ac_cv_exeext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3303 $as_echo "$ac_cv_exeext" >&6; }
3304
3305 rm -f conftest.$ac_ext
3306 EXEEXT=$ac_cv_exeext
3307 ac_exeext=$EXEEXT
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310 #include <stdio.h>
3311 int
3312 main ()
3313 {
3314 FILE *f = fopen ("conftest.out", "w");
3315 return ferror (f) || fclose (f) != 0;
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 ac_clean_files="$ac_clean_files conftest.out"
3322 # Check that the compiler produces executables we can run. If not, either
3323 # the compiler is broken, or we cross compile.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3325 $as_echo_n "checking whether we are cross compiling... " >&6; }
3326 if test "$cross_compiling" != yes; then
3327 { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338 if { ac_try='./conftest$ac_cv_exeext'
3339 { { case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; }; then
3349 cross_compiling=no
3350 else
3351 if test "$cross_compiling" = maybe; then
3352 cross_compiling=yes
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details" "$LINENO" 5; }
3359 fi
3360 fi
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3363 $as_echo "$cross_compiling" >&6; }
3364
3365 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3366 ac_clean_files=$ac_clean_files_save
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3368 $as_echo_n "checking for suffix of object files... " >&6; }
3369 if ${ac_cv_objext+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374
3375 int
3376 main ()
3377 {
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.o conftest.obj
3384 if { { ac_try="$ac_compile"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compile") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 for ac_file in conftest.o conftest.obj conftest.*; do
3396 test -f "$ac_file" || continue;
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 break;;
3401 esac
3402 done
3403 else
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot compute suffix of object files: cannot compile
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 fi
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3415 $as_echo "$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3417 ac_objext=$OBJEXT
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3419 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3420 if ${ac_cv_c_compiler_gnu+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430 choke me
3431 #endif
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_compiler_gnu=yes
3439 else
3440 ac_compiler_gnu=no
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3447 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3448 if test $ac_compiler_gnu = yes; then
3449 GCC=yes
3450 else
3451 GCC=
3452 fi
3453 ac_test_CFLAGS=${CFLAGS+set}
3454 ac_save_CFLAGS=$CFLAGS
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3456 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3457 if ${ac_cv_prog_cc_g+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 ac_save_c_werror_flag=$ac_c_werror_flag
3461 ac_c_werror_flag=yes
3462 ac_cv_prog_cc_g=no
3463 CFLAGS="-g"
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_g=yes
3477 else
3478 CFLAGS=""
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491
3492 else
3493 ac_c_werror_flag=$ac_save_c_werror_flag
3494 CFLAGS="-g"
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_cv_prog_cc_g=yes
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517 $as_echo "$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3522 CFLAGS="-g -O2"
3523 else
3524 CFLAGS="-g"
3525 fi
3526 else
3527 if test "$GCC" = yes; then
3528 CFLAGS="-O2"
3529 else
3530 CFLAGS=
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3534 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3535 if ${ac_cv_prog_cc_c89+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_cv_prog_cc_c89=no
3539 ac_save_CC=$CC
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <stdarg.h>
3543 #include <stdio.h>
3544 struct stat;
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3549 char **p;
3550 int i;
3551 {
3552 return p[i];
3553 }
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3555 {
3556 char *s;
3557 va_list v;
3558 va_start (v,p);
3559 s = g (p, va_arg (v,int));
3560 va_end (v);
3561 return s;
3562 }
3563
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3575 #define FOO(x) 'x'
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3577
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 int argc;
3583 char **argv;
3584 int
3585 main ()
3586 {
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3594 do
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_c89=$ac_arg
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext
3600 test "x$ac_cv_prog_cc_c89" != "xno" && break
3601 done
3602 rm -f conftest.$ac_ext
3603 CC=$ac_save_CC
3604
3605 fi
3606 # AC_CACHE_VAL
3607 case "x$ac_cv_prog_cc_c89" in
3608 x)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 $as_echo "none needed" >&6; } ;;
3611 xno)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 $as_echo "unsupported" >&6; } ;;
3614 *)
3615 CC="$CC $ac_cv_prog_cc_c89"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3618 esac
3619 if test "x$ac_cv_prog_cc_c89" != xno; then :
3620
3621 fi
3622
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3635 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3636 if ${am_cv_prog_cc_c_o+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641
3642 int
3643 main ()
3644 {
3645
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 # Make sure it works both with $CC and with simple cc.
3651 # Following AC_PROG_CC_C_O, we do the test twice because some
3652 # compilers refuse to overwrite an existing .o file with -o,
3653 # though they will create one.
3654 am_cv_prog_cc_c_o=yes
3655 for am_i in 1 2; do
3656 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3657 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } \
3661 && test -f conftest2.$ac_objext; then
3662 : OK
3663 else
3664 am_cv_prog_cc_c_o=no
3665 break
3666 fi
3667 done
3668 rm -f core conftest*
3669 unset am_i
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3672 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3673 if test "$am_cv_prog_cc_c_o" != yes; then
3674 # Losing compiler, so override with the script.
3675 # FIXME: It is wrong to rewrite CC.
3676 # But if we don't then we get into trouble of one sort or another.
3677 # A longer-term fix would be to have automake use am__CC in this case,
3678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3679 CC="$am_aux_dir/compile $CC"
3680 fi
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687 DEPDIR="${am__leading_dot}deps"
3688
3689 ac_config_commands="$ac_config_commands depfiles"
3690
3691
3692 am_make=${MAKE-make}
3693 cat > confinc << 'END'
3694 am__doit:
3695 @echo this is the am__doit target
3696 .PHONY: am__doit
3697 END
3698 # If we don't find an include directive, just comment out the code.
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3700 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3701 am__include="#"
3702 am__quote=
3703 _am_result=none
3704 # First try GNU make style include.
3705 echo "include confinc" > confmf
3706 # Ignore all kinds of additional output from 'make'.
3707 case `$am_make -s -f confmf 2> /dev/null` in #(
3708 *the\ am__doit\ target*)
3709 am__include=include
3710 am__quote=
3711 _am_result=GNU
3712 ;;
3713 esac
3714 # Now try BSD make style include.
3715 if test "$am__include" = "#"; then
3716 echo '.include "confinc"' > confmf
3717 case `$am_make -s -f confmf 2> /dev/null` in #(
3718 *the\ am__doit\ target*)
3719 am__include=.include
3720 am__quote="\""
3721 _am_result=BSD
3722 ;;
3723 esac
3724 fi
3725
3726
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3728 $as_echo "$_am_result" >&6; }
3729 rm -f confinc confmf
3730
3731 # Check whether --enable-dependency-tracking was given.
3732 if test "${enable_dependency_tracking+set}" = set; then :
3733 enableval=$enable_dependency_tracking;
3734 fi
3735
3736 if test "x$enable_dependency_tracking" != xno; then
3737 am_depcomp="$ac_aux_dir/depcomp"
3738 AMDEPBACKSLASH='\'
3739 am__nodep='_no'
3740 fi
3741 if test "x$enable_dependency_tracking" != xno; then
3742 AMDEP_TRUE=
3743 AMDEP_FALSE='#'
3744 else
3745 AMDEP_TRUE='#'
3746 AMDEP_FALSE=
3747 fi
3748
3749
3750
3751 depcc="$CC" am_compiler_list=
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3754 $as_echo_n "checking dependency style of $depcc... " >&6; }
3755 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3759 # We make a subdir and do the tests there. Otherwise we can end up
3760 # making bogus files that we don't know about and never remove. For
3761 # instance it was reported that on HP-UX the gcc test will end up
3762 # making a dummy file named 'D' -- because '-MD' means "put the output
3763 # in D".
3764 rm -rf conftest.dir
3765 mkdir conftest.dir
3766 # Copy depcomp to subdir because otherwise we won't find it if we're
3767 # using a relative directory.
3768 cp "$am_depcomp" conftest.dir
3769 cd conftest.dir
3770 # We will build objects and dependencies in a subdirectory because
3771 # it helps to detect inapplicable dependency modes. For instance
3772 # both Tru64's cc and ICC support -MD to output dependencies as a
3773 # side effect of compilation, but ICC will put the dependencies in
3774 # the current directory while Tru64 will put them in the object
3775 # directory.
3776 mkdir sub
3777
3778 am_cv_CC_dependencies_compiler_type=none
3779 if test "$am_compiler_list" = ""; then
3780 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3781 fi
3782 am__universal=false
3783 case " $depcc " in #(
3784 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3785 esac
3786
3787 for depmode in $am_compiler_list; do
3788 # Setup a source with many dependencies, because some compilers
3789 # like to wrap large dependency lists on column 80 (with \), and
3790 # we should not choose a depcomp mode which is confused by this.
3791 #
3792 # We need to recreate these files for each test, as the compiler may
3793 # overwrite some of them when testing with obscure command lines.
3794 # This happens at least with the AIX C compiler.
3795 : > sub/conftest.c
3796 for i in 1 2 3 4 5 6; do
3797 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3798 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3799 # Solaris 10 /bin/sh.
3800 echo '/* dummy */' > sub/conftst$i.h
3801 done
3802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3803
3804 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3805 # mode. It turns out that the SunPro C++ compiler does not properly
3806 # handle '-M -o', and we need to detect this. Also, some Intel
3807 # versions had trouble with output in subdirs.
3808 am__obj=sub/conftest.${OBJEXT-o}
3809 am__minus_obj="-o $am__obj"
3810 case $depmode in
3811 gcc)
3812 # This depmode causes a compiler race in universal mode.
3813 test "$am__universal" = false || continue
3814 ;;
3815 nosideeffect)
3816 # After this tag, mechanisms are not by side-effect, so they'll
3817 # only be used when explicitly requested.
3818 if test "x$enable_dependency_tracking" = xyes; then
3819 continue
3820 else
3821 break
3822 fi
3823 ;;
3824 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3825 # This compiler won't grok '-c -o', but also, the minuso test has
3826 # not run yet. These depmodes are late enough in the game, and
3827 # so weak that their functioning should not be impacted.
3828 am__obj=conftest.${OBJEXT-o}
3829 am__minus_obj=
3830 ;;
3831 none) break ;;
3832 esac
3833 if depmode=$depmode \
3834 source=sub/conftest.c object=$am__obj \
3835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3836 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3837 >/dev/null 2>conftest.err &&
3838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3842 # icc doesn't choke on unknown options, it will just issue warnings
3843 # or remarks (even with -Werror). So we grep stderr for any message
3844 # that says an option was ignored or not supported.
3845 # When given -MP, icc 7.0 and 7.1 complain thusly:
3846 # icc: Command line warning: ignoring option '-M'; no argument required
3847 # The diagnosis changed in icc 8.0:
3848 # icc: Command line remark: option '-MP' not supported
3849 if (grep 'ignoring option' conftest.err ||
3850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3851 am_cv_CC_dependencies_compiler_type=$depmode
3852 break
3853 fi
3854 fi
3855 done
3856
3857 cd ..
3858 rm -rf conftest.dir
3859 else
3860 am_cv_CC_dependencies_compiler_type=none
3861 fi
3862
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3865 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3867
3868 if
3869 test "x$enable_dependency_tracking" != xno \
3870 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3871 am__fastdepCC_TRUE=
3872 am__fastdepCC_FALSE='#'
3873 else
3874 am__fastdepCC_TRUE='#'
3875 am__fastdepCC_FALSE=
3876 fi
3877
3878
3879 case `pwd` in
3880 *\ * | *\ *)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3882 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3883 esac
3884
3885
3886
3887 macro_version='2.4.6'
3888 macro_revision='2.4.6'
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902 ltmain=$ac_aux_dir/ltmain.sh
3903
3904 # Make sure we can run config.sub.
3905 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3906 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3907
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3909 $as_echo_n "checking build system type... " >&6; }
3910 if ${ac_cv_build+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 ac_build_alias=$build_alias
3914 test "x$ac_build_alias" = x &&
3915 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3916 test "x$ac_build_alias" = x &&
3917 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3918 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3920
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3923 $as_echo "$ac_cv_build" >&6; }
3924 case $ac_cv_build in
3925 *-*-*) ;;
3926 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3927 esac
3928 build=$ac_cv_build
3929 ac_save_IFS=$IFS; IFS='-'
3930 set x $ac_cv_build
3931 shift
3932 build_cpu=$1
3933 build_vendor=$2
3934 shift; shift
3935 # Remember, the first character of IFS is used to create $*,
3936 # except with old shells:
3937 build_os=$*
3938 IFS=$ac_save_IFS
3939 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3940
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3943 $as_echo_n "checking host system type... " >&6; }
3944 if ${ac_cv_host+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if test "x$host_alias" = x; then
3948 ac_cv_host=$ac_cv_build
3949 else
3950 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3952 fi
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3956 $as_echo "$ac_cv_host" >&6; }
3957 case $ac_cv_host in
3958 *-*-*) ;;
3959 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3960 esac
3961 host=$ac_cv_host
3962 ac_save_IFS=$IFS; IFS='-'
3963 set x $ac_cv_host
3964 shift
3965 host_cpu=$1
3966 host_vendor=$2
3967 shift; shift
3968 # Remember, the first character of IFS is used to create $*,
3969 # except with old shells:
3970 host_os=$*
3971 IFS=$ac_save_IFS
3972 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3973
3974
3975 # Backslashify metacharacters that are still active within
3976 # double-quoted strings.
3977 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3978
3979 # Same as above, but do not quote variable references.
3980 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3981
3982 # Sed substitution to delay expansion of an escaped shell variable in a
3983 # double_quote_subst'ed string.
3984 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3985
3986 # Sed substitution to delay expansion of an escaped single quote.
3987 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3988
3989 # Sed substitution to avoid accidental globbing in evaled expressions
3990 no_glob_subst='s/\*/\\\*/g'
3991
3992 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3995
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3997 $as_echo_n "checking how to print strings... " >&6; }
3998 # Test print first, because it will be a builtin if present.
3999 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4000 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4001 ECHO='print -r --'
4002 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4003 ECHO='printf %s\n'
4004 else
4005 # Use this function as a fallback that always works.
4006 func_fallback_echo ()
4007 {
4008 eval 'cat <<_LTECHO_EOF
4009 $1
4010 _LTECHO_EOF'
4011 }
4012 ECHO='func_fallback_echo'
4013 fi
4014
4015 # func_echo_all arg...
4016 # Invoke $ECHO with all args, space-separated.
4017 func_echo_all ()
4018 {
4019 $ECHO ""
4020 }
4021
4022 case $ECHO in
4023 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4024 $as_echo "printf" >&6; } ;;
4025 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4026 $as_echo "print -r" >&6; } ;;
4027 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4028 $as_echo "cat" >&6; } ;;
4029 esac
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4045 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4046 if ${ac_cv_path_SED+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4050 for ac_i in 1 2 3 4 5 6 7; do
4051 ac_script="$ac_script$as_nl$ac_script"
4052 done
4053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4054 { ac_script=; unset ac_script;}
4055 if test -z "$SED"; then
4056 ac_path_SED_found=false
4057 # Loop through the user's path and test for each of PROGNAME-LIST
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_prog in sed gsed; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4066 as_fn_executable_p "$ac_path_SED" || continue
4067 # Check for GNU ac_path_SED and select it if it is found.
4068 # Check for GNU $ac_path_SED
4069 case `"$ac_path_SED" --version 2>&1` in
4070 *GNU*)
4071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4072 *)
4073 ac_count=0
4074 $as_echo_n 0123456789 >"conftest.in"
4075 while :
4076 do
4077 cat "conftest.in" "conftest.in" >"conftest.tmp"
4078 mv "conftest.tmp" "conftest.in"
4079 cp "conftest.in" "conftest.nl"
4080 $as_echo '' >> "conftest.nl"
4081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083 as_fn_arith $ac_count + 1 && ac_count=$as_val
4084 if test $ac_count -gt ${ac_path_SED_max-0}; then
4085 # Best one so far, save it but keep looking for a better one
4086 ac_cv_path_SED="$ac_path_SED"
4087 ac_path_SED_max=$ac_count
4088 fi
4089 # 10*(2^10) chars as input seems more than enough
4090 test $ac_count -gt 10 && break
4091 done
4092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093 esac
4094
4095 $ac_path_SED_found && break 3
4096 done
4097 done
4098 done
4099 IFS=$as_save_IFS
4100 if test -z "$ac_cv_path_SED"; then
4101 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4102 fi
4103 else
4104 ac_cv_path_SED=$SED
4105 fi
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4109 $as_echo "$ac_cv_path_SED" >&6; }
4110 SED="$ac_cv_path_SED"
4111 rm -f conftest.sed
4112
4113 test -z "$SED" && SED=sed
4114 Xsed="$SED -e 1s/^X//"
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4128 if ${ac_cv_path_GREP+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -z "$GREP"; then
4132 ac_path_GREP_found=false
4133 # Loop through the user's path and test for each of PROGNAME-LIST
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136 do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_prog in grep ggrep; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4142 as_fn_executable_p "$ac_path_GREP" || continue
4143 # Check for GNU ac_path_GREP and select it if it is found.
4144 # Check for GNU $ac_path_GREP
4145 case `"$ac_path_GREP" --version 2>&1` in
4146 *GNU*)
4147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4148 *)
4149 ac_count=0
4150 $as_echo_n 0123456789 >"conftest.in"
4151 while :
4152 do
4153 cat "conftest.in" "conftest.in" >"conftest.tmp"
4154 mv "conftest.tmp" "conftest.in"
4155 cp "conftest.in" "conftest.nl"
4156 $as_echo 'GREP' >> "conftest.nl"
4157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159 as_fn_arith $ac_count + 1 && ac_count=$as_val
4160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4161 # Best one so far, save it but keep looking for a better one
4162 ac_cv_path_GREP="$ac_path_GREP"
4163 ac_path_GREP_max=$ac_count
4164 fi
4165 # 10*(2^10) chars as input seems more than enough
4166 test $ac_count -gt 10 && break
4167 done
4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 esac
4170
4171 $ac_path_GREP_found && break 3
4172 done
4173 done
4174 done
4175 IFS=$as_save_IFS
4176 if test -z "$ac_cv_path_GREP"; then
4177 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178 fi
4179 else
4180 ac_cv_path_GREP=$GREP
4181 fi
4182
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if ${ac_cv_path_EGREP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195 then ac_cv_path_EGREP="$GREP -E"
4196 else
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in egrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208 as_fn_executable_p "$ac_path_EGREP" || continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210 # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4212 *GNU*)
4213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214 *)
4215 ac_count=0
4216 $as_echo_n 0123456789 >"conftest.in"
4217 while :
4218 do
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'EGREP' >> "conftest.nl"
4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 as_fn_arith $ac_count + 1 && ac_count=$as_val
4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_EGREP="$ac_path_EGREP"
4229 ac_path_EGREP_max=$ac_count
4230 fi
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4233 done
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237 $ac_path_EGREP_found && break 3
4238 done
4239 done
4240 done
4241 IFS=$as_save_IFS
4242 if test -z "$ac_cv_path_EGREP"; then
4243 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244 fi
4245 else
4246 ac_cv_path_EGREP=$EGREP
4247 fi
4248
4249 fi
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4252 $as_echo "$ac_cv_path_EGREP" >&6; }
4253 EGREP="$ac_cv_path_EGREP"
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4257 $as_echo_n "checking for fgrep... " >&6; }
4258 if ${ac_cv_path_FGREP+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4262 then ac_cv_path_FGREP="$GREP -F"
4263 else
4264 if test -z "$FGREP"; then
4265 ac_path_FGREP_found=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in fgrep; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4275 as_fn_executable_p "$ac_path_FGREP" || continue
4276 # Check for GNU ac_path_FGREP and select it if it is found.
4277 # Check for GNU $ac_path_FGREP
4278 case `"$ac_path_FGREP" --version 2>&1` in
4279 *GNU*)
4280 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4281 *)
4282 ac_count=0
4283 $as_echo_n 0123456789 >"conftest.in"
4284 while :
4285 do
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo 'FGREP' >> "conftest.nl"
4290 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292 as_fn_arith $ac_count + 1 && ac_count=$as_val
4293 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_FGREP="$ac_path_FGREP"
4296 ac_path_FGREP_max=$ac_count
4297 fi
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4300 done
4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4303
4304 $ac_path_FGREP_found && break 3
4305 done
4306 done
4307 done
4308 IFS=$as_save_IFS
4309 if test -z "$ac_cv_path_FGREP"; then
4310 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4311 fi
4312 else
4313 ac_cv_path_FGREP=$FGREP
4314 fi
4315
4316 fi
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4319 $as_echo "$ac_cv_path_FGREP" >&6; }
4320 FGREP="$ac_cv_path_FGREP"
4321
4322
4323 test -z "$GREP" && GREP=grep
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343 # Check whether --with-gnu-ld was given.
4344 if test "${with_gnu_ld+set}" = set; then :
4345 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4346 else
4347 with_gnu_ld=no
4348 fi
4349
4350 ac_prog=ld
4351 if test yes = "$GCC"; then
4352 # Check if gcc -print-prog-name=ld gives a path.
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4354 $as_echo_n "checking for ld used by $CC... " >&6; }
4355 case $host in
4356 *-*-mingw*)
4357 # gcc leaves a trailing carriage return, which upsets mingw
4358 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4359 *)
4360 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4361 esac
4362 case $ac_prog in
4363 # Accept absolute paths.
4364 [\\/]* | ?:[\\/]*)
4365 re_direlt='/[^/][^/]*/\.\./'
4366 # Canonicalize the pathname of ld
4367 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4368 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4369 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4370 done
4371 test -z "$LD" && LD=$ac_prog
4372 ;;
4373 "")
4374 # If it fails, then pretend we aren't using GCC.
4375 ac_prog=ld
4376 ;;
4377 *)
4378 # If it is relative, then search for the first ld in PATH.
4379 with_gnu_ld=unknown
4380 ;;
4381 esac
4382 elif test yes = "$with_gnu_ld"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4384 $as_echo_n "checking for GNU ld... " >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4387 $as_echo_n "checking for non-GNU ld... " >&6; }
4388 fi
4389 if ${lt_cv_path_LD+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -z "$LD"; then
4393 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4394 for ac_dir in $PATH; do
4395 IFS=$lt_save_ifs
4396 test -z "$ac_dir" && ac_dir=.
4397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4398 lt_cv_path_LD=$ac_dir/$ac_prog
4399 # Check to see if the program is GNU ld. I'd rather use --version,
4400 # but apparently some variants of GNU ld only accept -v.
4401 # Break only if it was the GNU/non-GNU ld that we prefer.
4402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4403 *GNU* | *'with BFD'*)
4404 test no != "$with_gnu_ld" && break
4405 ;;
4406 *)
4407 test yes != "$with_gnu_ld" && break
4408 ;;
4409 esac
4410 fi
4411 done
4412 IFS=$lt_save_ifs
4413 else
4414 lt_cv_path_LD=$LD # Let the user override the test with a path.
4415 fi
4416 fi
4417
4418 LD=$lt_cv_path_LD
4419 if test -n "$LD"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4421 $as_echo "$LD" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4428 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4429 if ${lt_cv_prog_gnu_ld+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4433 case `$LD -v 2>&1 </dev/null` in
4434 *GNU* | *'with BFD'*)
4435 lt_cv_prog_gnu_ld=yes
4436 ;;
4437 *)
4438 lt_cv_prog_gnu_ld=no
4439 ;;
4440 esac
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4443 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4444 with_gnu_ld=$lt_cv_prog_gnu_ld
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4455 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4456 if ${lt_cv_path_NM+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$NM"; then
4460 # Let the user override the test.
4461 lt_cv_path_NM=$NM
4462 else
4463 lt_nm_to_check=${ac_tool_prefix}nm
4464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4465 lt_nm_to_check="$lt_nm_to_check nm"
4466 fi
4467 for lt_tmp_nm in $lt_nm_to_check; do
4468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4470 IFS=$lt_save_ifs
4471 test -z "$ac_dir" && ac_dir=.
4472 tmp_nm=$ac_dir/$lt_tmp_nm
4473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4474 # Check to see if the nm accepts a BSD-compat flag.
4475 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4476 # nm: unknown option "B" ignored
4477 # Tru64's nm complains that /dev/null is an invalid object file
4478 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4479 case $build_os in
4480 mingw*) lt_bad_file=conftest.nm/nofile ;;
4481 *) lt_bad_file=/dev/null ;;
4482 esac
4483 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4484 *$lt_bad_file* | *'Invalid file or object type'*)
4485 lt_cv_path_NM="$tmp_nm -B"
4486 break 2
4487 ;;
4488 *)
4489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4490 */dev/null*)
4491 lt_cv_path_NM="$tmp_nm -p"
4492 break 2
4493 ;;
4494 *)
4495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4496 continue # so that we can try to find one that supports BSD flags
4497 ;;
4498 esac
4499 ;;
4500 esac
4501 fi
4502 done
4503 IFS=$lt_save_ifs
4504 done
4505 : ${lt_cv_path_NM=no}
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4509 $as_echo "$lt_cv_path_NM" >&6; }
4510 if test no != "$lt_cv_path_NM"; then
4511 NM=$lt_cv_path_NM
4512 else
4513 # Didn't find any BSD compatible name lister, look for dumpbin.
4514 if test -n "$DUMPBIN"; then :
4515 # Let the user override the test.
4516 else
4517 if test -n "$ac_tool_prefix"; then
4518 for ac_prog in dumpbin "link -dump"
4519 do
4520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_prog_DUMPBIN+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$DUMPBIN"; then
4528 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4540 fi
4541 done
4542 done
4543 IFS=$as_save_IFS
4544
4545 fi
4546 fi
4547 DUMPBIN=$ac_cv_prog_DUMPBIN
4548 if test -n "$DUMPBIN"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4550 $as_echo "$DUMPBIN" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4554 fi
4555
4556
4557 test -n "$DUMPBIN" && break
4558 done
4559 fi
4560 if test -z "$DUMPBIN"; then
4561 ac_ct_DUMPBIN=$DUMPBIN
4562 for ac_prog in dumpbin "link -dump"
4563 do
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$ac_ct_DUMPBIN"; then
4572 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589 fi
4590 fi
4591 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4592 if test -n "$ac_ct_DUMPBIN"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4594 $as_echo "$ac_ct_DUMPBIN" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 fi
4599
4600
4601 test -n "$ac_ct_DUMPBIN" && break
4602 done
4603
4604 if test "x$ac_ct_DUMPBIN" = x; then
4605 DUMPBIN=":"
4606 else
4607 case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 DUMPBIN=$ac_ct_DUMPBIN
4614 fi
4615 fi
4616
4617 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4618 *COFF*)
4619 DUMPBIN="$DUMPBIN -symbols -headers"
4620 ;;
4621 *)
4622 DUMPBIN=:
4623 ;;
4624 esac
4625 fi
4626
4627 if test : != "$DUMPBIN"; then
4628 NM=$DUMPBIN
4629 fi
4630 fi
4631 test -z "$NM" && NM=nm
4632
4633
4634
4635
4636
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4639 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4640 if ${lt_cv_nm_interface+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 lt_cv_nm_interface="BSD nm"
4644 echo "int some_variable = 0;" > conftest.$ac_ext
4645 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4646 (eval "$ac_compile" 2>conftest.err)
4647 cat conftest.err >&5
4648 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4649 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4650 cat conftest.err >&5
4651 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4652 cat conftest.out >&5
4653 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4654 lt_cv_nm_interface="MS dumpbin"
4655 fi
4656 rm -f conftest*
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4659 $as_echo "$lt_cv_nm_interface" >&6; }
4660
4661 # find the maximum length of command line arguments
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4663 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4664 if ${lt_cv_sys_max_cmd_len+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 i=0
4668 teststring=ABCD
4669
4670 case $build_os in
4671 msdosdjgpp*)
4672 # On DJGPP, this test can blow up pretty badly due to problems in libc
4673 # (any single argument exceeding 2000 bytes causes a buffer overrun
4674 # during glob expansion). Even if it were fixed, the result of this
4675 # check would be larger than it should be.
4676 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4677 ;;
4678
4679 gnu*)
4680 # Under GNU Hurd, this test is not required because there is
4681 # no limit to the length of command line arguments.
4682 # Libtool will interpret -1 as no limit whatsoever
4683 lt_cv_sys_max_cmd_len=-1;
4684 ;;
4685
4686 cygwin* | mingw* | cegcc*)
4687 # On Win9x/ME, this test blows up -- it succeeds, but takes
4688 # about 5 minutes as the teststring grows exponentially.
4689 # Worse, since 9x/ME are not pre-emptively multitasking,
4690 # you end up with a "frozen" computer, even though with patience
4691 # the test eventually succeeds (with a max line length of 256k).
4692 # Instead, let's just punt: use the minimum linelength reported by
4693 # all of the supported platforms: 8192 (on NT/2K/XP).
4694 lt_cv_sys_max_cmd_len=8192;
4695 ;;
4696
4697 mint*)
4698 # On MiNT this can take a long time and run out of memory.
4699 lt_cv_sys_max_cmd_len=8192;
4700 ;;
4701
4702 amigaos*)
4703 # On AmigaOS with pdksh, this test takes hours, literally.
4704 # So we just punt and use a minimum line length of 8192.
4705 lt_cv_sys_max_cmd_len=8192;
4706 ;;
4707
4708 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4709 # This has been around since 386BSD, at least. Likely further.
4710 if test -x /sbin/sysctl; then
4711 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4712 elif test -x /usr/sbin/sysctl; then
4713 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4714 else
4715 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4716 fi
4717 # And add a safety zone
4718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4720 ;;
4721
4722 interix*)
4723 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4724 lt_cv_sys_max_cmd_len=196608
4725 ;;
4726
4727 os2*)
4728 # The test takes a long time on OS/2.
4729 lt_cv_sys_max_cmd_len=8192
4730 ;;
4731
4732 osf*)
4733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4735 # nice to cause kernel panics so lets avoid the loop below.
4736 # First set a reasonable default.
4737 lt_cv_sys_max_cmd_len=16384
4738 #
4739 if test -x /sbin/sysconfig; then
4740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4741 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4742 esac
4743 fi
4744 ;;
4745 sco3.2v5*)
4746 lt_cv_sys_max_cmd_len=102400
4747 ;;
4748 sysv5* | sco5v6* | sysv4.2uw2*)
4749 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4750 if test -n "$kargmax"; then
4751 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4752 else
4753 lt_cv_sys_max_cmd_len=32768
4754 fi
4755 ;;
4756 *)
4757 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4758 if test -n "$lt_cv_sys_max_cmd_len" && \
4759 test undefined != "$lt_cv_sys_max_cmd_len"; then
4760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4762 else
4763 # Make teststring a little bigger before we do anything with it.
4764 # a 1K string should be a reasonable start.
4765 for i in 1 2 3 4 5 6 7 8; do
4766 teststring=$teststring$teststring
4767 done
4768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4769 # If test is not a shell built-in, we'll probably end up computing a
4770 # maximum length that is only half of the actual maximum length, but
4771 # we can't tell.
4772 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4773 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4774 test 17 != "$i" # 1/2 MB should be enough
4775 do
4776 i=`expr $i + 1`
4777 teststring=$teststring$teststring
4778 done
4779 # Only check the string length outside the loop.
4780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4781 teststring=
4782 # Add a significant safety factor because C++ compilers can tack on
4783 # massive amounts of additional arguments before passing them to the
4784 # linker. It appears as though 1/2 is a usable value.
4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4786 fi
4787 ;;
4788 esac
4789
4790 fi
4791
4792 if test -n "$lt_cv_sys_max_cmd_len"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4794 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4797 $as_echo "none" >&6; }
4798 fi
4799 max_cmd_len=$lt_cv_sys_max_cmd_len
4800
4801
4802
4803
4804
4805
4806 : ${CP="cp -f"}
4807 : ${MV="mv -f"}
4808 : ${RM="rm -f"}
4809
4810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4811 lt_unset=unset
4812 else
4813 lt_unset=false
4814 fi
4815
4816
4817
4818
4819
4820 # test EBCDIC or ASCII
4821 case `echo X|tr X '\101'` in
4822 A) # ASCII based system
4823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4824 lt_SP2NL='tr \040 \012'
4825 lt_NL2SP='tr \015\012 \040\040'
4826 ;;
4827 *) # EBCDIC based system
4828 lt_SP2NL='tr \100 \n'
4829 lt_NL2SP='tr \r\n \100\100'
4830 ;;
4831 esac
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4842 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4843 if ${lt_cv_to_host_file_cmd+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 case $host in
4847 *-*-mingw* )
4848 case $build in
4849 *-*-mingw* ) # actually msys
4850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4851 ;;
4852 *-*-cygwin* )
4853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4854 ;;
4855 * ) # otherwise, assume *nix
4856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4857 ;;
4858 esac
4859 ;;
4860 *-*-cygwin* )
4861 case $build in
4862 *-*-mingw* ) # actually msys
4863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4864 ;;
4865 *-*-cygwin* )
4866 lt_cv_to_host_file_cmd=func_convert_file_noop
4867 ;;
4868 * ) # otherwise, assume *nix
4869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4870 ;;
4871 esac
4872 ;;
4873 * ) # unhandled hosts (and "normal" native builds)
4874 lt_cv_to_host_file_cmd=func_convert_file_noop
4875 ;;
4876 esac
4877
4878 fi
4879
4880 to_host_file_cmd=$lt_cv_to_host_file_cmd
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4882 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4883
4884
4885
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4889 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4890 if ${lt_cv_to_tool_file_cmd+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 #assume ordinary cross tools, or native build.
4894 lt_cv_to_tool_file_cmd=func_convert_file_noop
4895 case $host in
4896 *-*-mingw* )
4897 case $build in
4898 *-*-mingw* ) # actually msys
4899 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4900 ;;
4901 esac
4902 ;;
4903 esac
4904
4905 fi
4906
4907 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4909 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4910
4911
4912
4913
4914
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4916 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4917 if ${lt_cv_ld_reload_flag+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 lt_cv_ld_reload_flag='-r'
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4923 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4924 reload_flag=$lt_cv_ld_reload_flag
4925 case $reload_flag in
4926 "" | " "*) ;;
4927 *) reload_flag=" $reload_flag" ;;
4928 esac
4929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4930 case $host_os in
4931 cygwin* | mingw* | pw32* | cegcc*)
4932 if test yes != "$GCC"; then
4933 reload_cmds=false
4934 fi
4935 ;;
4936 darwin*)
4937 if test yes = "$GCC"; then
4938 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4939 else
4940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4941 fi
4942 ;;
4943 esac
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_OBJDUMP+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$OBJDUMP"; then
4962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 OBJDUMP=$ac_cv_prog_OBJDUMP
4982 if test -n "$OBJDUMP"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4984 $as_echo "$OBJDUMP" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991 fi
4992 if test -z "$ac_cv_prog_OBJDUMP"; then
4993 ac_ct_OBJDUMP=$OBJDUMP
4994 # Extract the first word of "objdump", so it can be a program name with args.
4995 set dummy objdump; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$ac_ct_OBJDUMP"; then
5002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5022 if test -n "$ac_ct_OBJDUMP"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5024 $as_echo "$ac_ct_OBJDUMP" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030 if test "x$ac_ct_OBJDUMP" = x; then
5031 OBJDUMP="false"
5032 else
5033 case $cross_compiling:$ac_tool_warned in
5034 yes:)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5038 esac
5039 OBJDUMP=$ac_ct_OBJDUMP
5040 fi
5041 else
5042 OBJDUMP="$ac_cv_prog_OBJDUMP"
5043 fi
5044
5045 test -z "$OBJDUMP" && OBJDUMP=objdump
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5056 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5057 if ${lt_cv_deplibs_check_method+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 lt_cv_file_magic_cmd='$MAGIC_CMD'
5061 lt_cv_file_magic_test_file=
5062 lt_cv_deplibs_check_method='unknown'
5063 # Need to set the preceding variable on all platforms that support
5064 # interlibrary dependencies.
5065 # 'none' -- dependencies not supported.
5066 # 'unknown' -- same as none, but documents that we really don't know.
5067 # 'pass_all' -- all dependencies passed with no checks.
5068 # 'test_compile' -- check by making test program.
5069 # 'file_magic [[regex]]' -- check by looking for files in library path
5070 # that responds to the $file_magic_cmd with a given extended regex.
5071 # If you have 'file' or equivalent on your system and you're not sure
5072 # whether 'pass_all' will *always* work, you probably want this one.
5073
5074 case $host_os in
5075 aix[4-9]*)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078
5079 beos*)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083 bsdi[45]*)
5084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5085 lt_cv_file_magic_cmd='/usr/bin/file -L'
5086 lt_cv_file_magic_test_file=/shlib/libc.so
5087 ;;
5088
5089 cygwin*)
5090 # func_win32_libid is a shell function defined in ltmain.sh
5091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5092 lt_cv_file_magic_cmd='func_win32_libid'
5093 ;;
5094
5095 mingw* | pw32*)
5096 # Base MSYS/MinGW do not provide the 'file' command needed by
5097 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5098 # unless we find 'file', for example because we are cross-compiling.
5099 if ( file / ) >/dev/null 2>&1; then
5100 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5101 lt_cv_file_magic_cmd='func_win32_libid'
5102 else
5103 # Keep this pattern in sync with the one in func_win32_libid.
5104 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5105 lt_cv_file_magic_cmd='$OBJDUMP -f'
5106 fi
5107 ;;
5108
5109 cegcc*)
5110 # use the weaker test based on 'objdump'. See mingw*.
5111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5112 lt_cv_file_magic_cmd='$OBJDUMP -f'
5113 ;;
5114
5115 darwin* | rhapsody*)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118
5119 freebsd* | dragonfly*)
5120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5121 case $host_cpu in
5122 i*86 )
5123 # Not sure whether the presence of OpenBSD here was a mistake.
5124 # Let's accept both of them until this is cleared up.
5125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5126 lt_cv_file_magic_cmd=/usr/bin/file
5127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5128 ;;
5129 esac
5130 else
5131 lt_cv_deplibs_check_method=pass_all
5132 fi
5133 ;;
5134
5135 haiku*)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138
5139 hpux10.20* | hpux11*)
5140 lt_cv_file_magic_cmd=/usr/bin/file
5141 case $host_cpu in
5142 ia64*)
5143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5145 ;;
5146 hppa*64*)
5147 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]'
5148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5149 ;;
5150 *)
5151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5152 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5153 ;;
5154 esac
5155 ;;
5156
5157 interix[3-9]*)
5158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5160 ;;
5161
5162 irix5* | irix6* | nonstopux*)
5163 case $LD in
5164 *-32|*"-32 ") libmagic=32-bit;;
5165 *-n32|*"-n32 ") libmagic=N32;;
5166 *-64|*"-64 ") libmagic=64-bit;;
5167 *) libmagic=never-match;;
5168 esac
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5171
5172 # This must be glibc/ELF.
5173 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
5176
5177 netbsd*)
5178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180 else
5181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5182 fi
5183 ;;
5184
5185 newos6*)
5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5189 ;;
5190
5191 *nto* | *qnx*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194
5195 openbsd* | bitrig*)
5196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5200 fi
5201 ;;
5202
5203 osf3* | osf4* | osf5*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207 rdos*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 solaris*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 sysv4 | sysv4.3*)
5220 case $host_vendor in
5221 motorola)
5222 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]'
5223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5224 ;;
5225 ncr)
5226 lt_cv_deplibs_check_method=pass_all
5227 ;;
5228 sequent)
5229 lt_cv_file_magic_cmd='/bin/file'
5230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5231 ;;
5232 sni)
5233 lt_cv_file_magic_cmd='/bin/file'
5234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5235 lt_cv_file_magic_test_file=/lib/libc.so
5236 ;;
5237 siemens)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240 pc)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243 esac
5244 ;;
5245
5246 tpf*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249 os2*)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252 esac
5253
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5256 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5257
5258 file_magic_glob=
5259 want_nocaseglob=no
5260 if test "$build" = "$host"; then
5261 case $host_os in
5262 mingw* | pw32*)
5263 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5264 want_nocaseglob=yes
5265 else
5266 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5267 fi
5268 ;;
5269 esac
5270 fi
5271
5272 file_magic_cmd=$lt_cv_file_magic_cmd
5273 deplibs_check_method=$lt_cv_deplibs_check_method
5274 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_DLLTOOL+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if test -n "$DLLTOOL"; then
5306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5318 fi
5319 done
5320 done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 DLLTOOL=$ac_cv_prog_DLLTOOL
5326 if test -n "$DLLTOOL"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5328 $as_echo "$DLLTOOL" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335 fi
5336 if test -z "$ac_cv_prog_DLLTOOL"; then
5337 ac_ct_DLLTOOL=$DLLTOOL
5338 # Extract the first word of "dlltool", so it can be a program name with args.
5339 set dummy dlltool; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$ac_ct_DLLTOOL"; then
5346 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5366 if test -n "$ac_ct_DLLTOOL"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5368 $as_echo "$ac_ct_DLLTOOL" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374 if test "x$ac_ct_DLLTOOL" = x; then
5375 DLLTOOL="false"
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 DLLTOOL=$ac_ct_DLLTOOL
5384 fi
5385 else
5386 DLLTOOL="$ac_cv_prog_DLLTOOL"
5387 fi
5388
5389 test -z "$DLLTOOL" && DLLTOOL=dlltool
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5401 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5402 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 lt_cv_sharedlib_from_linklib_cmd='unknown'
5406
5407 case $host_os in
5408 cygwin* | mingw* | pw32* | cegcc*)
5409 # two different shell functions defined in ltmain.sh;
5410 # decide which one to use based on capabilities of $DLLTOOL
5411 case `$DLLTOOL --help 2>&1` in
5412 *--identify-strict*)
5413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5414 ;;
5415 *)
5416 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5417 ;;
5418 esac
5419 ;;
5420 *)
5421 # fallback: assume linklib IS sharedlib
5422 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5423 ;;
5424 esac
5425
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5428 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5429 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5430 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5431
5432
5433
5434
5435
5436
5437
5438
5439 if test -n "$ac_tool_prefix"; then
5440 for ac_prog in ar
5441 do
5442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_AR+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$AR"; then
5450 ac_cv_prog_AR="$AR" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 AR=$ac_cv_prog_AR
5470 if test -n "$AR"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5472 $as_echo "$AR" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 test -n "$AR" && break
5480 done
5481 fi
5482 if test -z "$AR"; then
5483 ac_ct_AR=$AR
5484 for ac_prog in ar
5485 do
5486 # Extract the first word of "$ac_prog", so it can be a program name with args.
5487 set dummy $ac_prog; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$ac_ct_AR"; then
5494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_ac_ct_AR="$ac_prog"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5514 if test -n "$ac_ct_AR"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5516 $as_echo "$ac_ct_AR" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 test -n "$ac_ct_AR" && break
5524 done
5525
5526 if test "x$ac_ct_AR" = x; then
5527 AR="false"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 AR=$ac_ct_AR
5536 fi
5537 fi
5538
5539 : ${AR=ar}
5540 : ${AR_FLAGS=cru}
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5553 $as_echo_n "checking for archiver @FILE support... " >&6; }
5554 if ${lt_cv_ar_at_file+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 lt_cv_ar_at_file=no
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560
5561 int
5562 main ()
5563 {
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 echo conftest.$ac_objext > conftest.lst
5571 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5573 (eval $lt_ar_try) 2>&5
5574 ac_status=$?
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }
5577 if test 0 -eq "$ac_status"; then
5578 # Ensure the archiver fails upon bogus file names.
5579 rm -f conftest.$ac_objext libconftest.a
5580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5581 (eval $lt_ar_try) 2>&5
5582 ac_status=$?
5583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5584 test $ac_status = 0; }
5585 if test 0 -ne "$ac_status"; then
5586 lt_cv_ar_at_file=@
5587 fi
5588 fi
5589 rm -f conftest.* libconftest.a
5590
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5596 $as_echo "$lt_cv_ar_at_file" >&6; }
5597
5598 if test no = "$lt_cv_ar_at_file"; then
5599 archiver_list_spec=
5600 else
5601 archiver_list_spec=$lt_cv_ar_at_file
5602 fi
5603
5604
5605
5606
5607
5608
5609
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}strip; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_STRIP+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$STRIP"; then
5619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632 done
5633 done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 STRIP=$ac_cv_prog_STRIP
5639 if test -n "$STRIP"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5641 $as_echo "$STRIP" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647
5648 fi
5649 if test -z "$ac_cv_prog_STRIP"; then
5650 ac_ct_STRIP=$STRIP
5651 # Extract the first word of "strip", so it can be a program name with args.
5652 set dummy strip; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_STRIP"; then
5659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_ac_ct_STRIP="strip"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5679 if test -n "$ac_ct_STRIP"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5681 $as_echo "$ac_ct_STRIP" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687 if test "x$ac_ct_STRIP" = x; then
5688 STRIP=":"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 STRIP=$ac_ct_STRIP
5697 fi
5698 else
5699 STRIP="$ac_cv_prog_STRIP"
5700 fi
5701
5702 test -z "$STRIP" && STRIP=:
5703
5704
5705
5706
5707
5708
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_RANLIB+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$RANLIB"; then
5718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 RANLIB=$ac_cv_prog_RANLIB
5738 if test -n "$RANLIB"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5740 $as_echo "$RANLIB" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745
5746
5747 fi
5748 if test -z "$ac_cv_prog_RANLIB"; then
5749 ac_ct_RANLIB=$RANLIB
5750 # Extract the first word of "ranlib", so it can be a program name with args.
5751 set dummy ranlib; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_RANLIB"; then
5758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_RANLIB="ranlib"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5778 if test -n "$ac_ct_RANLIB"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5780 $as_echo "$ac_ct_RANLIB" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785
5786 if test "x$ac_ct_RANLIB" = x; then
5787 RANLIB=":"
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 RANLIB=$ac_ct_RANLIB
5796 fi
5797 else
5798 RANLIB="$ac_cv_prog_RANLIB"
5799 fi
5800
5801 test -z "$RANLIB" && RANLIB=:
5802
5803
5804
5805
5806
5807
5808 # Determine commands to create old-style static archives.
5809 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5810 old_postinstall_cmds='chmod 644 $oldlib'
5811 old_postuninstall_cmds=
5812
5813 if test -n "$RANLIB"; then
5814 case $host_os in
5815 bitrig* | openbsd*)
5816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5817 ;;
5818 *)
5819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5820 ;;
5821 esac
5822 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5823 fi
5824
5825 case $host_os in
5826 darwin*)
5827 lock_old_archive_extraction=yes ;;
5828 *)
5829 lock_old_archive_extraction=no ;;
5830 esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 # If no C compiler was specified, use CC.
5871 LTCC=${LTCC-"$CC"}
5872
5873 # If no C compiler flags were specified, use CFLAGS.
5874 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5875
5876 # Allow CC to be a program name with arguments.
5877 compiler=$CC
5878
5879
5880 # Check for command to grab the raw symbol name followed by C symbol from nm.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5882 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5883 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886
5887 # These are sane defaults that work on at least a few old systems.
5888 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5889
5890 # Character class describing NM global symbol codes.
5891 symcode='[BCDEGRST]'
5892
5893 # Regexp to match symbols that can be accessed directly from C.
5894 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5895
5896 # Define system-specific variables.
5897 case $host_os in
5898 aix*)
5899 symcode='[BCDT]'
5900 ;;
5901 cygwin* | mingw* | pw32* | cegcc*)
5902 symcode='[ABCDGISTW]'
5903 ;;
5904 hpux*)
5905 if test ia64 = "$host_cpu"; then
5906 symcode='[ABCDEGRST]'
5907 fi
5908 ;;
5909 irix* | nonstopux*)
5910 symcode='[BCDEGRST]'
5911 ;;
5912 osf*)
5913 symcode='[BCDEGQRST]'
5914 ;;
5915 solaris*)
5916 symcode='[BDRT]'
5917 ;;
5918 sco3.2v5*)
5919 symcode='[DT]'
5920 ;;
5921 sysv4.2uw2*)
5922 symcode='[DT]'
5923 ;;
5924 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5925 symcode='[ABDT]'
5926 ;;
5927 sysv4)
5928 symcode='[DFNSTU]'
5929 ;;
5930 esac
5931
5932 # If we're using GNU nm, then use its standard symbol codes.
5933 case `$NM -V 2>&1` in
5934 *GNU* | *'with BFD'*)
5935 symcode='[ABCDGIRSTW]' ;;
5936 esac
5937
5938 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5939 # Gets list of data symbols to import.
5940 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5941 # Adjust the below global symbol transforms to fixup imported variables.
5942 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5943 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5944 lt_c_name_lib_hook="\
5945 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5946 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5947 else
5948 # Disable hooks by default.
5949 lt_cv_sys_global_symbol_to_import=
5950 lt_cdecl_hook=
5951 lt_c_name_hook=
5952 lt_c_name_lib_hook=
5953 fi
5954
5955 # Transform an extracted symbol line into a proper C declaration.
5956 # Some systems (esp. on ia64) link data and code symbols differently,
5957 # so use this general approach.
5958 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5959 $lt_cdecl_hook\
5960 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5961 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5962
5963 # Transform an extracted symbol line into symbol name and symbol address
5964 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5965 $lt_c_name_hook\
5966 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5967 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5968
5969 # Transform an extracted symbol line into symbol name with lib prefix and
5970 # symbol address.
5971 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5972 $lt_c_name_lib_hook\
5973 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5974 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5975 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5976
5977 # Handle CRLF in mingw tool chain
5978 opt_cr=
5979 case $build_os in
5980 mingw*)
5981 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5982 ;;
5983 esac
5984
5985 # Try without a prefix underscore, then with it.
5986 for ac_symprfx in "" "_"; do
5987
5988 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5989 symxfrm="\\1 $ac_symprfx\\2 \\2"
5990
5991 # Write the raw and C identifiers.
5992 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5993 # Fake it for dumpbin and say T for any non-static function,
5994 # D for any global variable and I for any imported variable.
5995 # Also find C++ and __fastcall symbols from MSVC++,
5996 # which start with @ or ?.
5997 lt_cv_sys_global_symbol_pipe="$AWK '"\
5998 " {last_section=section; section=\$ 3};"\
5999 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6000 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6001 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6002 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6003 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6004 " \$ 0!~/External *\|/{next};"\
6005 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6006 " {if(hide[section]) next};"\
6007 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6008 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6009 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6010 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6011 " ' prfx=^$ac_symprfx"
6012 else
6013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6014 fi
6015 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6016
6017 # Check to see that the pipe works correctly.
6018 pipe_works=no
6019
6020 rm -f conftest*
6021 cat > conftest.$ac_ext <<_LT_EOF
6022 #ifdef __cplusplus
6023 extern "C" {
6024 #endif
6025 char nm_test_var;
6026 void nm_test_func(void);
6027 void nm_test_func(void){}
6028 #ifdef __cplusplus
6029 }
6030 #endif
6031 int main(){nm_test_var='a';nm_test_func();return(0);}
6032 _LT_EOF
6033
6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }; then
6039 # Now try to grab the symbols.
6040 nlist=conftest.nm
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6042 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; } && test -s "$nlist"; then
6046 # Try sorting and uniquifying the output.
6047 if sort "$nlist" | uniq > "$nlist"T; then
6048 mv -f "$nlist"T "$nlist"
6049 else
6050 rm -f "$nlist"T
6051 fi
6052
6053 # Make sure that we snagged all the symbols we need.
6054 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6055 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6056 cat <<_LT_EOF > conftest.$ac_ext
6057 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6058 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6059 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6060 relocations are performed -- see ld's documentation on pseudo-relocs. */
6061 # define LT_DLSYM_CONST
6062 #elif defined __osf__
6063 /* This system does not cope well with relocations in const data. */
6064 # define LT_DLSYM_CONST
6065 #else
6066 # define LT_DLSYM_CONST const
6067 #endif
6068
6069 #ifdef __cplusplus
6070 extern "C" {
6071 #endif
6072
6073 _LT_EOF
6074 # Now generate the symbol file.
6075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6076
6077 cat <<_LT_EOF >> conftest.$ac_ext
6078
6079 /* The mapping between symbol names and symbols. */
6080 LT_DLSYM_CONST struct {
6081 const char *name;
6082 void *address;
6083 }
6084 lt__PROGRAM__LTX_preloaded_symbols[] =
6085 {
6086 { "@PROGRAM@", (void *) 0 },
6087 _LT_EOF
6088 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6089 cat <<\_LT_EOF >> conftest.$ac_ext
6090 {0, (void *) 0}
6091 };
6092
6093 /* This works around a problem in FreeBSD linker */
6094 #ifdef FREEBSD_WORKAROUND
6095 static const void *lt_preloaded_setup() {
6096 return lt__PROGRAM__LTX_preloaded_symbols;
6097 }
6098 #endif
6099
6100 #ifdef __cplusplus
6101 }
6102 #endif
6103 _LT_EOF
6104 # Now try linking the two files.
6105 mv conftest.$ac_objext conftstm.$ac_objext
6106 lt_globsym_save_LIBS=$LIBS
6107 lt_globsym_save_CFLAGS=$CFLAGS
6108 LIBS=conftstm.$ac_objext
6109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6111 (eval $ac_link) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6115 pipe_works=yes
6116 fi
6117 LIBS=$lt_globsym_save_LIBS
6118 CFLAGS=$lt_globsym_save_CFLAGS
6119 else
6120 echo "cannot find nm_test_func in $nlist" >&5
6121 fi
6122 else
6123 echo "cannot find nm_test_var in $nlist" >&5
6124 fi
6125 else
6126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6127 fi
6128 else
6129 echo "$progname: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 fi
6132 rm -rf conftest* conftst*
6133
6134 # Do not use the global_symbol_pipe unless it works.
6135 if test yes = "$pipe_works"; then
6136 break
6137 else
6138 lt_cv_sys_global_symbol_pipe=
6139 fi
6140 done
6141
6142 fi
6143
6144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6145 lt_cv_sys_global_symbol_to_cdecl=
6146 fi
6147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6149 $as_echo "failed" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6152 $as_echo "ok" >&6; }
6153 fi
6154
6155 # Response file support.
6156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6157 nm_file_list_spec='@'
6158 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6159 nm_file_list_spec='@'
6160 fi
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6199 $as_echo_n "checking for sysroot... " >&6; }
6200
6201 # Check whether --with-sysroot was given.
6202 if test "${with_sysroot+set}" = set; then :
6203 withval=$with_sysroot;
6204 else
6205 with_sysroot=no
6206 fi
6207
6208
6209 lt_sysroot=
6210 case $with_sysroot in #(
6211 yes)
6212 if test yes = "$GCC"; then
6213 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6214 fi
6215 ;; #(
6216 /*)
6217 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6218 ;; #(
6219 no|'')
6220 ;; #(
6221 *)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6223 $as_echo "$with_sysroot" >&6; }
6224 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6225 ;;
6226 esac
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6229 $as_echo "${lt_sysroot:-no}" >&6; }
6230
6231
6232
6233
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6236 $as_echo_n "checking for a working dd... " >&6; }
6237 if ${ac_cv_path_lt_DD+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 printf 0123456789abcdef0123456789abcdef >conftest.i
6241 cat conftest.i conftest.i >conftest2.i
6242 : ${lt_DD:=$DD}
6243 if test -z "$lt_DD"; then
6244 ac_path_lt_DD_found=false
6245 # Loop through the user's path and test for each of PROGNAME-LIST
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_prog in dd; do
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6254 as_fn_executable_p "$ac_path_lt_DD" || continue
6255 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6256 cmp -s conftest.i conftest.out \
6257 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6258 fi
6259 $ac_path_lt_DD_found && break 3
6260 done
6261 done
6262 done
6263 IFS=$as_save_IFS
6264 if test -z "$ac_cv_path_lt_DD"; then
6265 :
6266 fi
6267 else
6268 ac_cv_path_lt_DD=$lt_DD
6269 fi
6270
6271 rm -f conftest.i conftest2.i conftest.out
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6274 $as_echo "$ac_cv_path_lt_DD" >&6; }
6275
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6278 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6279 if ${lt_cv_truncate_bin+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 printf 0123456789abcdef0123456789abcdef >conftest.i
6283 cat conftest.i conftest.i >conftest2.i
6284 lt_cv_truncate_bin=
6285 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6286 cmp -s conftest.i conftest.out \
6287 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6288 fi
6289 rm -f conftest.i conftest2.i conftest.out
6290 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6293 $as_echo "$lt_cv_truncate_bin" >&6; }
6294
6295
6296
6297
6298
6299
6300
6301 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6302 func_cc_basename ()
6303 {
6304 for cc_temp in $*""; do
6305 case $cc_temp in
6306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6308 \-*) ;;
6309 *) break;;
6310 esac
6311 done
6312 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6313 }
6314
6315 # Check whether --enable-libtool-lock was given.
6316 if test "${enable_libtool_lock+set}" = set; then :
6317 enableval=$enable_libtool_lock;
6318 fi
6319
6320 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6321
6322 # Some flags need to be propagated to the compiler or linker for good
6323 # libtool support.
6324 case $host in
6325 ia64-*-hpux*)
6326 # Find out what ABI is being produced by ac_compile, and set mode
6327 # options accordingly.
6328 echo 'int i;' > conftest.$ac_ext
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6330 (eval $ac_compile) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }; then
6334 case `/usr/bin/file conftest.$ac_objext` in
6335 *ELF-32*)
6336 HPUX_IA64_MODE=32
6337 ;;
6338 *ELF-64*)
6339 HPUX_IA64_MODE=64
6340 ;;
6341 esac
6342 fi
6343 rm -rf conftest*
6344 ;;
6345 *-*-irix6*)
6346 # Find out what ABI is being produced by ac_compile, and set linker
6347 # options accordingly.
6348 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6350 (eval $ac_compile) 2>&5
6351 ac_status=$?
6352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6353 test $ac_status = 0; }; then
6354 if test yes = "$lt_cv_prog_gnu_ld"; then
6355 case `/usr/bin/file conftest.$ac_objext` in
6356 *32-bit*)
6357 LD="${LD-ld} -melf32bsmip"
6358 ;;
6359 *N32*)
6360 LD="${LD-ld} -melf32bmipn32"
6361 ;;
6362 *64-bit*)
6363 LD="${LD-ld} -melf64bmip"
6364 ;;
6365 esac
6366 else
6367 case `/usr/bin/file conftest.$ac_objext` in
6368 *32-bit*)
6369 LD="${LD-ld} -32"
6370 ;;
6371 *N32*)
6372 LD="${LD-ld} -n32"
6373 ;;
6374 *64-bit*)
6375 LD="${LD-ld} -64"
6376 ;;
6377 esac
6378 fi
6379 fi
6380 rm -rf conftest*
6381 ;;
6382
6383 mips64*-*linux*)
6384 # Find out what ABI is being produced by ac_compile, and set linker
6385 # options accordingly.
6386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 emul=elf
6393 case `/usr/bin/file conftest.$ac_objext` in
6394 *32-bit*)
6395 emul="${emul}32"
6396 ;;
6397 *64-bit*)
6398 emul="${emul}64"
6399 ;;
6400 esac
6401 case `/usr/bin/file conftest.$ac_objext` in
6402 *MSB*)
6403 emul="${emul}btsmip"
6404 ;;
6405 *LSB*)
6406 emul="${emul}ltsmip"
6407 ;;
6408 esac
6409 case `/usr/bin/file conftest.$ac_objext` in
6410 *N32*)
6411 emul="${emul}n32"
6412 ;;
6413 esac
6414 LD="${LD-ld} -m $emul"
6415 fi
6416 rm -rf conftest*
6417 ;;
6418
6419 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6420 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6421 # Find out what ABI is being produced by ac_compile, and set linker
6422 # options accordingly. Note that the listed cases only cover the
6423 # situations where additional linker options are needed (such as when
6424 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6425 # vice versa); the common cases where no linker options are needed do
6426 # not appear in the list.
6427 echo 'int i;' > conftest.$ac_ext
6428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6429 (eval $ac_compile) 2>&5
6430 ac_status=$?
6431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432 test $ac_status = 0; }; then
6433 case `/usr/bin/file conftest.o` in
6434 *32-bit*)
6435 case $host in
6436 x86_64-*kfreebsd*-gnu)
6437 LD="${LD-ld} -m elf_i386_fbsd"
6438 ;;
6439 x86_64-*linux*)
6440 case `/usr/bin/file conftest.o` in
6441 *x86-64*)
6442 LD="${LD-ld} -m elf32_x86_64"
6443 ;;
6444 *)
6445 LD="${LD-ld} -m elf_i386"
6446 ;;
6447 esac
6448 ;;
6449 powerpc64le-*linux*)
6450 LD="${LD-ld} -m elf32lppclinux"
6451 ;;
6452 powerpc64-*linux*)
6453 LD="${LD-ld} -m elf32ppclinux"
6454 ;;
6455 s390x-*linux*)
6456 LD="${LD-ld} -m elf_s390"
6457 ;;
6458 sparc64-*linux*)
6459 LD="${LD-ld} -m elf32_sparc"
6460 ;;
6461 esac
6462 ;;
6463 *64-bit*)
6464 case $host in
6465 x86_64-*kfreebsd*-gnu)
6466 LD="${LD-ld} -m elf_x86_64_fbsd"
6467 ;;
6468 x86_64-*linux*)
6469 LD="${LD-ld} -m elf_x86_64"
6470 ;;
6471 powerpcle-*linux*)
6472 LD="${LD-ld} -m elf64lppc"
6473 ;;
6474 powerpc-*linux*)
6475 LD="${LD-ld} -m elf64ppc"
6476 ;;
6477 s390*-*linux*|s390*-*tpf*)
6478 LD="${LD-ld} -m elf64_s390"
6479 ;;
6480 sparc*-*linux*)
6481 LD="${LD-ld} -m elf64_sparc"
6482 ;;
6483 esac
6484 ;;
6485 esac
6486 fi
6487 rm -rf conftest*
6488 ;;
6489
6490 *-*-sco3.2v5*)
6491 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6492 SAVE_CFLAGS=$CFLAGS
6493 CFLAGS="$CFLAGS -belf"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6495 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6496 if ${lt_cv_cc_needs_belf+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 ac_ext=c
6500 ac_cpp='$CPP $CPPFLAGS'
6501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6507
6508 int
6509 main ()
6510 {
6511
6512 ;
6513 return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_link "$LINENO"; then :
6517 lt_cv_cc_needs_belf=yes
6518 else
6519 lt_cv_cc_needs_belf=no
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 ac_ext=c
6524 ac_cpp='$CPP $CPPFLAGS'
6525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6531 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6532 if test yes != "$lt_cv_cc_needs_belf"; then
6533 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6534 CFLAGS=$SAVE_CFLAGS
6535 fi
6536 ;;
6537 *-*solaris*)
6538 # Find out what ABI is being produced by ac_compile, and set linker
6539 # options accordingly.
6540 echo 'int i;' > conftest.$ac_ext
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 case `/usr/bin/file conftest.o` in
6547 *64-bit*)
6548 case $lt_cv_prog_gnu_ld in
6549 yes*)
6550 case $host in
6551 i?86-*-solaris*|x86_64-*-solaris*)
6552 LD="${LD-ld} -m elf_x86_64"
6553 ;;
6554 sparc*-*-solaris*)
6555 LD="${LD-ld} -m elf64_sparc"
6556 ;;
6557 esac
6558 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6559 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6560 LD=${LD-ld}_sol2
6561 fi
6562 ;;
6563 *)
6564 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6565 LD="${LD-ld} -64"
6566 fi
6567 ;;
6568 esac
6569 ;;
6570 esac
6571 fi
6572 rm -rf conftest*
6573 ;;
6574 esac
6575
6576 need_locks=$enable_libtool_lock
6577
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}mt; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$MANIFEST_TOOL"; then
6587 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6607 if test -n "$MANIFEST_TOOL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6609 $as_echo "$MANIFEST_TOOL" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6618 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6619 # Extract the first word of "mt", so it can be a program name with args.
6620 set dummy mt; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$ac_ct_MANIFEST_TOOL"; then
6627 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6647 if test -n "$ac_ct_MANIFEST_TOOL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6649 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6656 MANIFEST_TOOL=":"
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6665 fi
6666 else
6667 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6668 fi
6669
6670 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6672 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6673 if ${lt_cv_path_mainfest_tool+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 lt_cv_path_mainfest_tool=no
6677 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6678 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6679 cat conftest.err >&5
6680 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6681 lt_cv_path_mainfest_tool=yes
6682 fi
6683 rm -f conftest*
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6686 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6687 if test yes != "$lt_cv_path_mainfest_tool"; then
6688 MANIFEST_TOOL=:
6689 fi
6690
6691
6692
6693
6694
6695
6696 case $host_os in
6697 rhapsody* | darwin*)
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$DSYMUTIL"; then
6707 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6727 if test -n "$DSYMUTIL"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6729 $as_echo "$DSYMUTIL" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_DSYMUTIL"; then
6738 ac_ct_DSYMUTIL=$DSYMUTIL
6739 # Extract the first word of "dsymutil", so it can be a program name with args.
6740 set dummy dsymutil; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_DSYMUTIL"; then
6747 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6767 if test -n "$ac_ct_DSYMUTIL"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6769 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775 if test "x$ac_ct_DSYMUTIL" = x; then
6776 DSYMUTIL=":"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 DSYMUTIL=$ac_ct_DSYMUTIL
6785 fi
6786 else
6787 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6788 fi
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_NMEDIT+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$NMEDIT"; then
6799 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 NMEDIT=$ac_cv_prog_NMEDIT
6819 if test -n "$NMEDIT"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6821 $as_echo "$NMEDIT" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_NMEDIT"; then
6830 ac_ct_NMEDIT=$NMEDIT
6831 # Extract the first word of "nmedit", so it can be a program name with args.
6832 set dummy nmedit; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_NMEDIT"; then
6839 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6859 if test -n "$ac_ct_NMEDIT"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6861 $as_echo "$ac_ct_NMEDIT" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_NMEDIT" = x; then
6868 NMEDIT=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 NMEDIT=$ac_ct_NMEDIT
6877 fi
6878 else
6879 NMEDIT="$ac_cv_prog_NMEDIT"
6880 fi
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_LIPO+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$LIPO"; then
6891 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 LIPO=$ac_cv_prog_LIPO
6911 if test -n "$LIPO"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6913 $as_echo "$LIPO" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_LIPO"; then
6922 ac_ct_LIPO=$LIPO
6923 # Extract the first word of "lipo", so it can be a program name with args.
6924 set dummy lipo; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_LIPO"; then
6931 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_LIPO="lipo"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6951 if test -n "$ac_ct_LIPO"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6953 $as_echo "$ac_ct_LIPO" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_LIPO" = x; then
6960 LIPO=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 LIPO=$ac_ct_LIPO
6969 fi
6970 else
6971 LIPO="$ac_cv_prog_LIPO"
6972 fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}otool; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_OTOOL+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$OTOOL"; then
6983 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 OTOOL=$ac_cv_prog_OTOOL
7003 if test -n "$OTOOL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7005 $as_echo "$OTOOL" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_OTOOL"; then
7014 ac_ct_OTOOL=$OTOOL
7015 # Extract the first word of "otool", so it can be a program name with args.
7016 set dummy otool; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_OTOOL"; then
7023 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_OTOOL="otool"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7043 if test -n "$ac_ct_OTOOL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7045 $as_echo "$ac_ct_OTOOL" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_OTOOL" = x; then
7052 OTOOL=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 OTOOL=$ac_ct_OTOOL
7061 fi
7062 else
7063 OTOOL="$ac_cv_prog_OTOOL"
7064 fi
7065
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_OTOOL64+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$OTOOL64"; then
7075 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 OTOOL64=$ac_cv_prog_OTOOL64
7095 if test -n "$OTOOL64"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7097 $as_echo "$OTOOL64" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_OTOOL64"; then
7106 ac_ct_OTOOL64=$OTOOL64
7107 # Extract the first word of "otool64", so it can be a program name with args.
7108 set dummy otool64; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_OTOOL64"; then
7115 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_OTOOL64="otool64"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7135 if test -n "$ac_ct_OTOOL64"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7137 $as_echo "$ac_ct_OTOOL64" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143 if test "x$ac_ct_OTOOL64" = x; then
7144 OTOOL64=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 OTOOL64=$ac_ct_OTOOL64
7153 fi
7154 else
7155 OTOOL64="$ac_cv_prog_OTOOL64"
7156 fi
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7185 $as_echo_n "checking for -single_module linker flag... " >&6; }
7186 if ${lt_cv_apple_cc_single_mod+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 lt_cv_apple_cc_single_mod=no
7190 if test -z "$LT_MULTI_MODULE"; then
7191 # By default we will add the -single_module flag. You can override
7192 # by either setting the environment variable LT_MULTI_MODULE
7193 # non-empty at configure time, or by adding -multi_module to the
7194 # link flags.
7195 rm -rf libconftest.dylib*
7196 echo "int foo(void){return 1;}" > conftest.c
7197 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7198 -dynamiclib -Wl,-single_module conftest.c" >&5
7199 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7201 _lt_result=$?
7202 # If there is a non-empty error log, and "single_module"
7203 # appears in it, assume the flag caused a linker warning
7204 if test -s conftest.err && $GREP single_module conftest.err; then
7205 cat conftest.err >&5
7206 # Otherwise, if the output was created with a 0 exit code from
7207 # the compiler, it worked.
7208 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7209 lt_cv_apple_cc_single_mod=yes
7210 else
7211 cat conftest.err >&5
7212 fi
7213 rm -rf libconftest.dylib*
7214 rm -f conftest.*
7215 fi
7216 fi
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7218 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7221 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7222 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 lt_cv_ld_exported_symbols_list=no
7226 save_LDFLAGS=$LDFLAGS
7227 echo "_main" > conftest.sym
7228 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231
7232 int
7233 main ()
7234 {
7235
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 if ac_fn_c_try_link "$LINENO"; then :
7241 lt_cv_ld_exported_symbols_list=yes
7242 else
7243 lt_cv_ld_exported_symbols_list=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7247 LDFLAGS=$save_LDFLAGS
7248
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7251 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7254 $as_echo_n "checking for -force_load linker flag... " >&6; }
7255 if ${lt_cv_ld_force_load+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 lt_cv_ld_force_load=no
7259 cat > conftest.c << _LT_EOF
7260 int forced_loaded() { return 2;}
7261 _LT_EOF
7262 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7263 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7264 echo "$AR cru libconftest.a conftest.o" >&5
7265 $AR cru libconftest.a conftest.o 2>&5
7266 echo "$RANLIB libconftest.a" >&5
7267 $RANLIB libconftest.a 2>&5
7268 cat > conftest.c << _LT_EOF
7269 int main() { return 0;}
7270 _LT_EOF
7271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7273 _lt_result=$?
7274 if test -s conftest.err && $GREP force_load conftest.err; then
7275 cat conftest.err >&5
7276 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7277 lt_cv_ld_force_load=yes
7278 else
7279 cat conftest.err >&5
7280 fi
7281 rm -f conftest.err libconftest.a conftest conftest.c
7282 rm -rf conftest.dSYM
7283
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7286 $as_echo "$lt_cv_ld_force_load" >&6; }
7287 case $host_os in
7288 rhapsody* | darwin1.[012])
7289 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7290 darwin1.*)
7291 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7292 darwin*) # darwin 5.x on
7293 # if running on 10.5 or later, the deployment target defaults
7294 # to the OS version, if on x86, and 10.4, the deployment
7295 # target defaults to 10.4. Don't you love it?
7296 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7297 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7298 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7299 10.[012][,.]*)
7300 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7301 10.*)
7302 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7303 esac
7304 ;;
7305 esac
7306 if test yes = "$lt_cv_apple_cc_single_mod"; then
7307 _lt_dar_single_mod='$single_module'
7308 fi
7309 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7310 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7311 else
7312 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7313 fi
7314 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7315 _lt_dsymutil='~$DSYMUTIL $lib || :'
7316 else
7317 _lt_dsymutil=
7318 fi
7319 ;;
7320 esac
7321
7322 # func_munge_path_list VARIABLE PATH
7323 # -----------------------------------
7324 # VARIABLE is name of variable containing _space_ separated list of
7325 # directories to be munged by the contents of PATH, which is string
7326 # having a format:
7327 # "DIR[:DIR]:"
7328 # string "DIR[ DIR]" will be prepended to VARIABLE
7329 # ":DIR[:DIR]"
7330 # string "DIR[ DIR]" will be appended to VARIABLE
7331 # "DIRP[:DIRP]::[DIRA:]DIRA"
7332 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7333 # "DIRA[ DIRA]" will be appended to VARIABLE
7334 # "DIR[:DIR]"
7335 # VARIABLE will be replaced by "DIR[ DIR]"
7336 func_munge_path_list ()
7337 {
7338 case x$2 in
7339 x)
7340 ;;
7341 *:)
7342 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7343 ;;
7344 x:*)
7345 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7346 ;;
7347 *::*)
7348 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7349 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7350 ;;
7351 *)
7352 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7353 ;;
7354 esac
7355 }
7356
7357 ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7364 # On Suns, sometimes $CPP names a directory.
7365 if test -n "$CPP" && test -d "$CPP"; then
7366 CPP=
7367 fi
7368 if test -z "$CPP"; then
7369 if ${ac_cv_prog_CPP+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 # Double quotes because CPP needs to be expanded
7373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7374 do
7375 ac_preproc_ok=false
7376 for ac_c_preproc_warn_flag in '' yes
7377 do
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #ifdef __STDC__
7387 # include <limits.h>
7388 #else
7389 # include <assert.h>
7390 #endif
7391 Syntax error
7392 _ACEOF
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7394
7395 else
7396 # Broken: fails on valid input.
7397 continue
7398 fi
7399 rm -f conftest.err conftest.i conftest.$ac_ext
7400
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7406 _ACEOF
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7409 continue
7410 else
7411 # Passes both tests.
7412 ac_preproc_ok=:
7413 break
7414 fi
7415 rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417 done
7418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419 rm -f conftest.i conftest.err conftest.$ac_ext
7420 if $ac_preproc_ok; then :
7421 break
7422 fi
7423
7424 done
7425 ac_cv_prog_CPP=$CPP
7426
7427 fi
7428 CPP=$ac_cv_prog_CPP
7429 else
7430 ac_cv_prog_CPP=$CPP
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7433 $as_echo "$CPP" >&6; }
7434 ac_preproc_ok=false
7435 for ac_c_preproc_warn_flag in '' yes
7436 do
7437 # Use a header file that comes with gcc, so configuring glibc
7438 # with a fresh cross-compiler works.
7439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7440 # <limits.h> exists even on freestanding compilers.
7441 # On the NeXT, cc -E runs the code through the compiler's parser,
7442 # not just through cpp. "Syntax error" is here to catch this case.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #ifdef __STDC__
7446 # include <limits.h>
7447 #else
7448 # include <assert.h>
7449 #endif
7450 Syntax error
7451 _ACEOF
7452 if ac_fn_c_try_cpp "$LINENO"; then :
7453
7454 else
7455 # Broken: fails on valid input.
7456 continue
7457 fi
7458 rm -f conftest.err conftest.i conftest.$ac_ext
7459
7460 # OK, works on sane cases. Now check whether nonexistent headers
7461 # can be detected and how.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <ac_nonexistent.h>
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467 # Broken: success on invalid input.
7468 continue
7469 else
7470 # Passes both tests.
7471 ac_preproc_ok=:
7472 break
7473 fi
7474 rm -f conftest.err conftest.i conftest.$ac_ext
7475
7476 done
7477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7478 rm -f conftest.i conftest.err conftest.$ac_ext
7479 if $ac_preproc_ok; then :
7480
7481 else
7482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7485 See \`config.log' for more details" "$LINENO" 5; }
7486 fi
7487
7488 ac_ext=c
7489 ac_cpp='$CPP $CPPFLAGS'
7490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7496 $as_echo_n "checking for ANSI C header files... " >&6; }
7497 if ${ac_cv_header_stdc+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <stdlib.h>
7503 #include <stdarg.h>
7504 #include <string.h>
7505 #include <float.h>
7506
7507 int
7508 main ()
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 ac_cv_header_stdc=yes
7517 else
7518 ac_cv_header_stdc=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521
7522 if test $ac_cv_header_stdc = yes; then
7523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 #include <string.h>
7527
7528 _ACEOF
7529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530 $EGREP "memchr" >/dev/null 2>&1; then :
7531
7532 else
7533 ac_cv_header_stdc=no
7534 fi
7535 rm -f conftest*
7536
7537 fi
7538
7539 if test $ac_cv_header_stdc = yes; then
7540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <stdlib.h>
7544
7545 _ACEOF
7546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7547 $EGREP "free" >/dev/null 2>&1; then :
7548
7549 else
7550 ac_cv_header_stdc=no
7551 fi
7552 rm -f conftest*
7553
7554 fi
7555
7556 if test $ac_cv_header_stdc = yes; then
7557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7558 if test "$cross_compiling" = yes; then :
7559 :
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <ctype.h>
7564 #include <stdlib.h>
7565 #if ((' ' & 0x0FF) == 0x020)
7566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7568 #else
7569 # define ISLOWER(c) \
7570 (('a' <= (c) && (c) <= 'i') \
7571 || ('j' <= (c) && (c) <= 'r') \
7572 || ('s' <= (c) && (c) <= 'z'))
7573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7574 #endif
7575
7576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7577 int
7578 main ()
7579 {
7580 int i;
7581 for (i = 0; i < 256; i++)
7582 if (XOR (islower (i), ISLOWER (i))
7583 || toupper (i) != TOUPPER (i))
7584 return 2;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_run "$LINENO"; then :
7589
7590 else
7591 ac_cv_header_stdc=no
7592 fi
7593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7594 conftest.$ac_objext conftest.beam conftest.$ac_ext
7595 fi
7596
7597 fi
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7600 $as_echo "$ac_cv_header_stdc" >&6; }
7601 if test $ac_cv_header_stdc = yes; then
7602
7603 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7604
7605 fi
7606
7607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7609 inttypes.h stdint.h unistd.h
7610 do :
7611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7613 "
7614 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7615 cat >>confdefs.h <<_ACEOF
7616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 _ACEOF
7618
7619 fi
7620
7621 done
7622
7623
7624 for ac_header in dlfcn.h
7625 do :
7626 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7627 "
7628 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7629 cat >>confdefs.h <<_ACEOF
7630 #define HAVE_DLFCN_H 1
7631 _ACEOF
7632
7633 fi
7634
7635 done
7636
7637
7638
7639
7640
7641 # Set options
7642
7643
7644
7645 enable_dlopen=no
7646
7647
7648 enable_win32_dll=no
7649
7650
7651 # Check whether --enable-shared was given.
7652 if test "${enable_shared+set}" = set; then :
7653 enableval=$enable_shared; p=${PACKAGE-default}
7654 case $enableval in
7655 yes) enable_shared=yes ;;
7656 no) enable_shared=no ;;
7657 *)
7658 enable_shared=no
7659 # Look at the argument we got. We use all the common list separators.
7660 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7661 for pkg in $enableval; do
7662 IFS=$lt_save_ifs
7663 if test "X$pkg" = "X$p"; then
7664 enable_shared=yes
7665 fi
7666 done
7667 IFS=$lt_save_ifs
7668 ;;
7669 esac
7670 else
7671 enable_shared=yes
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 # Check whether --enable-static was given.
7683 if test "${enable_static+set}" = set; then :
7684 enableval=$enable_static; p=${PACKAGE-default}
7685 case $enableval in
7686 yes) enable_static=yes ;;
7687 no) enable_static=no ;;
7688 *)
7689 enable_static=no
7690 # Look at the argument we got. We use all the common list separators.
7691 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7692 for pkg in $enableval; do
7693 IFS=$lt_save_ifs
7694 if test "X$pkg" = "X$p"; then
7695 enable_static=yes
7696 fi
7697 done
7698 IFS=$lt_save_ifs
7699 ;;
7700 esac
7701 else
7702 enable_static=yes
7703 fi
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714 # Check whether --with-pic was given.
7715 if test "${with_pic+set}" = set; then :
7716 withval=$with_pic; lt_p=${PACKAGE-default}
7717 case $withval in
7718 yes|no) pic_mode=$withval ;;
7719 *)
7720 pic_mode=default
7721 # Look at the argument we got. We use all the common list separators.
7722 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7723 for lt_pkg in $withval; do
7724 IFS=$lt_save_ifs
7725 if test "X$lt_pkg" = "X$lt_p"; then
7726 pic_mode=yes
7727 fi
7728 done
7729 IFS=$lt_save_ifs
7730 ;;
7731 esac
7732 else
7733 pic_mode=default
7734 fi
7735
7736
7737
7738
7739
7740
7741
7742
7743 # Check whether --enable-fast-install was given.
7744 if test "${enable_fast_install+set}" = set; then :
7745 enableval=$enable_fast_install; p=${PACKAGE-default}
7746 case $enableval in
7747 yes) enable_fast_install=yes ;;
7748 no) enable_fast_install=no ;;
7749 *)
7750 enable_fast_install=no
7751 # Look at the argument we got. We use all the common list separators.
7752 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7753 for pkg in $enableval; do
7754 IFS=$lt_save_ifs
7755 if test "X$pkg" = "X$p"; then
7756 enable_fast_install=yes
7757 fi
7758 done
7759 IFS=$lt_save_ifs
7760 ;;
7761 esac
7762 else
7763 enable_fast_install=yes
7764 fi
7765
7766
7767
7768
7769
7770
7771
7772
7773 shared_archive_member_spec=
7774 case $host,$enable_shared in
7775 power*-*-aix[5-9]*,yes)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7777 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7778
7779 # Check whether --with-aix-soname was given.
7780 if test "${with_aix_soname+set}" = set; then :
7781 withval=$with_aix_soname; case $withval in
7782 aix|svr4|both)
7783 ;;
7784 *)
7785 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7786 ;;
7787 esac
7788 lt_cv_with_aix_soname=$with_aix_soname
7789 else
7790 if ${lt_cv_with_aix_soname+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 lt_cv_with_aix_soname=aix
7794 fi
7795
7796 with_aix_soname=$lt_cv_with_aix_soname
7797 fi
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7800 $as_echo "$with_aix_soname" >&6; }
7801 if test aix != "$with_aix_soname"; then
7802 # For the AIX way of multilib, we name the shared archive member
7803 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7804 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7805 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7806 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7807 if test 64 = "${OBJECT_MODE-32}"; then
7808 shared_archive_member_spec=shr_64
7809 else
7810 shared_archive_member_spec=shr
7811 fi
7812 fi
7813 ;;
7814 *)
7815 with_aix_soname=aix
7816 ;;
7817 esac
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828 # This can be used to rebuild libtool when needed
7829 LIBTOOL_DEPS=$ltmain
7830
7831 # Always use our own libtool.
7832 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863 test -z "$LN_S" && LN_S="ln -s"
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 if test -n "${ZSH_VERSION+set}"; then
7879 setopt NO_GLOB_SUBST
7880 fi
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7883 $as_echo_n "checking for objdir... " >&6; }
7884 if ${lt_cv_objdir+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 rm -f .libs 2>/dev/null
7888 mkdir .libs 2>/dev/null
7889 if test -d .libs; then
7890 lt_cv_objdir=.libs
7891 else
7892 # MS-DOS does not allow filenames that begin with a dot.
7893 lt_cv_objdir=_libs
7894 fi
7895 rmdir .libs 2>/dev/null
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7898 $as_echo "$lt_cv_objdir" >&6; }
7899 objdir=$lt_cv_objdir
7900
7901
7902
7903
7904
7905 cat >>confdefs.h <<_ACEOF
7906 #define LT_OBJDIR "$lt_cv_objdir/"
7907 _ACEOF
7908
7909
7910
7911
7912 case $host_os in
7913 aix3*)
7914 # AIX sometimes has problems with the GCC collect2 program. For some
7915 # reason, if we set the COLLECT_NAMES environment variable, the problems
7916 # vanish in a puff of smoke.
7917 if test set != "${COLLECT_NAMES+set}"; then
7918 COLLECT_NAMES=
7919 export COLLECT_NAMES
7920 fi
7921 ;;
7922 esac
7923
7924 # Global variables:
7925 ofile=libtool
7926 can_build_shared=yes
7927
7928 # All known linkers require a '.a' archive for static linking (except MSVC,
7929 # which needs '.lib').
7930 libext=a
7931
7932 with_gnu_ld=$lt_cv_prog_gnu_ld
7933
7934 old_CC=$CC
7935 old_CFLAGS=$CFLAGS
7936
7937 # Set sane defaults for various variables
7938 test -z "$CC" && CC=cc
7939 test -z "$LTCC" && LTCC=$CC
7940 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7941 test -z "$LD" && LD=ld
7942 test -z "$ac_objext" && ac_objext=o
7943
7944 func_cc_basename $compiler
7945 cc_basename=$func_cc_basename_result
7946
7947
7948 # Only perform the check for file, if the check method requires it
7949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7950 case $deplibs_check_method in
7951 file_magic*)
7952 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7954 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7955 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 case $MAGIC_CMD in
7959 [\\/*] | ?:[\\/]*)
7960 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7961 ;;
7962 *)
7963 lt_save_MAGIC_CMD=$MAGIC_CMD
7964 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966 for ac_dir in $ac_dummy; do
7967 IFS=$lt_save_ifs
7968 test -z "$ac_dir" && ac_dir=.
7969 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7970 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7971 if test -n "$file_magic_test_file"; then
7972 case $deplibs_check_method in
7973 "file_magic "*)
7974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977 $EGREP "$file_magic_regex" > /dev/null; then
7978 :
7979 else
7980 cat <<_LT_EOF 1>&2
7981
7982 *** Warning: the command libtool uses to detect shared libraries,
7983 *** $file_magic_cmd, produces output that libtool cannot recognize.
7984 *** The result is that libtool may fail to recognize shared libraries
7985 *** as such. This will affect the creation of libtool libraries that
7986 *** depend on shared libraries, but programs linked with such libtool
7987 *** libraries will work regardless of this problem. Nevertheless, you
7988 *** may want to report the problem to your system manager and/or to
7989 *** bug-libtool@gnu.org
7990
7991 _LT_EOF
7992 fi ;;
7993 esac
7994 fi
7995 break
7996 fi
7997 done
7998 IFS=$lt_save_ifs
7999 MAGIC_CMD=$lt_save_MAGIC_CMD
8000 ;;
8001 esac
8002 fi
8003
8004 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8005 if test -n "$MAGIC_CMD"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8007 $as_echo "$MAGIC_CMD" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013
8014
8015
8016
8017 if test -z "$lt_cv_path_MAGIC_CMD"; then
8018 if test -n "$ac_tool_prefix"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8020 $as_echo_n "checking for file... " >&6; }
8021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 case $MAGIC_CMD in
8025 [\\/*] | ?:[\\/]*)
8026 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8027 ;;
8028 *)
8029 lt_save_MAGIC_CMD=$MAGIC_CMD
8030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032 for ac_dir in $ac_dummy; do
8033 IFS=$lt_save_ifs
8034 test -z "$ac_dir" && ac_dir=.
8035 if test -f "$ac_dir/file"; then
8036 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8037 if test -n "$file_magic_test_file"; then
8038 case $deplibs_check_method in
8039 "file_magic "*)
8040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043 $EGREP "$file_magic_regex" > /dev/null; then
8044 :
8045 else
8046 cat <<_LT_EOF 1>&2
8047
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such. This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem. Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8056
8057 _LT_EOF
8058 fi ;;
8059 esac
8060 fi
8061 break
8062 fi
8063 done
8064 IFS=$lt_save_ifs
8065 MAGIC_CMD=$lt_save_MAGIC_CMD
8066 ;;
8067 esac
8068 fi
8069
8070 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8071 if test -n "$MAGIC_CMD"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080 else
8081 MAGIC_CMD=:
8082 fi
8083 fi
8084
8085 fi
8086 ;;
8087 esac
8088
8089 # Use C for the default configuration in the libtool script
8090
8091 lt_save_CC=$CC
8092 ac_ext=c
8093 ac_cpp='$CPP $CPPFLAGS'
8094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098
8099 # Source file extension for C test sources.
8100 ac_ext=c
8101
8102 # Object file extension for compiled C test sources.
8103 objext=o
8104 objext=$objext
8105
8106 # Code to be used in simple compile tests
8107 lt_simple_compile_test_code="int some_variable = 0;"
8108
8109 # Code to be used in simple link tests
8110 lt_simple_link_test_code='int main(){return(0);}'
8111
8112
8113
8114
8115
8116
8117
8118 # If no C compiler was specified, use CC.
8119 LTCC=${LTCC-"$CC"}
8120
8121 # If no C compiler flags were specified, use CFLAGS.
8122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8123
8124 # Allow CC to be a program name with arguments.
8125 compiler=$CC
8126
8127 # Save the default compiler, since it gets overwritten when the other
8128 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8129 compiler_DEFAULT=$CC
8130
8131 # save warnings/boilerplate of simple test code
8132 ac_outfile=conftest.$ac_objext
8133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8135 _lt_compiler_boilerplate=`cat conftest.err`
8136 $RM conftest*
8137
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8141 _lt_linker_boilerplate=`cat conftest.err`
8142 $RM -r conftest*
8143
8144
8145 if test -n "$compiler"; then
8146
8147 lt_prog_compiler_no_builtin_flag=
8148
8149 if test yes = "$GCC"; then
8150 case $cc_basename in
8151 nvcc*)
8152 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8153 *)
8154 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8155 esac
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8158 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8159 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 lt_cv_prog_compiler_rtti_exceptions=no
8163 ac_outfile=conftest.$ac_objext
8164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8165 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8166 # Insert the option either (1) after the last *FLAGS variable, or
8167 # (2) before a word containing "conftest.", or (3) at the end.
8168 # Note that $ac_compile itself does not contain backslashes and begins
8169 # with a dollar sign (not a hyphen), so the echo should work correctly.
8170 # The option is referenced via a variable to avoid confusing sed.
8171 lt_compile=`echo "$ac_compile" | $SED \
8172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174 -e 's:$: $lt_compiler_flag:'`
8175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8176 (eval "$lt_compile" 2>conftest.err)
8177 ac_status=$?
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 if (exit $ac_status) && test -s "$ac_outfile"; then
8181 # The compiler can only warn and ignore the option if not recognized
8182 # So say no if there are warnings other than the usual output.
8183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8186 lt_cv_prog_compiler_rtti_exceptions=yes
8187 fi
8188 fi
8189 $RM conftest*
8190
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8193 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8194
8195 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8196 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8197 else
8198 :
8199 fi
8200
8201 fi
8202
8203
8204
8205
8206
8207
8208 lt_prog_compiler_wl=
8209 lt_prog_compiler_pic=
8210 lt_prog_compiler_static=
8211
8212
8213 if test yes = "$GCC"; then
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_static='-static'
8216
8217 case $host_os in
8218 aix*)
8219 # All AIX code is PIC.
8220 if test ia64 = "$host_cpu"; then
8221 # AIX 5 now supports IA64 processor
8222 lt_prog_compiler_static='-Bstatic'
8223 fi
8224 lt_prog_compiler_pic='-fPIC'
8225 ;;
8226
8227 amigaos*)
8228 case $host_cpu in
8229 powerpc)
8230 # see comment about AmigaOS4 .so support
8231 lt_prog_compiler_pic='-fPIC'
8232 ;;
8233 m68k)
8234 # FIXME: we need at least 68020 code to build shared libraries, but
8235 # adding the '-m68020' flag to GCC prevents building anything better,
8236 # like '-m68040'.
8237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8238 ;;
8239 esac
8240 ;;
8241
8242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8243 # PIC is the default for these OSes.
8244 ;;
8245
8246 mingw* | cygwin* | pw32* | os2* | cegcc*)
8247 # This hack is so that the source file can tell whether it is being
8248 # built for inclusion in a dll (and should export symbols for example).
8249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8250 # (--disable-auto-import) libraries
8251 lt_prog_compiler_pic='-DDLL_EXPORT'
8252 case $host_os in
8253 os2*)
8254 lt_prog_compiler_static='$wl-static'
8255 ;;
8256 esac
8257 ;;
8258
8259 darwin* | rhapsody*)
8260 # PIC is the default on this platform
8261 # Common symbols not allowed in MH_DYLIB files
8262 lt_prog_compiler_pic='-fno-common'
8263 ;;
8264
8265 haiku*)
8266 # PIC is the default for Haiku.
8267 # The "-static" flag exists, but is broken.
8268 lt_prog_compiler_static=
8269 ;;
8270
8271 hpux*)
8272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8274 # sets the default TLS model and affects inlining.
8275 case $host_cpu in
8276 hppa*64*)
8277 # +Z the default
8278 ;;
8279 *)
8280 lt_prog_compiler_pic='-fPIC'
8281 ;;
8282 esac
8283 ;;
8284
8285 interix[3-9]*)
8286 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8287 # Instead, we relocate shared libraries at runtime.
8288 ;;
8289
8290 msdosdjgpp*)
8291 # Just because we use GCC doesn't mean we suddenly get shared libraries
8292 # on systems that don't support them.
8293 lt_prog_compiler_can_build_shared=no
8294 enable_shared=no
8295 ;;
8296
8297 *nto* | *qnx*)
8298 # QNX uses GNU C++, but need to define -shared option too, otherwise
8299 # it will coredump.
8300 lt_prog_compiler_pic='-fPIC -shared'
8301 ;;
8302
8303 sysv4*MP*)
8304 if test -d /usr/nec; then
8305 lt_prog_compiler_pic=-Kconform_pic
8306 fi
8307 ;;
8308
8309 *)
8310 lt_prog_compiler_pic='-fPIC'
8311 ;;
8312 esac
8313
8314 case $cc_basename in
8315 nvcc*) # Cuda Compiler Driver 2.2
8316 lt_prog_compiler_wl='-Xlinker '
8317 if test -n "$lt_prog_compiler_pic"; then
8318 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8319 fi
8320 ;;
8321 esac
8322 else
8323 # PORTME Check for flag to pass linker flags through the system compiler.
8324 case $host_os in
8325 aix*)
8326 lt_prog_compiler_wl='-Wl,'
8327 if test ia64 = "$host_cpu"; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static='-Bstatic'
8330 else
8331 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8332 fi
8333 ;;
8334
8335 darwin* | rhapsody*)
8336 # PIC is the default on this platform
8337 # Common symbols not allowed in MH_DYLIB files
8338 lt_prog_compiler_pic='-fno-common'
8339 case $cc_basename in
8340 nagfor*)
8341 # NAG Fortran compiler
8342 lt_prog_compiler_wl='-Wl,-Wl,,'
8343 lt_prog_compiler_pic='-PIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 ;;
8346 esac
8347 ;;
8348
8349 mingw* | cygwin* | pw32* | os2* | cegcc*)
8350 # This hack is so that the source file can tell whether it is being
8351 # built for inclusion in a dll (and should export symbols for example).
8352 lt_prog_compiler_pic='-DDLL_EXPORT'
8353 case $host_os in
8354 os2*)
8355 lt_prog_compiler_static='$wl-static'
8356 ;;
8357 esac
8358 ;;
8359
8360 hpux9* | hpux10* | hpux11*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8363 # not for PA HP-UX.
8364 case $host_cpu in
8365 hppa*64*|ia64*)
8366 # +Z the default
8367 ;;
8368 *)
8369 lt_prog_compiler_pic='+Z'
8370 ;;
8371 esac
8372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8373 lt_prog_compiler_static='$wl-a ${wl}archive'
8374 ;;
8375
8376 irix5* | irix6* | nonstopux*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # PIC (with -KPIC) is the default.
8379 lt_prog_compiler_static='-non_shared'
8380 ;;
8381
8382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8383 case $cc_basename in
8384 # old Intel for x86_64, which still supported -KPIC.
8385 ecc*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-static'
8389 ;;
8390 # icc used to be incompatible with GCC.
8391 # ICC 10 doesn't accept -KPIC any more.
8392 icc* | ifort*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-fPIC'
8395 lt_prog_compiler_static='-static'
8396 ;;
8397 # Lahey Fortran 8.1.
8398 lf95*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='--shared'
8401 lt_prog_compiler_static='--static'
8402 ;;
8403 nagfor*)
8404 # NAG Fortran compiler
8405 lt_prog_compiler_wl='-Wl,-Wl,,'
8406 lt_prog_compiler_pic='-PIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 ;;
8409 tcc*)
8410 # Fabrice Bellard et al's Tiny C Compiler
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-fPIC'
8413 lt_prog_compiler_static='-static'
8414 ;;
8415 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8416 # Portland Group compilers (*not* the Pentium gcc compiler,
8417 # which looks to be a dead project)
8418 lt_prog_compiler_wl='-Wl,'
8419 lt_prog_compiler_pic='-fpic'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422 ccc*)
8423 lt_prog_compiler_wl='-Wl,'
8424 # All Alpha code is PIC.
8425 lt_prog_compiler_static='-non_shared'
8426 ;;
8427 xl* | bgxl* | bgf* | mpixl*)
8428 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-qpic'
8431 lt_prog_compiler_static='-qstaticlink'
8432 ;;
8433 *)
8434 case `$CC -V 2>&1 | sed 5q` in
8435 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_wl=''
8440 ;;
8441 *Sun\ F* | *Sun*Fortran*)
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 lt_prog_compiler_wl='-Qoption ld '
8445 ;;
8446 *Sun\ C*)
8447 # Sun C 5.9
8448 lt_prog_compiler_pic='-KPIC'
8449 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_wl='-Wl,'
8451 ;;
8452 *Intel*\ [CF]*Compiler*)
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='-fPIC'
8455 lt_prog_compiler_static='-static'
8456 ;;
8457 *Portland\ Group*)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-fpic'
8460 lt_prog_compiler_static='-Bstatic'
8461 ;;
8462 esac
8463 ;;
8464 esac
8465 ;;
8466
8467 newsos6)
8468 lt_prog_compiler_pic='-KPIC'
8469 lt_prog_compiler_static='-Bstatic'
8470 ;;
8471
8472 *nto* | *qnx*)
8473 # QNX uses GNU C++, but need to define -shared option too, otherwise
8474 # it will coredump.
8475 lt_prog_compiler_pic='-fPIC -shared'
8476 ;;
8477
8478 osf3* | osf4* | osf5*)
8479 lt_prog_compiler_wl='-Wl,'
8480 # All OSF/1 code is PIC.
8481 lt_prog_compiler_static='-non_shared'
8482 ;;
8483
8484 rdos*)
8485 lt_prog_compiler_static='-non_shared'
8486 ;;
8487
8488 solaris*)
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 case $cc_basename in
8492 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8493 lt_prog_compiler_wl='-Qoption ld ';;
8494 *)
8495 lt_prog_compiler_wl='-Wl,';;
8496 esac
8497 ;;
8498
8499 sunos4*)
8500 lt_prog_compiler_wl='-Qoption ld '
8501 lt_prog_compiler_pic='-PIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504
8505 sysv4 | sysv4.2uw2* | sysv4.3*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8509 ;;
8510
8511 sysv4*MP*)
8512 if test -d /usr/nec; then
8513 lt_prog_compiler_pic='-Kconform_pic'
8514 lt_prog_compiler_static='-Bstatic'
8515 fi
8516 ;;
8517
8518 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 ;;
8523
8524 unicos*)
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_can_build_shared=no
8527 ;;
8528
8529 uts4*)
8530 lt_prog_compiler_pic='-pic'
8531 lt_prog_compiler_static='-Bstatic'
8532 ;;
8533
8534 *)
8535 lt_prog_compiler_can_build_shared=no
8536 ;;
8537 esac
8538 fi
8539
8540 case $host_os in
8541 # For platforms that do not support PIC, -DPIC is meaningless:
8542 *djgpp*)
8543 lt_prog_compiler_pic=
8544 ;;
8545 *)
8546 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8547 ;;
8548 esac
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8551 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8552 if ${lt_cv_prog_compiler_pic+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8558 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8559 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8560
8561 #
8562 # Check to make sure the PIC flag actually works.
8563 #
8564 if test -n "$lt_prog_compiler_pic"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8567 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_prog_compiler_pic_works=no
8571 ac_outfile=conftest.$ac_objext
8572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 # The option is referenced via a variable to avoid confusing sed.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>conftest.err)
8585 ac_status=$?
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s "$ac_outfile"; then
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings other than the usual output.
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_pic_works=yes
8595 fi
8596 fi
8597 $RM conftest*
8598
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8601 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8602
8603 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8604 case $lt_prog_compiler_pic in
8605 "" | " "*) ;;
8606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8607 esac
8608 else
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_can_build_shared=no
8611 fi
8612
8613 fi
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 #
8626 # Check to make sure the static flag actually works.
8627 #
8628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8631 if ${lt_cv_prog_compiler_static_works+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 lt_cv_prog_compiler_static_works=no
8635 save_LDFLAGS=$LDFLAGS
8636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8637 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8639 # The linker can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 if test -s conftest.err; then
8642 # Append any errors to the config.log.
8643 cat conftest.err 1>&5
8644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8646 if diff conftest.exp conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_static_works=yes
8648 fi
8649 else
8650 lt_cv_prog_compiler_static_works=yes
8651 fi
8652 fi
8653 $RM -r conftest*
8654 LDFLAGS=$save_LDFLAGS
8655
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8658 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8659
8660 if test yes = "$lt_cv_prog_compiler_static_works"; then
8661 :
8662 else
8663 lt_prog_compiler_static=
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8674 if ${lt_cv_prog_compiler_c_o+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 lt_cv_prog_compiler_c_o=no
8678 $RM -r conftest 2>/dev/null
8679 mkdir conftest
8680 cd conftest
8681 mkdir out
8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8683
8684 lt_compiler_flag="-o out/conftest2.$ac_objext"
8685 # Insert the option either (1) after the last *FLAGS variable, or
8686 # (2) before a word containing "conftest.", or (3) at the end.
8687 # Note that $ac_compile itself does not contain backslashes and begins
8688 # with a dollar sign (not a hyphen), so the echo should work correctly.
8689 lt_compile=`echo "$ac_compile" | $SED \
8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8692 -e 's:$: $lt_compiler_flag:'`
8693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8694 (eval "$lt_compile" 2>out/conftest.err)
8695 ac_status=$?
8696 cat out/conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8699 then
8700 # The compiler can only warn and ignore the option if not recognized
8701 # So say no if there are warnings
8702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8705 lt_cv_prog_compiler_c_o=yes
8706 fi
8707 fi
8708 chmod u+w . 2>&5
8709 $RM conftest*
8710 # SGI C++ compiler will create directory out/ii_files/ for
8711 # template instantiation
8712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8713 $RM out/* && rmdir out
8714 cd ..
8715 $RM -r conftest
8716 $RM conftest*
8717
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8721
8722
8723
8724
8725
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8729 if ${lt_cv_prog_compiler_c_o+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 lt_cv_prog_compiler_c_o=no
8733 $RM -r conftest 2>/dev/null
8734 mkdir conftest
8735 cd conftest
8736 mkdir out
8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738
8739 lt_compiler_flag="-o out/conftest2.$ac_objext"
8740 # Insert the option either (1) after the last *FLAGS variable, or
8741 # (2) before a word containing "conftest.", or (3) at the end.
8742 # Note that $ac_compile itself does not contain backslashes and begins
8743 # with a dollar sign (not a hyphen), so the echo should work correctly.
8744 lt_compile=`echo "$ac_compile" | $SED \
8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747 -e 's:$: $lt_compiler_flag:'`
8748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8749 (eval "$lt_compile" 2>out/conftest.err)
8750 ac_status=$?
8751 cat out/conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8754 then
8755 # The compiler can only warn and ignore the option if not recognized
8756 # So say no if there are warnings
8757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_c_o=yes
8761 fi
8762 fi
8763 chmod u+w . 2>&5
8764 $RM conftest*
8765 # SGI C++ compiler will create directory out/ii_files/ for
8766 # template instantiation
8767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8768 $RM out/* && rmdir out
8769 cd ..
8770 $RM -r conftest
8771 $RM conftest*
8772
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8775 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8776
8777
8778
8779
8780 hard_links=nottested
8781 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8782 # do not overwrite the value of need_locks provided by the user
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8784 $as_echo_n "checking if we can lock with hard links... " >&6; }
8785 hard_links=yes
8786 $RM conftest*
8787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8788 touch conftest.a
8789 ln conftest.a conftest.b 2>&5 || hard_links=no
8790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8792 $as_echo "$hard_links" >&6; }
8793 if test no = "$hard_links"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8795 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8796 need_locks=warn
8797 fi
8798 else
8799 need_locks=no
8800 fi
8801
8802
8803
8804
8805
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8808 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8809
8810 runpath_var=
8811 allow_undefined_flag=
8812 always_export_symbols=no
8813 archive_cmds=
8814 archive_expsym_cmds=
8815 compiler_needs_object=no
8816 enable_shared_with_static_runtimes=no
8817 export_dynamic_flag_spec=
8818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8819 hardcode_automatic=no
8820 hardcode_direct=no
8821 hardcode_direct_absolute=no
8822 hardcode_libdir_flag_spec=
8823 hardcode_libdir_separator=
8824 hardcode_minus_L=no
8825 hardcode_shlibpath_var=unsupported
8826 inherit_rpath=no
8827 link_all_deplibs=unknown
8828 module_cmds=
8829 module_expsym_cmds=
8830 old_archive_from_new_cmds=
8831 old_archive_from_expsyms_cmds=
8832 thread_safe_flag_spec=
8833 whole_archive_flag_spec=
8834 # include_expsyms should be a list of space-separated symbols to be *always*
8835 # included in the symbol list
8836 include_expsyms=
8837 # exclude_expsyms can be an extended regexp of symbols to exclude
8838 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8839 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8840 # as well as any symbol that contains 'd'.
8841 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8842 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8843 # platforms (ab)use it in PIC code, but their linkers get confused if
8844 # the symbol is explicitly referenced. Since portable code cannot
8845 # rely on this symbol name, it's probably fine to never include it in
8846 # preloaded symbol tables.
8847 # Exclude shared library initialization/finalization symbols.
8848 extract_expsyms_cmds=
8849
8850 case $host_os in
8851 cygwin* | mingw* | pw32* | cegcc*)
8852 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8853 # When not using gcc, we currently assume that we are using
8854 # Microsoft Visual C++.
8855 if test yes != "$GCC"; then
8856 with_gnu_ld=no
8857 fi
8858 ;;
8859 interix*)
8860 # we just hope/assume this is gcc and not c89 (= MSVC++)
8861 with_gnu_ld=yes
8862 ;;
8863 openbsd* | bitrig*)
8864 with_gnu_ld=no
8865 ;;
8866 esac
8867
8868 ld_shlibs=yes
8869
8870 # On some targets, GNU ld is compatible enough with the native linker
8871 # that we're better off using the native interface for both.
8872 lt_use_gnu_ld_interface=no
8873 if test yes = "$with_gnu_ld"; then
8874 case $host_os in
8875 aix*)
8876 # The AIX port of GNU ld has always aspired to compatibility
8877 # with the native linker. However, as the warning in the GNU ld
8878 # block says, versions before 2.19.5* couldn't really create working
8879 # shared libraries, regardless of the interface used.
8880 case `$LD -v 2>&1` in
8881 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8882 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8883 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8884 *)
8885 lt_use_gnu_ld_interface=yes
8886 ;;
8887 esac
8888 ;;
8889 *)
8890 lt_use_gnu_ld_interface=yes
8891 ;;
8892 esac
8893 fi
8894
8895 if test yes = "$lt_use_gnu_ld_interface"; then
8896 # If archive_cmds runs LD, not CC, wlarc should be empty
8897 wlarc='$wl'
8898
8899 # Set some defaults for GNU ld with shared library support. These
8900 # are reset later if shared libraries are not supported. Putting them
8901 # here allows them to be overridden if necessary.
8902 runpath_var=LD_RUN_PATH
8903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8904 export_dynamic_flag_spec='$wl--export-dynamic'
8905 # ancient GNU ld didn't support --whole-archive et. al.
8906 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8907 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8908 else
8909 whole_archive_flag_spec=
8910 fi
8911 supports_anon_versioning=no
8912 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8913 *GNU\ gold*) supports_anon_versioning=yes ;;
8914 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8915 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8916 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8917 *\ 2.11.*) ;; # other 2.11 versions
8918 *) supports_anon_versioning=yes ;;
8919 esac
8920
8921 # See if GNU ld supports shared libraries.
8922 case $host_os in
8923 aix[3-9]*)
8924 # On AIX/PPC, the GNU linker is very broken
8925 if test ia64 != "$host_cpu"; then
8926 ld_shlibs=no
8927 cat <<_LT_EOF 1>&2
8928
8929 *** Warning: the GNU linker, at least up to release 2.19, is reported
8930 *** to be unable to reliably create shared libraries on AIX.
8931 *** Therefore, libtool is disabling shared libraries support. If you
8932 *** really care for shared libraries, you may want to install binutils
8933 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8934 *** You will then need to restart the configuration process.
8935
8936 _LT_EOF
8937 fi
8938 ;;
8939
8940 amigaos*)
8941 case $host_cpu in
8942 powerpc)
8943 # see comment about AmigaOS4 .so support
8944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8945 archive_expsym_cmds=''
8946 ;;
8947 m68k)
8948 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)'
8949 hardcode_libdir_flag_spec='-L$libdir'
8950 hardcode_minus_L=yes
8951 ;;
8952 esac
8953 ;;
8954
8955 beos*)
8956 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8957 allow_undefined_flag=unsupported
8958 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8959 # support --undefined. This deserves some investigation. FIXME
8960 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
8965
8966 cygwin* | mingw* | pw32* | cegcc*)
8967 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8968 # as there is no search path for DLLs.
8969 hardcode_libdir_flag_spec='-L$libdir'
8970 export_dynamic_flag_spec='$wl--export-all-symbols'
8971 allow_undefined_flag=unsupported
8972 always_export_symbols=no
8973 enable_shared_with_static_runtimes=yes
8974 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'
8975 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8976
8977 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8979 # If the export-symbols file already is a .def file, use it as
8980 # is; otherwise, prepend EXPORTS...
8981 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8982 cp $export_symbols $output_objdir/$soname.def;
8983 else
8984 echo EXPORTS > $output_objdir/$soname.def;
8985 cat $export_symbols >> $output_objdir/$soname.def;
8986 fi~
8987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 haiku*)
8994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8995 link_all_deplibs=yes
8996 ;;
8997
8998 os2*)
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_minus_L=yes
9001 allow_undefined_flag=unsupported
9002 shrext_cmds=.dll
9003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9006 $ECHO EXPORTS >> $output_objdir/$libname.def~
9007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9009 emximp -o $lib $output_objdir/$libname.def'
9010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9013 $ECHO EXPORTS >> $output_objdir/$libname.def~
9014 prefix_cmds="$SED"~
9015 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9016 prefix_cmds="$prefix_cmds -e 1d";
9017 fi~
9018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9021 emximp -o $lib $output_objdir/$libname.def'
9022 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9023 enable_shared_with_static_runtimes=yes
9024 ;;
9025
9026 interix[3-9]*)
9027 hardcode_direct=no
9028 hardcode_shlibpath_var=no
9029 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9030 export_dynamic_flag_spec='$wl-E'
9031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9032 # Instead, shared libraries are loaded at an image base (0x10000000 by
9033 # default) and relocated if they conflict, which is a slow very memory
9034 # consuming and fragmenting process. To avoid this, we pick a random,
9035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9038 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'
9039 ;;
9040
9041 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9042 tmp_diet=no
9043 if test linux-dietlibc = "$host_os"; then
9044 case $cc_basename in
9045 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9046 esac
9047 fi
9048 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9049 && test no = "$tmp_diet"
9050 then
9051 tmp_addflag=' $pic_flag'
9052 tmp_sharedflag='-shared'
9053 case $cc_basename,$host_cpu in
9054 pgcc*) # Portland Group C compiler
9055 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'
9056 tmp_addflag=' $pic_flag'
9057 ;;
9058 pgf77* | pgf90* | pgf95* | pgfortran*)
9059 # Portland Group f77 and f90 compilers
9060 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'
9061 tmp_addflag=' $pic_flag -Mnomain' ;;
9062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9063 tmp_addflag=' -i_dynamic' ;;
9064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9065 tmp_addflag=' -i_dynamic -nofor_main' ;;
9066 ifc* | ifort*) # Intel Fortran compiler
9067 tmp_addflag=' -nofor_main' ;;
9068 lf95*) # Lahey Fortran 8.1
9069 whole_archive_flag_spec=
9070 tmp_sharedflag='--shared' ;;
9071 nagfor*) # NAGFOR 5.3
9072 tmp_sharedflag='-Wl,-shared' ;;
9073 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9074 tmp_sharedflag='-qmkshrobj'
9075 tmp_addflag= ;;
9076 nvcc*) # Cuda Compiler Driver 2.2
9077 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'
9078 compiler_needs_object=yes
9079 ;;
9080 esac
9081 case `$CC -V 2>&1 | sed 5q` in
9082 *Sun\ C*) # Sun C 5.9
9083 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'
9084 compiler_needs_object=yes
9085 tmp_sharedflag='-G' ;;
9086 *Sun\ F*) # Sun Fortran 8.3
9087 tmp_sharedflag='-G' ;;
9088 esac
9089 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9090
9091 if test yes = "$supports_anon_versioning"; then
9092 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9094 echo "local: *; };" >> $output_objdir/$libname.ver~
9095 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9096 fi
9097
9098 case $cc_basename in
9099 tcc*)
9100 export_dynamic_flag_spec='-rdynamic'
9101 ;;
9102 xlf* | bgf* | bgxlf* | mpixlf*)
9103 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9104 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9105 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9106 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9107 if test yes = "$supports_anon_versioning"; then
9108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9110 echo "local: *; };" >> $output_objdir/$libname.ver~
9111 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9112 fi
9113 ;;
9114 esac
9115 else
9116 ld_shlibs=no
9117 fi
9118 ;;
9119
9120 netbsd*)
9121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9122 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9123 wlarc=
9124 else
9125 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9127 fi
9128 ;;
9129
9130 solaris*)
9131 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9132 ld_shlibs=no
9133 cat <<_LT_EOF 1>&2
9134
9135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9136 *** create shared libraries on Solaris systems. Therefore, libtool
9137 *** is disabling shared libraries support. We urge you to upgrade GNU
9138 *** binutils to release 2.9.1 or newer. Another option is to modify
9139 *** your PATH or compiler configuration so that the native linker is
9140 *** used, and then restart.
9141
9142 _LT_EOF
9143 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9145 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9146 else
9147 ld_shlibs=no
9148 fi
9149 ;;
9150
9151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9152 case `$LD -v 2>&1` in
9153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9154 ld_shlibs=no
9155 cat <<_LT_EOF 1>&2
9156
9157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9158 *** reliably create shared libraries on SCO systems. Therefore, libtool
9159 *** is disabling shared libraries support. We urge you to upgrade GNU
9160 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9161 *** your PATH or compiler configuration so that the native linker is
9162 *** used, and then restart.
9163
9164 _LT_EOF
9165 ;;
9166 *)
9167 # For security reasons, it is highly recommended that you always
9168 # use absolute paths for naming shared libraries, and exclude the
9169 # DT_RUNPATH tag from executables and libraries. But doing so
9170 # requires that you compile everything twice, which is a pain.
9171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9175 else
9176 ld_shlibs=no
9177 fi
9178 ;;
9179 esac
9180 ;;
9181
9182 sunos4*)
9183 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 wlarc=
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 ;;
9188
9189 *)
9190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197 esac
9198
9199 if test no = "$ld_shlibs"; then
9200 runpath_var=
9201 hardcode_libdir_flag_spec=
9202 export_dynamic_flag_spec=
9203 whole_archive_flag_spec=
9204 fi
9205 else
9206 # PORTME fill in a description of your system's linker (not GNU ld)
9207 case $host_os in
9208 aix3*)
9209 allow_undefined_flag=unsupported
9210 always_export_symbols=yes
9211 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'
9212 # Note: this linker hardcodes the directories in LIBPATH if there
9213 # are no directories specified by -L.
9214 hardcode_minus_L=yes
9215 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9216 # Neither direct hardcoding nor static linking is supported with a
9217 # broken collect2.
9218 hardcode_direct=unsupported
9219 fi
9220 ;;
9221
9222 aix[4-9]*)
9223 if test ia64 = "$host_cpu"; then
9224 # On IA64, the linker does run time linking by default, so we don't
9225 # have to do anything special.
9226 aix_use_runtimelinking=no
9227 exp_sym_flag='-Bexport'
9228 no_entry_flag=
9229 else
9230 # If we're using GNU nm, then we don't want the "-C" option.
9231 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9232 # Without the "-l" option, or with the "-B" option, AIX nm treats
9233 # weak defined symbols like other global defined symbols, whereas
9234 # GNU nm marks them as "W".
9235 # While the 'weak' keyword is ignored in the Export File, we need
9236 # it in the Import File for the 'aix-soname' feature, so we have
9237 # to replace the "-B" option with "-P" for AIX nm.
9238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9239 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9240 else
9241 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9242 fi
9243 aix_use_runtimelinking=no
9244
9245 # Test if we are trying to use run time linking or normal
9246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9247 # have runtime linking enabled, and use it for executables.
9248 # For shared libraries, we enable/disable runtime linking
9249 # depending on the kind of the shared library created -
9250 # when "with_aix_soname,aix_use_runtimelinking" is:
9251 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9252 # "aix,yes" lib.so shared, rtl:yes, for executables
9253 # lib.a static archive
9254 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9255 # lib.a(lib.so.V) shared, rtl:no, for executables
9256 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9257 # lib.a(lib.so.V) shared, rtl:no
9258 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9259 # lib.a static archive
9260 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9261 for ld_flag in $LDFLAGS; do
9262 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9263 aix_use_runtimelinking=yes
9264 break
9265 fi
9266 done
9267 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9268 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9269 # so we don't have lib.a shared libs to link our executables.
9270 # We have to force runtime linking in this case.
9271 aix_use_runtimelinking=yes
9272 LDFLAGS="$LDFLAGS -Wl,-brtl"
9273 fi
9274 ;;
9275 esac
9276
9277 exp_sym_flag='-bexport'
9278 no_entry_flag='-bnoentry'
9279 fi
9280
9281 # When large executables or shared objects are built, AIX ld can
9282 # have problems creating the table of contents. If linking a library
9283 # or program results in "error TOC overflow" add -mminimal-toc to
9284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286
9287 archive_cmds=''
9288 hardcode_direct=yes
9289 hardcode_direct_absolute=yes
9290 hardcode_libdir_separator=':'
9291 link_all_deplibs=yes
9292 file_list_spec='$wl-f,'
9293 case $with_aix_soname,$aix_use_runtimelinking in
9294 aix,*) ;; # traditional, no import file
9295 svr4,* | *,yes) # use import file
9296 # The Import File defines what to hardcode.
9297 hardcode_direct=no
9298 hardcode_direct_absolute=no
9299 ;;
9300 esac
9301
9302 if test yes = "$GCC"; then
9303 case $host_os in aix4.[012]|aix4.[012].*)
9304 # We only want to do this on AIX 4.2 and lower, the check
9305 # below for broken collect2 doesn't work under 4.3+
9306 collect2name=`$CC -print-prog-name=collect2`
9307 if test -f "$collect2name" &&
9308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9309 then
9310 # We have reworked collect2
9311 :
9312 else
9313 # We have old collect2
9314 hardcode_direct=unsupported
9315 # It fails to find uninstalled libraries when the uninstalled
9316 # path is not listed in the libpath. Setting hardcode_minus_L
9317 # to unsupported forces relinking
9318 hardcode_minus_L=yes
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 hardcode_libdir_separator=
9321 fi
9322 ;;
9323 esac
9324 shared_flag='-shared'
9325 if test yes = "$aix_use_runtimelinking"; then
9326 shared_flag="$shared_flag "'$wl-G'
9327 fi
9328 # Need to ensure runtime linking is disabled for the traditional
9329 # shared library, or the linker may eventually find shared libraries
9330 # /with/ Import File - we do not want to mix them.
9331 shared_flag_aix='-shared'
9332 shared_flag_svr4='-shared $wl-G'
9333 else
9334 # not using gcc
9335 if test ia64 = "$host_cpu"; then
9336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9337 # chokes on -Wl,-G. The following line is correct:
9338 shared_flag='-G'
9339 else
9340 if test yes = "$aix_use_runtimelinking"; then
9341 shared_flag='$wl-G'
9342 else
9343 shared_flag='$wl-bM:SRE'
9344 fi
9345 shared_flag_aix='$wl-bM:SRE'
9346 shared_flag_svr4='$wl-G'
9347 fi
9348 fi
9349
9350 export_dynamic_flag_spec='$wl-bexpall'
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
9353 always_export_symbols=yes
9354 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
9357 allow_undefined_flag='-berok'
9358 # Determine the default libpath from the value encoded in an
9359 # empty executable.
9360 if test set = "${lt_cv_aix_libpath+set}"; then
9361 aix_libpath=$lt_cv_aix_libpath
9362 else
9363 if ${lt_cv_aix_libpath_+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368
9369 int
9370 main ()
9371 {
9372
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378
9379 lt_aix_libpath_sed='
9380 /Import File Strings/,/^$/ {
9381 /^0/ {
9382 s/^0 *\([^ ]*\) *$/\1/
9383 p
9384 }
9385 }'
9386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9387 # Check for a 64-bit object if we didn't find anything.
9388 if test -z "$lt_cv_aix_libpath_"; then
9389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9390 fi
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 if test -z "$lt_cv_aix_libpath_"; then
9395 lt_cv_aix_libpath_=/usr/lib:/lib
9396 fi
9397
9398 fi
9399
9400 aix_libpath=$lt_cv_aix_libpath_
9401 fi
9402
9403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9404 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9405 else
9406 if test ia64 = "$host_cpu"; then
9407 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9408 allow_undefined_flag="-z nodefs"
9409 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"
9410 else
9411 # Determine the default libpath from the value encoded in an
9412 # empty executable.
9413 if test set = "${lt_cv_aix_libpath+set}"; then
9414 aix_libpath=$lt_cv_aix_libpath
9415 else
9416 if ${lt_cv_aix_libpath_+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421
9422 int
9423 main ()
9424 {
9425
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431
9432 lt_aix_libpath_sed='
9433 /Import File Strings/,/^$/ {
9434 /^0/ {
9435 s/^0 *\([^ ]*\) *$/\1/
9436 p
9437 }
9438 }'
9439 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9440 # Check for a 64-bit object if we didn't find anything.
9441 if test -z "$lt_cv_aix_libpath_"; then
9442 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443 fi
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 if test -z "$lt_cv_aix_libpath_"; then
9448 lt_cv_aix_libpath_=/usr/lib:/lib
9449 fi
9450
9451 fi
9452
9453 aix_libpath=$lt_cv_aix_libpath_
9454 fi
9455
9456 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9457 # Warning - without using the other run time loading flags,
9458 # -berok will link without error, but may produce a broken library.
9459 no_undefined_flag=' $wl-bernotok'
9460 allow_undefined_flag=' $wl-berok'
9461 if test yes = "$with_gnu_ld"; then
9462 # We only use this code for GNU lds that support --whole-archive.
9463 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9464 else
9465 # Exported symbols can be pulled into shared objects from archives
9466 whole_archive_flag_spec='$convenience'
9467 fi
9468 archive_cmds_need_lc=yes
9469 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9470 # -brtl affects multiple linker settings, -berok does not and is overridden later
9471 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9472 if test svr4 != "$with_aix_soname"; then
9473 # This is similar to how AIX traditionally builds its shared libraries.
9474 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9475 fi
9476 if test aix != "$with_aix_soname"; then
9477 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9478 else
9479 # used by -dlpreopen to get the symbols
9480 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9481 fi
9482 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9483 fi
9484 fi
9485 ;;
9486
9487 amigaos*)
9488 case $host_cpu in
9489 powerpc)
9490 # see comment about AmigaOS4 .so support
9491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9492 archive_expsym_cmds=''
9493 ;;
9494 m68k)
9495 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)'
9496 hardcode_libdir_flag_spec='-L$libdir'
9497 hardcode_minus_L=yes
9498 ;;
9499 esac
9500 ;;
9501
9502 bsdi[45]*)
9503 export_dynamic_flag_spec=-rdynamic
9504 ;;
9505
9506 cygwin* | mingw* | pw32* | cegcc*)
9507 # When not using gcc, we currently assume that we are using
9508 # Microsoft Visual C++.
9509 # hardcode_libdir_flag_spec is actually meaningless, as there is
9510 # no search path for DLLs.
9511 case $cc_basename in
9512 cl*)
9513 # Native MSVC
9514 hardcode_libdir_flag_spec=' '
9515 allow_undefined_flag=unsupported
9516 always_export_symbols=yes
9517 file_list_spec='@'
9518 # Tell ltmain to make .lib files, not .a files.
9519 libext=lib
9520 # Tell ltmain to make .dll files, not .so files.
9521 shrext_cmds=.dll
9522 # FIXME: Setting linknames here is a bad hack.
9523 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9524 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9525 cp "$export_symbols" "$output_objdir/$soname.def";
9526 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9527 else
9528 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9529 fi~
9530 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9531 linknames='
9532 # The linker will not automatically build a static lib if we build a DLL.
9533 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9534 enable_shared_with_static_runtimes=yes
9535 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9537 # Don't use ranlib
9538 old_postinstall_cmds='chmod 644 $oldlib'
9539 postlink_cmds='lt_outputfile="@OUTPUT@"~
9540 lt_tool_outputfile="@TOOL_OUTPUT@"~
9541 case $lt_outputfile in
9542 *.exe|*.EXE) ;;
9543 *)
9544 lt_outputfile=$lt_outputfile.exe
9545 lt_tool_outputfile=$lt_tool_outputfile.exe
9546 ;;
9547 esac~
9548 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9549 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9550 $RM "$lt_outputfile.manifest";
9551 fi'
9552 ;;
9553 *)
9554 # Assume MSVC wrapper
9555 hardcode_libdir_flag_spec=' '
9556 allow_undefined_flag=unsupported
9557 # Tell ltmain to make .lib files, not .a files.
9558 libext=lib
9559 # Tell ltmain to make .dll files, not .so files.
9560 shrext_cmds=.dll
9561 # FIXME: Setting linknames here is a bad hack.
9562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9563 # The linker will automatically build a .lib file if we build a DLL.
9564 old_archive_from_new_cmds='true'
9565 # FIXME: Should let the user specify the lib program.
9566 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9567 enable_shared_with_static_runtimes=yes
9568 ;;
9569 esac
9570 ;;
9571
9572 darwin* | rhapsody*)
9573
9574
9575 archive_cmds_need_lc=no
9576 hardcode_direct=no
9577 hardcode_automatic=yes
9578 hardcode_shlibpath_var=unsupported
9579 if test yes = "$lt_cv_ld_force_load"; then
9580 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\"`'
9581
9582 else
9583 whole_archive_flag_spec=''
9584 fi
9585 link_all_deplibs=yes
9586 allow_undefined_flag=$_lt_dar_allow_undefined
9587 case $cc_basename in
9588 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9589 *) _lt_dar_can_shared=$GCC ;;
9590 esac
9591 if test yes = "$_lt_dar_can_shared"; then
9592 output_verbose_link_cmd=func_echo_all
9593 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9594 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9595 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"
9596 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"
9597
9598 else
9599 ld_shlibs=no
9600 fi
9601
9602 ;;
9603
9604 dgux*)
9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 hardcode_libdir_flag_spec='-L$libdir'
9607 hardcode_shlibpath_var=no
9608 ;;
9609
9610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9611 # support. Future versions do this automatically, but an explicit c++rt0.o
9612 # does not break anything, and helps significantly (at the cost of a little
9613 # extra space).
9614 freebsd2.2*)
9615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9616 hardcode_libdir_flag_spec='-R$libdir'
9617 hardcode_direct=yes
9618 hardcode_shlibpath_var=no
9619 ;;
9620
9621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9622 freebsd2.*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=yes
9625 hardcode_minus_L=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9628
9629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9630 freebsd* | dragonfly*)
9631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_direct=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 hpux9*)
9638 if test yes = "$GCC"; then
9639 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9640 else
9641 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9642 fi
9643 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9644 hardcode_libdir_separator=:
9645 hardcode_direct=yes
9646
9647 # hardcode_minus_L: Not really in the search PATH,
9648 # but as the default location of the library.
9649 hardcode_minus_L=yes
9650 export_dynamic_flag_spec='$wl-E'
9651 ;;
9652
9653 hpux10*)
9654 if test yes,no = "$GCC,$with_gnu_ld"; then
9655 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659 if test no = "$with_gnu_ld"; then
9660 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9661 hardcode_libdir_separator=:
9662 hardcode_direct=yes
9663 hardcode_direct_absolute=yes
9664 export_dynamic_flag_spec='$wl-E'
9665 # hardcode_minus_L: Not really in the search PATH,
9666 # but as the default location of the library.
9667 hardcode_minus_L=yes
9668 fi
9669 ;;
9670
9671 hpux11*)
9672 if test yes,no = "$GCC,$with_gnu_ld"; then
9673 case $host_cpu in
9674 hppa*64*)
9675 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 ;;
9677 ia64*)
9678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9679 ;;
9680 *)
9681 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682 ;;
9683 esac
9684 else
9685 case $host_cpu in
9686 hppa*64*)
9687 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 ;;
9689 ia64*)
9690 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 *)
9693
9694 # Older versions of the 11.00 compiler do not understand -b yet
9695 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9697 $as_echo_n "checking if $CC understands -b... " >&6; }
9698 if ${lt_cv_prog_compiler__b+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 lt_cv_prog_compiler__b=no
9702 save_LDFLAGS=$LDFLAGS
9703 LDFLAGS="$LDFLAGS -b"
9704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9706 # The linker can only warn and ignore the option if not recognized
9707 # So say no if there are warnings
9708 if test -s conftest.err; then
9709 # Append any errors to the config.log.
9710 cat conftest.err 1>&5
9711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler__b=yes
9715 fi
9716 else
9717 lt_cv_prog_compiler__b=yes
9718 fi
9719 fi
9720 $RM -r conftest*
9721 LDFLAGS=$save_LDFLAGS
9722
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9725 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9726
9727 if test yes = "$lt_cv_prog_compiler__b"; then
9728 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 else
9730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9731 fi
9732
9733 ;;
9734 esac
9735 fi
9736 if test no = "$with_gnu_ld"; then
9737 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9738 hardcode_libdir_separator=:
9739
9740 case $host_cpu in
9741 hppa*64*|ia64*)
9742 hardcode_direct=no
9743 hardcode_shlibpath_var=no
9744 ;;
9745 *)
9746 hardcode_direct=yes
9747 hardcode_direct_absolute=yes
9748 export_dynamic_flag_spec='$wl-E'
9749
9750 # hardcode_minus_L: Not really in the search PATH,
9751 # but as the default location of the library.
9752 hardcode_minus_L=yes
9753 ;;
9754 esac
9755 fi
9756 ;;
9757
9758 irix5* | irix6* | nonstopux*)
9759 if test yes = "$GCC"; then
9760 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'
9761 # Try to use the -exported_symbol ld option, if it does not
9762 # work, assume that -exports_file does not work either and
9763 # implicitly export all symbols.
9764 # This should be the same for all languages, so no per-tag cache variable.
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9766 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9767 if ${lt_cv_irix_exported_symbol+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 save_LDFLAGS=$LDFLAGS
9771 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 int foo (void) { return 0; }
9775 _ACEOF
9776 if ac_fn_c_try_link "$LINENO"; then :
9777 lt_cv_irix_exported_symbol=yes
9778 else
9779 lt_cv_irix_exported_symbol=no
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LDFLAGS=$save_LDFLAGS
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9786 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9787 if test yes = "$lt_cv_irix_exported_symbol"; then
9788 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'
9789 fi
9790 else
9791 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'
9792 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'
9793 fi
9794 archive_cmds_need_lc='no'
9795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9796 hardcode_libdir_separator=:
9797 inherit_rpath=yes
9798 link_all_deplibs=yes
9799 ;;
9800
9801 linux*)
9802 case $cc_basename in
9803 tcc*)
9804 # Fabrice Bellard et al's Tiny C Compiler
9805 ld_shlibs=yes
9806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 esac
9809 ;;
9810
9811 netbsd*)
9812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9814 else
9815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9816 fi
9817 hardcode_libdir_flag_spec='-R$libdir'
9818 hardcode_direct=yes
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 newsos6)
9823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824 hardcode_direct=yes
9825 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9826 hardcode_libdir_separator=:
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 *nto* | *qnx*)
9831 ;;
9832
9833 openbsd* | bitrig*)
9834 if test -f /usr/libexec/ld.so; then
9835 hardcode_direct=yes
9836 hardcode_shlibpath_var=no
9837 hardcode_direct_absolute=yes
9838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9841 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9842 export_dynamic_flag_spec='$wl-E'
9843 else
9844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9845 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9846 fi
9847 else
9848 ld_shlibs=no
9849 fi
9850 ;;
9851
9852 os2*)
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_minus_L=yes
9855 allow_undefined_flag=unsupported
9856 shrext_cmds=.dll
9857 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9858 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9859 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9860 $ECHO EXPORTS >> $output_objdir/$libname.def~
9861 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9863 emximp -o $lib $output_objdir/$libname.def'
9864 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9867 $ECHO EXPORTS >> $output_objdir/$libname.def~
9868 prefix_cmds="$SED"~
9869 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9870 prefix_cmds="$prefix_cmds -e 1d";
9871 fi~
9872 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9873 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9874 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9875 emximp -o $lib $output_objdir/$libname.def'
9876 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9877 enable_shared_with_static_runtimes=yes
9878 ;;
9879
9880 osf3*)
9881 if test yes = "$GCC"; then
9882 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9883 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'
9884 else
9885 allow_undefined_flag=' -expect_unresolved \*'
9886 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'
9887 fi
9888 archive_cmds_need_lc='no'
9889 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9890 hardcode_libdir_separator=:
9891 ;;
9892
9893 osf4* | osf5*) # as osf3* with the addition of -msym flag
9894 if test yes = "$GCC"; then
9895 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9896 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'
9897 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9898 else
9899 allow_undefined_flag=' -expect_unresolved \*'
9900 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'
9901 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~
9902 $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'
9903
9904 # Both c and cxx compiler support -rpath directly
9905 hardcode_libdir_flag_spec='-rpath $libdir'
9906 fi
9907 archive_cmds_need_lc='no'
9908 hardcode_libdir_separator=:
9909 ;;
9910
9911 solaris*)
9912 no_undefined_flag=' -z defs'
9913 if test yes = "$GCC"; then
9914 wlarc='$wl'
9915 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9917 $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'
9918 else
9919 case `$CC -V 2>&1` in
9920 *"Compilers 5.0"*)
9921 wlarc=''
9922 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9925 ;;
9926 *)
9927 wlarc='$wl'
9928 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9930 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9931 ;;
9932 esac
9933 fi
9934 hardcode_libdir_flag_spec='-R$libdir'
9935 hardcode_shlibpath_var=no
9936 case $host_os in
9937 solaris2.[0-5] | solaris2.[0-5].*) ;;
9938 *)
9939 # The compiler driver will combine and reorder linker options,
9940 # but understands '-z linker_flag'. GCC discards it without '$wl',
9941 # but is careful enough not to reorder.
9942 # Supported since Solaris 2.6 (maybe 2.5.1?)
9943 if test yes = "$GCC"; then
9944 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9945 else
9946 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9947 fi
9948 ;;
9949 esac
9950 link_all_deplibs=yes
9951 ;;
9952
9953 sunos4*)
9954 if test sequent = "$host_vendor"; then
9955 # Use $CC to link under sequent, because it throws in some extra .o
9956 # files that make .init and .fini sections work.
9957 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9958 else
9959 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9960 fi
9961 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_direct=yes
9963 hardcode_minus_L=yes
9964 hardcode_shlibpath_var=no
9965 ;;
9966
9967 sysv4)
9968 case $host_vendor in
9969 sni)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_direct=yes # is this really true???
9972 ;;
9973 siemens)
9974 ## LD is ld it makes a PLAMLIB
9975 ## CC just makes a GrossModule.
9976 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9977 reload_cmds='$CC -r -o $output$reload_objs'
9978 hardcode_direct=no
9979 ;;
9980 motorola)
9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9983 ;;
9984 esac
9985 runpath_var='LD_RUN_PATH'
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 sysv4.3*)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_shlibpath_var=no
9992 export_dynamic_flag_spec='-Bexport'
9993 ;;
9994
9995 sysv4*MP*)
9996 if test -d /usr/nec; then
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_shlibpath_var=no
9999 runpath_var=LD_RUN_PATH
10000 hardcode_runpath_var=yes
10001 ld_shlibs=yes
10002 fi
10003 ;;
10004
10005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10006 no_undefined_flag='$wl-z,text'
10007 archive_cmds_need_lc=no
10008 hardcode_shlibpath_var=no
10009 runpath_var='LD_RUN_PATH'
10010
10011 if test yes = "$GCC"; then
10012 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 fi
10018 ;;
10019
10020 sysv5* | sco3.2v5* | sco5v6*)
10021 # Note: We CANNOT use -z defs as we might desire, because we do not
10022 # link with -lc, and that would cause any symbols used from libc to
10023 # always be unresolved, which means just about no library would
10024 # ever link correctly. If we're not using GNU ld we use -z text
10025 # though, which does catch some bad symbols but isn't as heavy-handed
10026 # as -z defs.
10027 no_undefined_flag='$wl-z,text'
10028 allow_undefined_flag='$wl-z,nodefs'
10029 archive_cmds_need_lc=no
10030 hardcode_shlibpath_var=no
10031 hardcode_libdir_flag_spec='$wl-R,$libdir'
10032 hardcode_libdir_separator=':'
10033 link_all_deplibs=yes
10034 export_dynamic_flag_spec='$wl-Bexport'
10035 runpath_var='LD_RUN_PATH'
10036
10037 if test yes = "$GCC"; then
10038 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 else
10041 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 fi
10044 ;;
10045
10046 uts4*)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_libdir_flag_spec='-L$libdir'
10049 hardcode_shlibpath_var=no
10050 ;;
10051
10052 *)
10053 ld_shlibs=no
10054 ;;
10055 esac
10056
10057 if test sni = "$host_vendor"; then
10058 case $host in
10059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10060 export_dynamic_flag_spec='$wl-Blargedynsym'
10061 ;;
10062 esac
10063 fi
10064 fi
10065
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10067 $as_echo "$ld_shlibs" >&6; }
10068 test no = "$ld_shlibs" && can_build_shared=no
10069
10070 with_gnu_ld=$with_gnu_ld
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086 #
10087 # Do we need to explicitly link libc?
10088 #
10089 case "x$archive_cmds_need_lc" in
10090 x|xyes)
10091 # Assume -lc should be added
10092 archive_cmds_need_lc=yes
10093
10094 if test yes,yes = "$GCC,$enable_shared"; then
10095 case $archive_cmds in
10096 *'~'*)
10097 # FIXME: we may have to deal with multi-command sequences.
10098 ;;
10099 '$CC '*)
10100 # Test whether the compiler implicitly links with -lc since on some
10101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10102 # to ld, don't add -lc before -lgcc.
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10104 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10105 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 $RM conftest*
10109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10110
10111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10112 (eval $ac_compile) 2>&5
10113 ac_status=$?
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; } 2>conftest.err; then
10116 soname=conftest
10117 lib=conftest
10118 libobjs=conftest.$ac_objext
10119 deplibs=
10120 wl=$lt_prog_compiler_wl
10121 pic_flag=$lt_prog_compiler_pic
10122 compiler_flags=-v
10123 linker_flags=-v
10124 verstring=
10125 output_objdir=.
10126 libname=conftest
10127 lt_save_allow_undefined_flag=$allow_undefined_flag
10128 allow_undefined_flag=
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10130 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10131 ac_status=$?
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; }
10134 then
10135 lt_cv_archive_cmds_need_lc=no
10136 else
10137 lt_cv_archive_cmds_need_lc=yes
10138 fi
10139 allow_undefined_flag=$lt_save_allow_undefined_flag
10140 else
10141 cat conftest.err 1>&5
10142 fi
10143 $RM conftest*
10144
10145 fi
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10147 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10148 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10149 ;;
10150 esac
10151 fi
10152 ;;
10153 esac
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10307 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10308
10309 if test yes = "$GCC"; then
10310 case $host_os in
10311 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10312 *) lt_awk_arg='/^libraries:/' ;;
10313 esac
10314 case $host_os in
10315 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10316 *) lt_sed_strip_eq='s|=/|/|g' ;;
10317 esac
10318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10319 case $lt_search_path_spec in
10320 *\;*)
10321 # if the path contains ";" then we assume it to be the separator
10322 # otherwise default to the standard path separator (i.e. ":") - it is
10323 # assumed that no part of a normal pathname contains ";" but that should
10324 # okay in the real world where ";" in dirpaths is itself problematic.
10325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10326 ;;
10327 *)
10328 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10329 ;;
10330 esac
10331 # Ok, now we have the path, separated by spaces, we can step through it
10332 # and add multilib dir if necessary...
10333 lt_tmp_lt_search_path_spec=
10334 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10335 # ...but if some path component already ends with the multilib dir we assume
10336 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10337 case "$lt_multi_os_dir; $lt_search_path_spec " in
10338 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10339 lt_multi_os_dir=
10340 ;;
10341 esac
10342 for lt_sys_path in $lt_search_path_spec; do
10343 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10345 elif test -n "$lt_multi_os_dir"; then
10346 test -d "$lt_sys_path" && \
10347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10348 fi
10349 done
10350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10351 BEGIN {RS = " "; FS = "/|\n";} {
10352 lt_foo = "";
10353 lt_count = 0;
10354 for (lt_i = NF; lt_i > 0; lt_i--) {
10355 if ($lt_i != "" && $lt_i != ".") {
10356 if ($lt_i == "..") {
10357 lt_count++;
10358 } else {
10359 if (lt_count == 0) {
10360 lt_foo = "/" $lt_i lt_foo;
10361 } else {
10362 lt_count--;
10363 }
10364 }
10365 }
10366 }
10367 if (lt_foo != "") { lt_freq[lt_foo]++; }
10368 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10369 }'`
10370 # AWK program above erroneously prepends '/' to C:/dos/paths
10371 # for these hosts.
10372 case $host_os in
10373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10374 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10375 esac
10376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10377 else
10378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10379 fi
10380 library_names_spec=
10381 libname_spec='lib$name'
10382 soname_spec=
10383 shrext_cmds=.so
10384 postinstall_cmds=
10385 postuninstall_cmds=
10386 finish_cmds=
10387 finish_eval=
10388 shlibpath_var=
10389 shlibpath_overrides_runpath=unknown
10390 version_type=none
10391 dynamic_linker="$host_os ld.so"
10392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10393 need_lib_prefix=unknown
10394 hardcode_into_libs=no
10395
10396 # when you set need_version to no, make sure it does not cause -set_version
10397 # flags to be left without arguments
10398 need_version=unknown
10399
10400
10401
10402 case $host_os in
10403 aix3*)
10404 version_type=linux # correct to gnu/linux during the next big refactor
10405 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10406 shlibpath_var=LIBPATH
10407
10408 # AIX 3 has no versioning support, so we append a major version to the name.
10409 soname_spec='$libname$release$shared_ext$major'
10410 ;;
10411
10412 aix[4-9]*)
10413 version_type=linux # correct to gnu/linux during the next big refactor
10414 need_lib_prefix=no
10415 need_version=no
10416 hardcode_into_libs=yes
10417 if test ia64 = "$host_cpu"; then
10418 # AIX 5 supports IA64
10419 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 else
10422 # With GCC up to 2.95.x, collect2 would create an import file
10423 # for dependence libraries. The import file would start with
10424 # the line '#! .'. This would cause the generated library to
10425 # depend on '.', always an invalid library. This was fixed in
10426 # development snapshots of GCC prior to 3.0.
10427 case $host_os in
10428 aix4 | aix4.[01] | aix4.[01].*)
10429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10430 echo ' yes '
10431 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10432 :
10433 else
10434 can_build_shared=no
10435 fi
10436 ;;
10437 esac
10438 # Using Import Files as archive members, it is possible to support
10439 # filename-based versioning of shared library archives on AIX. While
10440 # this would work for both with and without runtime linking, it will
10441 # prevent static linking of such archives. So we do filename-based
10442 # shared library versioning with .so extension only, which is used
10443 # when both runtime linking and shared linking is enabled.
10444 # Unfortunately, runtime linking may impact performance, so we do
10445 # not want this to be the default eventually. Also, we use the
10446 # versioned .so libs for executables only if there is the -brtl
10447 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10448 # To allow for filename-based versioning support, we need to create
10449 # libNAME.so.V as an archive file, containing:
10450 # *) an Import File, referring to the versioned filename of the
10451 # archive as well as the shared archive member, telling the
10452 # bitwidth (32 or 64) of that shared object, and providing the
10453 # list of exported symbols of that shared object, eventually
10454 # decorated with the 'weak' keyword
10455 # *) the shared object with the F_LOADONLY flag set, to really avoid
10456 # it being seen by the linker.
10457 # At run time we better use the real file rather than another symlink,
10458 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10459
10460 case $with_aix_soname,$aix_use_runtimelinking in
10461 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10462 # soname into executable. Probably we can add versioning support to
10463 # collect2, so additional links can be useful in future.
10464 aix,yes) # traditional libtool
10465 dynamic_linker='AIX unversionable lib.so'
10466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10467 # instead of lib<name>.a to let people know that these are not
10468 # typical AIX shared libraries.
10469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10470 ;;
10471 aix,no) # traditional AIX only
10472 dynamic_linker='AIX lib.a(lib.so.V)'
10473 # We preserve .a as extension for shared libraries through AIX4.2
10474 # and later when we are not doing run time linking.
10475 library_names_spec='$libname$release.a $libname.a'
10476 soname_spec='$libname$release$shared_ext$major'
10477 ;;
10478 svr4,*) # full svr4 only
10479 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10480 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10481 # We do not specify a path in Import Files, so LIBPATH fires.
10482 shlibpath_overrides_runpath=yes
10483 ;;
10484 *,yes) # both, prefer svr4
10485 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10486 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10487 # unpreferred sharedlib libNAME.a needs extra handling
10488 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10489 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10490 # We do not specify a path in Import Files, so LIBPATH fires.
10491 shlibpath_overrides_runpath=yes
10492 ;;
10493 *,no) # both, prefer aix
10494 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10495 library_names_spec='$libname$release.a $libname.a'
10496 soname_spec='$libname$release$shared_ext$major'
10497 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10498 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10499 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10500 ;;
10501 esac
10502 shlibpath_var=LIBPATH
10503 fi
10504 ;;
10505
10506 amigaos*)
10507 case $host_cpu in
10508 powerpc)
10509 # Since July 2007 AmigaOS4 officially supports .so libraries.
10510 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10512 ;;
10513 m68k)
10514 library_names_spec='$libname.ixlibrary $libname.a'
10515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10516 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10517 ;;
10518 esac
10519 ;;
10520
10521 beos*)
10522 library_names_spec='$libname$shared_ext'
10523 dynamic_linker="$host_os ld.so"
10524 shlibpath_var=LIBRARY_PATH
10525 ;;
10526
10527 bsdi[45]*)
10528 version_type=linux # correct to gnu/linux during the next big refactor
10529 need_version=no
10530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10531 soname_spec='$libname$release$shared_ext$major'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10535 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10536 # the default ld.so.conf also contains /usr/contrib/lib and
10537 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10538 # libtool to hard-code these into programs
10539 ;;
10540
10541 cygwin* | mingw* | pw32* | cegcc*)
10542 version_type=windows
10543 shrext_cmds=.dll
10544 need_version=no
10545 need_lib_prefix=no
10546
10547 case $GCC,$cc_basename in
10548 yes,*)
10549 # gcc
10550 library_names_spec='$libname.dll.a'
10551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10552 postinstall_cmds='base_file=`basename \$file`~
10553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10554 dldir=$destdir/`dirname \$dlpath`~
10555 test -d \$dldir || mkdir -p \$dldir~
10556 $install_prog $dir/$dlname \$dldir/$dlname~
10557 chmod a+x \$dldir/$dlname~
10558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10560 fi'
10561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10562 dlpath=$dir/\$dldll~
10563 $RM \$dlpath'
10564 shlibpath_overrides_runpath=yes
10565
10566 case $host_os in
10567 cygwin*)
10568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10569 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10570
10571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10572 ;;
10573 mingw* | cegcc*)
10574 # MinGW DLLs use traditional 'lib' prefix
10575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10576 ;;
10577 pw32*)
10578 # pw32 DLLs use 'pw' prefix rather than 'lib'
10579 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10580 ;;
10581 esac
10582 dynamic_linker='Win32 ld.exe'
10583 ;;
10584
10585 *,cl*)
10586 # Native MSVC
10587 libname_spec='$name'
10588 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10589 library_names_spec='$libname.dll.lib'
10590
10591 case $build_os in
10592 mingw*)
10593 sys_lib_search_path_spec=
10594 lt_save_ifs=$IFS
10595 IFS=';'
10596 for lt_path in $LIB
10597 do
10598 IFS=$lt_save_ifs
10599 # Let DOS variable expansion print the short 8.3 style file name.
10600 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10601 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10602 done
10603 IFS=$lt_save_ifs
10604 # Convert to MSYS style.
10605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10606 ;;
10607 cygwin*)
10608 # Convert to unix form, then to dos form, then back to unix form
10609 # but this time dos style (no spaces!) so that the unix form looks
10610 # like /cygdrive/c/PROGRA~1:/cygdr...
10611 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10612 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10613 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10614 ;;
10615 *)
10616 sys_lib_search_path_spec=$LIB
10617 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10618 # It is most probably a Windows format PATH.
10619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10620 else
10621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10622 fi
10623 # FIXME: find the short name or the path components, as spaces are
10624 # common. (e.g. "Program Files" -> "PROGRA~1")
10625 ;;
10626 esac
10627
10628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629 postinstall_cmds='base_file=`basename \$file`~
10630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10631 dldir=$destdir/`dirname \$dlpath`~
10632 test -d \$dldir || mkdir -p \$dldir~
10633 $install_prog $dir/$dlname \$dldir/$dlname'
10634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10635 dlpath=$dir/\$dldll~
10636 $RM \$dlpath'
10637 shlibpath_overrides_runpath=yes
10638 dynamic_linker='Win32 link.exe'
10639 ;;
10640
10641 *)
10642 # Assume MSVC wrapper
10643 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10644 dynamic_linker='Win32 ld.exe'
10645 ;;
10646 esac
10647 # FIXME: first we should search . and the directory the executable is in
10648 shlibpath_var=PATH
10649 ;;
10650
10651 darwin* | rhapsody*)
10652 dynamic_linker="$host_os dyld"
10653 version_type=darwin
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10657 soname_spec='$libname$release$major$shared_ext'
10658 shlibpath_overrides_runpath=yes
10659 shlibpath_var=DYLD_LIBRARY_PATH
10660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10661
10662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10664 ;;
10665
10666 dgux*)
10667 version_type=linux # correct to gnu/linux during the next big refactor
10668 need_lib_prefix=no
10669 need_version=no
10670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10671 soname_spec='$libname$release$shared_ext$major'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 ;;
10674
10675 freebsd* | dragonfly*)
10676 # DragonFly does not have aout. When/if they implement a new
10677 # versioning mechanism, adjust this.
10678 if test -x /usr/bin/objformat; then
10679 objformat=`/usr/bin/objformat`
10680 else
10681 case $host_os in
10682 freebsd[23].*) objformat=aout ;;
10683 *) objformat=elf ;;
10684 esac
10685 fi
10686 version_type=freebsd-$objformat
10687 case $version_type in
10688 freebsd-elf*)
10689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10690 soname_spec='$libname$release$shared_ext$major'
10691 need_version=no
10692 need_lib_prefix=no
10693 ;;
10694 freebsd-*)
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10696 need_version=yes
10697 ;;
10698 esac
10699 shlibpath_var=LD_LIBRARY_PATH
10700 case $host_os in
10701 freebsd2.*)
10702 shlibpath_overrides_runpath=yes
10703 ;;
10704 freebsd3.[01]* | freebsdelf3.[01]*)
10705 shlibpath_overrides_runpath=yes
10706 hardcode_into_libs=yes
10707 ;;
10708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10710 shlibpath_overrides_runpath=no
10711 hardcode_into_libs=yes
10712 ;;
10713 *) # from 4.6 on, and DragonFly
10714 shlibpath_overrides_runpath=yes
10715 hardcode_into_libs=yes
10716 ;;
10717 esac
10718 ;;
10719
10720 haiku*)
10721 version_type=linux # correct to gnu/linux during the next big refactor
10722 need_lib_prefix=no
10723 need_version=no
10724 dynamic_linker="$host_os runtime_loader"
10725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10726 soname_spec='$libname$release$shared_ext$major'
10727 shlibpath_var=LIBRARY_PATH
10728 shlibpath_overrides_runpath=no
10729 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10730 hardcode_into_libs=yes
10731 ;;
10732
10733 hpux9* | hpux10* | hpux11*)
10734 # Give a soname corresponding to the major version so that dld.sl refuses to
10735 # link against other versions.
10736 version_type=sunos
10737 need_lib_prefix=no
10738 need_version=no
10739 case $host_cpu in
10740 ia64*)
10741 shrext_cmds='.so'
10742 hardcode_into_libs=yes
10743 dynamic_linker="$host_os dld.so"
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 if test 32 = "$HPUX_IA64_MODE"; then
10749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10750 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10751 else
10752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10753 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10754 fi
10755 ;;
10756 hppa*64*)
10757 shrext_cmds='.sl'
10758 hardcode_into_libs=yes
10759 dynamic_linker="$host_os dld.sl"
10760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763 soname_spec='$libname$release$shared_ext$major'
10764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10766 ;;
10767 *)
10768 shrext_cmds='.sl'
10769 dynamic_linker="$host_os dld.sl"
10770 shlibpath_var=SHLIB_PATH
10771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10773 soname_spec='$libname$release$shared_ext$major'
10774 ;;
10775 esac
10776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10777 postinstall_cmds='chmod 555 $lib'
10778 # or fails outright, so override atomically:
10779 install_override_mode=555
10780 ;;
10781
10782 interix[3-9]*)
10783 version_type=linux # correct to gnu/linux during the next big refactor
10784 need_lib_prefix=no
10785 need_version=no
10786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10787 soname_spec='$libname$release$shared_ext$major'
10788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10792 ;;
10793
10794 irix5* | irix6* | nonstopux*)
10795 case $host_os in
10796 nonstopux*) version_type=nonstopux ;;
10797 *)
10798 if test yes = "$lt_cv_prog_gnu_ld"; then
10799 version_type=linux # correct to gnu/linux during the next big refactor
10800 else
10801 version_type=irix
10802 fi ;;
10803 esac
10804 need_lib_prefix=no
10805 need_version=no
10806 soname_spec='$libname$release$shared_ext$major'
10807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10808 case $host_os in
10809 irix5* | nonstopux*)
10810 libsuff= shlibsuff=
10811 ;;
10812 *)
10813 case $LD in # libtool.m4 will add one of these switches to LD
10814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10815 libsuff= shlibsuff= libmagic=32-bit;;
10816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10817 libsuff=32 shlibsuff=N32 libmagic=N32;;
10818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10820 *) libsuff= shlibsuff= libmagic=never-match;;
10821 esac
10822 ;;
10823 esac
10824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10825 shlibpath_overrides_runpath=no
10826 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10827 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10828 hardcode_into_libs=yes
10829 ;;
10830
10831 # No shared lib support for Linux oldld, aout, or coff.
10832 linux*oldld* | linux*aout* | linux*coff*)
10833 dynamic_linker=no
10834 ;;
10835
10836 linux*android*)
10837 version_type=none # Android doesn't support versioned libraries.
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='$libname$release$shared_ext'
10841 soname_spec='$libname$release$shared_ext'
10842 finish_cmds=
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=yes
10845
10846 # This implies no fast_install, which is unacceptable.
10847 # Some rework will be needed to allow for fast_install
10848 # before this can be enabled.
10849 hardcode_into_libs=yes
10850
10851 dynamic_linker='Android linker'
10852 # Don't embed -rpath directories since the linker doesn't support them.
10853 hardcode_libdir_flag_spec='-L$libdir'
10854 ;;
10855
10856 # This must be glibc/ELF.
10857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10858 version_type=linux # correct to gnu/linux during the next big refactor
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862 soname_spec='$libname$release$shared_ext$major'
10863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=no
10866
10867 # Some binutils ld are patched to set DT_RUNPATH
10868 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 lt_cv_shlibpath_overrides_runpath=no
10872 save_LDFLAGS=$LDFLAGS
10873 save_libdir=$libdir
10874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878
10879 int
10880 main ()
10881 {
10882
10883 ;
10884 return 0;
10885 }
10886 _ACEOF
10887 if ac_fn_c_try_link "$LINENO"; then :
10888 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10889 lt_cv_shlibpath_overrides_runpath=yes
10890 fi
10891 fi
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LDFLAGS=$save_LDFLAGS
10895 libdir=$save_libdir
10896
10897 fi
10898
10899 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10900
10901 # This implies no fast_install, which is unacceptable.
10902 # Some rework will be needed to allow for fast_install
10903 # before this can be enabled.
10904 hardcode_into_libs=yes
10905
10906 # Add ABI-specific directories to the system library path.
10907 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10908
10909 # Ideally, we could use ldconfig to report *all* directores which are
10910 # searched for libraries, however this is still not possible. Aside from not
10911 # being certain /sbin/ldconfig is available, command
10912 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10913 # even though it is searched at run-time. Try to do the best guess by
10914 # appending ld.so.conf contents (and includes) to the search path.
10915 if test -f /etc/ld.so.conf; then
10916 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' ' '`
10917 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10918 fi
10919
10920 # We used to test for /lib/ld.so.1 and disable shared libraries on
10921 # powerpc, because MkLinux only supported shared libraries with the
10922 # GNU dynamic linker. Since this was broken with cross compilers,
10923 # most powerpc-linux boxes support dynamic linking these days and
10924 # people can always --disable-shared, the test was removed, and we
10925 # assume the GNU/Linux dynamic linker is in use.
10926 dynamic_linker='GNU/Linux ld.so'
10927 ;;
10928
10929 netbsd*)
10930 version_type=sunos
10931 need_lib_prefix=no
10932 need_version=no
10933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10936 dynamic_linker='NetBSD (a.out) ld.so'
10937 else
10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec='$libname$release$shared_ext$major'
10940 dynamic_linker='NetBSD ld.elf_so'
10941 fi
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes
10944 hardcode_into_libs=yes
10945 ;;
10946
10947 newsos6)
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 shlibpath_overrides_runpath=yes
10952 ;;
10953
10954 *nto* | *qnx*)
10955 version_type=qnx
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10959 soname_spec='$libname$release$shared_ext$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=no
10962 hardcode_into_libs=yes
10963 dynamic_linker='ldqnx.so'
10964 ;;
10965
10966 openbsd* | bitrig*)
10967 version_type=sunos
10968 sys_lib_dlsearch_path_spec=/usr/lib
10969 need_lib_prefix=no
10970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10971 need_version=no
10972 else
10973 need_version=yes
10974 fi
10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes
10979 ;;
10980
10981 os2*)
10982 libname_spec='$name'
10983 version_type=windows
10984 shrext_cmds=.dll
10985 need_version=no
10986 need_lib_prefix=no
10987 # OS/2 can only load a DLL with a base name of 8 characters or less.
10988 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10989 v=$($ECHO $release$versuffix | tr -d .-);
10990 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10991 $ECHO $n$v`$shared_ext'
10992 library_names_spec='${libname}_dll.$libext'
10993 dynamic_linker='OS/2 ld.exe'
10994 shlibpath_var=BEGINLIBPATH
10995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10997 postinstall_cmds='base_file=`basename \$file`~
10998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10999 dldir=$destdir/`dirname \$dlpath`~
11000 test -d \$dldir || mkdir -p \$dldir~
11001 $install_prog $dir/$dlname \$dldir/$dlname~
11002 chmod a+x \$dldir/$dlname~
11003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11005 fi'
11006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11007 dlpath=$dir/\$dldll~
11008 $RM \$dlpath'
11009 ;;
11010
11011 osf3* | osf4* | osf5*)
11012 version_type=osf
11013 need_lib_prefix=no
11014 need_version=no
11015 soname_spec='$libname$release$shared_ext$major'
11016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11020 ;;
11021
11022 rdos*)
11023 dynamic_linker=no
11024 ;;
11025
11026 solaris*)
11027 version_type=linux # correct to gnu/linux during the next big refactor
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031 soname_spec='$libname$release$shared_ext$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11035 # ldd complains unless libraries are executable
11036 postinstall_cmds='chmod +x $lib'
11037 ;;
11038
11039 sunos4*)
11040 version_type=sunos
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 if test yes = "$with_gnu_ld"; then
11046 need_lib_prefix=no
11047 fi
11048 need_version=yes
11049 ;;
11050
11051 sysv4 | sysv4.3*)
11052 version_type=linux # correct to gnu/linux during the next big refactor
11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11054 soname_spec='$libname$release$shared_ext$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 case $host_vendor in
11057 sni)
11058 shlibpath_overrides_runpath=no
11059 need_lib_prefix=no
11060 runpath_var=LD_RUN_PATH
11061 ;;
11062 siemens)
11063 need_lib_prefix=no
11064 ;;
11065 motorola)
11066 need_lib_prefix=no
11067 need_version=no
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11070 ;;
11071 esac
11072 ;;
11073
11074 sysv4*MP*)
11075 if test -d /usr/nec; then
11076 version_type=linux # correct to gnu/linux during the next big refactor
11077 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11078 soname_spec='$libname$shared_ext.$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 fi
11081 ;;
11082
11083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11084 version_type=sco
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11088 soname_spec='$libname$release$shared_ext$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 hardcode_into_libs=yes
11092 if test yes = "$with_gnu_ld"; then
11093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11094 else
11095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11096 case $host_os in
11097 sco3.2v5*)
11098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11099 ;;
11100 esac
11101 fi
11102 sys_lib_dlsearch_path_spec='/usr/lib'
11103 ;;
11104
11105 tpf*)
11106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11107 version_type=linux # correct to gnu/linux during the next big refactor
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11114 ;;
11115
11116 uts4*)
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119 soname_spec='$libname$release$shared_ext$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 ;;
11122
11123 *)
11124 dynamic_linker=no
11125 ;;
11126 esac
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11128 $as_echo "$dynamic_linker" >&6; }
11129 test no = "$dynamic_linker" && can_build_shared=no
11130
11131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11132 if test yes = "$GCC"; then
11133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11134 fi
11135
11136 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11137 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11138 fi
11139
11140 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11141 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11142 fi
11143
11144 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11145 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11146
11147 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11148 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11149
11150 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11151 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11251 hardcode_action=
11252 if test -n "$hardcode_libdir_flag_spec" ||
11253 test -n "$runpath_var" ||
11254 test yes = "$hardcode_automatic"; then
11255
11256 # We can hardcode non-existent directories.
11257 if test no != "$hardcode_direct" &&
11258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11259 # have to relink, otherwise we might link with an installed library
11260 # when we should be linking with a yet-to-be-installed one
11261 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11262 test no != "$hardcode_minus_L"; then
11263 # Linking always hardcodes the temporary library directory.
11264 hardcode_action=relink
11265 else
11266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11267 hardcode_action=immediate
11268 fi
11269 else
11270 # We cannot hardcode anything, or else we can only hardcode existing
11271 # directories.
11272 hardcode_action=unsupported
11273 fi
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11275 $as_echo "$hardcode_action" >&6; }
11276
11277 if test relink = "$hardcode_action" ||
11278 test yes = "$inherit_rpath"; then
11279 # Fast installation is not supported
11280 enable_fast_install=no
11281 elif test yes = "$shlibpath_overrides_runpath" ||
11282 test no = "$enable_shared"; then
11283 # Fast installation is not necessary
11284 enable_fast_install=needless
11285 fi
11286
11287
11288
11289
11290
11291
11292 if test yes != "$enable_dlopen"; then
11293 enable_dlopen=unknown
11294 enable_dlopen_self=unknown
11295 enable_dlopen_self_static=unknown
11296 else
11297 lt_cv_dlopen=no
11298 lt_cv_dlopen_libs=
11299
11300 case $host_os in
11301 beos*)
11302 lt_cv_dlopen=load_add_on
11303 lt_cv_dlopen_libs=
11304 lt_cv_dlopen_self=yes
11305 ;;
11306
11307 mingw* | pw32* | cegcc*)
11308 lt_cv_dlopen=LoadLibrary
11309 lt_cv_dlopen_libs=
11310 ;;
11311
11312 cygwin*)
11313 lt_cv_dlopen=dlopen
11314 lt_cv_dlopen_libs=
11315 ;;
11316
11317 darwin*)
11318 # if libdl is installed we need to link against it
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11321 if ${ac_cv_lib_dl_dlopen+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldl $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dlopen ();
11336 int
11337 main ()
11338 {
11339 return dlopen ();
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_dl_dlopen=yes
11346 else
11347 ac_cv_lib_dl_dlopen=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11356 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11357 else
11358
11359 lt_cv_dlopen=dyld
11360 lt_cv_dlopen_libs=
11361 lt_cv_dlopen_self=yes
11362
11363 fi
11364
11365 ;;
11366
11367 tpf*)
11368 # Don't try to run any link tests for TPF. We know it's impossible
11369 # because TPF is a cross-compiler, and we know how we open DSOs.
11370 lt_cv_dlopen=dlopen
11371 lt_cv_dlopen_libs=
11372 lt_cv_dlopen_self=no
11373 ;;
11374
11375 *)
11376 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11377 if test "x$ac_cv_func_shl_load" = xyes; then :
11378 lt_cv_dlopen=shl_load
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11381 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11382 if ${ac_cv_lib_dld_shl_load+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ac_check_lib_save_LIBS=$LIBS
11386 LIBS="-ldld $LIBS"
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char shl_load ();
11397 int
11398 main ()
11399 {
11400 return shl_load ();
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_cv_lib_dld_shl_load=yes
11407 else
11408 ac_cv_lib_dld_shl_load=no
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11415 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11416 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11417 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11418 else
11419 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11420 if test "x$ac_cv_func_dlopen" = xyes; then :
11421 lt_cv_dlopen=dlopen
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11424 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11425 if ${ac_cv_lib_dl_dlopen+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 ac_check_lib_save_LIBS=$LIBS
11429 LIBS="-ldl $LIBS"
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char dlopen ();
11440 int
11441 main ()
11442 {
11443 return dlopen ();
11444 ;
11445 return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449 ac_cv_lib_dl_dlopen=yes
11450 else
11451 ac_cv_lib_dl_dlopen=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11458 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11459 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11460 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11461 else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11464 if ${ac_cv_lib_svld_dlopen+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-lsvld $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char dlopen ();
11479 int
11480 main ()
11481 {
11482 return dlopen ();
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_svld_dlopen=yes
11489 else
11490 ac_cv_lib_svld_dlopen=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11502 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11503 if ${ac_cv_lib_dld_dld_link+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldld $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dld_link ();
11518 int
11519 main ()
11520 {
11521 return dld_link ();
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_dld_dld_link=yes
11528 else
11529 ac_cv_lib_dld_dld_link=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11536 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11537 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11538 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11539 fi
11540
11541
11542 fi
11543
11544
11545 fi
11546
11547
11548 fi
11549
11550
11551 fi
11552
11553
11554 fi
11555
11556 ;;
11557 esac
11558
11559 if test no = "$lt_cv_dlopen"; then
11560 enable_dlopen=no
11561 else
11562 enable_dlopen=yes
11563 fi
11564
11565 case $lt_cv_dlopen in
11566 dlopen)
11567 save_CPPFLAGS=$CPPFLAGS
11568 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11569
11570 save_LDFLAGS=$LDFLAGS
11571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11572
11573 save_LIBS=$LIBS
11574 LIBS="$lt_cv_dlopen_libs $LIBS"
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11577 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11578 if ${lt_cv_dlopen_self+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 if test yes = "$cross_compiling"; then :
11582 lt_cv_dlopen_self=cross
11583 else
11584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11585 lt_status=$lt_dlunknown
11586 cat > conftest.$ac_ext <<_LT_EOF
11587 #line $LINENO "configure"
11588 #include "confdefs.h"
11589
11590 #if HAVE_DLFCN_H
11591 #include <dlfcn.h>
11592 #endif
11593
11594 #include <stdio.h>
11595
11596 #ifdef RTLD_GLOBAL
11597 # define LT_DLGLOBAL RTLD_GLOBAL
11598 #else
11599 # ifdef DL_GLOBAL
11600 # define LT_DLGLOBAL DL_GLOBAL
11601 # else
11602 # define LT_DLGLOBAL 0
11603 # endif
11604 #endif
11605
11606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11607 find out it does not work in some platform. */
11608 #ifndef LT_DLLAZY_OR_NOW
11609 # ifdef RTLD_LAZY
11610 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11611 # else
11612 # ifdef DL_LAZY
11613 # define LT_DLLAZY_OR_NOW DL_LAZY
11614 # else
11615 # ifdef RTLD_NOW
11616 # define LT_DLLAZY_OR_NOW RTLD_NOW
11617 # else
11618 # ifdef DL_NOW
11619 # define LT_DLLAZY_OR_NOW DL_NOW
11620 # else
11621 # define LT_DLLAZY_OR_NOW 0
11622 # endif
11623 # endif
11624 # endif
11625 # endif
11626 #endif
11627
11628 /* When -fvisibility=hidden is used, assume the code has been annotated
11629 correspondingly for the symbols needed. */
11630 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11631 int fnord () __attribute__((visibility("default")));
11632 #endif
11633
11634 int fnord () { return 42; }
11635 int main ()
11636 {
11637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11638 int status = $lt_dlunknown;
11639
11640 if (self)
11641 {
11642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11643 else
11644 {
11645 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646 else puts (dlerror ());
11647 }
11648 /* dlclose (self); */
11649 }
11650 else
11651 puts (dlerror ());
11652
11653 return status;
11654 }
11655 _LT_EOF
11656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11657 (eval $ac_link) 2>&5
11658 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11661 (./conftest; exit; ) >&5 2>/dev/null
11662 lt_status=$?
11663 case x$lt_status in
11664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11666 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11667 esac
11668 else :
11669 # compilation failed
11670 lt_cv_dlopen_self=no
11671 fi
11672 fi
11673 rm -fr conftest*
11674
11675
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11678 $as_echo "$lt_cv_dlopen_self" >&6; }
11679
11680 if test yes = "$lt_cv_dlopen_self"; then
11681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11684 if ${lt_cv_dlopen_self_static+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test yes = "$cross_compiling"; then :
11688 lt_cv_dlopen_self_static=cross
11689 else
11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11691 lt_status=$lt_dlunknown
11692 cat > conftest.$ac_ext <<_LT_EOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695
11696 #if HAVE_DLFCN_H
11697 #include <dlfcn.h>
11698 #endif
11699
11700 #include <stdio.h>
11701
11702 #ifdef RTLD_GLOBAL
11703 # define LT_DLGLOBAL RTLD_GLOBAL
11704 #else
11705 # ifdef DL_GLOBAL
11706 # define LT_DLGLOBAL DL_GLOBAL
11707 # else
11708 # define LT_DLGLOBAL 0
11709 # endif
11710 #endif
11711
11712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11713 find out it does not work in some platform. */
11714 #ifndef LT_DLLAZY_OR_NOW
11715 # ifdef RTLD_LAZY
11716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11717 # else
11718 # ifdef DL_LAZY
11719 # define LT_DLLAZY_OR_NOW DL_LAZY
11720 # else
11721 # ifdef RTLD_NOW
11722 # define LT_DLLAZY_OR_NOW RTLD_NOW
11723 # else
11724 # ifdef DL_NOW
11725 # define LT_DLLAZY_OR_NOW DL_NOW
11726 # else
11727 # define LT_DLLAZY_OR_NOW 0
11728 # endif
11729 # endif
11730 # endif
11731 # endif
11732 #endif
11733
11734 /* When -fvisibility=hidden is used, assume the code has been annotated
11735 correspondingly for the symbols needed. */
11736 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11737 int fnord () __attribute__((visibility("default")));
11738 #endif
11739
11740 int fnord () { return 42; }
11741 int main ()
11742 {
11743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11744 int status = $lt_dlunknown;
11745
11746 if (self)
11747 {
11748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11749 else
11750 {
11751 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11752 else puts (dlerror ());
11753 }
11754 /* dlclose (self); */
11755 }
11756 else
11757 puts (dlerror ());
11758
11759 return status;
11760 }
11761 _LT_EOF
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11763 (eval $ac_link) 2>&5
11764 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11767 (./conftest; exit; ) >&5 2>/dev/null
11768 lt_status=$?
11769 case x$lt_status in
11770 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11771 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11772 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11773 esac
11774 else :
11775 # compilation failed
11776 lt_cv_dlopen_self_static=no
11777 fi
11778 fi
11779 rm -fr conftest*
11780
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11784 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11785 fi
11786
11787 CPPFLAGS=$save_CPPFLAGS
11788 LDFLAGS=$save_LDFLAGS
11789 LIBS=$save_LIBS
11790 ;;
11791 esac
11792
11793 case $lt_cv_dlopen_self in
11794 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11795 *) enable_dlopen_self=unknown ;;
11796 esac
11797
11798 case $lt_cv_dlopen_self_static in
11799 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11800 *) enable_dlopen_self_static=unknown ;;
11801 esac
11802 fi
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 striplib=
11821 old_striplib=
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11823 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11824 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11825 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11826 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828 $as_echo "yes" >&6; }
11829 else
11830 # FIXME - insert some real tests, host_os isn't really good enough
11831 case $host_os in
11832 darwin*)
11833 if test -n "$STRIP"; then
11834 striplib="$STRIP -x"
11835 old_striplib="$STRIP -S"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842 ;;
11843 *)
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 ;;
11847 esac
11848 fi
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861 # Report what library types will actually be built
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11863 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11865 $as_echo "$can_build_shared" >&6; }
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11868 $as_echo_n "checking whether to build shared libraries... " >&6; }
11869 test no = "$can_build_shared" && enable_shared=no
11870
11871 # On AIX, shared libraries and static libraries use the same namespace, and
11872 # are all built from PIC.
11873 case $host_os in
11874 aix3*)
11875 test yes = "$enable_shared" && enable_static=no
11876 if test -n "$RANLIB"; then
11877 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11878 postinstall_cmds='$RANLIB $lib'
11879 fi
11880 ;;
11881
11882 aix[4-9]*)
11883 if test ia64 != "$host_cpu"; then
11884 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11885 yes,aix,yes) ;; # shared object as lib.so file only
11886 yes,svr4,*) ;; # shared object as lib.so archive member only
11887 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11888 esac
11889 fi
11890 ;;
11891 esac
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11893 $as_echo "$enable_shared" >&6; }
11894
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11896 $as_echo_n "checking whether to build static libraries... " >&6; }
11897 # Make sure either enable_shared or enable_static is yes.
11898 test yes = "$enable_shared" || enable_static=yes
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11900 $as_echo "$enable_static" >&6; }
11901
11902
11903
11904
11905 fi
11906 ac_ext=c
11907 ac_cpp='$CPP $CPPFLAGS'
11908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11911
11912 CC=$lt_save_CC
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928 ac_config_commands="$ac_config_commands libtool"
11929
11930
11931
11932
11933 # Only expand once:
11934
11935
11936
11937 if test "$GCC" = yes
11938 then
11939 CFLAGS="-Wall $CFLAGS"
11940 fi
11941
11942 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
11943
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11946 $as_echo_n "checking for ANSI C header files... " >&6; }
11947 if ${ac_cv_header_stdc+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11952 #include <stdlib.h>
11953 #include <stdarg.h>
11954 #include <string.h>
11955 #include <float.h>
11956
11957 int
11958 main ()
11959 {
11960
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966 ac_cv_header_stdc=yes
11967 else
11968 ac_cv_header_stdc=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971
11972 if test $ac_cv_header_stdc = yes; then
11973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #include <string.h>
11977
11978 _ACEOF
11979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11980 $EGREP "memchr" >/dev/null 2>&1; then :
11981
11982 else
11983 ac_cv_header_stdc=no
11984 fi
11985 rm -f conftest*
11986
11987 fi
11988
11989 if test $ac_cv_header_stdc = yes; then
11990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <stdlib.h>
11994
11995 _ACEOF
11996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11997 $EGREP "free" >/dev/null 2>&1; then :
11998
11999 else
12000 ac_cv_header_stdc=no
12001 fi
12002 rm -f conftest*
12003
12004 fi
12005
12006 if test $ac_cv_header_stdc = yes; then
12007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12008 if test "$cross_compiling" = yes; then :
12009 :
12010 else
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include <ctype.h>
12014 #include <stdlib.h>
12015 #if ((' ' & 0x0FF) == 0x020)
12016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12018 #else
12019 # define ISLOWER(c) \
12020 (('a' <= (c) && (c) <= 'i') \
12021 || ('j' <= (c) && (c) <= 'r') \
12022 || ('s' <= (c) && (c) <= 'z'))
12023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12024 #endif
12025
12026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12027 int
12028 main ()
12029 {
12030 int i;
12031 for (i = 0; i < 256; i++)
12032 if (XOR (islower (i), ISLOWER (i))
12033 || toupper (i) != TOUPPER (i))
12034 return 2;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_run "$LINENO"; then :
12039
12040 else
12041 ac_cv_header_stdc=no
12042 fi
12043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12044 conftest.$ac_objext conftest.beam conftest.$ac_ext
12045 fi
12046
12047 fi
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12050 $as_echo "$ac_cv_header_stdc" >&6; }
12051 if test $ac_cv_header_stdc = yes; then
12052
12053 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12054
12055 fi
12056
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12059 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12060 if ${ac_cv_c_const+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065
12066 int
12067 main ()
12068 {
12069
12070 #ifndef __cplusplus
12071 /* Ultrix mips cc rejects this sort of thing. */
12072 typedef int charset[2];
12073 const charset cs = { 0, 0 };
12074 /* SunOS 4.1.1 cc rejects this. */
12075 char const *const *pcpcc;
12076 char **ppc;
12077 /* NEC SVR4.0.2 mips cc rejects this. */
12078 struct point {int x, y;};
12079 static struct point const zero = {0,0};
12080 /* AIX XL C 1.02.0.0 rejects this.
12081 It does not let you subtract one const X* pointer from another in
12082 an arm of an if-expression whose if-part is not a constant
12083 expression */
12084 const char *g = "string";
12085 pcpcc = &g + (g ? g-g : 0);
12086 /* HPUX 7.0 cc rejects these. */
12087 ++pcpcc;
12088 ppc = (char**) pcpcc;
12089 pcpcc = (char const *const *) ppc;
12090 { /* SCO 3.2v4 cc rejects this sort of thing. */
12091 char tx;
12092 char *t = &tx;
12093 char const *s = 0 ? (char *) 0 : (char const *) 0;
12094
12095 *t++ = 0;
12096 if (s) return 0;
12097 }
12098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12099 int x[] = {25, 17};
12100 const int *foo = &x[0];
12101 ++foo;
12102 }
12103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12104 typedef const int *iptr;
12105 iptr p = 0;
12106 ++p;
12107 }
12108 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12110 struct s { int j; const int *ap[3]; } bx;
12111 struct s *b = &bx; b->j = 5;
12112 }
12113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12114 const int foo = 10;
12115 if (!foo) return 0;
12116 }
12117 return !cs[0] && !zero.x;
12118 #endif
12119
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125 ac_cv_c_const=yes
12126 else
12127 ac_cv_c_const=no
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12132 $as_echo "$ac_cv_c_const" >&6; }
12133 if test $ac_cv_c_const = no; then
12134
12135 $as_echo "#define const /**/" >>confdefs.h
12136
12137 fi
12138
12139 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12140 if test "x$ac_cv_type_size_t" = xyes; then :
12141
12142 else
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define size_t unsigned int
12146 _ACEOF
12147
12148 fi
12149
12150
12151
12152
12153 TESTPROGS=""
12154
12155 hmac_list=""
12156
12157 hashlibs=""
12158 if test -d ${srcdir}/../md5
12159 then
12160 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
12161 hmac_list="$hmac_list &hmac_md5,"
12162 hashlibs="$hashlibs ../md5/libmd5.la"
12163 fi
12164
12165 if test -d ${srcdir}/../sha1
12166 then
12167 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
12168 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
12169 hashlibs="$hashlibs ../sha1/libsha1.la"
12170 fi
12171
12172
12173 hmac_list="$hmac_list 0"
12174
12175
12176
12177 cat >>confdefs.h <<_ACEOF
12178 #define HMAC_LIST $hmac_list
12179 _ACEOF
12180
12181
12182 ac_config_files="$ac_config_files Makefile"
12183
12184 cat >confcache <<\_ACEOF
12185 # This file is a shell script that caches the results of configure
12186 # tests run on this system so they can be shared between configure
12187 # scripts and configure runs, see configure's option --config-cache.
12188 # It is not useful on other systems. If it contains results you don't
12189 # want to keep, you may remove or edit it.
12190 #
12191 # config.status only pays attention to the cache file if you give it
12192 # the --recheck option to rerun configure.
12193 #
12194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12196 # following values.
12197
12198 _ACEOF
12199
12200 # The following way of writing the cache mishandles newlines in values,
12201 # but we know of no workaround that is simple, portable, and efficient.
12202 # So, we kill variables containing newlines.
12203 # Ultrix sh set writes to stderr and can't be redirected directly,
12204 # and sets the high bit in the cache file unless we assign to the vars.
12205 (
12206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12207 eval ac_val=\$$ac_var
12208 case $ac_val in #(
12209 *${as_nl}*)
12210 case $ac_var in #(
12211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12213 esac
12214 case $ac_var in #(
12215 _ | IFS | as_nl) ;; #(
12216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12217 *) { eval $ac_var=; unset $ac_var;} ;;
12218 esac ;;
12219 esac
12220 done
12221
12222 (set) 2>&1 |
12223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12224 *${as_nl}ac_space=\ *)
12225 # `set' does not quote correctly, so add quotes: double-quote
12226 # substitution turns \\\\ into \\, and sed turns \\ into \.
12227 sed -n \
12228 "s/'/'\\\\''/g;
12229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12230 ;; #(
12231 *)
12232 # `set' quotes correctly as required by POSIX, so do not add quotes.
12233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12234 ;;
12235 esac |
12236 sort
12237 ) |
12238 sed '
12239 /^ac_cv_env_/b end
12240 t clear
12241 :clear
12242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12243 t end
12244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12245 :end' >>confcache
12246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12247 if test -w "$cache_file"; then
12248 if test "x$cache_file" != "x/dev/null"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12250 $as_echo "$as_me: updating cache $cache_file" >&6;}
12251 if test ! -f "$cache_file" || test -h "$cache_file"; then
12252 cat confcache >"$cache_file"
12253 else
12254 case $cache_file in #(
12255 */* | ?:*)
12256 mv -f confcache "$cache_file"$$ &&
12257 mv -f "$cache_file"$$ "$cache_file" ;; #(
12258 *)
12259 mv -f confcache "$cache_file" ;;
12260 esac
12261 fi
12262 fi
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12266 fi
12267 fi
12268 rm -f confcache
12269
12270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12271 # Let make expand exec_prefix.
12272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12273
12274 DEFS=-DHAVE_CONFIG_H
12275
12276 ac_libobjs=
12277 ac_ltlibobjs=
12278 U=
12279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12280 # 1. Remove the extension, and $U if already installed.
12281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12284 # will be set to the directory where LIBOBJS objects are built.
12285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12287 done
12288 LIBOBJS=$ac_libobjs
12289
12290 LTLIBOBJS=$ac_ltlibobjs
12291
12292
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12294 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12295 if test -n "$am_sleep_pid"; then
12296 # Hide warnings about reused PIDs.
12297 wait $am_sleep_pid 2>/dev/null
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12300 $as_echo "done" >&6; }
12301 if test -n "$EXEEXT"; then
12302 am__EXEEXT_TRUE=
12303 am__EXEEXT_FALSE='#'
12304 else
12305 am__EXEEXT_TRUE='#'
12306 am__EXEEXT_FALSE=
12307 fi
12308
12309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12310 as_fn_error $? "conditional \"AMDEP\" was never defined.
12311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12312 fi
12313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12316 fi
12317
12318 : "${CONFIG_STATUS=./config.status}"
12319 ac_write_fail=0
12320 ac_clean_files_save=$ac_clean_files
12321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12323 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12324 as_write_fail=0
12325 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12326 #! $SHELL
12327 # Generated by $as_me.
12328 # Run this file to recreate the current configuration.
12329 # Compiler output produced by configure, useful for debugging
12330 # configure, is in config.log if it exists.
12331
12332 debug=false
12333 ac_cs_recheck=false
12334 ac_cs_silent=false
12335
12336 SHELL=\${CONFIG_SHELL-$SHELL}
12337 export SHELL
12338 _ASEOF
12339 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12340 ## -------------------- ##
12341 ## M4sh Initialization. ##
12342 ## -------------------- ##
12343
12344 # Be more Bourne compatible
12345 DUALCASE=1; export DUALCASE # for MKS sh
12346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12347 emulate sh
12348 NULLCMD=:
12349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12350 # is contrary to our usage. Disable this feature.
12351 alias -g '${1+"$@"}'='"$@"'
12352 setopt NO_GLOB_SUBST
12353 else
12354 case `(set -o) 2>/dev/null` in #(
12355 *posix*) :
12356 set -o posix ;; #(
12357 *) :
12358 ;;
12359 esac
12360 fi
12361
12362
12363 as_nl='
12364 '
12365 export as_nl
12366 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12367 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12370 # Prefer a ksh shell builtin over an external printf program on Solaris,
12371 # but without wasting forks for bash or zsh.
12372 if test -z "$BASH_VERSION$ZSH_VERSION" \
12373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12374 as_echo='print -r --'
12375 as_echo_n='print -rn --'
12376 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12377 as_echo='printf %s\n'
12378 as_echo_n='printf %s'
12379 else
12380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12382 as_echo_n='/usr/ucb/echo -n'
12383 else
12384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12385 as_echo_n_body='eval
12386 arg=$1;
12387 case $arg in #(
12388 *"$as_nl"*)
12389 expr "X$arg" : "X\\(.*\\)$as_nl";
12390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12391 esac;
12392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12393 '
12394 export as_echo_n_body
12395 as_echo_n='sh -c $as_echo_n_body as_echo'
12396 fi
12397 export as_echo_body
12398 as_echo='sh -c $as_echo_body as_echo'
12399 fi
12400
12401 # The user is always right.
12402 if test "${PATH_SEPARATOR+set}" != set; then
12403 PATH_SEPARATOR=:
12404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12406 PATH_SEPARATOR=';'
12407 }
12408 fi
12409
12410
12411 # IFS
12412 # We need space, tab and new line, in precisely that order. Quoting is
12413 # there to prevent editors from complaining about space-tab.
12414 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12415 # splitting by setting IFS to empty value.)
12416 IFS=" "" $as_nl"
12417
12418 # Find who we are. Look in the path if we contain no directory separator.
12419 as_myself=
12420 case $0 in #((
12421 *[\\/]* ) as_myself=$0 ;;
12422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12424 do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12428 done
12429 IFS=$as_save_IFS
12430
12431 ;;
12432 esac
12433 # We did not find ourselves, most probably we were run as `sh COMMAND'
12434 # in which case we are not to be found in the path.
12435 if test "x$as_myself" = x; then
12436 as_myself=$0
12437 fi
12438 if test ! -f "$as_myself"; then
12439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12440 exit 1
12441 fi
12442
12443 # Unset variables that we do not need and which cause bugs (e.g. in
12444 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12445 # suppresses any "Segmentation fault" message there. '((' could
12446 # trigger a bug in pdksh 5.2.14.
12447 for as_var in BASH_ENV ENV MAIL MAILPATH
12448 do eval test x\${$as_var+set} = xset \
12449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12450 done
12451 PS1='$ '
12452 PS2='> '
12453 PS4='+ '
12454
12455 # NLS nuisances.
12456 LC_ALL=C
12457 export LC_ALL
12458 LANGUAGE=C
12459 export LANGUAGE
12460
12461 # CDPATH.
12462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12463
12464
12465 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12466 # ----------------------------------------
12467 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12468 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12469 # script with STATUS, using 1 if that was 0.
12470 as_fn_error ()
12471 {
12472 as_status=$1; test $as_status -eq 0 && as_status=1
12473 if test "$4"; then
12474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12476 fi
12477 $as_echo "$as_me: error: $2" >&2
12478 as_fn_exit $as_status
12479 } # as_fn_error
12480
12481
12482 # as_fn_set_status STATUS
12483 # -----------------------
12484 # Set $? to STATUS, without forking.
12485 as_fn_set_status ()
12486 {
12487 return $1
12488 } # as_fn_set_status
12489
12490 # as_fn_exit STATUS
12491 # -----------------
12492 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12493 as_fn_exit ()
12494 {
12495 set +e
12496 as_fn_set_status $1
12497 exit $1
12498 } # as_fn_exit
12499
12500 # as_fn_unset VAR
12501 # ---------------
12502 # Portably unset VAR.
12503 as_fn_unset ()
12504 {
12505 { eval $1=; unset $1;}
12506 }
12507 as_unset=as_fn_unset
12508 # as_fn_append VAR VALUE
12509 # ----------------------
12510 # Append the text in VALUE to the end of the definition contained in VAR. Take
12511 # advantage of any shell optimizations that allow amortized linear growth over
12512 # repeated appends, instead of the typical quadratic growth present in naive
12513 # implementations.
12514 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12515 eval 'as_fn_append ()
12516 {
12517 eval $1+=\$2
12518 }'
12519 else
12520 as_fn_append ()
12521 {
12522 eval $1=\$$1\$2
12523 }
12524 fi # as_fn_append
12525
12526 # as_fn_arith ARG...
12527 # ------------------
12528 # Perform arithmetic evaluation on the ARGs, and store the result in the
12529 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12530 # must be portable across $(()) and expr.
12531 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12532 eval 'as_fn_arith ()
12533 {
12534 as_val=$(( $* ))
12535 }'
12536 else
12537 as_fn_arith ()
12538 {
12539 as_val=`expr "$@" || test $? -eq 1`
12540 }
12541 fi # as_fn_arith
12542
12543
12544 if expr a : '\(a\)' >/dev/null 2>&1 &&
12545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12546 as_expr=expr
12547 else
12548 as_expr=false
12549 fi
12550
12551 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12552 as_basename=basename
12553 else
12554 as_basename=false
12555 fi
12556
12557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12558 as_dirname=dirname
12559 else
12560 as_dirname=false
12561 fi
12562
12563 as_me=`$as_basename -- "$0" ||
12564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12565 X"$0" : 'X\(//\)$' \| \
12566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12567 $as_echo X/"$0" |
12568 sed '/^.*\/\([^/][^/]*\)\/*$/{
12569 s//\1/
12570 q
12571 }
12572 /^X\/\(\/\/\)$/{
12573 s//\1/
12574 q
12575 }
12576 /^X\/\(\/\).*/{
12577 s//\1/
12578 q
12579 }
12580 s/.*/./; q'`
12581
12582 # Avoid depending upon Character Ranges.
12583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12586 as_cr_digits='0123456789'
12587 as_cr_alnum=$as_cr_Letters$as_cr_digits
12588
12589 ECHO_C= ECHO_N= ECHO_T=
12590 case `echo -n x` in #(((((
12591 -n*)
12592 case `echo 'xy\c'` in
12593 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12594 xy) ECHO_C='\c';;
12595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12596 ECHO_T=' ';;
12597 esac;;
12598 *)
12599 ECHO_N='-n';;
12600 esac
12601
12602 rm -f conf$$ conf$$.exe conf$$.file
12603 if test -d conf$$.dir; then
12604 rm -f conf$$.dir/conf$$.file
12605 else
12606 rm -f conf$$.dir
12607 mkdir conf$$.dir 2>/dev/null
12608 fi
12609 if (echo >conf$$.file) 2>/dev/null; then
12610 if ln -s conf$$.file conf$$ 2>/dev/null; then
12611 as_ln_s='ln -s'
12612 # ... but there are two gotchas:
12613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12615 # In both cases, we have to default to `cp -pR'.
12616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12617 as_ln_s='cp -pR'
12618 elif ln conf$$.file conf$$ 2>/dev/null; then
12619 as_ln_s=ln
12620 else
12621 as_ln_s='cp -pR'
12622 fi
12623 else
12624 as_ln_s='cp -pR'
12625 fi
12626 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12627 rmdir conf$$.dir 2>/dev/null
12628
12629
12630 # as_fn_mkdir_p
12631 # -------------
12632 # Create "$as_dir" as a directory, including parents if necessary.
12633 as_fn_mkdir_p ()
12634 {
12635
12636 case $as_dir in #(
12637 -*) as_dir=./$as_dir;;
12638 esac
12639 test -d "$as_dir" || eval $as_mkdir_p || {
12640 as_dirs=
12641 while :; do
12642 case $as_dir in #(
12643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12644 *) as_qdir=$as_dir;;
12645 esac
12646 as_dirs="'$as_qdir' $as_dirs"
12647 as_dir=`$as_dirname -- "$as_dir" ||
12648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649 X"$as_dir" : 'X\(//\)[^/]' \| \
12650 X"$as_dir" : 'X\(//\)$' \| \
12651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12652 $as_echo X"$as_dir" |
12653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12654 s//\1/
12655 q
12656 }
12657 /^X\(\/\/\)[^/].*/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)$/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\).*/{
12666 s//\1/
12667 q
12668 }
12669 s/.*/./; q'`
12670 test -d "$as_dir" && break
12671 done
12672 test -z "$as_dirs" || eval "mkdir $as_dirs"
12673 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12674
12675
12676 } # as_fn_mkdir_p
12677 if mkdir -p . 2>/dev/null; then
12678 as_mkdir_p='mkdir -p "$as_dir"'
12679 else
12680 test -d ./-p && rmdir ./-p
12681 as_mkdir_p=false
12682 fi
12683
12684
12685 # as_fn_executable_p FILE
12686 # -----------------------
12687 # Test if FILE is an executable regular file.
12688 as_fn_executable_p ()
12689 {
12690 test -f "$1" && test -x "$1"
12691 } # as_fn_executable_p
12692 as_test_x='test -x'
12693 as_executable_p=as_fn_executable_p
12694
12695 # Sed expression to map a string onto a valid CPP name.
12696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12697
12698 # Sed expression to map a string onto a valid variable name.
12699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12700
12701
12702 exec 6>&1
12703 ## ----------------------------------- ##
12704 ## Main body of $CONFIG_STATUS script. ##
12705 ## ----------------------------------- ##
12706 _ASEOF
12707 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12708
12709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12710 # Save the log message, to keep $0 and so on meaningful, and to
12711 # report actual input values of CONFIG_FILES etc. instead of their
12712 # values after options handling.
12713 ac_log="
12714 This file was extended by libhmac $as_me 1.00, which was
12715 generated by GNU Autoconf 2.69. Invocation command line was
12716
12717 CONFIG_FILES = $CONFIG_FILES
12718 CONFIG_HEADERS = $CONFIG_HEADERS
12719 CONFIG_LINKS = $CONFIG_LINKS
12720 CONFIG_COMMANDS = $CONFIG_COMMANDS
12721 $ $0 $@
12722
12723 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12724 "
12725
12726 _ACEOF
12727
12728 case $ac_config_files in *"
12729 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12730 esac
12731
12732 case $ac_config_headers in *"
12733 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12734 esac
12735
12736
12737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12738 # Files that config.status was made for.
12739 config_files="$ac_config_files"
12740 config_headers="$ac_config_headers"
12741 config_commands="$ac_config_commands"
12742
12743 _ACEOF
12744
12745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12746 ac_cs_usage="\
12747 \`$as_me' instantiates files and other configuration actions
12748 from templates according to the current configuration. Unless the files
12749 and actions are specified as TAGs, all are instantiated by default.
12750
12751 Usage: $0 [OPTION]... [TAG]...
12752
12753 -h, --help print this help, then exit
12754 -V, --version print version number and configuration settings, then exit
12755 --config print configuration, then exit
12756 -q, --quiet, --silent
12757 do not print progress messages
12758 -d, --debug don't remove temporary files
12759 --recheck update $as_me by reconfiguring in the same conditions
12760 --file=FILE[:TEMPLATE]
12761 instantiate the configuration file FILE
12762 --header=FILE[:TEMPLATE]
12763 instantiate the configuration header FILE
12764
12765 Configuration files:
12766 $config_files
12767
12768 Configuration headers:
12769 $config_headers
12770
12771 Configuration commands:
12772 $config_commands
12773
12774 Report bugs to <courier-users@lists.sourceforge.net>."
12775
12776 _ACEOF
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12779 ac_cs_version="\\
12780 libhmac config.status 1.00
12781 configured by $0, generated by GNU Autoconf 2.69,
12782 with options \\"\$ac_cs_config\\"
12783
12784 Copyright (C) 2012 Free Software Foundation, Inc.
12785 This config.status script is free software; the Free Software Foundation
12786 gives unlimited permission to copy, distribute and modify it."
12787
12788 ac_pwd='$ac_pwd'
12789 srcdir='$srcdir'
12790 INSTALL='$INSTALL'
12791 MKDIR_P='$MKDIR_P'
12792 AWK='$AWK'
12793 test -n "\$AWK" || AWK=awk
12794 _ACEOF
12795
12796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12797 # The default lists apply if the user does not specify any file.
12798 ac_need_defaults=:
12799 while test $# != 0
12800 do
12801 case $1 in
12802 --*=?*)
12803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12805 ac_shift=:
12806 ;;
12807 --*=)
12808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12809 ac_optarg=
12810 ac_shift=:
12811 ;;
12812 *)
12813 ac_option=$1
12814 ac_optarg=$2
12815 ac_shift=shift
12816 ;;
12817 esac
12818
12819 case $ac_option in
12820 # Handling of the options.
12821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12822 ac_cs_recheck=: ;;
12823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12824 $as_echo "$ac_cs_version"; exit ;;
12825 --config | --confi | --conf | --con | --co | --c )
12826 $as_echo "$ac_cs_config"; exit ;;
12827 --debug | --debu | --deb | --de | --d | -d )
12828 debug=: ;;
12829 --file | --fil | --fi | --f )
12830 $ac_shift
12831 case $ac_optarg in
12832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833 '') as_fn_error $? "missing file argument" ;;
12834 esac
12835 as_fn_append CONFIG_FILES " '$ac_optarg'"
12836 ac_need_defaults=false;;
12837 --header | --heade | --head | --hea )
12838 $ac_shift
12839 case $ac_optarg in
12840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12841 esac
12842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12843 ac_need_defaults=false;;
12844 --he | --h)
12845 # Conflict between --help and --header
12846 as_fn_error $? "ambiguous option: \`$1'
12847 Try \`$0 --help' for more information.";;
12848 --help | --hel | -h )
12849 $as_echo "$ac_cs_usage"; exit ;;
12850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12852 ac_cs_silent=: ;;
12853
12854 # This is an error.
12855 -*) as_fn_error $? "unrecognized option: \`$1'
12856 Try \`$0 --help' for more information." ;;
12857
12858 *) as_fn_append ac_config_targets " $1"
12859 ac_need_defaults=false ;;
12860
12861 esac
12862 shift
12863 done
12864
12865 ac_configure_extra_args=
12866
12867 if $ac_cs_silent; then
12868 exec 6>/dev/null
12869 ac_configure_extra_args="$ac_configure_extra_args --silent"
12870 fi
12871
12872 _ACEOF
12873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12874 if \$ac_cs_recheck; then
12875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12876 shift
12877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12878 CONFIG_SHELL='$SHELL'
12879 export CONFIG_SHELL
12880 exec "\$@"
12881 fi
12882
12883 _ACEOF
12884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12885 exec 5>>config.log
12886 {
12887 echo
12888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12889 ## Running $as_me. ##
12890 _ASBOX
12891 $as_echo "$ac_log"
12892 } >&5
12893
12894 _ACEOF
12895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12896 #
12897 # INIT-COMMANDS
12898 #
12899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12900
12901
12902 # The HP-UX ksh and POSIX shell print the target directory to stdout
12903 # if CDPATH is set.
12904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12905
12906 sed_quote_subst='$sed_quote_subst'
12907 double_quote_subst='$double_quote_subst'
12908 delay_variable_subst='$delay_variable_subst'
12909 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12910 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12911 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12912 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12913 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12914 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12915 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
12916 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12917 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12918 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12919 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12920 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12921 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12922 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12923 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12924 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12925 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12926 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12927 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12928 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12929 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12930 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12931 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12932 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12933 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12934 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12935 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12936 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12937 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12938 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12939 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12940 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12941 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12942 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12943 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12944 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12945 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12946 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12947 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12948 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12949 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12950 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12951 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12952 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12953 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12954 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12955 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12956 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12957 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12958 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12959 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12960 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12961 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12962 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12963 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12965 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
12966 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12967 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"`'
12968 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
12969 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12970 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12971 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
12972 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12973 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12974 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12975 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12976 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12977 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12978 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12979 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12980 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12981 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12982 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12983 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12984 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12985 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12986 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12987 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12988 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12989 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12990 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12991 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12992 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12993 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12994 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12995 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12996 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12997 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12998 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12999 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13000 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13001 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13002 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13003 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13012 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13013 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13014 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13015 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13016 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13017 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13036 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13037 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13038 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13039 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13040 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13041 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13042 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13043 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13044
13045 LTCC='$LTCC'
13046 LTCFLAGS='$LTCFLAGS'
13047 compiler='$compiler_DEFAULT'
13048
13049 # A function that is used when there is no print builtin or printf.
13050 func_fallback_echo ()
13051 {
13052 eval 'cat <<_LTECHO_EOF
13053 \$1
13054 _LTECHO_EOF'
13055 }
13056
13057 # Quote evaled strings.
13058 for var in SHELL \
13059 ECHO \
13060 PATH_SEPARATOR \
13061 SED \
13062 GREP \
13063 EGREP \
13064 FGREP \
13065 LD \
13066 NM \
13067 LN_S \
13068 lt_SP2NL \
13069 lt_NL2SP \
13070 reload_flag \
13071 OBJDUMP \
13072 deplibs_check_method \
13073 file_magic_cmd \
13074 file_magic_glob \
13075 want_nocaseglob \
13076 DLLTOOL \
13077 sharedlib_from_linklib_cmd \
13078 AR \
13079 AR_FLAGS \
13080 archiver_list_spec \
13081 STRIP \
13082 RANLIB \
13083 CC \
13084 CFLAGS \
13085 compiler \
13086 lt_cv_sys_global_symbol_pipe \
13087 lt_cv_sys_global_symbol_to_cdecl \
13088 lt_cv_sys_global_symbol_to_import \
13089 lt_cv_sys_global_symbol_to_c_name_address \
13090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13091 lt_cv_nm_interface \
13092 nm_file_list_spec \
13093 lt_cv_truncate_bin \
13094 lt_prog_compiler_no_builtin_flag \
13095 lt_prog_compiler_pic \
13096 lt_prog_compiler_wl \
13097 lt_prog_compiler_static \
13098 lt_cv_prog_compiler_c_o \
13099 need_locks \
13100 MANIFEST_TOOL \
13101 DSYMUTIL \
13102 NMEDIT \
13103 LIPO \
13104 OTOOL \
13105 OTOOL64 \
13106 shrext_cmds \
13107 export_dynamic_flag_spec \
13108 whole_archive_flag_spec \
13109 compiler_needs_object \
13110 with_gnu_ld \
13111 allow_undefined_flag \
13112 no_undefined_flag \
13113 hardcode_libdir_flag_spec \
13114 hardcode_libdir_separator \
13115 exclude_expsyms \
13116 include_expsyms \
13117 file_list_spec \
13118 variables_saved_for_relink \
13119 libname_spec \
13120 library_names_spec \
13121 soname_spec \
13122 install_override_mode \
13123 finish_eval \
13124 old_striplib \
13125 striplib; do
13126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13127 *[\\\\\\\`\\"\\\$]*)
13128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13129 ;;
13130 *)
13131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13132 ;;
13133 esac
13134 done
13135
13136 # Double-quote double-evaled strings.
13137 for var in reload_cmds \
13138 old_postinstall_cmds \
13139 old_postuninstall_cmds \
13140 old_archive_cmds \
13141 extract_expsyms_cmds \
13142 old_archive_from_new_cmds \
13143 old_archive_from_expsyms_cmds \
13144 archive_cmds \
13145 archive_expsym_cmds \
13146 module_cmds \
13147 module_expsym_cmds \
13148 export_symbols_cmds \
13149 prelink_cmds \
13150 postlink_cmds \
13151 postinstall_cmds \
13152 postuninstall_cmds \
13153 finish_cmds \
13154 sys_lib_search_path_spec \
13155 configure_time_dlsearch_path \
13156 configure_time_lt_sys_library_path; do
13157 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13158 *[\\\\\\\`\\"\\\$]*)
13159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13160 ;;
13161 *)
13162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13163 ;;
13164 esac
13165 done
13166
13167 ac_aux_dir='$ac_aux_dir'
13168
13169 # See if we are running on zsh, and set the options that allow our
13170 # commands through without removal of \ escapes INIT.
13171 if test -n "\${ZSH_VERSION+set}"; then
13172 setopt NO_GLOB_SUBST
13173 fi
13174
13175
13176 PACKAGE='$PACKAGE'
13177 VERSION='$VERSION'
13178 RM='$RM'
13179 ofile='$ofile'
13180
13181
13182
13183
13184 _ACEOF
13185
13186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13187
13188 # Handling of arguments.
13189 for ac_config_target in $ac_config_targets
13190 do
13191 case $ac_config_target in
13192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13196
13197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13198 esac
13199 done
13200
13201
13202 # If the user did not use the arguments to specify the items to instantiate,
13203 # then the envvar interface is used. Set only those that are not.
13204 # We use the long form for the default assignment because of an extremely
13205 # bizarre bug on SunOS 4.1.3.
13206 if $ac_need_defaults; then
13207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13210 fi
13211
13212 # Have a temporary directory for convenience. Make it in the build tree
13213 # simply because there is no reason against having it here, and in addition,
13214 # creating and moving files from /tmp can sometimes cause problems.
13215 # Hook for its removal unless debugging.
13216 # Note that there is a small window in which the directory will not be cleaned:
13217 # after its creation but before its name has been assigned to `$tmp'.
13218 $debug ||
13219 {
13220 tmp= ac_tmp=
13221 trap 'exit_status=$?
13222 : "${ac_tmp:=$tmp}"
13223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13224 ' 0
13225 trap 'as_fn_exit 1' 1 2 13 15
13226 }
13227 # Create a (secure) tmp directory for tmp files.
13228
13229 {
13230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13231 test -d "$tmp"
13232 } ||
13233 {
13234 tmp=./conf$$-$RANDOM
13235 (umask 077 && mkdir "$tmp")
13236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13237 ac_tmp=$tmp
13238
13239 # Set up the scripts for CONFIG_FILES section.
13240 # No need to generate them if there are no CONFIG_FILES.
13241 # This happens for instance with `./config.status config.h'.
13242 if test -n "$CONFIG_FILES"; then
13243
13244
13245 ac_cr=`echo X | tr X '\015'`
13246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13247 # But we know of no other shell where ac_cr would be empty at this
13248 # point, so we can use a bashism as a fallback.
13249 if test "x$ac_cr" = x; then
13250 eval ac_cr=\$\'\\r\'
13251 fi
13252 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13254 ac_cs_awk_cr='\\r'
13255 else
13256 ac_cs_awk_cr=$ac_cr
13257 fi
13258
13259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13260 _ACEOF
13261
13262
13263 {
13264 echo "cat >conf$$subs.awk <<_ACEOF" &&
13265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13266 echo "_ACEOF"
13267 } >conf$$subs.sh ||
13268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13270 ac_delim='%!_!# '
13271 for ac_last_try in false false false false false :; do
13272 . ./conf$$subs.sh ||
13273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13274
13275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13276 if test $ac_delim_n = $ac_delim_num; then
13277 break
13278 elif $ac_last_try; then
13279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13280 else
13281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13282 fi
13283 done
13284 rm -f conf$$subs.sh
13285
13286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13287 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13288 _ACEOF
13289 sed -n '
13290 h
13291 s/^/S["/; s/!.*/"]=/
13292 p
13293 g
13294 s/^[^!]*!//
13295 :repl
13296 t repl
13297 s/'"$ac_delim"'$//
13298 t delim
13299 :nl
13300 h
13301 s/\(.\{148\}\)..*/\1/
13302 t more1
13303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13304 p
13305 n
13306 b repl
13307 :more1
13308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13309 p
13310 g
13311 s/.\{148\}//
13312 t nl
13313 :delim
13314 h
13315 s/\(.\{148\}\)..*/\1/
13316 t more2
13317 s/["\\]/\\&/g; s/^/"/; s/$/"/
13318 p
13319 b
13320 :more2
13321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13322 p
13323 g
13324 s/.\{148\}//
13325 t delim
13326 ' <conf$$subs.awk | sed '
13327 /^[^""]/{
13328 N
13329 s/\n//
13330 }
13331 ' >>$CONFIG_STATUS || ac_write_fail=1
13332 rm -f conf$$subs.awk
13333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334 _ACAWK
13335 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13336 for (key in S) S_is_set[key] = 1
13337 FS = "\a"
13338
13339 }
13340 {
13341 line = $ 0
13342 nfields = split(line, field, "@")
13343 substed = 0
13344 len = length(field[1])
13345 for (i = 2; i < nfields; i++) {
13346 key = field[i]
13347 keylen = length(key)
13348 if (S_is_set[key]) {
13349 value = S[key]
13350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13351 len += length(value) + length(field[++i])
13352 substed = 1
13353 } else
13354 len += 1 + keylen
13355 }
13356
13357 print line
13358 }
13359
13360 _ACAWK
13361 _ACEOF
13362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13363 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13365 else
13366 cat
13367 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13369 _ACEOF
13370
13371 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13372 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13373 # trailing colons and then remove the whole line if VPATH becomes empty
13374 # (actually we leave an empty line to preserve line numbers).
13375 if test "x$srcdir" = x.; then
13376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13377 h
13378 s///
13379 s/^/:/
13380 s/[ ]*$/:/
13381 s/:\$(srcdir):/:/g
13382 s/:\${srcdir}:/:/g
13383 s/:@srcdir@:/:/g
13384 s/^:*//
13385 s/:*$//
13386 x
13387 s/\(=[ ]*\).*/\1/
13388 G
13389 s/\n//
13390 s/^[^=]*=[ ]*$//
13391 }'
13392 fi
13393
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395 fi # test -n "$CONFIG_FILES"
13396
13397 # Set up the scripts for CONFIG_HEADERS section.
13398 # No need to generate them if there are no CONFIG_HEADERS.
13399 # This happens for instance with `./config.status Makefile'.
13400 if test -n "$CONFIG_HEADERS"; then
13401 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13402 BEGIN {
13403 _ACEOF
13404
13405 # Transform confdefs.h into an awk script `defines.awk', embedded as
13406 # here-document in config.status, that substitutes the proper values into
13407 # config.h.in to produce config.h.
13408
13409 # Create a delimiter string that does not exist in confdefs.h, to ease
13410 # handling of long lines.
13411 ac_delim='%!_!# '
13412 for ac_last_try in false false :; do
13413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13414 if test -z "$ac_tt"; then
13415 break
13416 elif $ac_last_try; then
13417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13418 else
13419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13420 fi
13421 done
13422
13423 # For the awk script, D is an array of macro values keyed by name,
13424 # likewise P contains macro parameters if any. Preserve backslash
13425 # newline sequences.
13426
13427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13428 sed -n '
13429 s/.\{148\}/&'"$ac_delim"'/g
13430 t rset
13431 :rset
13432 s/^[ ]*#[ ]*define[ ][ ]*/ /
13433 t def
13434 d
13435 :def
13436 s/\\$//
13437 t bsnl
13438 s/["\\]/\\&/g
13439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13440 D["\1"]=" \3"/p
13441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13442 d
13443 :bsnl
13444 s/["\\]/\\&/g
13445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13446 D["\1"]=" \3\\\\\\n"\\/p
13447 t cont
13448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13449 t cont
13450 d
13451 :cont
13452 n
13453 s/.\{148\}/&'"$ac_delim"'/g
13454 t clear
13455 :clear
13456 s/\\$//
13457 t bsnlc
13458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13459 d
13460 :bsnlc
13461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13462 b cont
13463 ' <confdefs.h | sed '
13464 s/'"$ac_delim"'/"\\\
13465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13466
13467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13468 for (key in D) D_is_set[key] = 1
13469 FS = "\a"
13470 }
13471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13472 line = \$ 0
13473 split(line, arg, " ")
13474 if (arg[1] == "#") {
13475 defundef = arg[2]
13476 mac1 = arg[3]
13477 } else {
13478 defundef = substr(arg[1], 2)
13479 mac1 = arg[2]
13480 }
13481 split(mac1, mac2, "(") #)
13482 macro = mac2[1]
13483 prefix = substr(line, 1, index(line, defundef) - 1)
13484 if (D_is_set[macro]) {
13485 # Preserve the white space surrounding the "#".
13486 print prefix "define", macro P[macro] D[macro]
13487 next
13488 } else {
13489 # Replace #undef with comments. This is necessary, for example,
13490 # in the case of _POSIX_SOURCE, which is predefined and required
13491 # on some systems where configure will not decide to define it.
13492 if (defundef == "undef") {
13493 print "/*", prefix defundef, macro, "*/"
13494 next
13495 }
13496 }
13497 }
13498 { print }
13499 _ACAWK
13500 _ACEOF
13501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13503 fi # test -n "$CONFIG_HEADERS"
13504
13505
13506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13507 shift
13508 for ac_tag
13509 do
13510 case $ac_tag in
13511 :[FHLC]) ac_mode=$ac_tag; continue;;
13512 esac
13513 case $ac_mode$ac_tag in
13514 :[FHL]*:*);;
13515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13516 :[FH]-) ac_tag=-:-;;
13517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13518 esac
13519 ac_save_IFS=$IFS
13520 IFS=:
13521 set x $ac_tag
13522 IFS=$ac_save_IFS
13523 shift
13524 ac_file=$1
13525 shift
13526
13527 case $ac_mode in
13528 :L) ac_source=$1;;
13529 :[FH])
13530 ac_file_inputs=
13531 for ac_f
13532 do
13533 case $ac_f in
13534 -) ac_f="$ac_tmp/stdin";;
13535 *) # Look for the file first in the build tree, then in the source tree
13536 # (if the path is not absolute). The absolute path cannot be DOS-style,
13537 # because $ac_f cannot contain `:'.
13538 test -f "$ac_f" ||
13539 case $ac_f in
13540 [\\/$]*) false;;
13541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13542 esac ||
13543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13544 esac
13545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13546 as_fn_append ac_file_inputs " '$ac_f'"
13547 done
13548
13549 # Let's still pretend it is `configure' which instantiates (i.e., don't
13550 # use $as_me), people would be surprised to read:
13551 # /* config.h. Generated by config.status. */
13552 configure_input='Generated from '`
13553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13554 `' by configure.'
13555 if test x"$ac_file" != x-; then
13556 configure_input="$ac_file. $configure_input"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13558 $as_echo "$as_me: creating $ac_file" >&6;}
13559 fi
13560 # Neutralize special characters interpreted by sed in replacement strings.
13561 case $configure_input in #(
13562 *\&* | *\|* | *\\* )
13563 ac_sed_conf_input=`$as_echo "$configure_input" |
13564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13565 *) ac_sed_conf_input=$configure_input;;
13566 esac
13567
13568 case $ac_tag in
13569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13571 esac
13572 ;;
13573 esac
13574
13575 ac_dir=`$as_dirname -- "$ac_file" ||
13576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13577 X"$ac_file" : 'X\(//\)[^/]' \| \
13578 X"$ac_file" : 'X\(//\)$' \| \
13579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13580 $as_echo X"$ac_file" |
13581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13582 s//\1/
13583 q
13584 }
13585 /^X\(\/\/\)[^/].*/{
13586 s//\1/
13587 q
13588 }
13589 /^X\(\/\/\)$/{
13590 s//\1/
13591 q
13592 }
13593 /^X\(\/\).*/{
13594 s//\1/
13595 q
13596 }
13597 s/.*/./; q'`
13598 as_dir="$ac_dir"; as_fn_mkdir_p
13599 ac_builddir=.
13600
13601 case "$ac_dir" in
13602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13603 *)
13604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13605 # A ".." for each directory in $ac_dir_suffix.
13606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13607 case $ac_top_builddir_sub in
13608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13610 esac ;;
13611 esac
13612 ac_abs_top_builddir=$ac_pwd
13613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13614 # for backward compatibility:
13615 ac_top_builddir=$ac_top_build_prefix
13616
13617 case $srcdir in
13618 .) # We are building in place.
13619 ac_srcdir=.
13620 ac_top_srcdir=$ac_top_builddir_sub
13621 ac_abs_top_srcdir=$ac_pwd ;;
13622 [\\/]* | ?:[\\/]* ) # Absolute name.
13623 ac_srcdir=$srcdir$ac_dir_suffix;
13624 ac_top_srcdir=$srcdir
13625 ac_abs_top_srcdir=$srcdir ;;
13626 *) # Relative name.
13627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13628 ac_top_srcdir=$ac_top_build_prefix$srcdir
13629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13630 esac
13631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13632
13633
13634 case $ac_mode in
13635 :F)
13636 #
13637 # CONFIG_FILE
13638 #
13639
13640 case $INSTALL in
13641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13643 esac
13644 ac_MKDIR_P=$MKDIR_P
13645 case $MKDIR_P in
13646 [\\/$]* | ?:[\\/]* ) ;;
13647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13648 esac
13649 _ACEOF
13650
13651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13652 # If the template does not know about datarootdir, expand it.
13653 # FIXME: This hack should be removed a few years after 2.60.
13654 ac_datarootdir_hack=; ac_datarootdir_seen=
13655 ac_sed_dataroot='
13656 /datarootdir/ {
13657 p
13658 q
13659 }
13660 /@datadir@/p
13661 /@docdir@/p
13662 /@infodir@/p
13663 /@localedir@/p
13664 /@mandir@/p'
13665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13666 *datarootdir*) ac_datarootdir_seen=yes;;
13667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13670 _ACEOF
13671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13672 ac_datarootdir_hack='
13673 s&@datadir@&$datadir&g
13674 s&@docdir@&$docdir&g
13675 s&@infodir@&$infodir&g
13676 s&@localedir@&$localedir&g
13677 s&@mandir@&$mandir&g
13678 s&\\\${datarootdir}&$datarootdir&g' ;;
13679 esac
13680 _ACEOF
13681
13682 # Neutralize VPATH when `$srcdir' = `.'.
13683 # Shell code in configure.ac might set extrasub.
13684 # FIXME: do we really want to maintain this feature?
13685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13686 ac_sed_extra="$ac_vpsub
13687 $extrasub
13688 _ACEOF
13689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13690 :t
13691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13692 s|@configure_input@|$ac_sed_conf_input|;t t
13693 s&@top_builddir@&$ac_top_builddir_sub&;t t
13694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13695 s&@srcdir@&$ac_srcdir&;t t
13696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13697 s&@top_srcdir@&$ac_top_srcdir&;t t
13698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13699 s&@builddir@&$ac_builddir&;t t
13700 s&@abs_builddir@&$ac_abs_builddir&;t t
13701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13702 s&@INSTALL@&$ac_INSTALL&;t t
13703 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13704 $ac_datarootdir_hack
13705 "
13706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13708
13709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13714 which seems to be undefined. Please make sure it is defined" >&5
13715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13716 which seems to be undefined. Please make sure it is defined" >&2;}
13717
13718 rm -f "$ac_tmp/stdin"
13719 case $ac_file in
13720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13722 esac \
13723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13724 ;;
13725 :H)
13726 #
13727 # CONFIG_HEADER
13728 #
13729 if test x"$ac_file" != x-; then
13730 {
13731 $as_echo "/* $configure_input */" \
13732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13733 } >"$ac_tmp/config.h" \
13734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13738 else
13739 rm -f "$ac_file"
13740 mv "$ac_tmp/config.h" "$ac_file" \
13741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13742 fi
13743 else
13744 $as_echo "/* $configure_input */" \
13745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13746 || as_fn_error $? "could not create -" "$LINENO" 5
13747 fi
13748 # Compute "$ac_file"'s index in $config_headers.
13749 _am_arg="$ac_file"
13750 _am_stamp_count=1
13751 for _am_header in $config_headers :; do
13752 case $_am_header in
13753 $_am_arg | $_am_arg:* )
13754 break ;;
13755 * )
13756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13757 esac
13758 done
13759 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13760 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13761 X"$_am_arg" : 'X\(//\)[^/]' \| \
13762 X"$_am_arg" : 'X\(//\)$' \| \
13763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13764 $as_echo X"$_am_arg" |
13765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13766 s//\1/
13767 q
13768 }
13769 /^X\(\/\/\)[^/].*/{
13770 s//\1/
13771 q
13772 }
13773 /^X\(\/\/\)$/{
13774 s//\1/
13775 q
13776 }
13777 /^X\(\/\).*/{
13778 s//\1/
13779 q
13780 }
13781 s/.*/./; q'`/stamp-h$_am_stamp_count
13782 ;;
13783
13784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13785 $as_echo "$as_me: executing $ac_file commands" >&6;}
13786 ;;
13787 esac
13788
13789
13790 case $ac_file$ac_mode in
13791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13792 # Older Autoconf quotes --file arguments for eval, but not when files
13793 # are listed without --file. Let's play safe and only enable the eval
13794 # if we detect the quoting.
13795 case $CONFIG_FILES in
13796 *\'*) eval set x "$CONFIG_FILES" ;;
13797 *) set x $CONFIG_FILES ;;
13798 esac
13799 shift
13800 for mf
13801 do
13802 # Strip MF so we end up with the name of the file.
13803 mf=`echo "$mf" | sed -e 's/:.*$//'`
13804 # Check whether this is an Automake generated Makefile or not.
13805 # We used to match only the files named 'Makefile.in', but
13806 # some people rename them; so instead we look at the file content.
13807 # Grep'ing the first line is not enough: some people post-process
13808 # each Makefile.in and add a new line on top of each file to say so.
13809 # Grep'ing the whole file is not good either: AIX grep has a line
13810 # limit of 2048, but all sed's we know have understand at least 4000.
13811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13812 dirpart=`$as_dirname -- "$mf" ||
13813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13814 X"$mf" : 'X\(//\)[^/]' \| \
13815 X"$mf" : 'X\(//\)$' \| \
13816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13817 $as_echo X"$mf" |
13818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13819 s//\1/
13820 q
13821 }
13822 /^X\(\/\/\)[^/].*/{
13823 s//\1/
13824 q
13825 }
13826 /^X\(\/\/\)$/{
13827 s//\1/
13828 q
13829 }
13830 /^X\(\/\).*/{
13831 s//\1/
13832 q
13833 }
13834 s/.*/./; q'`
13835 else
13836 continue
13837 fi
13838 # Extract the definition of DEPDIR, am__include, and am__quote
13839 # from the Makefile without running 'make'.
13840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13841 test -z "$DEPDIR" && continue
13842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13843 test -z "$am__include" && continue
13844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13845 # Find all dependency output files, they are included files with
13846 # $(DEPDIR) in their names. We invoke sed twice because it is the
13847 # simplest approach to changing $(DEPDIR) to its actual value in the
13848 # expansion.
13849 for file in `sed -n "
13850 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13851 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13852 # Make sure the directory exists.
13853 test -f "$dirpart/$file" && continue
13854 fdir=`$as_dirname -- "$file" ||
13855 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13856 X"$file" : 'X\(//\)[^/]' \| \
13857 X"$file" : 'X\(//\)$' \| \
13858 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13859 $as_echo X"$file" |
13860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13861 s//\1/
13862 q
13863 }
13864 /^X\(\/\/\)[^/].*/{
13865 s//\1/
13866 q
13867 }
13868 /^X\(\/\/\)$/{
13869 s//\1/
13870 q
13871 }
13872 /^X\(\/\).*/{
13873 s//\1/
13874 q
13875 }
13876 s/.*/./; q'`
13877 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13878 # echo "creating $dirpart/$file"
13879 echo '# dummy' > "$dirpart/$file"
13880 done
13881 done
13882 }
13883 ;;
13884 "libtool":C)
13885
13886 # See if we are running on zsh, and set the options that allow our
13887 # commands through without removal of \ escapes.
13888 if test -n "${ZSH_VERSION+set}"; then
13889 setopt NO_GLOB_SUBST
13890 fi
13891
13892 cfgfile=${ofile}T
13893 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13894 $RM "$cfgfile"
13895
13896 cat <<_LT_EOF >> "$cfgfile"
13897 #! $SHELL
13898 # Generated automatically by $as_me ($PACKAGE) $VERSION
13899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13900 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13901
13902 # Provide generalized library-building support services.
13903 # Written by Gordon Matzigkeit, 1996
13904
13905 # Copyright (C) 2014 Free Software Foundation, Inc.
13906 # This is free software; see the source for copying conditions. There is NO
13907 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13908
13909 # GNU Libtool is free software; you can redistribute it and/or modify
13910 # it under the terms of the GNU General Public License as published by
13911 # the Free Software Foundation; either version 2 of of the License, or
13912 # (at your option) any later version.
13913 #
13914 # As a special exception to the GNU General Public License, if you
13915 # distribute this file as part of a program or library that is built
13916 # using GNU Libtool, you may include this file under the same
13917 # distribution terms that you use for the rest of that program.
13918 #
13919 # GNU Libtool is distributed in the hope that it will be useful, but
13920 # WITHOUT ANY WARRANTY; without even the implied warranty of
13921 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13922 # GNU General Public License for more details.
13923 #
13924 # You should have received a copy of the GNU General Public License
13925 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13926
13927
13928 # The names of the tagged configurations supported by this script.
13929 available_tags=''
13930
13931 # Configured defaults for sys_lib_dlsearch_path munging.
13932 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13933
13934 # ### BEGIN LIBTOOL CONFIG
13935
13936 # Which release of libtool.m4 was used?
13937 macro_version=$macro_version
13938 macro_revision=$macro_revision
13939
13940 # Whether or not to build shared libraries.
13941 build_libtool_libs=$enable_shared
13942
13943 # Whether or not to build static libraries.
13944 build_old_libs=$enable_static
13945
13946 # What type of objects to build.
13947 pic_mode=$pic_mode
13948
13949 # Whether or not to optimize for fast installation.
13950 fast_install=$enable_fast_install
13951
13952 # Shared archive member basename,for filename based shared library versioning on AIX.
13953 shared_archive_member_spec=$shared_archive_member_spec
13954
13955 # Shell to use when invoking shell scripts.
13956 SHELL=$lt_SHELL
13957
13958 # An echo program that protects backslashes.
13959 ECHO=$lt_ECHO
13960
13961 # The PATH separator for the build system.
13962 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13963
13964 # The host system.
13965 host_alias=$host_alias
13966 host=$host
13967 host_os=$host_os
13968
13969 # The build system.
13970 build_alias=$build_alias
13971 build=$build
13972 build_os=$build_os
13973
13974 # A sed program that does not truncate output.
13975 SED=$lt_SED
13976
13977 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13978 Xsed="\$SED -e 1s/^X//"
13979
13980 # A grep program that handles long lines.
13981 GREP=$lt_GREP
13982
13983 # An ERE matcher.
13984 EGREP=$lt_EGREP
13985
13986 # A literal string matcher.
13987 FGREP=$lt_FGREP
13988
13989 # A BSD- or MS-compatible name lister.
13990 NM=$lt_NM
13991
13992 # Whether we need soft or hard links.
13993 LN_S=$lt_LN_S
13994
13995 # What is the maximum length of a command?
13996 max_cmd_len=$max_cmd_len
13997
13998 # Object file suffix (normally "o").
13999 objext=$ac_objext
14000
14001 # Executable file suffix (normally "").
14002 exeext=$exeext
14003
14004 # whether the shell understands "unset".
14005 lt_unset=$lt_unset
14006
14007 # turn spaces into newlines.
14008 SP2NL=$lt_lt_SP2NL
14009
14010 # turn newlines into spaces.
14011 NL2SP=$lt_lt_NL2SP
14012
14013 # convert \$build file names to \$host format.
14014 to_host_file_cmd=$lt_cv_to_host_file_cmd
14015
14016 # convert \$build files to toolchain format.
14017 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14018
14019 # An object symbol dumper.
14020 OBJDUMP=$lt_OBJDUMP
14021
14022 # Method to check whether dependent libraries are shared objects.
14023 deplibs_check_method=$lt_deplibs_check_method
14024
14025 # Command to use when deplibs_check_method = "file_magic".
14026 file_magic_cmd=$lt_file_magic_cmd
14027
14028 # How to find potential files when deplibs_check_method = "file_magic".
14029 file_magic_glob=$lt_file_magic_glob
14030
14031 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14032 want_nocaseglob=$lt_want_nocaseglob
14033
14034 # DLL creation program.
14035 DLLTOOL=$lt_DLLTOOL
14036
14037 # Command to associate shared and link libraries.
14038 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14039
14040 # The archiver.
14041 AR=$lt_AR
14042
14043 # Flags to create an archive.
14044 AR_FLAGS=$lt_AR_FLAGS
14045
14046 # How to feed a file listing to the archiver.
14047 archiver_list_spec=$lt_archiver_list_spec
14048
14049 # A symbol stripping program.
14050 STRIP=$lt_STRIP
14051
14052 # Commands used to install an old-style archive.
14053 RANLIB=$lt_RANLIB
14054 old_postinstall_cmds=$lt_old_postinstall_cmds
14055 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14056
14057 # Whether to use a lock for old archive extraction.
14058 lock_old_archive_extraction=$lock_old_archive_extraction
14059
14060 # A C compiler.
14061 LTCC=$lt_CC
14062
14063 # LTCC compiler flags.
14064 LTCFLAGS=$lt_CFLAGS
14065
14066 # Take the output of nm and produce a listing of raw symbols and C names.
14067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14068
14069 # Transform the output of nm in a proper C declaration.
14070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14071
14072 # Transform the output of nm into a list of symbols to manually relocate.
14073 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14074
14075 # Transform the output of nm in a C name address pair.
14076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14077
14078 # Transform the output of nm in a C name address pair when lib prefix is needed.
14079 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14080
14081 # The name lister interface.
14082 nm_interface=$lt_lt_cv_nm_interface
14083
14084 # Specify filename containing input files for \$NM.
14085 nm_file_list_spec=$lt_nm_file_list_spec
14086
14087 # The root where to search for dependent libraries,and where our libraries should be installed.
14088 lt_sysroot=$lt_sysroot
14089
14090 # Command to truncate a binary pipe.
14091 lt_truncate_bin=$lt_lt_cv_truncate_bin
14092
14093 # The name of the directory that contains temporary libtool files.
14094 objdir=$objdir
14095
14096 # Used to examine libraries when file_magic_cmd begins with "file".
14097 MAGIC_CMD=$MAGIC_CMD
14098
14099 # Must we lock files when doing compilation?
14100 need_locks=$lt_need_locks
14101
14102 # Manifest tool.
14103 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14104
14105 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14106 DSYMUTIL=$lt_DSYMUTIL
14107
14108 # Tool to change global to local symbols on Mac OS X.
14109 NMEDIT=$lt_NMEDIT
14110
14111 # Tool to manipulate fat objects and archives on Mac OS X.
14112 LIPO=$lt_LIPO
14113
14114 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14115 OTOOL=$lt_OTOOL
14116
14117 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14118 OTOOL64=$lt_OTOOL64
14119
14120 # Old archive suffix (normally "a").
14121 libext=$libext
14122
14123 # Shared library suffix (normally ".so").
14124 shrext_cmds=$lt_shrext_cmds
14125
14126 # The commands to extract the exported symbol list from a shared archive.
14127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14128
14129 # Variables whose values should be saved in libtool wrapper scripts and
14130 # restored at link time.
14131 variables_saved_for_relink=$lt_variables_saved_for_relink
14132
14133 # Do we need the "lib" prefix for modules?
14134 need_lib_prefix=$need_lib_prefix
14135
14136 # Do we need a version for libraries?
14137 need_version=$need_version
14138
14139 # Library versioning type.
14140 version_type=$version_type
14141
14142 # Shared library runtime path variable.
14143 runpath_var=$runpath_var
14144
14145 # Shared library path variable.
14146 shlibpath_var=$shlibpath_var
14147
14148 # Is shlibpath searched before the hard-coded library search path?
14149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14150
14151 # Format of library name prefix.
14152 libname_spec=$lt_libname_spec
14153
14154 # List of archive names. First name is the real one, the rest are links.
14155 # The last name is the one that the linker finds with -lNAME
14156 library_names_spec=$lt_library_names_spec
14157
14158 # The coded name of the library, if different from the real name.
14159 soname_spec=$lt_soname_spec
14160
14161 # Permission mode override for installation of shared libraries.
14162 install_override_mode=$lt_install_override_mode
14163
14164 # Command to use after installation of a shared archive.
14165 postinstall_cmds=$lt_postinstall_cmds
14166
14167 # Command to use after uninstallation of a shared archive.
14168 postuninstall_cmds=$lt_postuninstall_cmds
14169
14170 # Commands used to finish a libtool library installation in a directory.
14171 finish_cmds=$lt_finish_cmds
14172
14173 # As "finish_cmds", except a single script fragment to be evaled but
14174 # not shown.
14175 finish_eval=$lt_finish_eval
14176
14177 # Whether we should hardcode library paths into libraries.
14178 hardcode_into_libs=$hardcode_into_libs
14179
14180 # Compile-time system search path for libraries.
14181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14182
14183 # Detected run-time system search path for libraries.
14184 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14185
14186 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14187 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14188
14189 # Whether dlopen is supported.
14190 dlopen_support=$enable_dlopen
14191
14192 # Whether dlopen of programs is supported.
14193 dlopen_self=$enable_dlopen_self
14194
14195 # Whether dlopen of statically linked programs is supported.
14196 dlopen_self_static=$enable_dlopen_self_static
14197
14198 # Commands to strip libraries.
14199 old_striplib=$lt_old_striplib
14200 striplib=$lt_striplib
14201
14202
14203 # The linker used to build libraries.
14204 LD=$lt_LD
14205
14206 # How to create reloadable object files.
14207 reload_flag=$lt_reload_flag
14208 reload_cmds=$lt_reload_cmds
14209
14210 # Commands used to build an old-style archive.
14211 old_archive_cmds=$lt_old_archive_cmds
14212
14213 # A language specific compiler.
14214 CC=$lt_compiler
14215
14216 # Is the compiler the GNU compiler?
14217 with_gcc=$GCC
14218
14219 # Compiler flag to turn off builtin functions.
14220 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14221
14222 # Additional compiler flags for building library objects.
14223 pic_flag=$lt_lt_prog_compiler_pic
14224
14225 # How to pass a linker flag through the compiler.
14226 wl=$lt_lt_prog_compiler_wl
14227
14228 # Compiler flag to prevent dynamic linking.
14229 link_static_flag=$lt_lt_prog_compiler_static
14230
14231 # Does compiler simultaneously support -c and -o options?
14232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14233
14234 # Whether or not to add -lc for building shared libraries.
14235 build_libtool_need_lc=$archive_cmds_need_lc
14236
14237 # Whether or not to disallow shared libs when runtime libs are static.
14238 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14239
14240 # Compiler flag to allow reflexive dlopens.
14241 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14242
14243 # Compiler flag to generate shared objects directly from archives.
14244 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14245
14246 # Whether the compiler copes with passing no objects directly.
14247 compiler_needs_object=$lt_compiler_needs_object
14248
14249 # Create an old-style archive from a shared archive.
14250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14251
14252 # Create a temporary old-style archive to link instead of a shared archive.
14253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14254
14255 # Commands used to build a shared archive.
14256 archive_cmds=$lt_archive_cmds
14257 archive_expsym_cmds=$lt_archive_expsym_cmds
14258
14259 # Commands used to build a loadable module if different from building
14260 # a shared archive.
14261 module_cmds=$lt_module_cmds
14262 module_expsym_cmds=$lt_module_expsym_cmds
14263
14264 # Whether we are building with GNU ld or not.
14265 with_gnu_ld=$lt_with_gnu_ld
14266
14267 # Flag that allows shared libraries with undefined symbols to be built.
14268 allow_undefined_flag=$lt_allow_undefined_flag
14269
14270 # Flag that enforces no undefined symbols.
14271 no_undefined_flag=$lt_no_undefined_flag
14272
14273 # Flag to hardcode \$libdir into a binary during linking.
14274 # This must work even if \$libdir does not exist
14275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14276
14277 # Whether we need a single "-rpath" flag with a separated argument.
14278 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14279
14280 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14281 # DIR into the resulting binary.
14282 hardcode_direct=$hardcode_direct
14283
14284 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14285 # DIR into the resulting binary and the resulting library dependency is
14286 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14287 # library is relocated.
14288 hardcode_direct_absolute=$hardcode_direct_absolute
14289
14290 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14291 # into the resulting binary.
14292 hardcode_minus_L=$hardcode_minus_L
14293
14294 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14295 # into the resulting binary.
14296 hardcode_shlibpath_var=$hardcode_shlibpath_var
14297
14298 # Set to "yes" if building a shared library automatically hardcodes DIR
14299 # into the library and all subsequent libraries and executables linked
14300 # against it.
14301 hardcode_automatic=$hardcode_automatic
14302
14303 # Set to yes if linker adds runtime paths of dependent libraries
14304 # to runtime path list.
14305 inherit_rpath=$inherit_rpath
14306
14307 # Whether libtool must link a program against all its dependency libraries.
14308 link_all_deplibs=$link_all_deplibs
14309
14310 # Set to "yes" if exported symbols are required.
14311 always_export_symbols=$always_export_symbols
14312
14313 # The commands to list exported symbols.
14314 export_symbols_cmds=$lt_export_symbols_cmds
14315
14316 # Symbols that should not be listed in the preloaded symbols.
14317 exclude_expsyms=$lt_exclude_expsyms
14318
14319 # Symbols that must always be exported.
14320 include_expsyms=$lt_include_expsyms
14321
14322 # Commands necessary for linking programs (against libraries) with templates.
14323 prelink_cmds=$lt_prelink_cmds
14324
14325 # Commands necessary for finishing linking programs.
14326 postlink_cmds=$lt_postlink_cmds
14327
14328 # Specify filename containing input files.
14329 file_list_spec=$lt_file_list_spec
14330
14331 # How to hardcode a shared library path into an executable.
14332 hardcode_action=$hardcode_action
14333
14334 # ### END LIBTOOL CONFIG
14335
14336 _LT_EOF
14337
14338 cat <<'_LT_EOF' >> "$cfgfile"
14339
14340 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14341
14342 # func_munge_path_list VARIABLE PATH
14343 # -----------------------------------
14344 # VARIABLE is name of variable containing _space_ separated list of
14345 # directories to be munged by the contents of PATH, which is string
14346 # having a format:
14347 # "DIR[:DIR]:"
14348 # string "DIR[ DIR]" will be prepended to VARIABLE
14349 # ":DIR[:DIR]"
14350 # string "DIR[ DIR]" will be appended to VARIABLE
14351 # "DIRP[:DIRP]::[DIRA:]DIRA"
14352 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14353 # "DIRA[ DIRA]" will be appended to VARIABLE
14354 # "DIR[:DIR]"
14355 # VARIABLE will be replaced by "DIR[ DIR]"
14356 func_munge_path_list ()
14357 {
14358 case x$2 in
14359 x)
14360 ;;
14361 *:)
14362 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14363 ;;
14364 x:*)
14365 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14366 ;;
14367 *::*)
14368 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14369 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14370 ;;
14371 *)
14372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14373 ;;
14374 esac
14375 }
14376
14377
14378 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14379 func_cc_basename ()
14380 {
14381 for cc_temp in $*""; do
14382 case $cc_temp in
14383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14385 \-*) ;;
14386 *) break;;
14387 esac
14388 done
14389 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14390 }
14391
14392
14393 # ### END FUNCTIONS SHARED WITH CONFIGURE
14394
14395 _LT_EOF
14396
14397 case $host_os in
14398 aix3*)
14399 cat <<\_LT_EOF >> "$cfgfile"
14400 # AIX sometimes has problems with the GCC collect2 program. For some
14401 # reason, if we set the COLLECT_NAMES environment variable, the problems
14402 # vanish in a puff of smoke.
14403 if test set != "${COLLECT_NAMES+set}"; then
14404 COLLECT_NAMES=
14405 export COLLECT_NAMES
14406 fi
14407 _LT_EOF
14408 ;;
14409 esac
14410
14411
14412 ltmain=$ac_aux_dir/ltmain.sh
14413
14414
14415 # We use sed instead of cat because bash on DJGPP gets confused if
14416 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14417 # text mode, it properly converts lines to CR/LF. This bash problem
14418 # is reportedly fixed, but why not run on old versions too?
14419 sed '$q' "$ltmain" >> "$cfgfile" \
14420 || (rm -f "$cfgfile"; exit 1)
14421
14422 mv -f "$cfgfile" "$ofile" ||
14423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14424 chmod +x "$ofile"
14425
14426 ;;
14427
14428 esac
14429 done # for ac_tag
14430
14431
14432 as_fn_exit 0
14433 _ACEOF
14434 ac_clean_files=$ac_clean_files_save
14435
14436 test $ac_write_fail = 0 ||
14437 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14438
14439
14440 # configure is writing to config.log, and then calls config.status.
14441 # config.status does its own redirection, appending to config.log.
14442 # Unfortunately, on DOS this fails, as config.log is still kept open
14443 # by configure, so config.status won't be able to write to it; its
14444 # output is simply discarded. So we exec the FD to /dev/null,
14445 # effectively closing config.log, so it can be properly (re)opened and
14446 # appended to by config.status. When coming back to configure, we
14447 # need to make the FD available again.
14448 if test "$no_create" != yes; then
14449 ac_cs_success=:
14450 ac_config_status_args=
14451 test "$silent" = yes &&
14452 ac_config_status_args="$ac_config_status_args --quiet"
14453 exec 5>/dev/null
14454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14455 exec 5>>config.log
14456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14457 # would make configure fail if this is the last instruction.
14458 $ac_cs_success || as_fn_exit 1
14459 fi
14460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14462 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14463 fi
14464